.portal-games{max-width:1100px;margin:auto;padding:clamp(12px,3vw,28px)}.games-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:22px 0}.game-card{display:grid;gap:12px;place-items:center;min-height:145px;border:1px solid #b8e7e3;border-radius:22px;background:linear-gradient(145deg,#eefdfa,#e7eaff);color:#173b4b;font:inherit;padding:20px;cursor:pointer}.game-card span{font-size:38px}.game-card:hover{background:#d9f8ef;transform:translateY(-2px)}.game-profile-form{display:flex;gap:12px;flex-wrap:wrap;padding:14px 0}.game-profile-form label{display:grid;gap:6px}.game-player iframe{display:block;width:100%;height:75dvh;border:0;border-radius:18px;margin-top:12px;background:#fff}.games-grid[hidden],.game-player[hidden]{display:none}#games-dialog{width:min(1100px,96vw);max-height:95dvh;border:0;border-radius:24px;padding:14px}#signup-fields{border:1px solid #cce7e4;border-radius:16px;padding:12px}#signup-fields label{display:grid;gap:5px;margin:10px 0}#signup-fields[hidden]{display:none}#auth-dialog,#account-dialog{max-height:90dvh;overflow:auto}#profile-class-host form{display:grid;gap:12px}#profile-class-host label{display:grid;gap:5px}.welcome-character-target{border:0}
.auth-tabs{display:flex;gap:10px;margin:14px 0}.auth-tabs button{flex:1}.auth-tabs [aria-pressed=true]{background:#087f83;color:white}

/* The public classroom wheel uses the same warm palette as the game. */
#games-dialog .spin-speak-card{background:linear-gradient(145deg,#fff5cf,#ffe4d8);border-color:#edc484;text-align:center;text-decoration:none;gap:8px}
#games-dialog .spin-speak-card:hover{background:linear-gradient(145deg,#ffedb2,#ffd9c7)}
#games-dialog .spin-speak-card:focus-visible{outline:3px solid #ba6c26;outline-offset:4px}
#games-dialog .spin-speak-card small{font-size:.875rem;line-height:1.4;color:#66513b;max-width:190px}
#games-dialog .game-wheel-icon{position:relative;display:grid;place-items:center;box-sizing:border-box;width:66px;height:66px;border:4px solid #edb64f;border-radius:50%;background:repeating-conic-gradient(#9de1ce 0deg 45deg,#ffe39b 45deg 90deg,#ffba9e 90deg 135deg,#ddcef2 135deg 180deg);box-shadow:0 3px 0 #d79e42}
#games-dialog .game-wheel-icon:before{content:"";position:absolute;top:-8px;border:7px solid transparent;border-top:14px solid #bd613c}
#games-dialog .game-wheel-icon i{font:900 24px/1 system-ui,sans-serif;font-style:normal;display:grid;place-items:center;width:34px;height:34px;background:#fffaf0;border:2px solid #fff;border-radius:50%;color:#805e30}

/* 2026-11-24: consistent, filming-friendly public classroom game gallery.
   Existing links, guest access and language switching are intentionally unchanged. */
#games-dialog .games-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:17px;align-items:stretch}
#games-dialog .adventure-card{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;gap:9px;min-height:274px;padding:22px 16px 18px;text-align:center;text-decoration:none;color:#30234b;border:2px solid var(--adventure-border,#b9dfeb);border-radius:25px;background:var(--adventure-bg,linear-gradient(145deg,#e9f5ff,#e9e7ff));box-shadow:0 7px 0 rgba(42,24,90,.11),0 15px 28px rgba(35,31,88,.07);transition:transform .18s,box-shadow .18s}
#games-dialog .adventure-card:hover{transform:translateY(-4px);box-shadow:0 10px 0 rgba(42,24,90,.10),0 18px 28px rgba(35,31,88,.11);background:var(--adventure-bg)}
#games-dialog .adventure-card:focus-visible{outline:3px solid #5d36a7;outline-offset:4px}
#games-dialog .adventure-card .game-visual{display:grid;place-items:center;width:82px;height:82px;flex:0 0 82px;font-size:47px;line-height:1;background:rgba(255,255,255,.69);border:2px solid rgba(255,255,255,.95);border-radius:25px;box-shadow:0 5px 0 rgba(54,35,99,.09)}
#games-dialog .adventure-card .game-wheel-icon{flex:0 0 66px}
#games-dialog .adventure-card .game-type{font-size:11px;line-height:1.25;font-weight:850;letter-spacing:.02em;color:var(--adventure-ink,#5a3783);padding:5px 11px;border-radius:99px;background:rgba(255,255,255,.75)}
#games-dialog .adventure-card strong{font-size:19px;line-height:1.2;color:#241847}
#games-dialog .adventure-card small{display:block;max-width:220px;color:#594a6b;font-size:13px;line-height:1.45;min-height:56px}
#games-dialog .adventure-card .game-play{display:inline-flex;align-items:center;justify-content:center;margin-top:auto;border-radius:999px;padding:9px 21px;background:var(--adventure-cta,#7143a7);color:#fff;font-size:13px;font-weight:850;box-shadow:0 4px 0 rgba(36,18,76,.16)}
#games-dialog .adventure-spin{--adventure-bg:linear-gradient(145deg,#fff5cf,#ffe4d8);--adventure-border:#edc484;--adventure-ink:#805e30;--adventure-cta:#b66a2e}
#games-dialog .adventure-places{--adventure-bg:linear-gradient(145deg,#dff7ea,#d5ecff);--adventure-border:#8dd5b3;--adventure-ink:#1b776e;--adventure-cta:#1f8a7f}
#games-dialog .adventure-memory{--adventure-bg:linear-gradient(145deg,#eee2ff,#fce1fa);--adventure-border:#c9a2ee;--adventure-ink:#71419d;--adventure-cta:#7e54b9}
#games-dialog .adventure-picture{--adventure-bg:linear-gradient(145deg,#fff0d2,#ffe1e8);--adventure-border:#f0ba82;--adventure-ink:#a15b35;--adventure-cta:#ca7458}
#games-dialog .adventure-days{--adventure-bg:linear-gradient(145deg,#dff5ff,#d8ebfd);--adventure-border:#9acfea;--adventure-ink:#27739e;--adventure-cta:#307db0}
#games-dialog .adventure-sprint{--adventure-bg:linear-gradient(145deg,#ffefd8,#fff9c9);--adventure-border:#e9c67e;--adventure-ink:#a46e1d;--adventure-cta:#bc7b25}
#games-dialog .adventure-castle{--adventure-bg:linear-gradient(145deg,#e8e3ff,#dce7ff);--adventure-border:#b5a8ec;--adventure-ink:#6250a6;--adventure-cta:#6550a8}
#games-dialog .adventure-soccer{--adventure-bg:linear-gradient(145deg,#d9f6d9,#d4f3f1);--adventure-border:#8dcfa0;--adventure-ink:#267849;--adventure-cta:#2b8d61}
@media(max-width:540px){#games-dialog .games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#games-dialog .adventure-card{min-height:260px;padding:14px 9px 13px;gap:7px}#games-dialog .adventure-card .game-visual{width:61px;height:61px;flex-basis:61px;font-size:35px;border-radius:18px}#games-dialog .adventure-card .game-wheel-icon{transform:scale(.85);margin:-5px 0}#games-dialog .adventure-card strong{font-size:15px}#games-dialog .adventure-card small{min-height:65px;font-size:11px}#games-dialog .adventure-card .game-type{font-size:10px;padding:4px 6px}#games-dialog .adventure-card .game-play{font-size:11px;padding:8px 13px}}
@media(max-width:350px){#games-dialog .games-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#games-dialog .adventure-card{transition:none}}
