.game-access-note{border:1px solid #cfd5df;background:#fff;padding:1.25rem 1.5rem;margin:0 0 1.5rem;line-height:1.6;color:#1c2535;text-align:left}
.game-access-note p{margin:0}
.game-access-note small{display:block;color:#5d687a;margin-top:.4rem}
.game-access-note[data-state="error"]{border-color:#b47939}
.game-access-note .btn{margin-top:.9rem}
.game-access-badge{display:inline-block;font-size:.78rem;font-weight:800;line-height:1.5;letter-spacing:0;color:#285212;background:#edf9de;border:1px solid #c9e3aa;padding:.35rem .6rem}
.game-access-note>.game-access-badge{margin-bottom:.6rem}
.game-access-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.25rem}
.game-access-login{font-size:.875rem;font-weight:800;text-decoration:underline;text-underline-offset:3px;margin-top:.9rem}
.feature-game .game-access-badge{margin-bottom:1rem}
.game-grid>a>.game-access-badge{margin-top:1rem;align-self:flex-start;font-size:.78rem;letter-spacing:0;color:#c9fa71;background:#21301f;border-color:#506841}
.game-grid>a.game-access-locked>.game-access-badge{color:#d0d7e4;background:#252d3b;border-color:#465267}
.game-grid>a.game-access-chosen{box-shadow:inset 0 0 0 2px #c9fa71}
a.game-access-pending{opacity:.55;cursor:wait}
.play-page .game-access-note{background:#161e2c;border-color:#3e495c;color:#e4e9f2;margin:1.5rem auto;max-width:42rem}
.play-page .game-access-note small{color:#b5bfce}
.play-page .game-access-note .game-access-badge{color:#c9fa71;background:#21301f;border-color:#506841}
.play-page .game-access-note .game-access-login{color:#d6deeb}
.play-page .game-access-note .game-access-actions{justify-content:center}
.game-access-gate>.btn{margin-top:.5rem}
.game-access-gate .kicker{margin-top:2rem;line-height:1.6;color:#c9fa71}
.game-start #game-start:disabled{opacity:.45;cursor:wait}
@media(max-width:680px){.game-access-note{padding:1rem}.game-access-actions{align-items:stretch;flex-direction:column;gap:.25rem}.game-access-actions .btn{text-align:center}.game-access-login{margin:.5rem 0}.game-grid>a>.game-access-badge{margin-top:1rem}}

/* Keep the seven game modes usable with narrow screens and touch input. */
.play-page .game-shell,.play-page .game-stage,.play-page .game-start,.play-page .game-result,.play-page .game-question{min-width:0;max-width:100%;box-sizing:border-box}
.play-page .game-stage-top{grid-template-columns:auto minmax(0,1fr) auto;gap:.75rem}
.play-page .game-stage-top>span{text-align:center;min-width:0;overflow-wrap:anywhere}
.play-page .game-stage-top>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.play-page .game-start h1,.play-page .game-result h1,.play-page .game-question h1,.play-page .review-row{overflow-wrap:anywhere}
.play-page .game-options button{min-width:0;touch-action:manipulation}
.play-page .game-options button>span{min-width:0;overflow-wrap:anywhere}
.play-page .word-grid-scroll{box-sizing:border-box;min-width:0;width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding:.4rem;-webkit-overflow-scrolling:touch}
.play-page .word-grid{grid-template-columns:repeat(var(--grid-size),44px)}
.play-page .word-grid button{min-height:44px;touch-action:manipulation}
.play-page .word-grid button:focus-visible{outline:3px solid #3e54dc;outline-offset:1px;position:relative;z-index:1}
.play-page .game-question textarea,.play-page .share-fallback{font-size:1rem;min-width:0;box-sizing:border-box}
.play-page .game-feedback-panel,.play-page .pitch-words strong,.play-page .word-list li{min-width:0;overflow-wrap:anywhere}
.play-page .game-start>a{display:inline-flex;align-items:center;min-height:44px}
.play-page .game-level-label{max-width:100%}
.play-page .game-level-label select{min-width:0;max-width:100%;font-size:1rem}
.play-page .btn,.play-page summary{touch-action:manipulation}
@media(max-width:680px){
 .play-page .game-shell{min-height:calc(100svh - 80px);align-items:start;padding-bottom:calc(96px + env(safe-area-inset-bottom))}
 .play-page .game-stage-top{padding:.75rem;gap:.5rem}
 .play-page .game-options{grid-template-columns:minmax(0,1fr)}
 .play-page .game-options button{grid-template-columns:2.3rem minmax(0,1fr);gap:.75rem;min-height:64px;padding:.85rem}
 .play-page .game-question .btn,.play-page .game-start>#game-start{width:100%;justify-content:center;white-space:normal;text-align:center}
 .play-page .mode-select{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch}
 .play-page .mode-select label{min-height:48px;justify-content:center;min-width:0}
 .play-page .pitch-words{gap:.5rem}
 .play-page .pitch-words strong{padding:.6rem .75rem}
 .play-page .game-result-score{flex-wrap:wrap}
 .play-page .result-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .play-page .game-result .btn{max-width:100%;white-space:normal;text-align:center;justify-content:center}
 .play-page .word-list{grid-template-columns:minmax(0,1fr)}
}
