:root{--ink:#17205b;--blue:#263aa8;--blue2:#5166e6;--sky:#b8eaff;--orange:#ff8260;--yellow:#ffe17a;--paper:#f8f9ff;--line:#d9def6;--muted:#657098;--shadow:0 16px 48px rgba(26,35,111,.14);font-family:"DM Sans",sans-serif;color:var(--ink);background:#e9edff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 8% 24%,#c9efff 0 11%,transparent 26%),radial-gradient(circle at 92% 79%,#fff1bd 0 10%,transparent 27%),#e9edff}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible{outline:3px solid #ff8a63;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3,.display{font-family:"Bricolage Grotesque",sans-serif;letter-spacing:-.045em}#app{min-height:100vh}.site-shell{max-width:1350px;margin:auto;padding:26px 38px 42px}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px}.logo{display:inline-flex;align-items:center;gap:9px;border:0;background:none;color:var(--blue);font:800 33px/1 "Bricolage Grotesque",sans-serif;letter-spacing:-.08em;padding:0}.logo-icon{width:38px;height:38px;background:var(--yellow);border:3px solid var(--blue);border-radius:12px;display:grid;place-items:center;transform:rotate(-7deg);font:800 26px/1 sans-serif}.top-actions{display:flex;align-items:center;gap:10px}.top-link{border:0;background:transparent;color:var(--blue);font-weight:700;padding:10px 12px}.pill{border:1.5px solid #cbd4f5;background:#fff;border-radius:999px;padding:8px 14px;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:var(--blue2)}.landing{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.95fr);gap:56px;align-items:center;min-height:calc(100vh - 130px)}.landing-copy{padding:40px 0}.landing h1{font-size:clamp(74px,8vw,132px);line-height:.87;font-weight:800;color:var(--blue);margin:18px 0 24px}.landing h1 .outline{color:transparent;-webkit-text-stroke:3px var(--blue);text-stroke:3px var(--blue)}.landing h1 .punct{color:var(--orange)}.lead{font-size:22px;line-height:1.45;max-width:500px;color:#3e4b82}.action-row{display:flex;gap:13px;margin-top:31px;flex-wrap:wrap}.btn{border:2px solid var(--blue);border-radius:15px;min-height:58px;padding:13px 22px;background:var(--blue);color:#fff;font-size:15px;font-weight:800;box-shadow:0 5px 0 #16236e;transition:transform .15s,box-shadow .15s,background .15s;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 7px 0 #16236e}.btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #16236e}.btn.secondary{background:#fff;color:var(--blue);box-shadow:0 5px 0 #c5cce9}.btn.secondary:hover:not(:disabled){box-shadow:0 7px 0 #c5cce9}.btn.yellow{background:var(--yellow);color:var(--blue)}.btn.orange{background:var(--orange);color:var(--ink)}.btn.small{min-height:42px;padding:8px 15px;border-radius:12px;font-size:13px;box-shadow:0 3px 0 #16236e}.btn.full{width:100%}.micro{font-size:13px;color:var(--muted);margin-top:18px}.landing-art{height:550px;position:relative;display:grid;place-items:center}.art-back{width:470px;height:470px;border-radius:50%;background:var(--sky);border:3px solid var(--blue);position:absolute;box-shadow:16px 18px 0 #b8c5f9}.art-back:before,.art-back:after{content:"";position:absolute;border:2px dashed var(--blue);border-radius:50%;inset:27px}.art-back:after{inset:57px;border-style:solid;opacity:.2}.card-preview{position:relative;width:370px;height:278px;background:#fff;border:3px solid var(--blue);border-radius:26px;box-shadow:11px 14px 0 var(--blue);transform:rotate(-6deg);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2}.card-preview:before{content:"YOUR WORD";position:absolute;top:25px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.16em}.card-preview strong{font:800 49px/1 "Bricolage Grotesque",sans-serif;letter-spacing:-.06em}.card-preview small{font-size:12px;font-weight:700;color:var(--muted);margin-top:12px}.sticker{position:absolute;z-index:3;border:3px solid var(--blue);font-family:"Bricolage Grotesque",sans-serif;font-weight:800;box-shadow:4px 5px 0 var(--blue);display:grid;place-items:center}.sticker.timer{width:112px;height:112px;right:4%;top:4%;background:var(--yellow);border-radius:50%;transform:rotate(12deg);font-size:41px}.sticker.pass{left:0;bottom:15%;width:125px;height:74px;border-radius:15px;background:var(--orange);transform:rotate(13deg);font-size:22px}.spark{position:absolute;color:var(--blue);font-size:46px;z-index:2}.spark.s1{left:12%;top:13%}.spark.s2{right:8%;bottom:13%;transform:rotate(18deg)}.bottomline{display:flex;justify-content:space-between;gap:24px;align-items:center;border-top:1px solid #cbd4ee;padding-top:17px;color:#6b759d;font-size:12px;font-weight:700;letter-spacing:.03em}.screen{max-width:1060px;margin:32px auto}.screen-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px}.screen h1{font-size:clamp(42px,5vw,66px);line-height:1;color:var(--blue);margin:8px 0}.subline{color:#53608d;font-size:17px}.panel{background:#fff;border:2px solid var(--blue);border-radius:24px;box-shadow:8px 9px 0 #c5cff9;padding:30px}.setup-grid{display:grid;grid-template-columns:1fr .95fr;gap:22px;align-items:start}.setup-aside{background:var(--yellow);border:2px solid var(--blue);border-radius:24px;padding:30px;min-height:400px;position:relative;overflow:hidden;box-shadow:8px 9px 0 #c5cff9}.setup-aside h2{font-size:47px;line-height:1.02;max-width:320px}.setup-aside p{font-size:16px;line-height:1.5;max-width:310px;margin-top:15px}.aside-orbit{width:230px;height:230px;border:3px solid var(--blue);border-radius:50%;position:absolute;right:-25px;bottom:-74px;background:var(--orange);display:grid;place-items:center;font:800 87px "Bricolage Grotesque";transform:rotate(-18deg);box-shadow:-10px -10px 0 #fff7d8}.form-title{font-size:31px;margin-bottom:21px}.label{display:block;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;margin-bottom:8px;color:var(--blue)}.input{height:55px;width:100%;border:2px solid #cbd4ee;border-radius:12px;padding:0 15px;background:#f9faff;color:var(--ink);font-size:17px;font-weight:700;outline:none}.input:focus{border-color:var(--blue)}.field{margin-bottom:22px}.segmented{display:flex;gap:8px;flex-wrap:wrap}.seg{background:#f4f6ff;color:var(--blue);border:2px solid #d1d8f3;border-radius:11px;padding:10px 16px;font-weight:800}.seg.selected{background:var(--blue);color:#fff;border-color:var(--blue)}.form-help{color:var(--muted);font-size:12px;line-height:1.4;margin-top:8px}.divider{height:1px;background:#e2e6f6;margin:22px 0}.room-code{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.code-box{font:800 clamp(35px,6vw,53px)/1 "Bricolage Grotesque";letter-spacing:.14em;color:var(--blue);padding:16px 20px;background:#eff3ff;border:2px dashed var(--blue);border-radius:16px}.lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px}.team-panel{border:2px solid var(--blue);border-radius:22px;padding:23px;min-height:250px}.team-panel.orange{background:#fff0e9}.team-panel.blue{background:#e8f1ff}.team-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.team-title h2{font-size:28px}.team-badge{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.player-list{display:grid;gap:10px}.player{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid rgba(30,47,133,.18);border-radius:12px;padding:10px 12px;font-weight:700}.avatar{width:33px;height:33px;border:2px solid var(--blue);border-radius:10px;display:grid;place-items:center;font-family:"Bricolage Grotesque";font-weight:800;background:var(--yellow);flex:none}.player small{color:var(--muted);font-size:11px;font-weight:800;margin-left:auto;text-transform:uppercase}.empty-player{color:#7b83a7;border:1px dashed #afbadf;padding:12px;border-radius:12px;font-size:14px}.lobby-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:26px;flex-wrap:wrap}.notice{border-radius:14px;background:#eff3ff;padding:12px 16px;color:#45537f;font-size:13px;line-height:1.4}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:21px}.game-main{display:flex;flex-direction:column;gap:18px}.game-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.round-label{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue2)}.timer-bar{height:15px;background:#dfe6ff;border:2px solid var(--blue);border-radius:999px;overflow:hidden}.timer-fill{height:100%;background:var(--yellow);width:100%;transition:width .3s linear}.timer-fill.urgent{background:var(--orange)}.word-card{min-height:360px;background:#fff;border:3px solid var(--blue);border-radius:28px;box-shadow:10px 11px 0 var(--blue);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;position:relative;overflow:hidden}.word-card:before{content:"";width:150px;height:150px;border:3px solid #dde4ff;border-radius:50%;position:absolute;top:-83px;left:-72px}.word-card:after{content:"✳";font-size:70px;color:#dce4ff;position:absolute;bottom:-22px;right:17px}.word-card .card-kicker{font-weight:800;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue2);z-index:1}.word-card .word{font:800 clamp(52px,8vw,92px)/1 "Bricolage Grotesque";letter-spacing:-.06em;color:var(--blue);margin:18px 0;overflow-wrap:anywhere;z-index:1}.word-card .card-instruction{font-size:16px;color:#67739d;z-index:1}.timer-circle{width:90px;height:90px;border:3px solid var(--blue);border-radius:50%;display:grid;place-items:center;background:var(--yellow);color:var(--blue);font:800 36px "Bricolage Grotesque";box-shadow:5px 6px 0 var(--blue)}.timer-circle.urgent{background:var(--orange);animation:pulse .75s infinite alternate}.game-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.game-side{display:grid;align-content:start;gap:16px}.score-card{border:2px solid var(--blue);border-radius:22px;background:#fff;overflow:hidden;box-shadow:6px 7px 0 #c5cff9}.score-row{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.score-row:first-child{border-bottom:2px solid var(--blue);background:#fff0e9}.score-row:last-child{background:#e8f1ff}.score-row span{font-weight:800}.score-row strong{font:800 40px/1 "Bricolage Grotesque"}.how-panel{border:2px solid var(--blue);border-radius:22px;background:var(--yellow);padding:21px}.how-panel h3{font-size:23px;margin-bottom:8px}.how-panel p{font-size:13px;line-height:1.5}.status-card{background:#fff;border:2px solid #cbd5f7;border-radius:18px;padding:17px}.status-card h3{font-size:17px;margin-bottom:9px}.status-card p{font-size:13px;color:var(--muted);line-height:1.4}.center-panel{text-align:center;max-width:650px;margin:55px auto;padding:44px}.center-panel h1{font-size:clamp(46px,6vw,75px)}.center-panel .big-score{font:800 62px "Bricolage Grotesque";margin:25px 0;color:var(--blue)}.center-panel p{font-size:16px;line-height:1.5;color:#58658f;margin:14px 0 25px}.winner-ribbon{display:inline-block;background:var(--yellow);border:2px solid var(--blue);padding:9px 15px;border-radius:999px;font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;transform:rotate(-3deg)}.confetti{font-size:55px;margin:15px 0}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);background:var(--blue);color:#fff;padding:11px 17px;border-radius:12px;font-size:14px;font-weight:700;opacity:0;transition:.2s;pointer-events:none;z-index:20;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:2px solid var(--blue);border-radius:22px;max-width:500px;width:calc(100% - 30px);padding:28px;box-shadow:12px 13px 0 var(--blue);color:var(--ink)}dialog::backdrop{background:rgba(22,32,88,.55)}dialog h2{font-size:31px;margin-bottom:13px}dialog p,dialog li{line-height:1.55;font-size:15px}dialog ul{padding-left:20px;margin:12px 0 22px}.demo-tag{display:inline-flex;align-items:center;gap:7px;color:#617098;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.demo-dot{width:7px;height:7px;border-radius:50%;background:var(--orange)}@keyframes pulse{to{transform:scale(1.08)}}@media(max-width:900px){.landing{grid-template-columns:1fr;gap:0}.landing-copy{padding:50px 0 0}.landing-art{height:420px}.art-back{width:350px;height:350px}.card-preview{width:310px;height:230px}.sticker.timer{right:15%}.sticker.pass{left:14%}.setup-grid,.game-layout{grid-template-columns:1fr}.setup-aside{min-height:180px}.aside-orbit{width:150px;height:150px;font-size:56px;bottom:-60px}.game-side{grid-template-columns:1fr 1fr}.score-card{grid-column:1/-1;display:flex}.score-row{flex:1}.score-row:first-child{border-bottom:0;border-right:2px solid var(--blue)}}@media(max-width:600px){.site-shell{padding:16px 17px 32px}.topbar{height:46px}.logo{font-size:28px}.logo-icon{width:31px;height:31px;font-size:21px}.top-actions .top-link{display:none}.landing{min-height:auto}.landing-copy{padding:54px 0 10px}.landing h1{font-size:clamp(67px,16vw,91px)}.lead{font-size:18px}.action-row{display:grid;grid-template-columns:1fr 1fr}.action-row .btn{padding:10px 8px;font-size:13px}.landing-art{height:340px}.art-back{width:285px;height:285px}.card-preview{width:260px;height:196px}.card-preview strong{font-size:38px}.sticker.timer{right:4%;top:4%;width:80px;height:80px;font-size:29px}.sticker.pass{left:3%;bottom:8%;width:98px;height:57px;font-size:18px}.bottomline{font-size:10px}.screen{margin:28px auto}.screen-head{align-items:center}.screen h1{font-size:46px}.screen-head .btn{min-width:74px}.panel{padding:20px;box-shadow:5px 6px 0 #c5cff9}.setup-aside{padding:23px}.setup-aside h2{font-size:34px}.lobby-grid{grid-template-columns:1fr}.team-panel{min-height:150px}.lobby-bottom .btn{width:100%}.game-side{grid-template-columns:1fr}.score-card{grid-column:auto}.word-card{min-height:300px}.game-controls{grid-template-columns:1fr}.timer-circle{width:70px;height:70px;font-size:27px}.center-panel{margin:28px auto;padding:29px 22px}.center-panel .big-score{font-size:50px}}
@media(max-width:760px){.lobby-grid{grid-template-columns:1fr}.team-panel{min-height:170px}.team-title h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-heading h2{font-size:30px}.lobby-main{margin-bottom:23px}.team-panel{min-height:265px}.team-title{align-items:flex-start}.team-title .eyebrow{font-size:10px}.team-title h2{margin-top:3px}.team-rename{display:flex;gap:7px;margin:-4px 0 17px}.team-rename input{width:100%;min-width:0;border:1.5px solid #bdc9e7;border-radius:9px;background:#fff;padding:7px 10px;color:var(--ink);font-size:12px;font-weight:700}.team-rename button{border:1.5px solid var(--blue);border-radius:9px;background:var(--blue);color:#fff;padding:6px 10px;font-size:11px;font-weight:800}.player-rich{padding:8px 9px;gap:8px}.player-rich svg{flex:none}.player-info{display:flex;flex-direction:column;gap:1px;min-width:0}.player-info strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-info small{margin:0;text-transform:none;font-size:10px}.player-actions{display:flex;gap:4px;margin-left:auto}.mini-action{width:29px;height:29px;border:1.5px solid #c6ceea;border-radius:9px;background:#f7f9ff;color:var(--blue);font-size:19px;font-weight:800;line-height:1}.mini-action:hover{background:var(--yellow);border-color:var(--blue)}.mini-action.danger{color:#ba4c47}.mini-action.danger:hover{background:#ffdfd9}.settings-panel{padding:27px 30px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:20px}.setting-field{display:grid;gap:8px;font-size:12px;font-weight:800;letter-spacing:.04em;color:var(--blue)}.setting-field select{height:44px;width:100%;padding:0 11px;border:1.5px solid #cbd4ee;border-radius:11px;background:#f9faff;color:var(--ink);font-size:14px;font-weight:700}.settings-wide{grid-column:1/-1}.toggle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:19px}.toggle{display:flex;align-items:flex-start;gap:9px;border:1.5px solid #d8def3;border-radius:12px;padding:12px;background:#f9faff;cursor:pointer}.toggle input{accent-color:var(--blue);margin-top:3px;flex:none}.toggle span{display:grid;gap:3px}.toggle strong{font-size:12px}.toggle small{font-size:10px;line-height:1.35;color:var(--muted)}.setting-summary{display:flex;flex-wrap:wrap;gap:8px}.setting-summary span{padding:9px 12px;border-radius:10px;background:#f0f3ff;border:1px solid #dbe1f7;font-size:12px;font-weight:700;color:#455482}.screen-head .subline:has(svg){display:flex;align-items:center;gap:9px}.screen-head .subline svg{flex:none}.word-card.role-teammate{background:#f4f9ff}.word-card.role-rival{background:#fff9eb}.word-card.role-teammate .word,.word-card.role-rival .word{font-size:clamp(49px,7vw,80px)}.timer-hidden .timer-fill{background:#b9c9f5}.avatar-row{display:flex;flex-wrap:wrap;gap:4px}.avatar-row span{display:inline-flex;transition:transform .15s}.avatar-row span:hover{transform:translateY(-3px)}.score-caption{font-size:12px;font-weight:800;color:#647196}.score-caption span{margin:0 9px}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.list-card{min-height:250px;background:var(--yellow);border:2px solid var(--blue);border-radius:21px;box-shadow:5px 6px 0 #c5cff9;padding:23px;display:flex;flex-direction:column}.list-card.soft-blue{background:#cfeaff}.list-card.soft-orange{background:#ffe1d3}.list-type{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--blue2)}.list-card h2{font-size:33px;line-height:1.08;margin:22px 0 11px}.list-card p{font-size:14px;line-height:1.5;color:#45527f}.list-meta{display:flex;justify-content:space-between;gap:10px;border-top:1px solid rgba(23,32,91,.22);margin-top:auto;padding-top:13px;color:#4e5e8a;font-size:11px;font-weight:800}.library-callout{display:flex;justify-content:space-between;align-items:center;gap:20px;border:2px solid var(--blue);border-radius:21px;background:#fff;padding:25px;box-shadow:5px 6px 0 #c5cff9}.library-callout h2{font-size:31px;margin:5px 0}.library-callout p{font-size:14px;color:var(--muted)}.list-textarea{height:250px;padding:13px 15px;resize:vertical;line-height:1.6;font-size:15px}.admin-note{margin-bottom:25px}.admin-heading{margin:12px 0 17px}.moderation-list{display:grid;gap:17px}.moderation-card{padding:25px}.moderation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.moderation-head h2{font-size:31px;margin:5px 0}.moderation-head p{font-size:14px;color:var(--muted)}.word-chips{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0;padding:18px;background:#f5f7ff;border-radius:14px}.word-chips span{border:1px solid #cfd7f2;border-radius:999px;background:#fff;padding:6px 10px;font-size:12px;font-weight:700}.moderation-actions{display:flex;gap:10px}.admin-login{max-width:560px}.admin-login h2{font-size:34px;margin-bottom:10px}.admin-login p{line-height:1.5;color:var(--muted);margin-bottom:23px}.admin-login input{margin-bottom:17px}.empty-library{text-align:center;padding:45px}.empty-library span{display:block;font-size:55px;color:var(--blue)}.empty-library h2{font-size:34px;margin:8px 0}.empty-library p{color:var(--muted)}.bottomline button{border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
@media(max-width:900px){.toggle-grid{grid-template-columns:1fr}.library-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.lobby-grid{grid-template-columns:1fr}.team-panel{min-height:180px}.settings-panel{padding:22px}.library-callout{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.top-actions{gap:5px}.top-actions .top-link{display:inline-block;font-size:11px;padding:6px 3px}.top-actions .top-link[data-action="rules"]{display:none}.top-actions .pill{padding:8px 10px;min-width:38px}.top-actions .pill .sound-label{display:none}.screen-head .subline svg{width:27px;height:27px}.screen-head .subline{font-size:14px}.settings-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto}.library-grid{grid-template-columns:1fr}.list-card{min-height:210px}.moderation-head{flex-direction:column}.moderation-actions{flex-direction:column}.moderation-actions .btn{width:100%}.room-code{gap:9px}.code-box{font-size:32px;padding:12px}.team-panel{padding:18px}}
.bottomline{flex-wrap:wrap}
.footer-links{display:inline-flex;gap:14px;align-items:center}
.footer-links a,.home-guide-link{color:var(--blue);font-weight:800;text-decoration:underline;text-underline-offset:4px}
.credit-line{flex-basis:100%;text-align:center;color:var(--muted);font-size:12px;font-weight:700}
.credit-line a{color:#d9562f;font-weight:800;text-decoration:none}
.credit-line a:hover{text-decoration:underline;text-underline-offset:3px}
.credit-line a:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.home-guide-link{display:inline-block;margin:14px 0 0 18px;font-size:14px}
.seo-fallback{max-width:850px;margin:8vh auto;padding:40px 28px;color:var(--blue)}
.seo-fallback h1{font-size:clamp(42px,6vw,72px);line-height:1}
.seo-fallback p{font-size:18px;line-height:1.55;margin-top:19px;color:#45527f}
.seo-fallback a{color:var(--blue);font-weight:800}
.wordlist-picker{margin:26px 0 20px;padding:24px;border:2px solid var(--blue);border-radius:22px;background:#eaf4ff;box-shadow:6px 7px 0 #c5cff9}
.wordlist-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.wordlist-picker h2{font-size:34px;line-height:1.05;margin:4px 0 7px;color:var(--blue)}
.wordlist-picker-head p{font-size:13px;line-height:1.45;color:#53608d}
.wordlist-current{flex:none;max-width:280px;padding:9px 13px;border:2px solid var(--blue);border-radius:999px;background:var(--yellow);color:var(--blue);font-size:12px;font-weight:800;text-align:center}
.wordlist-rail{display:flex;gap:12px;overflow-x:auto;padding:3px 3px 10px;scroll-snap-type:x proximity}
.wordlist-option{width:220px;min-width:220px;min-height:166px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:17px;border:2px solid #aebce9;border-radius:17px;background:#fff;color:var(--ink);scroll-snap-align:start;transition:transform .15s,border-color .15s,box-shadow .15s}
.wordlist-option:hover{transform:translateY(-2px);border-color:var(--blue)}
.wordlist-option.selected{background:var(--yellow);border-color:var(--blue);box-shadow:4px 5px 0 var(--blue)}
.wordlist-option-type{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:var(--blue2)}
.wordlist-option strong{font:800 24px/1.08 "Bricolage Grotesque",sans-serif;letter-spacing:-.04em}
.wordlist-option-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;line-height:1.35;color:#53608d}
.wordlist-option small{margin-top:auto;font-size:11px;font-weight:800;color:var(--blue)}
.playing-list{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border:2px solid var(--blue);border-radius:14px;background:var(--yellow);color:var(--blue)}
.playing-list span{font-size:10px;font-weight:800;letter-spacing:.13em}
.playing-list strong{font:800 20px/1 "Bricolage Grotesque",sans-serif;text-align:right}
.topbar{position:sticky;top:8px;z-index:10;padding:0 12px;margin:0 -12px;border-radius:16px;background:rgba(233,237,255,.93);backdrop-filter:blur(12px)}
.home-rules:hover,.how-rules:hover{transform:translateY(-2px)}
.home-rules{display:inline-flex;margin-top:14px;border:0;background:none;color:var(--blue);font-size:14px;font-weight:800;text-decoration:underline;text-underline-offset:4px;padding:4px 0}
.screen-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.how-rules{margin-top:16px;border:2px solid var(--blue);border-radius:11px;background:#fff;color:var(--blue);padding:9px 12px;font-size:12px;font-weight:800;width:100%;box-shadow:0 3px 0 var(--blue)}
#rules-dialog{max-width:650px;max-height:min(88vh,780px);overflow-y:auto;padding:30px 32px}
.rules-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.rules-head h2{font-size:clamp(30px,5vw,44px);line-height:1;margin:6px 0 0}
.rules-close{width:34px;height:34px;flex:none;border:2px solid var(--blue);border-radius:10px;background:#fff;color:var(--blue);font-size:25px;line-height:1;font-weight:800}
#rules-dialog .rules-intro{margin:15px 0 22px;color:#53608d;font-size:15px}
.rules-steps{display:grid;gap:10px;margin-bottom:17px}
.rules-steps section{display:flex;gap:14px;align-items:flex-start;padding:14px;border:1.5px solid #d6def6;border-radius:14px;background:#f7f9ff}
.rules-steps section:nth-child(2){background:#fff8e7}
.rules-steps section:nth-child(3){background:#fff1e9}
.rules-number{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:9px;background:var(--blue);color:#fff;font-size:12px;font-weight:800}
.rules-steps h3{font-size:20px;line-height:1.1;margin-bottom:4px}
.rules-steps p{font-size:13px;line-height:1.45;color:#4e5b86}
#rules-dialog .rules-note{font-size:12px;color:#67739d;margin-bottom:18px}
@media(max-width:600px){.topbar{height:auto;flex-wrap:wrap;gap:10px}.top-actions{width:100%;justify-content:space-between;gap:2px}.top-actions .top-link[data-action="rules"]{display:inline-flex}.top-actions .top-link{padding:7px 4px}.screen-head-actions{flex-direction:column;align-items:stretch}.screen-head-actions .btn{min-width:76px}.how-panel{padding:18px}#rules-dialog{width:calc(100% - 20px);max-height:92vh;padding:22px 18px}.rules-steps section{padding:11px;gap:10px}.home-guide-link{margin-left:0;display:block}}
@media(max-width:600px){.wordlist-picker{margin:22px -5px 19px;padding:19px 15px}.wordlist-picker-head{flex-direction:column;gap:10px}.wordlist-picker h2{font-size:30px}.wordlist-current{max-width:100%;font-size:11px}.wordlist-option{width:75vw;min-width:75vw;min-height:155px}.playing-list{align-items:flex-start;flex-direction:column;gap:4px}.playing-list strong{text-align:left}}

/* Keep the desktop room close to a single view without shrinking the choices. */
@media(min-width:980px){
  .lobby-screen{max-width:1260px;display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:18px;align-items:start;margin:18px auto 24px}
  .lobby-screen .screen-head{grid-column:1/-1;margin-bottom:14px}
  .lobby-screen .screen-head h1{font-size:clamp(43px,4vw,56px)}
  .lobby-main{min-width:0;margin-bottom:0;padding:20px}
  .lobby-screen .room-code{gap:10px}
  .lobby-screen .code-box{font-size:clamp(34px,4vw,43px);padding:9px 15px}
  .lobby-screen .wordlist-picker{margin:10px 0;padding:14px}
  .lobby-screen .wordlist-picker-head{margin-bottom:9px}
  .lobby-screen .wordlist-picker h2{font-size:29px}
  .lobby-screen .wordlist-option{width:190px;min-width:190px;min-height:120px;padding:12px}
  .lobby-screen .wordlist-option strong{font-size:21px}
  .lobby-screen .divider{margin:10px 0}
  .lobby-screen .team-panel{min-height:220px;padding:14px}
  .lobby-screen .team-title{margin-bottom:11px}
  .lobby-screen .team-title h2{font-size:25px}
  .lobby-screen .team-rename{margin:0 0 10px}
  .lobby-screen .player-list{gap:7px}
  .lobby-screen .player-rich{padding:6px 8px}
  .lobby-screen .lobby-bottom{margin-top:12px}
  .lobby-screen .settings-panel{min-width:0;padding:22px}
  .lobby-screen .settings-grid,.lobby-screen .toggle-grid{grid-template-columns:1fr;gap:10px;margin-bottom:14px}
  .lobby-screen .section-heading{align-items:flex-start;flex-direction:column;gap:6px;margin-bottom:15px}
  .lobby-screen .section-heading h2{font-size:26px}
  .lobby-screen .toggle{padding:9px}
}

/* Keep the active word and primary action high on smaller screens. */
@media(max-width:600px){
  .game-screen{margin-top:16px}
  .game-screen .screen-head{align-items:center;gap:10px;margin-bottom:13px}
  .game-screen h1{font-size:clamp(31px,9vw,40px);line-height:.98}
  .game-screen .subline{font-size:12px;line-height:1.3}
  .game-screen .timer-circle{width:56px;height:56px;font-size:23px;flex:none}
  .game-screen .game-layout{gap:13px}
  .game-screen .game-main{gap:10px}
  .game-screen .playing-list{padding:9px 12px}
  .game-screen .playing-list span{font-size:10px}
  .game-screen .playing-list strong{font-size:16px}
  .game-screen .round-label{font-size:10px;letter-spacing:.07em}
  .game-screen .timer-bar{height:11px}
  .game-screen .word-card{min-height:230px;padding:18px 13px;border-radius:22px}
  .game-screen .word-card .word{font-size:clamp(45px,12vw,68px);margin:12px 0}
  .game-screen .word-card .card-kicker{font-size:11px}
  .game-screen .word-card .card-instruction{font-size:13px;line-height:1.35}
  .game-screen .game-controls{gap:9px;margin-top:0}
  .game-screen .game-controls .btn{min-height:48px;padding:10px 12px}
}

@media(max-width:360px){
  .site-shell{padding-left:12px;padding-right:12px}
  .screen h1{font-size:39px}
  .game-screen h1{font-size:31px}
  .screen-head-actions{gap:6px}
  .screen-head-actions .btn{min-width:68px;padding:7px 9px;font-size:11px}
  .game-screen .word-card .word{font-size:45px}
}

/* Three matching game controls; Rules remains the quick-reference accent. */
.top-actions{gap:8px}
.top-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 15px;border:2px solid var(--blue);border-radius:12px;background:#fff;color:var(--blue);box-shadow:0 3px 0 var(--blue);font-size:13px;font-weight:800;line-height:1;letter-spacing:0;text-transform:none;white-space:nowrap;transition:transform .15s,box-shadow .15s,background .15s}
.top-action--rules{background:var(--yellow)}
.top-action:hover{transform:translateY(-2px);box-shadow:0 5px 0 var(--blue)}
.top-action:active{transform:translateY(2px);box-shadow:0 1px 0 var(--blue)}
.sound-dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--orange);box-shadow:0 0 0 1.5px var(--blue)}
.top-action--sound[aria-pressed="false"] .sound-dot{background:#cbd4ee}
@media(max-width:600px){.top-actions{gap:6px}.top-action{min-height:38px;padding:7px 11px;font-size:12px}}
@media(max-width:360px){.top-actions{gap:5px}.top-action{padding:7px 8px;font-size:11px}}
