/* Goal100 Game Room (play/) · Nov 10, 2026 · agent "games". Uses the site tokens from assets/site.css.
   Nov 14, 2026 (job "builderteach"): small buttons 44 px tall (iPhone), the "Open a saved set" sheet, builder rows for phones. */
.gp-wrap{padding-bottom:40px}
.gp-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;padding:26px 0 8px}
.gp-hero h1{font-size:clamp(2rem,5vw,3.1rem)}
.gp-hero svg{width:100%;max-width:340px;justify-self:center}
@media (max-width:760px){.gp-hero{grid-template-columns:1fr}.gp-hero svg{max-width:220px}}
.gp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin:18px 0}
.gp-card{display:flex;flex-direction:column;gap:8px;background:var(--card);border:2px solid var(--line);border-radius:22px;padding:18px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.gp-card:hover,.gp-card:focus-visible{border-color:var(--brand)}
.gp-card .ico{font-size:2.4rem;line-height:1}
.gp-card b{font:800 1.35rem var(--display)}
.gp-card .who{font-size:.9rem;font-weight:700;color:var(--ink2)}
.gp-note{background:var(--teal-soft);border:2px solid var(--teal);border-radius:16px;padding:12px 14px;margin:14px 0}
.gp-panel{background:var(--card);border:2px solid var(--line);border-radius:22px;padding:18px;margin:16px 0;box-shadow:var(--shadow)}
.gp-panel h2{font-size:clamp(1.3rem,3vw,1.8rem);margin-bottom:10px}
.gp-panel h3{margin:14px 0 6px}
.gp-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.gp-row>label{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:.95rem}
.gp-panel select,.gp-panel input[type=text],.gp-panel input[type=number],.gp-panel textarea{min-height:46px;font:600 1rem var(--body);color:var(--ink);background:var(--bg);border:2px solid var(--line);border-radius:12px;padding:6px 10px;max-width:100%}
.gp-panel textarea{width:100%;min-height:70px;resize:vertical}
.gp-panel select:focus,.gp-panel input:focus,.gp-panel textarea:focus{border-color:var(--brand);outline:3px solid var(--gold);outline-offset:1px}
.gp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 18px;border-radius:999px;border:2px solid var(--line);background:var(--card);color:var(--ink);font:800 1rem var(--body);cursor:pointer;text-decoration:none}
.gp-btn:hover{border-color:var(--brand)}
.gp-btn[disabled]{opacity:.5;cursor:not-allowed}
.gp-main{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);font-size:1.12rem;min-height:56px;padding:10px 26px}
.gp-small{min-height:44px;padding:4px 14px;font-size:.92rem}
.gp-seg{display:flex;flex-wrap:wrap;gap:6px;border:0;padding:0;margin:0}
.gp-seg legend{font-weight:800;margin-bottom:6px;padding:0}
.gp-seg label{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:4px 14px;border:2px solid var(--line);border-radius:999px;background:var(--bg);font-weight:700;cursor:pointer}
.gp-seg input{accent-color:var(--brand);width:18px;height:18px}
.gp-seg label:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.gp-lessons{max-height:280px;overflow:auto;border:2px solid var(--line);border-radius:14px;padding:8px 10px;margin:8px 0;background:var(--bg)}
.gp-lessons label{display:flex;flex-direction:row;gap:10px;align-items:flex-start;padding:5px 2px;font-size:.98rem;cursor:pointer}
.gp-lessons input{width:20px;height:20px;margin-top:3px;accent-color:var(--brand);flex:none}
.gp-lessons .cnt{color:var(--ink2);font-size:.85rem;white-space:nowrap}
.gp-lessons .unit{font-weight:800;color:var(--ink2);font-size:.85rem;margin:8px 0 2px;text-transform:uppercase;letter-spacing:.04em}
.gp-msg{min-height:1.5em;font-weight:700;margin-top:6px}
.gp-msg.bad{color:var(--warn)}
.gp-msg.good{color:var(--good)}
.gp-muted{color:var(--ink2)}
.gp-hide{display:none!important}
.gp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gp-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* ---------- the stage (projector + games) ---------- */
.gp-stage{background:var(--card);border:3px solid var(--brand);border-radius:26px;padding:clamp(12px,2.4vw,28px);margin:16px 0;position:relative;box-shadow:var(--shadow)}
.gp-stage:fullscreen{border-radius:0;border:0;overflow:auto;display:flex;flex-direction:column;justify-content:center;padding:3vw;background:var(--bg)}
.gp-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;font-weight:800}
.gp-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:var(--brand-soft);font-weight:800}
.gp-q{font:800 clamp(1.35rem,3.6vw,2.6rem)/1.2 var(--display);margin:14px 0 18px;text-align:center;overflow-wrap:anywhere}
.gp-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,1.4vw,16px)}
@media (max-width:560px){.gp-tiles{grid-template-columns:1fr}}
.gp-tile{display:flex;align-items:center;gap:12px;min-height:clamp(64px,11vh,120px);padding:10px 16px;border-radius:20px;border:4px solid transparent;color:#fff;font:800 clamp(1.05rem,2.4vw,1.8rem)/1.2 var(--body);text-align:left;cursor:pointer;overflow-wrap:anywhere;position:relative}
.gp-tile .sh{flex:none;width:clamp(38px,5vw,60px);height:clamp(38px,5vw,60px)}
.gp-tile .lt{flex:none;font:800 clamp(1.4rem,3vw,2.2rem) var(--display);min-width:1.2em}
.gp-tile .fg{margin-left:auto;flex:none;font-size:clamp(.8rem,1.4vw,1rem);font-weight:800;background:rgba(255,255,255,.22);border-radius:999px;padding:2px 10px}
.gp-tile.c0{background:#2B2A8C}.gp-tile.c1{background:#0B6E5A}.gp-tile.c2{background:#8F4A00}.gp-tile.c3{background:#9C2257}
.gp-tile:focus-visible{outline:5px solid var(--gold);outline-offset:3px}
.gp-tile[disabled]{cursor:default}
.gp-tile.dim{opacity:.42}
.gp-tile.right{border-color:#F6BE5E;box-shadow:0 0 0 4px #17703D inset}
.gp-tile.right::after{content:"✓";position:absolute;right:14px;top:6px;font-size:1.6rem}
.gp-tile.out{opacity:.3;text-decoration:line-through}
.gp-tile.pick{border-color:#fff;box-shadow:0 0 0 4px var(--gold)}
.gp-fb{min-height:1.6em;font:800 clamp(1.05rem,2.2vw,1.5rem) var(--body);text-align:center;margin:12px 0}
.gp-fb.ok{color:var(--good)}.gp-fb.no{color:var(--warn)}
.gp-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:14px}
.gp-timer{height:14px;border-radius:9px;background:var(--line);overflow:hidden;margin:6px 0}
.gp-timer i{display:block;height:100%;background:linear-gradient(90deg,var(--teal),var(--gold));width:100%}
.gp-teams{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:12px}
.gp-team{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px;border-radius:18px;border:3px solid var(--line);background:var(--bg);font-weight:800;cursor:pointer;color:var(--ink);font-family:var(--body);font-size:1rem}
.gp-team .em{font-size:2rem;line-height:1}
.gp-team .pts{font:800 1.3rem var(--display)}
.gp-team[aria-pressed=true]{border-color:var(--good);background:var(--good-soft)}
.gp-team .st{font-size:.9rem}
.gp-bars{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.gp-bar{display:grid;grid-template-columns:minmax(120px,190px) 1fr auto;gap:10px;align-items:center;font-weight:800}
.gp-bar .tr{height:22px;border-radius:12px;background:var(--line);overflow:hidden}
.gp-bar .tr i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--gold));transition:width .6s}
@media (max-width:480px){.gp-bar{grid-template-columns:1fr auto}.gp-bar .tr{grid-column:1/-1;order:3}}
.gp-podium{display:flex;justify-content:center;align-items:flex-end;gap:clamp(6px,2vw,18px);margin:18px 0 6px;min-height:240px}
.gp-pod{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;width:min(30%,190px);text-align:center;font-weight:800}
.gp-pod .blk{width:100%;border-radius:16px 16px 6px 6px;display:grid;place-items:center;color:#fff;font:800 2rem var(--display)}
.gp-pod .em{font-size:clamp(2rem,5vw,3rem)}
.gp-pod.p1 .blk{height:150px;background:#8F5C08}.gp-pod.p2 .blk{height:110px;background:#2B2A8C}.gp-pod.p3 .blk{height:80px;background:#0B6E5A}
:root:not([data-motion=off]) .gp-pod{animation:gpRise .7s ease-out both}
.gp-pod.p2{animation-delay:.2s}.gp-pod.p1{animation-delay:.45s}
@keyframes gpRise{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
@keyframes gpPop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
:root:not([data-motion=off]) .gp-pop{animation:gpPop .45s ease-out both}
@keyframes gpShake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
:root:not([data-motion=off]) .gp-shake{animation:gpShake .35s}
@media (prefers-reduced-motion:reduce){.gp-pod,.gp-pop,.gp-shake{animation:none!important}.gp-bar .tr i{transition:none}}
.gp-review{display:flex;flex-direction:column;gap:8px;padding-left:1.4em}
.gp-review li{background:var(--bg);border-radius:12px;padding:8px 12px}
.gp-review .ans{color:var(--good);font-weight:800}
.gp-big{font:800 clamp(2.4rem,7vw,4.4rem)/1 var(--display);text-align:center}
.gp-center{text-align:center}
.gp-hearts{font-size:1.5rem;letter-spacing:2px}
.gp-avatars{display:flex;flex-wrap:wrap;gap:8px}
.gp-av{font-size:2rem;width:60px;height:60px;border-radius:16px;border:3px solid var(--line);background:var(--bg);cursor:pointer;display:grid;place-items:center}
.gp-av[aria-pressed=true]{border-color:var(--brand);background:var(--brand-soft)}
.gp-players{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:10px 0}
.gp-player{display:flex;flex-direction:column;align-items:center;padding:6px 10px;border-radius:16px;border:3px solid var(--line);font-weight:800;min-width:72px}
.gp-player .em{font-size:2.2rem;line-height:1.1}
.gp-player.now{border-color:var(--gold);background:var(--gold-soft)}
.gp-match{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gp-match .col{display:flex;flex-direction:column;gap:8px}
.gp-mbtn{min-height:56px;border-radius:16px;border:3px solid var(--line);background:var(--bg);color:var(--ink);font:700 1rem/1.3 var(--body);padding:8px 12px;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.gp-mbtn[aria-pressed=true]{border-color:var(--brand);background:var(--brand-soft)}
.gp-mbtn.done{border-color:var(--good);background:var(--good-soft);cursor:default}
@media (max-width:520px){.gp-mbtn{font-size:.92rem;padding:6px 8px}}
.gp-order{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:8px}
.gp-order li{display:flex;align-items:center;gap:8px;background:var(--bg);border:3px solid var(--line);border-radius:16px;padding:8px 10px;font-weight:700}
.gp-order li .num{font:800 1.3rem var(--display);min-width:1.4em;text-align:center}
.gp-order li .tx{flex:1;overflow-wrap:anywhere}
.gp-order li.ok{border-color:var(--good);background:var(--good-soft)}
.gp-order li.no{border-color:var(--warn)}
.gp-order li button{min-width:44px;min-height:44px;border-radius:12px;border:2px solid var(--line);background:var(--card);color:var(--ink);font-size:1.1rem;cursor:pointer}
.gp-qe{border:2px solid var(--line);border-radius:16px;padding:12px;margin:10px 0;background:var(--bg)}
.gp-qe .opt{display:flex;gap:8px;align-items:center;margin:6px 0}
.gp-qe .opt input[type=text]{flex:1;min-width:0}
.gp-qe .opt input[type=radio]{width:22px;height:22px;accent-color:var(--good);flex:none}
.gp-sets{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}
.gp-sets li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;background:var(--bg);border:2px solid var(--line);border-radius:16px;padding:10px 12px}
.gp-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:12px 0}
.gp-mode{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px;border-radius:18px;border:3px solid var(--line);background:var(--bg);color:var(--ink);font:700 1rem var(--body);text-align:left;cursor:pointer}
.gp-mode b{font:800 1.25rem var(--display)}
.gp-mode .ico{font-size:2rem}
.gp-mode:hover{border-color:var(--brand)}
.gp-mode[disabled]{opacity:.5;cursor:not-allowed}
.gp-star{font-size:3rem;line-height:1}
.gp-kbd{font-size:.88rem;color:var(--ink2)}
.gp-kbd kbd{border:1px solid var(--line);border-radius:6px;padding:0 6px;background:var(--bg)}
.gp-subnav{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.gp-subnav a{display:inline-flex;align-items:center;min-height:44px;padding:4px 14px;border-radius:999px;border:2px solid var(--line);background:var(--card);color:var(--ink);font-weight:800;text-decoration:none}
.gp-subnav a[aria-current=page]{border-color:var(--brand);background:var(--brand-soft)}
/* ---------- answer cards ---------- */
.ac-sheet{background:#fff;color:#16163A;border:2px solid var(--line);border-radius:12px;margin:0 auto 18px;max-width:640px;aspect-ratio:8.5/11;display:flex;flex-direction:column;overflow:hidden}
.ac-panel{flex:1;display:flex;align-items:center;justify-content:center;gap:6%;border-bottom:3px dashed #888;padding:2% 6%;min-height:0}
.ac-panel:last-child{border-bottom:0}
.ac-panel svg{height:78%;width:auto;max-width:34%}
.ac-panel .L{font:800 clamp(3rem,13vw,7.5rem)/1 "Baloo 2",system-ui,sans-serif}
.ac-panel .F{font:800 clamp(.9rem,2.6vw,1.4rem) "Atkinson Hyperlegible",system-ui,sans-serif}
.ac-big{flex-direction:column;justify-content:center;gap:2%;border:0}
.ac-big svg{height:52%;max-width:80%}
.ac-big .L{font-size:clamp(5rem,22vw,14rem)}
@media print{
 @page{size:letter portrait;margin:.35in}
 header.top,footer.foot,.note,.gp-subnav,.gp-noprint,.skip,#gp-live{display:none!important}
 body{background:#fff!important}
 main.wrap{max-width:none;padding:0}
 .ac-sheet{border:0;border-radius:0;margin:0;max-width:none;width:100%;height:10.2in;aspect-ratio:auto;break-after:page;page-break-after:always}
 .ac-sheet:last-child{break-after:auto;page-break-after:auto}
 *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.gp-panel code{overflow-wrap:anywhere;word-break:break-word}

/* ---------- "📂 Open a saved set" sheet (play/setsheet.js) · Nov 14, 2026 ---------- */
.gp-openbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 12px}
html.gp-sheet-lock body{overflow:hidden}
.gp-sheet-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483000;background:rgba(14,14,40,.55);display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));box-sizing:border-box}
.gp-sheet{background:var(--card,#fff);color:var(--ink,#16163A);border-radius:22px;border:2px solid var(--line,#ddd);box-shadow:0 18px 50px rgba(0,0,0,.3);width:min(620px,100%);max-height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:16px 18px 18px;box-sizing:border-box}
.gp-sheet:focus{outline:none}
.gp-sheet-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;margin-bottom:6px}
.gp-sheet-top h2{font-size:clamp(1.25rem,4.4vw,1.6rem);margin:6px 0 0;line-height:1.2}
.gp-sheet-x{flex:none}
.gp-sheet-list{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:10px}
.gp-sheet-list li{display:flex;gap:10px;align-items:center;justify-content:space-between;background:var(--bg,#f7f7fb);border:2px solid var(--line,#ddd);border-radius:16px;padding:10px 12px}
.gp-sheet-info{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.gp-sheet-info b{font-size:1.05rem}
.gp-sheet-info .gp-muted{font-size:.92rem}
.gp-sheet-nofit{font-size:.9rem;font-weight:700;color:var(--warn,#9a3412)}
.gp-sheet-open{flex:none;min-width:96px;background:var(--brand);border-color:var(--brand);color:var(--brand-ink,#fff)}
.gp-sheet-open[disabled]{background:var(--card);color:var(--ink);border-color:var(--line)}
.gp-sheet-empty{background:var(--bg,#f7f7fb);border:2px dashed var(--line,#ddd);border-radius:16px;padding:12px;margin:12px 0;font-weight:700}
.gp-sheet-file{border-top:2px solid var(--line,#ddd);margin-top:12px;padding-top:12px}
.gp-sheet-file .gp-muted{margin-top:6px;font-size:.92rem}
.gp-sheet-filebtn{cursor:pointer}
.gp-sheet-filebtn:focus-visible{outline:3px solid var(--gold,#F2A93B);outline-offset:2px}
.gp-sheet-priv{margin-top:10px;font-size:.88rem}
@media (max-width:560px){
 .gp-sheet-layer{align-items:flex-end;padding-left:0;padding-right:0;padding-bottom:0}
 .gp-sheet{border-radius:22px 22px 0 0;width:100%;max-height:calc(100% - 8px);padding-bottom:max(18px,env(safe-area-inset-bottom,0px));border-bottom:0}
 .gp-sheet-list li{flex-wrap:wrap}
 .gp-sheet-open{width:100%}
}
@media print{.gp-sheet-layer{display:none!important}}
/* builder on phones: right-choice circle has a 44 px tap area; word pair rows wrap */
.gp-qe .opt .gp-right{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex:none;cursor:pointer;border-radius:12px}
.gp-qe .opt .gp-right input{width:24px;height:24px;margin:0;accent-color:var(--good)}
.gp-prow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0;padding:8px;border:2px solid var(--line);border-radius:14px;background:var(--bg)}
.gp-prow input[type=text]{flex:1 1 140px;min-width:0}
.gp-prow input[type=text]+input[type=text]{flex:2 1 200px}
.gp-sets .gp-tools{min-width:0}
.gp-sets li>span:first-child{min-width:0;overflow-wrap:anywhere}

.gp-mode.gp-fit{border-color:var(--brand);background:var(--brand-soft)}
