.site-header{flex-shrink:0;background:#fff}.site-header .top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.site-header .nav-pill{font-size:12px;white-space:nowrap}.site-header .account-avatar{width:38px;height:38px;min-height:0;padding:0}.site-header .account-avatar img{width:100%;height:100%;object-fit:cover}.site-header .account-popover{z-index:100}.site-header .brand{flex-shrink:0}.lab-shell h1,.game-hub h1,.game-gate h1{color:var(--ink);font-family:inherit;font-weight:800}.game-account{display:flex;align-items:flex-end;flex-direction:column;gap:5px;font-size:11px;color:var(--muted);max-width:300px;text-align:right}.game-account #game-stats{font-weight:600;color:var(--blue)}#game-save-status:empty{display:none}#retry-score{font-size:11px;padding:4px 10px;min-height:28px}.game-gate{margin:auto;padding:36px 24px;text-align:center;max-width:640px}.game-gate>img{width:80px;height:80px;object-fit:contain;margin-bottom:24px}.game-gate h1{font-size:40px;line-height:1.15;margin:14px 0}.game-gate p{color:var(--muted)}.gate-actions{display:flex;align-items:center;gap:18px;margin:26px 0;justify-content:center;flex-wrap:wrap}.gate-back{display:block;margin-top:25px;font-size:12px}.games-page{height:auto;min-height:100dvh;overflow:auto}.game-hub{width:min(1100px,100%);margin:0 auto;padding:60px 28px}.game-hub h1{font-size:48px;line-height:1.15;margin:14px 0 18px}.game-hub h1 span,.game-card-copy h2 span{color:var(--blue)}.hub-intro{color:var(--muted);margin-bottom:36px}.brain-game-card{display:grid;grid-template-columns:250px 1fr;max-width:860px;background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 30px #15357508}.game-art{display:grid;place-items:center;background:#e8f0ff;min-height:320px}.game-art img{width:132px;height:132px;object-fit:contain;transform:rotate(-8deg)}.game-card-copy{padding:32px}.game-tag{font-size:10px;letter-spacing:.1em;color:var(--muted);font-weight:700}.game-card-copy h2{font-size:32px;margin:12px 0}.game-card-copy p{color:var(--muted);max-width:360px}.game-modes{display:flex;gap:8px;margin:20px 0}.game-modes span{font-size:11px;background:#f3f6fd;border-radius:6px;padding:5px 9px}.game-card-stats{font-size:12px;margin:0 0 18px}.game-card-copy .primary{gap:22px}.lesson-link{display:inline-block;font-size:12px;margin-left:16px}.game-credit{margin-top:22px;font-size:11px}.game-hub details{margin:20px 0;padding:16px;border:1px solid var(--line);background:white;border-radius:10px}.game-hub pre{font-size:12px;line-height:1.7}.game-hub>p{margin-bottom:15px}.game-hub summary{cursor:pointer;font-weight:600}
@media(max-width:1100px){.site-header{padding-inline:22px}.site-header .top-actions{gap:3px}.site-header .nav-pill{font-size:10px;padding:7px 9px}.site-header .brand small{display:none}.site-header .brand b{font-size:18px}}
@media(max-width:760px){.site-header{height:auto;min-height:70px;flex-wrap:wrap;padding:12px 16px;gap:10px}.site-header .top-actions{overflow-x:auto;max-width:100%;flex-wrap:wrap}.site-header .nav-auth-slot{flex-shrink:0}.game-hub{padding:35px 18px}.game-hub h1{font-size:36px}.brain-game-card{grid-template-columns:1fr}.game-art{min-height:180px}.game-art img{width:96px;height:96px}.game-card-copy{padding:25px}.game-account{font-size:9px;max-width:130px}.game-gate h1{font-size:32px}.game-gate{padding-block:45px}.lesson-link{margin-top:12px}.lab-intro{gap:10px}}
@media(max-width:760px){.site-header{flex-basis:auto}.site-header .top-actions{width:100%;margin:0;overflow:visible;gap:2px;justify-content:flex-start}.site-header .nav-pill{width:auto;flex:0 0 auto;padding:6px 7px}.site-header .nav-auth-slot{min-width:0;width:auto;margin-left:auto;flex:0 0 auto}.site-header .nav-auth-slot .account-avatar{width:32px;height:32px;padding:0}.site-header .account-popover{right:0;left:auto}.mode-tabs button{min-width:0}.mode-tabs img{flex-shrink:0}}
.guest-trial-invitation{position:fixed;z-index:30;left:24px;bottom:24px;width:min(380px,calc(100% - 48px));max-height:calc(100dvh - 48px);overflow:auto;padding:26px;background:#fff;border:1px solid #d5e2f7;border-radius:18px;box-shadow:0 12px 55px #14377824;text-align:left;animation:trial-invitation-in .24s ease-out both}
.trial-close{position:absolute;right:8px;top:8px;width:40px;height:40px;padding:0;border:0;background:transparent;color:#65758e;font-size:25px;line-height:1;border-radius:50%}
.trial-close:hover{background:#edf3ff;color:#0759d9}
.trial-invitation-brand{display:flex;align-items:center;gap:13px;margin-bottom:20px;padding-right:28px}
.trial-invitation-brand img{object-fit:contain;width:36px;height:40px}
.trial-invitation-brand span{color:#0759d9;font-size:11px;font-weight:600;background:#edf3ff;padding:6px 10px;border-radius:6px}
.guest-trial-invitation h2{font-size:25px;line-height:1.25;letter-spacing:-.035em;margin:0 0 12px}
.guest-trial-invitation p{color:#63718a;font-size:13px;line-height:1.75;margin:0 0 22px}
.trial-invitation-actions{display:flex;gap:9px;align-items:stretch;flex-wrap:wrap}
.trial-invitation-actions .primary{flex:1;justify-content:center;gap:12px;font-size:12px;min-height:44px;padding:11px 14px;text-decoration:none;white-space:nowrap}
.trial-invitation-actions button{font-size:11px;min-height:44px;padding:10px 12px}
.trial-login{display:inline-block;font-size:11px;color:#65758e;margin-top:17px;text-underline-offset:3px}
.guest-trial-invitation :focus-visible{outline:2px solid #0759d9;outline-offset:3px}
@keyframes trial-invitation-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.guest-trial-invitation{left:12px;bottom:12px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:22px}.guest-trial-invitation h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.guest-trial-invitation{animation:none}}
.detail-actions{flex-wrap:wrap}
.detail-actions #clear-focus{color:var(--blue);border-color:#aac6f8}
.detail-actions #clear-focus:disabled{display:none}
