@font-face{font-family:Manrope;src:url('fonts/manrope-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Manrope;src:url('fonts/manrope-semibold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:Manrope;src:url('fonts/manrope-extrabold.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:'Space Mono';src:url('fonts/space-mono.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}

:root{--paper:#f5f3eb;--ink:#252b24;--line:#d2d4c8;--green:#d9ed8b;--lilac:#d7ccf2;--coral:#f4b39a;--blue:#b9d5e4;--accent:var(--green);--sans:Manrope,Arial,sans-serif;--mono:'Space Mono',monospace;--ease:cubic-bezier(.22,1,.36,1);--inout:cubic-bezier(.76,0,.24,1)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;min-height:100svh;display:flex;flex-direction:column}button,input{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #61733e;outline-offset:4px}.micro{font:9px/1.6 var(--mono);letter-spacing:.03em}svg{display:block;width:24px;height:24px}h1,h2,p{margin:0}.header{height:82px;padding:0 clamp(22px,5vw,75px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:22px}.logo-crop{display:block;width:110px;height:60px;position:relative;overflow:hidden;mix-blend-mode:multiply}.logo-crop img{position:absolute;top:-38px;left:-9px;width:132px;height:132px}.brand-label{font:9px/1.5 var(--mono);padding-left:22px;border-left:1px solid var(--line)}.practice{display:flex;gap:9px;align-items:center;color:#748064}.practice i{width:5px;height:5px;background:#819850}main{width:min(100%,1010px);margin:auto;padding:35px 35px 30px}.launcher-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.launcher-heading h1{font-size:35px;font-weight:600;letter-spacing:-.055em}.launcher-heading h1 span{color:#90a64c}.launcher-heading>.micro{color:#849073}.games{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.game-card{background:var(--card);border:0;padding:22px;text-align:left;position:relative;display:flex;flex-direction:column;min-height:290px;transition:transform .4s var(--ease),box-shadow .4s;animation:card-in .6s var(--ease) both}.game-card:nth-child(2){animation-delay:.06s}.game-card:nth-child(3){animation-delay:.12s}.game-card:nth-child(4){animation-delay:.18s}.game-card:hover{transform:translateY(-6px);box-shadow:0 14px 30px #252b2410}.game-card:active{transform:translateY(-2px)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.card-top .micro{font-size:8px;white-space:nowrap}.card-top svg{height:16px;width:16px;transition:transform .4s}.game-card:hover .card-top svg{transform:translate(2px,-2px)}.card-icon{height:112px;display:grid;place-items:center}.card-icon svg{height:61px;width:61px;transition:transform .5s var(--ease)}.game-card:hover .card-icon svg{transform:scale(1.08)}.card-copy{display:flex;flex-direction:column;gap:7px}.card-copy strong{font-size:20px;line-height:1.15;font-weight:600;letter-spacing:-.045em}.card-copy>span{font-size:10px;opacity:.65}.card-record{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #252b2426;padding-top:13px;margin-top:22px;gap:10px}.card-record b{font-weight:400}.card-record small{font-size:8px}.footer{display:flex;align-items:center;justify-content:space-between;padding:20px clamp(22px,5vw,75px);color:#7b866e;gap:20px}.footer .micro{font-size:8px}.footer button{border:0;background:none;font:9px var(--mono);padding:10px 0}.footer button span{margin-left:8px;color:var(--ink)}.announcer{position:absolute;height:1px;width:1px;clip-path:inset(50%);overflow:hidden}
.game-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border:0;padding:0;margin:0;background:var(--paper);color:var(--ink);overflow:auto;--accent:var(--green)}.game-dialog::backdrop{background:#252b2480;backdrop-filter:blur(8px)}.game-dialog[open]{display:flex;flex-direction:column;animation:dialog-open .6s var(--ease) both}.game-dialog.closing{animation:dialog-close .32s var(--inout) both}.play-header{height:86px;flex:none;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 36px;border-bottom:1px solid var(--line)}.play-wordmark{font-size:25px;font-weight:800;letter-spacing:-.07em;display:flex;align-items:center;gap:19px}.play-wordmark span{font:9px var(--mono);letter-spacing:0;color:#7b846e}.play-status{display:flex;align-items:center;gap:8px;font-size:9px}.play-status i{width:5px;height:5px;background:#83984f}.close-button{display:flex;align-items:center;gap:14px;background:none;border:0;padding:8px 0 8px 16px}.close-button .micro{font-size:8px;color:#8d9583}.close-button>span:last-child{height:36px;width:36px;border:1px solid var(--line);font:27px/1 var(--sans);display:grid;place-items:center;transition:background .3s,transform .4s}.close-button:hover>span:last-child{background:var(--accent);transform:rotate(90deg)}.play-layout{display:grid;grid-template-columns:29% 1fr;flex:1;min-height:0}.play-sidebar{background:var(--accent);padding:44px 35px 30px;display:flex;flex-direction:column;justify-content:space-between;gap:40px;position:relative;overflow:hidden;transition:background .5s}.play-test-number{font-size:9px;color:#596a3d;margin-bottom:40px}.play-sidebar h2{font-size:clamp(36px,4vw,70px);line-height:1.04;letter-spacing:-.065em;font-weight:600}.play-description{font-size:12px;line-height:1.85;max-width:240px;margin-top:22px;color:#485039}.play-sidebar-bottom{display:flex;flex-direction:column;gap:28px;position:relative}.sidebar-best{display:flex;flex-direction:column;gap:10px;position:relative;z-index:1}.sidebar-best .micro{font-size:8px;color:#62724b}.sidebar-best strong{font-size:27px;font-weight:400;letter-spacing:-.04em}.sidebar-best small{font:9px var(--mono);margin-left:5px}.play-sidebar-bottom>.micro{font-size:8px;line-height:1.8;color:#66784b;z-index:1}.sidebar-motif{position:absolute;right:-50px;bottom:-55px;font:800 210px/.9 var(--sans);letter-spacing:-.1em;opacity:.07;pointer-events:none}.play-arena{display:flex;flex-direction:column;min-width:0;padding:25px 36px 0;position:relative}.arena-top,.arena-bottom{display:flex;justify-content:space-between;color:#7d856f;font-size:8px;gap:18px}.arena-top{padding-bottom:20px;border-bottom:1px solid var(--line)}.arena-bottom{padding:19px 0;border-top:1px solid var(--line);margin-top:auto}.arena-content{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:35px 15px;min-height:520px;text-align:center;position:relative}.arena-content>*{animation:stage-enter .5s var(--ease) both}.intro-mark{height:92px;width:92px;display:grid;place-items:center;border:1px solid var(--line);margin:0 auto 32px;position:relative;font:400 47px var(--mono);letter-spacing:-.1em;background:var(--accent)}.intro-mark:after{content:'+';position:absolute;bottom:-7px;right:-5px;font:16px var(--mono);color:#828e6e}.arena-content h3{font-size:clamp(30px,3.5vw,51px);font-weight:600;letter-spacing:-.055em;line-height:1.12;max-width:550px}.arena-intro-text{max-width:350px;font-size:12px;line-height:1.9;color:#7b826f;margin:18px 0 29px}.game-action{background:var(--ink);color:var(--paper);min-height:52px;border:1px solid var(--ink);padding:14px 32px;font-size:12px;font-weight:600;transition:background .3s,transform .3s;display:inline-flex;gap:30px;align-items:center;justify-content:center}.game-action:hover{background:#46543a}.game-action:active{transform:scale(.98)}.intro-footnote{margin-top:19px;font:8px var(--mono);color:#889178}.rules-line{font:9px/1.8 var(--mono);color:#7b866b;max-width:380px}.game-stats{display:flex;justify-content:center;gap:48px;margin-bottom:28px}.game-stat{display:flex;flex-direction:column;gap:5px;min-width:80px}.game-stat strong{font-weight:400;font-size:28px;letter-spacing:-.06em;line-height:1.1}.game-stat span{font:8px var(--mono);color:#7f8972}.round-prompt{font-size:16px;font-weight:600;letter-spacing:-.02em;margin-bottom:22px;min-height:25px;line-height:1.5}.play-grid{display:grid;gap:8px;width:min(100%,310px)}.play-grid.pattern{grid-template-columns:repeat(4,1fr)}.play-grid.sequence{grid-template-columns:repeat(3,1fr);width:min(100%,280px)}.play-tile{aspect-ratio:1;border:1px solid #c7ceba;background:#e7eade;transition:background .16s,transform .16s,border-color .16s;position:relative;min-height:44px}.play-tile:after{content:'';height:3px;width:3px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#b0ba9e}.play-tile:hover:not(:disabled):not(.selected){background:#dce2ce}.play-tile.flash,.play-tile.selected{background:var(--ink);border-color:var(--ink);transform:scale(.96)}.play-tile.flash:after,.play-tile.selected:after{background:var(--accent)}.play-tile.wrong{background:#bf593e;border-color:#bf593e;animation:tile-shake .35s}.grid-help{font:8px/1.8 var(--mono);margin-top:20px;color:#8a947c}.round-track{height:2px;width:100%;max-width:310px;background:#d8ddce;margin-top:23px;overflow:hidden}.round-track i{height:100%;width:100%;display:block;background:var(--ink);transform-origin:left}.number-display{font-size:clamp(32px,5.8vw,85px);font-weight:600;letter-spacing:.04em;margin:30px 0 18px;overflow-wrap:anywhere;max-width:100%;line-height:1.3;font-variant-numeric:tabular-nums}.number-form{width:min(100%,360px);display:flex;flex-direction:column;gap:18px}.memory-input{background:transparent;border:0;border-bottom:2px solid var(--ink);padding:22px 5px 16px;font:400 27px var(--mono);letter-spacing:.04em;text-align:center;width:100%;color:var(--ink);border-radius:0}.memory-input::placeholder{color:#abb29f;font-size:16px;letter-spacing:-.03em}.number-form .game-action{margin-top:5px}.number-form .rules-line{margin-top:7px}.word-display{font-size:clamp(40px,6.7vw,100px);font-weight:600;letter-spacing:-.065em;line-height:1.3;margin:34px 0 39px;max-width:100%;overflow-wrap:anywhere}.word-answers{display:flex;gap:12px;width:min(100%,350px)}.word-answers button{flex:1;padding:18px 22px;border:1px solid var(--ink);background:none;font-size:13px;font-weight:600;transition:background .25s,transform .25s}.word-answers button:first-child{background:var(--ink);color:var(--paper)}.word-answers button:hover{transform:translateY(-3px);background:var(--accent);color:var(--ink)}.word-answers button:disabled{opacity:.45;transform:none}.lives{display:flex;gap:5px;align-items:center;justify-content:center;height:30px}.lives i{height:10px;width:10px;background:var(--ink);display:inline-block}.lives i.lost{background:#dce1d3}.word-feedback{height:15px;font:9px var(--mono);margin-top:18px;color:#7c866e}.result-label{font:9px var(--mono);letter-spacing:.08em;margin:0 0 15px;color:#7c876d}.result-score{font-size:clamp(90px,12vw,170px);font-weight:400;line-height:1;letter-spacing:-.09em;margin:20px 0 12px}.result-unit{font:9px var(--mono);color:#7b866c;margin-bottom:30px}.result-actions{display:flex;gap:12px;margin-top:20px}.game-action.secondary{background:none;color:var(--ink);border-color:#c3cdb2}.game-action.secondary:hover{background:#e6ebdb}.result-detail{font-size:11px;color:#758168;line-height:1.9;max-width:350px;margin:0 auto}.result-badge{background:var(--accent);font:9px var(--mono);padding:8px 13px;display:inline-flex;gap:9px;align-items:center;margin-bottom:20px}.result-burst{position:absolute;width:100%;height:100%;inset:0;pointer-events:none;overflow:hidden}.result-burst i{position:absolute;width:6px;height:12px;background:var(--accent);left:50%;top:42%;animation:confetti .9s var(--ease) both;transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}.stage-message{font-size:16px;font-weight:600;margin:15px 0 20px}.hint-rule{font:8px/1.8 var(--mono);color:#7b866c;margin-top:25px}

.play-header{height:76px;padding:0 30px;gap:18px}.play-header h2{font-size:19px;font-weight:600;letter-spacing:-.04em;margin-right:auto}.play-header .sidebar-best{flex-direction:row;align-items:center;gap:8px}.sidebar-best strong{font-size:16px}.sidebar-best small{font:8px var(--mono)}.back-button{padding:8px;border:0;background:none;display:grid;place-items:center}.back-button svg{height:24px;width:24px}.close-button{padding:8px}.close-button svg{width:24px;height:24px}.play-layout{display:flex;flex:1}.play-arena{padding:22px 28px 0;width:min(100%,900px);margin:0 auto}.arena-content{min-height:0;padding:30px 0;flex:1}.arena-top{font-size:8px}.arena-content h3{font-size:30px}.arena-intro-text{max-width:320px;margin:0 0 26px;font-size:14px;line-height:1.7;color:#66735b}.intro-mark{border:0;background:none;width:100px;height:100px;margin-bottom:20px}.intro-mark:after{display:none}.intro-mark svg{height:78px;width:78px}.game-dialog{background:var(--paper)}.game-dialog[open]{animation:stage-enter .35s var(--ease)}.play-tile{min-height:0}.play-grid.pattern{width:min(70vw,390px);gap:8px}.play-grid.sequence{width:min(70vw,350px);gap:10px}.play-tile.flash,.play-tile.selected{background:var(--accent);border-color:#252b2440}.play-tile.flash:after,.play-tile.selected:after{background:transparent}.play-tile.wrong{background:#bd614b}.play-tile:after{display:none}.play-tile{background:#dfe3d4}.game-stats{gap:60px;margin-bottom:25px}.game-stat strong{font-size:26px}.game-stat span{font-size:9px}.round-prompt{font-size:17px;margin-bottom:20px}.grid-help{font:10px var(--mono);text-transform:none;margin-top:25px}.hint-rule,.rules-line{display:none}.word-display{margin:30px 0;font-size:clamp(40px,7vw,76px)}.word-answers{gap:14px;width:300px;max-width:100%}.word-answers button{padding:15px 22px}.word-answers button:first-child{background:var(--accent);color:var(--ink);border-color:#252b2426}.word-answers button:last-child{background:var(--accent);color:var(--ink);border-color:#252b2426}.word-answers button:hover{background:var(--ink);color:var(--paper)}.number-comparison{display:flex;flex-direction:column;gap:12px;text-align:center;margin-bottom:27px;max-width:100%;overflow-wrap:anywhere}.number-comparison span{font-size:12px;color:#788469}.number-comparison strong{font-size:clamp(30px,5vw,60px);font-weight:400;letter-spacing:.02em;line-height:1.25}.number-comparison .incorrect{color:#b75843;text-decoration:line-through}.number-display{font-size:clamp(45px,7vw,90px)}.game-action{background:var(--accent);color:var(--ink);border-color:#252b2420;min-width:130px}.game-action:hover{background:var(--ink);color:var(--paper)}.number-form{gap:23px}.result-score{margin:12px 0;font-size:115px}.result-unit{margin-bottom:20px}.result-detail{margin-bottom:15px}.result-actions{gap:12px}.game-action.secondary{min-width:100px}.lives{height:27px}.arena-content>*{animation:stage-enter .25s var(--ease) both}.motion-paused *{animation:none!important;transition:none!important}
@keyframes stage-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes card-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes dialog-close{to{opacity:0;transform:translateY(10px)}}
@media(max-width:850px){main{max-width:640px}.games{grid-template-columns:repeat(2,1fr)}.game-card{min-height:225px;padding:20px}.card-icon{height:82px}.card-icon svg{height:50px;width:50px}.card-copy strong{font-size:21px}.card-record{margin-top:17px}.header{height:72px}.launcher-heading{margin-bottom:22px}.launcher-heading h1{font-size:32px}}
@media(max-width:500px){.header{height:67px;padding:0 22px}.brand{gap:12px}.logo-crop{width:91px;height:53px}.logo-crop img{width:113px;height:113px;top:-31px;left:-8px}.brand-label{font-size:7px;padding-left:13px}.practice{font-size:7px}.practice i{width:4px;height:4px}main{padding:24px 22px;margin:auto}.launcher-heading{margin-bottom:19px}.launcher-heading h1{font-size:29px}.launcher-heading .micro{font-size:7px}.games{gap:11px}.game-card{padding:16px;min-height:206px}.card-top .micro{font-size:6px}.card-top svg{height:14px;width:14px}.card-icon{height:77px}.card-icon svg{height:45px;width:45px}.card-copy strong{font-size:17px}.card-copy>span{font-size:9px;line-height:1.5}.card-record{margin-top:15px;padding-top:11px;font-size:7px}.card-record small{font-size:6px}.footer{padding:12px 22px;gap:10px;font-size:6px}.footer button{font-size:7px}.play-header{height:65px;padding:0 16px;gap:10px}.play-header h2{font-size:17px}.play-header .sidebar-best{gap:5px}.sidebar-best .micro{font-size:6px}.sidebar-best strong{font-size:14px}.sidebar-best small{font-size:6px}.close-button svg{height:21px;width:21px}.back-button{padding:6px}.back-button svg{width:22px;height:22px}.play-arena{padding:17px 22px 0}.arena-top{font-size:7px;padding-bottom:16px}.arena-content{padding:25px 0}.arena-intro-text{font-size:13px;max-width:270px}.intro-mark svg{width:68px;height:68px}.intro-mark{height:85px;width:85px}.play-grid.pattern{width:min(83vw,350px);gap:6px}.play-grid.sequence{width:min(80vw,310px);gap:8px}.game-stats{margin-bottom:24px;gap:50px}.game-stat strong{font-size:25px}.game-stat span{font-size:8px}.grid-help{font-size:9px}.game-action{font-size:12px;min-height:50px}.word-display{font-size:clamp(37px,11vw,65px);margin:24px 0 32px}.number-display{font-size:clamp(30px,9vw,60px);max-width:100%;overflow-wrap:anywhere}.number-form{max-width:310px}.memory-input{font-size:26px}.number-comparison strong{font-size:clamp(25px,8vw,50px)}.result-score{font-size:110px}.result-unit{font-size:8px}}
@media(max-width:350px){main{padding:19px 16px}.header{padding:0 16px}.game-card{padding:13px;min-height:194px}.card-copy strong{font-size:15px}.card-copy>span{font-size:8px}.card-icon{height:73px}.card-icon svg{height:42px;width:42px}.card-record{font-size:6px}.card-top .micro{font-size:5px}.footer{padding:9px 16px;font-size:5px}.play-header{gap:5px;padding:0 10px}.play-header h2{font-size:15px}.sidebar-best strong{font-size:12px}.sidebar-best small{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Optional weekly-league panel. The compact four-card launcher remains intact. */
[hidden]{display:none!important}
.league-toggle{margin-left:auto;margin-right:22px;padding:10px 12px;border:1px solid #b8c1a4;background:#eaf0dd;color:#4a5d3d;white-space:nowrap;transition:background .2s}
.league-toggle:hover{background:#d9ed8b}.league-joined .practice{color:#3c703d}.league-joined .practice i{background:#4b9c59}
.league-dialog{width:min(92vw,610px);max-width:610px;max-height:min(90svh,820px);border:1px solid #c7cbbd;padding:0;background:#fbfaf5;color:var(--ink);box-shadow:0 20px 70px #252b2430;overflow:auto}
.league-dialog::backdrop{background:#252b247d;backdrop-filter:blur(7px)}
.league-head{display:flex;align-items:start;justify-content:space-between;padding:26px 30px 22px;border-bottom:1px solid var(--line);gap:20px}
.league-head .micro{color:#788268}.league-head h2{font-size:39px;font-weight:600;letter-spacing:-.06em;line-height:1.2}.league-head h2 span{color:#8ba44f}
.league-close{width:36px;height:36px;display:grid;place-items:center;border:1px solid #cad0bf;background:transparent;font-size:24px;line-height:1}.league-close:hover{background:var(--green)}
.league-body{padding:24px 30px 29px}.league-intro{font-size:13px;line-height:1.8;color:#5b6557;max-width:490px}.league-week{margin:15px 0 25px;color:#728168}
.league-profile{padding:18px 20px;margin-bottom:29px;background:#ebeee2;border:1px solid #d0d7c5}.league-profile>p:first-child{font-size:12px;line-height:1.7;color:#3e4c3d}
.league-profile form{margin-top:17px}.league-profile label{display:block;font-size:11px;font-weight:600;margin-bottom:9px}.league-form-row{display:flex;gap:8px}
.league-form-row input{min-width:0;flex:1;background:#fffdf7;border:1px solid #b8c2b2;padding:11px;font-size:13px}.league-form-row button{background:var(--ink);color:white;border:0;padding:11px 14px;font-size:12px;font-weight:600;white-space:nowrap}.league-form-row button:disabled{opacity:.5}
.league-profile small{display:block;font-size:10px;line-height:1.7;color:#75816f;margin-top:7px}.league-profile>a{display:inline-block;margin-top:14px;padding:11px 14px;background:var(--ink);color:#fff;font-size:12px}
#league-form-error{font-size:11px;color:#ad5643;margin-top:6px}.league-table-head{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.league-table-head h3{font-size:19px;letter-spacing:-.04em}.league-table-head span{color:#748067}.league-ranking{list-style:none;padding:0;margin:0;max-height:260px;overflow:auto}
.league-ranking li{display:flex;gap:16px;align-items:center;padding:15px 3px;border-bottom:1px solid #e2e5da;font-size:12px}.league-rank{font:12px var(--mono);width:34px;color:#7b8c63}.league-name{font-weight:600;flex:1;overflow-wrap:anywhere}.league-name.is-you:after{content:'YOU';margin-left:9px;background:#dcebbf;font:8px var(--mono);padding:4px 6px}.league-score{font:12px var(--mono);white-space:nowrap}.league-ranking .league-empty{color:#7a8274;justify-content:center;padding:36px 8px;text-align:center}
.league-fineprint{font:9px/1.9 var(--mono);color:#7f8878;margin-top:19px}
@media(max-width:500px){.league-toggle{font-size:7px;padding:8px;margin-right:9px}.league-dialog{width:100vw;max-width:none;max-height:94svh;margin:auto 0 0;border:0;border-top:1px solid var(--line)}.league-head{padding:20px 22px 17px}.league-head h2{font-size:33px}.league-body{padding:20px 22px 26px}.league-form-row{flex-wrap:wrap}.league-form-row button{width:100%}}
@media(max-width:350px){.league-toggle{font-size:6px;padding:7px 6px;margin-right:6px}.practice{font-size:6px}.league-head{padding:18px}.league-body{padding:18px}}

/* Passwordless league entry preserves the short, editorial arcade layout. */
.league-profile form[hidden],.league-profile .league-account-actions[hidden]{display:none}
.league-profile input[type=email]{min-width:0}
.league-profile input[name=code]{font:600 20px var(--mono);letter-spacing:.24em;text-align:center}
.league-profile .league-text-button{display:inline-block;margin-top:12px;background:transparent;border:0;padding:4px 0;text-decoration:underline;text-underline-offset:3px;color:#627150;font-size:11px}
.league-account-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;font-size:10px;color:#66725e}
.league-account-actions span{overflow-wrap:anywhere}
.league-account-actions button{flex:none;border:1px solid #bdc8b5;background:transparent;padding:8px 10px;font-size:10px;transition:background .2s}
.league-account-actions button:hover{background:#d9ed8b}
.league-profile button:not(:disabled):active{transform:translateY(1px)}
.league-personal[hidden]{display:none}
.league-personal{margin:-10px 0 25px;padding:16px 18px;background:#fffdf7;border:1px solid #deded3}
.league-personal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.league-personal-heading strong{font-size:13px;letter-spacing:-.02em}.league-personal-heading span{font-size:8px;color:#7b8671}
.league-personal-scores{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.league-personal-scores>div{display:grid;gap:6px;background:#f1f2eb;padding:10px 7px;text-align:center}
.league-personal-scores small{font:8px var(--mono);color:#6f7a6e}.league-personal-scores strong{font:20px var(--mono);font-weight:600}

/* The league is part of the arcade, not a separate practice mode. */
.account-toggle{margin-left:auto;background:transparent;border:1px solid #bbc4b4;padding:11px 17px;color:#3f5138;max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:background .3s,border-color .3s}
.account-toggle:hover{background:#e3efc0;border-color:#99aa76}
.league-feature{margin-top:15px;width:100%;min-height:95px;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:24px;padding:20px 26px;border:1px solid #d1d7c5;background:#e9eee3;text-align:left;transition:border-color .3s,transform .4s var(--ease),box-shadow .4s var(--ease)}
.league-feature:hover{border-color:#9da989;transform:translateY(-3px);box-shadow:0 15px 35px #252b2412}

.league-feature-index{color:#6e8063;white-space:nowrap;min-width:165px;display:inline-flex;gap:10px;align-items:center}
.league-live-dot{width:6px;height:6px;background:#8aab5b;display:inline-block;border-radius:100%;box-shadow:0 0 0 0 #84a45b70;animation:league-pulse 2.7s ease-out infinite}
.league-feature-main{display:flex;flex:1;min-width:0;align-items:center;gap:19px}
.league-feature-main strong{font-size:23px;line-height:1.2;letter-spacing:-.055em;white-space:nowrap;font-weight:600}
.league-feature-main strong span{color:#96a64c}
.league-feature-top{font-size:11px;color:#60705d;line-height:1.6}
.league-feature-cta{margin-left:auto;white-space:nowrap;color:#354b35;display:inline-flex;gap:14px;align-items:center}
.league-feature-cta>span{font:22px var(--sans);transition:transform .3s var(--ease)}
.league-feature:hover .league-feature-cta>span{transform:translate(3px,-3px)}
.game-card{overflow:hidden;isolation:isolate}

.game-card .card-icon svg{animation:icon-drift 5.6s ease-in-out infinite}
.game-card:nth-child(2) .card-icon svg{animation-delay:-1.4s;animation-duration:6.8s}
.game-card:nth-child(3) .card-icon svg{animation-delay:-3s;animation-duration:5.2s}
.game-card:nth-child(4) .card-icon svg{animation-delay:-4s;animation-duration:6s}
@keyframes icon-drift{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(2deg)}}

@keyframes league-pulse{0%{box-shadow:0 0 0 0 #84a45b70}65%,100%{box-shadow:0 0 0 9px #84a45b00}}
@keyframes league-light{0%,18%{transform:translateX(-75%)}45%,100%{transform:translateX(75%)}}

/* Guests may only complete the email-code and nickname flow. */
body.auth-required .league-dialog{width:min(92vw,490px);max-width:490px;margin:auto;border:1px solid #cbd2c0;max-height:min(90svh,720px);box-shadow:0 30px 95px #252b2450}
body.auth-required .league-dialog::backdrop{background:#252b2494;backdrop-filter:blur(11px)}
body.auth-required .league-intro,body.auth-required .league-week,body.auth-required .league-personal,body.auth-required .league-table-head,body.auth-required .league-ranking,body.auth-required .league-fineprint{display:none!important}
body.auth-required .league-head{padding:33px 32px 24px}
body.auth-required .league-head h2{font-size:clamp(28px,4vw,38px)}
body.auth-required .league-body{padding:0 32px 33px}
body.auth-required .league-profile{margin:0;background:transparent;border:0;padding:0}
body.auth-required .league-profile>p:first-child{font-size:13px;line-height:1.8;color:#5b685b}
body.auth-required .league-form-row input{background:#fff;border-radius:0}
body.auth-required .league-profile form{margin-top:24px}
body.auth-required .league-profile small{margin-top:12px}
body.auth-required .league-form-row button{background:#252b24}
body.auth-required .league-form-row button:hover{background:#526346}
body.auth-required .league-account-actions{margin-top:16px}
@media(max-width:850px){.league-feature{flex-wrap:wrap;gap:8px 18px}.league-feature-index{width:100%}.league-feature-main{flex-wrap:wrap;gap:6px 15px}.league-feature-cta{align-self:center}}
@media(max-width:500px){.account-toggle{padding:9px 11px;font-size:7px;max-width:37vw}.league-feature{padding:17px 18px;gap:7px;min-height:101px}.league-feature-index{font-size:7px}.league-feature-main{display:block}.league-feature-main strong{font-size:19px;display:block}.league-feature-top{font-size:9px;display:block;margin-top:6px}.league-feature-cta{position:absolute;top:19px;right:17px;font-size:7px}.league-feature-cta>span{font-size:16px}body.auth-required .league-dialog{width:min(94vw,490px);max-width:490px;max-height:85svh;margin:auto;border:1px solid #cbd2c0}body.auth-required .league-head{padding:26px 23px 18px}body.auth-required .league-body{padding:0 23px 26px}body.auth-required .league-form-row button{min-height:45px}}

/* v16: production UI port; account and gameplay behavior retained. */
:root{--paper:#F7F5EF;--green:#DDEC91;--lilac:#DCD2F1;--coral:#EDBAA6;--blue:#C5DCE8}
.header{height:96px;padding:0 52px;flex-shrink:0;gap:24px}
main#arcade{width:min(1440px,calc(100% - 104px));min-height:calc(100svh - 96px);margin:0 auto;padding:60px 0;display:flex;flex-direction:column;justify-content:center}
.arcade-eyebrow{font:10px/1.5 var(--mono);letter-spacing:.09em;color:#687667;margin-bottom:17px}
.launcher-heading{margin-bottom:30px;animation:v16-enter .9s var(--ease) both}
.launcher-heading h1{font-size:clamp(36px,3.55vw,58px);font-weight:600;letter-spacing:-.068em;line-height:1.05}
.games{gap:17px;perspective:1300px}
.game-card{min-height:0;height:410px;padding:26px 27px;animation:v16-enter .9s var(--ease) both;transition:transform .65s var(--ease),filter .5s,box-shadow .5s;overflow:hidden;isolation:isolate}
.game-card:before,.game-card:after,.card-icon:before,.card-icon:after{content:none;animation:none;background:none}
.game-card:nth-child(1){background:var(--green);animation-delay:.13s}.game-card:nth-child(2){background:var(--lilac);animation-delay:.19s}.game-card:nth-child(3){background:var(--coral);animation-delay:.25s}.game-card:nth-child(4){background:var(--blue);animation-delay:.31s}
.game-card:hover{transform:translateY(-8px);filter:saturate(1.035);box-shadow:none}.game-card:active{transform:translateY(-2px) scale(.993)}
.card-top .micro,.card-record{font-size:11px}.card-top svg{width:24px;height:24px;transition:transform .65s var(--ease)}.game-card:hover .card-top svg{transform:translate(4px,-4px)}
.card-icon{height:173px;flex-shrink:0;overflow:visible}.card-icon .glyph{display:block;width:98px;height:98px;overflow:visible;animation:v16-glyph-float 5.1s ease-in-out infinite;transform-origin:center}
.card-icon svg.glyph{width:98px;height:98px}
.game-card:nth-child(2) .glyph{animation-duration:6.4s;animation-delay:-1.6s}.game-card:nth-child(3) .glyph{animation-duration:5.7s;animation-delay:-2.9s}.game-card:nth-child(4) .glyph{animation-duration:6.7s;animation-delay:-.7s}
.card-icon .glyph-numbers,.card-icon .glyph-words{font-size:72px;font-weight:400;letter-spacing:-.07em;line-height:1.15;display:grid;place-items:center;white-space:nowrap}.card-icon .glyph-words{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.09em}
.card-copy{margin-top:auto;gap:9px}.card-copy strong{font-size:clamp(20px,1.75vw,29px);font-weight:600;letter-spacing:-.06em}.card-copy>span{font-size:14px;opacity:1;color:#637060}.card-record{margin-top:24px;padding-top:17px}.card-record small{font-size:9px}
.account-toggle{font-size:11px;letter-spacing:.08em;padding:12px 18px;transition:background .35s,color .35s,transform .35s var(--ease)}.account-toggle:hover{background:#283D2D;color:white;transform:translateY(-2px)}
.league-feature{margin-top:38px;min-height:128px;display:grid;grid-template-columns:190px minmax(0,1fr) auto;gap:28px;padding:23px 7px;border:0;border-top:1px solid #BDC4B3;border-bottom:1px solid #BDC4B3;background:transparent;box-shadow:none;animation:v16-enter .9s .42s var(--ease) both;transition:padding .65s var(--ease),background .45s}
.league-feature:hover{transform:none;box-shadow:none;background:rgba(225,232,212,.28);padding-inline:20px;border-color:#BDC4B3}
.league-feature:before{content:'';position:absolute;inset:auto;top:0;left:0;width:16%;height:2px;z-index:0;background:#899F63;animation:v16-league-trace 13s linear infinite;pointer-events:none}
.league-feature-index{min-width:0;font-size:11px;color:#677661;gap:10px}
.league-feature-main{display:block}.league-feature-main strong{font-size:clamp(22px,2.5vw,35px);font-weight:600;line-height:1.05;letter-spacing:-.062em}
.league-feature-top{display:none}.league-feature-cta{font-size:11px;gap:19px;margin:0;position:static}.league-feature-cta svg{width:20px;height:20px;transition:transform .6s var(--ease)}.league-feature:hover .league-feature-cta svg{transform:translate(5px,-5px)}
.league-live-dot{width:7px;height:7px;animation:league-pulse 3s ease-out infinite}
.account-toggle:focus-visible,.league-feature:focus-visible,.game-card:focus-visible{outline:2px solid #425C3A;outline-offset:5px}
@keyframes v16-enter{from{opacity:0;translate:0 23px}to{opacity:1;translate:0 0}}
@keyframes v16-glyph-float{0%,100%{transform:translateY(3px) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1deg)}}
@keyframes v16-league-trace{from{transform:translateX(-150%)}to{transform:translateX(700%)}}
@media(max-width:1100px){.header{padding:0 30px}main#arcade{width:calc(100% - 60px)}.games{gap:13px}.game-card{height:380px;padding:22px}.league-feature{grid-template-columns:150px minmax(0,1fr) auto;gap:13px}}
@media(max-width:790px){.header{height:82px}main#arcade{min-height:calc(100svh - 82px);padding:45px 0;justify-content:flex-start}.games{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.game-card{height:315px}.card-icon{height:125px}.card-icon .glyph,.card-icon svg.glyph{height:75px;width:75px}.card-icon .glyph-numbers,.card-icon .glyph-words{font-size:58px}.league-feature{grid-template-columns:1fr auto;min-height:119px;gap:12px}.league-feature-index{grid-column:1/-1;width:auto}.league-feature-main{grid-column:1}.league-feature-cta{grid-column:2;grid-row:2}}
@media(max-width:520px){.header{height:74px;padding:0 17px;gap:12px}main#arcade{width:calc(100% - 34px);min-height:calc(100svh - 74px);padding:36px 0 40px}.launcher-heading{margin-bottom:22px}.arcade-eyebrow{font-size:9px;margin-bottom:14px}.launcher-heading h1{font-size:41px}.account-toggle{font-size:9px;padding:11px 12px;max-width:42vw}.games{gap:10px}.game-card{height:264px;padding:16px 14px}.card-top .micro,.card-record{font-size:9px}.card-top svg{width:19px;height:19px}.card-icon{height:111px}.card-icon .glyph,.card-icon svg.glyph{height:70px;width:70px}.card-icon .glyph-numbers,.card-icon .glyph-words{font-size:52px}.card-copy strong{font-size:18px;letter-spacing:-.055em}.card-copy>span{font-size:11px}.card-record{margin-top:15px;padding-top:12px}.league-feature{margin-top:26px;min-height:129px;grid-template-columns:minmax(0,1fr) auto;padding:20px 7px;gap:15px 10px}.league-feature-index{font-size:8px}.league-feature-main strong{font-size:24px;white-space:normal}.league-feature-cta{font-size:8px;gap:9px;top:auto;right:auto}.league-feature-cta svg{width:18px;height:18px}.league-feature:hover{padding-inline:10px}}
@media(max-width:350px){.game-card{height:251px;padding:14px 12px}.card-copy strong{font-size:16px}.card-top .micro,.card-record{font-size:8px}.league-feature-main strong{font-size:22px}.league-feature-cta{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Inline weekly boards: four compact lists, with account controls in their own dialog. */
html{scroll-behavior:smooth;scroll-padding-top:24px}
#weekly-standings{scroll-margin-top:24px}
.inline-standings{padding:25px 0 8px;animation:v16-enter .7s .45s var(--ease) both}
.standings-meta{display:flex;justify-content:space-between;gap:16px;color:#7c8773;font-size:8px;margin-bottom:24px}
.standings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px}
.standing-board{min-width:0;border-top:2px solid var(--board-accent);padding-top:15px}
.standing-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-height:37px}
.standing-heading h3{margin:0;font-weight:600;letter-spacing:-.035em;font-size:17px;line-height:1.3}
.standing-heading>.micro{font-size:7px;color:#87917c;flex:none}
.standing-list{list-style:none;margin:0;padding:0}
.standing-row{display:flex;align-items:center;gap:12px;min-height:46px;border-top:1px solid #dfe2d6;padding:10px 0}
.standing-rank{font:9px var(--mono);color:#93a084;min-width:15px}
.standing-name{font-size:12px;font-weight:500;line-height:1.5;flex:1;min-width:0;overflow-wrap:anywhere}
.standing-score{font:13px var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.standing-row.is-you .standing-name{color:#546d32;font-weight:800}
.standing-empty{font-size:11px;line-height:1.7;color:#8a947e;padding:20px 0}
.standings-status{font:10px/1.8 var(--mono);color:#7e8973;margin-top:18px}
.standings-status[hidden]{display:none}
.standings-status button{font:inherit;border:0;border-bottom:1px solid #98a684;color:#536b39;background:none;padding:0 0 1px}
.league-dialog{width:min(92vw,490px);max-width:490px;max-height:90svh;margin:auto;border:1px solid #cbd2c0;box-shadow:0 30px 95px #252b2430}
.league-head{padding:30px 30px 22px}.league-head h2{font-size:34px}
.league-body{padding:24px 30px 30px}.league-profile{background:none;border:0;padding:0;margin:0}.league-profile>p:first-child{font-size:13px;color:#5b685b}
.league-account-actions{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);flex-wrap:wrap;gap:14px}
@media(max-width:1100px){.standings-grid{gap:22px}.standing-heading h3{font-size:15px}.standing-name{font-size:11px}.standing-row{gap:8px}.standing-score{font-size:12px}}
@media(max-width:790px){.standings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 24px}.standing-heading h3{font-size:17px}.standing-name{font-size:12px}}
@media(max-width:520px){.inline-standings{padding-top:22px}.standings-meta{font-size:7px;margin-bottom:21px}.standings-grid{gap:24px 18px}.standing-heading{align-items:start;min-height:43px;gap:7px}.standing-heading h3{font-size:15px;max-width:110px}.standing-heading>.micro{font-size:6px;padding-top:4px}.standing-row{gap:7px;min-height:45px}.standing-name{font-size:11px}.standing-rank{font-size:8px;min-width:13px}.standing-score{font-size:12px}.standing-empty{font-size:10px;padding:15px 0}.league-dialog{width:min(94vw,490px);max-width:490px;margin:auto;max-height:85svh;border:1px solid #cbd2c0}.league-head{padding:26px 23px 18px}.league-body{padding:20px 23px 26px}}
@media(max-width:350px){.standings-grid{gap:21px 14px}.standing-heading h3{font-size:13px}.standing-name{font-size:10px}.standing-row{gap:5px}.standing-score{font-size:11px}.standing-heading>.micro{font-size:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Weekly standings is a section heading, not an action. */
.weekly-heading{margin-top:38px;min-height:128px;display:grid;align-items:center;grid-template-columns:190px minmax(0,1fr);gap:28px;padding:23px 7px;border-top:1px solid #BDC4B3;border-bottom:1px solid #BDC4B3;animation:v16-enter .9s .42s var(--ease) both}
.weekly-heading-index{display:inline-flex;align-items:center;gap:10px;color:#677661;font-size:11px;white-space:nowrap}
.weekly-heading h2{font-size:clamp(22px,2.5vw,35px);font-weight:600;line-height:1.05;letter-spacing:-.062em}
.weekly-heading h2 span{color:#96a64c}
@media(max-width:1100px){.weekly-heading{grid-template-columns:150px minmax(0,1fr);gap:13px}}
@media(max-width:790px){.weekly-heading{grid-template-columns:1fr;min-height:119px;gap:12px}}
@media(max-width:520px){.weekly-heading{margin-top:26px;min-height:113px;padding:20px 7px;gap:15px}.weekly-heading-index{font-size:8px}.weekly-heading h2{font-size:24px}}
@media(max-width:350px){.weekly-heading h2{font-size:22px}}
