:root{--ink:#223f3a;--paper:#fffbed;--blue:#153fd0;--gold:#ffcf00;--gold-edge:#d99900;--muted:#4c625e}
*{box-sizing:border-box}
html,body{margin:0}
body{color:var(--ink);background:#e9f3ff;font:18px/1.45 Nunito,'Trebuchet MS',sans-serif;min-height:100svh;display:flex;flex-direction:column}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:3px solid #e09831;outline-offset:3px}
h1,h2,h3,.home{font-family:Fredoka,'Arial Rounded MT Bold','Trebuchet MS',sans-serif;font-weight:500;line-height:1.1}
.bar{display:flex;align-items:center;gap:16px;justify-content:space-between;max-width:1000px;width:100%;margin:0 auto;padding:12px 16px}
.home{text-decoration:none;color:inherit;font-size:19px;white-space:nowrap;display:flex;align-items:center}
.robot-logo{display:inline-flex;justify-content:center;align-items:center;background:#fbd77d;border:2px solid var(--ink);border-radius:8px;width:30px;height:27px;font-size:17px;margin-right:8px;transform:rotate(-6deg)}
.bar h1{font-size:22px;margin:0;color:var(--blue);text-align:center;flex:1}
.tools button{border:1.5px solid #223f3a40;background:var(--paper);border-radius:30px;padding:7px 14px;font-size:13px;font-weight:800;color:var(--ink)}
main{flex:1;width:100%;max-width:1000px;margin:0 auto;padding:0 16px 12px}

/* Start, between-round and prize cards */
.panel{background:var(--paper);border-radius:22px;padding:24px;max-width:600px;margin:12px auto;text-align:center;box-shadow:0 10px 30px #16342c1f}
.panel h2{font-size:32px;margin:4px 0 10px;color:var(--blue)}
.panel p{margin:8px 0}
.eyebrow{font-size:12px;letter-spacing:2px;font-weight:900;text-transform:uppercase;color:#8b592f}
.bots{display:flex;justify-content:center;gap:14px;margin:6px 0 2px}
.bot{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:24px;border:3px dashed #223f3a40;background:#fff;font-family:Fredoka,sans-serif;font-size:16px;overflow:hidden}
.bot img{width:100%;height:100%;object-fit:contain}
.actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:16px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:12px 26px;border-radius:40px;border:0;background:var(--ink);color:var(--paper);font-weight:900;font-size:18px;text-decoration:none}
.btn.gold{background:var(--gold);color:#142980;box-shadow:0 4px 0 var(--gold-edge)}
.btn.plain{background:transparent;color:var(--ink);border:1.5px solid #223f3a50}
.btn:active{transform:translateY(2px)}
.dots{display:flex;gap:8px;justify-content:center;margin:12px 0 4px;padding:0;list-style:none}
.dots li{width:16px;height:16px;border-radius:50%;background:#223f3a26}
.dots li.done{background:var(--gold);box-shadow:0 0 0 2px var(--gold-edge) inset}
.dots li.now{background:var(--blue)}
.prize-art{display:block;margin:12px auto;max-width:240px;width:62%;aspect-ratio:612/792;object-fit:contain;border-radius:10px;border:1.5px solid #223f3a30;background:#fff}
.callout{margin:12px auto!important;padding:10px 14px;border-radius:14px;background:#fff3c4;border:2px solid var(--gold-edge);font-weight:800;max-width:440px}
.callout strong{display:block;font-family:Fredoka,sans-serif;font-weight:600;font-size:22px;letter-spacing:.5px;color:#142980}
.pack-row{list-style:none;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:4px 0;padding:0}
.pack-row li{padding:4px 12px;border-radius:20px;border:1.5px solid #223f3a30;font-size:14px;font-weight:800;color:var(--muted);background:#fff}
.pack-row li.won{background:var(--gold);border-color:var(--gold-edge);color:#142980}

/* The board */
.board.pics{grid-template-columns:1fr 2fr}
.board.pics .col.clues{display:grid;grid-template-columns:1fr 1fr;align-content:start}
.board.pics .col.clues .col-title{grid-column:1/-1}
.round-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0 6px}
.round-head h2{margin:0;font-size:28px;color:var(--blue)}
.round-head .dots{margin:0}
.ask{margin:0 0 6px;font-weight:900;font-size:20px}
.status{min-height:56px;margin:0 0 12px;padding:10px 16px;border-radius:16px;background:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;gap:10px}
.status.good{background:#e3f7e8}
.status.oops{background:#fff3c4}
.board{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}
.col{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.col-title{font-size:12px;letter-spacing:2px;font-weight:900;text-transform:uppercase;color:var(--muted);margin:0 0 -4px}
.tile{width:100%;min-height:76px;display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:18px;border:3px solid #223f3a26;background:#fff;color:var(--ink);text-align:left;font-weight:900;font-size:21px;line-height:1.2;box-shadow:0 4px 0 #c9d4df;transition:transform .12s,border-color .12s,background .12s}
.tile.name{font-family:Fredoka,'Arial Rounded MT Bold',sans-serif;font-weight:500;font-size:23px}
.tile.picture{flex-direction:column;align-items:stretch;text-align:center;gap:6px}
.tile[aria-pressed="true"]{border-color:var(--blue);background:#eaf0ff;transform:translateY(-2px);box-shadow:0 6px 0 #9fb3ef}
.tile.matched{border-color:var(--hc);background:var(--hb);box-shadow:0 4px 0 var(--he);cursor:default}
.tile.matched .check{display:inline-flex}
.tile.wiggle{animation:wiggle .35s}
@keyframes wiggle{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.check{display:none;margin-left:auto;flex:none;width:30px;height:30px;border-radius:50%;background:var(--hc);color:#fff;align-items:center;justify-content:center;font-size:18px}
.picture .check{position:absolute;top:8px;right:8px;margin:0}
.picture{position:relative}
.label{flex:1}
.picture .label{font-size:17px}

/* Icons: the book's footer icons. Placeholder words until the PNG exists. */
.icon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px}
.icon img{width:100%;height:100%;object-fit:contain}
.icon.ph{width:auto;min-width:48px;height:auto;min-height:30px;padding:2px 8px;border:2px dashed #223f3a40;border-radius:12px;font-family:Nunito,sans-serif;font-size:12px;font-weight:800;color:var(--muted);text-transform:lowercase}
.picture .icon{align-self:center}

/* Picture slot: the art for rounds 1, 2 and 4. Words show until the PNG exists. */
.pic{display:flex;align-items:center;justify-content:center;height:120px;border-radius:12px;overflow:hidden;background:#f4f7fb}
.pic img{width:100%;height:100%;object-fit:contain}
.pic.ph{border:2px dashed #223f3a30;font-size:13px;font-weight:800;color:var(--muted);padding:8px}

.foot{text-align:center;font-size:13px;padding:6px 16px 18px;color:var(--muted)}
.foot p{margin:4px 0}
.foot a{color:#173cc4}

@media(max-width:700px){
  body{font-size:17px}
  .bar{padding:10px 12px;gap:8px}
  .bar h1{display:none}
  .home{font-size:16px}
  main{padding:0 10px 10px}
  .panel{padding:18px 14px}
  .panel h2{font-size:26px}
  .board{gap:10px}
  .col{gap:10px}
  .tile{min-height:68px;padding:8px 10px;gap:8px;font-size:18px;border-radius:16px}
  .tile.name{font-size:19px}
  .icon{width:36px;height:36px}
  .board.pics{grid-template-columns:1fr 1fr}
  .board.pics .col.clues{display:flex}
  .pic{height:88px}
  .icon.ph{min-width:36px;font-size:10px;padding:2px 5px}
  .picture .label{font-size:15px}
  .round-head h2{font-size:23px}
  .ask{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.tile{transition:none}.tile.wiggle{animation:none}}
h2[tabindex="-1"]:focus{outline:none}
