:root{color-scheme:dark;--gold:#dec18a;--pale:#f0dfbd;--maroon:#421c23;--line:rgba(207,163,100,.19);--muted:#aaa09a;--edge:#2b2525;--surface:#1d1819;--green:#275c50}
*{box-sizing:border-box}html{min-height:100%;background:#110e12}body{margin:0;min-height:100vh;color:#f3e9da;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:radial-gradient(ellipse at 7% 2%,#331c19 0%,transparent 48%),radial-gradient(ellipse at 93% 94%,#260e12,transparent 60%),linear-gradient(160deg,#170e12 0%,#080910 72%);background-attachment:fixed}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}.sr-only{position:absolute!important;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.game-shell{max-width:1500px;margin:auto;padding:14px 18px 55px}.game-header{padding:0 2px 10px}.header-copy{display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap}.header-copy h1{margin:0 0 6px;color:#ebca8c;font:800 clamp(18px,1.35vw,23px)/1.2 Georgia,'Times New Roman',serif;letter-spacing:.08em;text-shadow:0 1px 12px #5b351f}.header-copy p{margin:0;font-size:12px;color:#ada19a;font-weight:600}
.scoreboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:1110px;gap:9px}.team-card{min-width:0;border:1px solid var(--line);border-radius:15px;background:linear-gradient(157deg,rgba(78,63,55,.36),rgba(20,17,19,.82));padding:11px;transition:border-color .2s,box-shadow .2s}.team-card.active{border-color:rgba(226,182,109,.58);box-shadow:inset 0 0 0 2px rgba(222,193,138,.13),0 0 0 1px rgba(191,143,83,.12)}.team-name{font-size:13px;letter-spacing:.06em;font-weight:800;color:#e6dbce;margin:0 0 7px}.score-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.score-box{border:1px solid rgba(214,177,139,.12);background:linear-gradient(#302723,#1a1619);border-radius:10px;min-width:0;padding:7px 9px}.score-box span{display:block;font-size:11px;color:#b9aea7;letter-spacing:.09em;font-weight:800}.score-box strong{display:block;font-size:17px;margin-top:1px;color:#f4ede0;font-weight:800}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 352px;align-items:stretch;gap:11px}.board-panel,.control-panel{border:1px solid rgba(212,176,139,.13);border-radius:15px;background:linear-gradient(163deg,rgba(61,47,43,.50),rgba(19,16,20,.95) 48%,rgba(12,11,15,.97));box-shadow:0 20px 45px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.018)}.board-panel{padding:16px 11px 18px;min-width:0}.category-line{text-align:center;font-size:13px;letter-spacing:.075em;font-weight:800;color:#b6a89e;margin-bottom:11px}.category-line b{color:#e4c18b;margin-left:4px}
.board-frame{border-radius:17px;border:2px solid #55442c;padding:12px;background:linear-gradient(#2b1715,#2c241a);box-shadow:inset 0 0 0 7px #201610,inset 0 0 0 10px #452b22,0 8px 15px rgba(0,0,0,.3)}.puzzle-grid{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:7px;min-height:296px;background:linear-gradient(140deg,rgba(73,17,26,.57),rgba(26,42,38,.27)),radial-gradient(ellipse at 28% 20%,rgba(110,39,35,.3),transparent 62%);border:2px solid #492923;padding:11px 7px;border-radius:9px;box-shadow:inset 0 2px 19px #1d1211}.tile{height:64px;min-width:0;display:flex;align-items:center;justify-content:center;border:1px solid rgba(167,124,92,.15);border-radius:8px;background:radial-gradient(circle at 24% 22%,#412523,#251a19 70%);box-shadow:inset 0 1px 5px rgba(249,206,151,.07),0 2px 5px rgba(0,0,0,.35);font-family:Georgia,'Times New Roman',serif;font-size:clamp(13px,2.5vw,29px);font-weight:800;color:#42291b;transition:background .2s,color .2s}.tile.letter{background:linear-gradient(140deg,#b59c73,#f0ddaf 45%,#c9ac7d 95%);border:1px solid #a78659;box-shadow:inset 0 0 0 3px rgba(252,243,211,.43),inset 0 0 9px #816647,0 1px 3px rgba(0,0,0,.35)}.tile.letter.hidden{color:transparent}.tile.letter.revealed{color:#432822;text-shadow:0 1px rgba(255,255,255,.5)}.tile.blank{opacity:.44}
.solve-form{display:flex;gap:8px;margin:10px auto 10px;max-width:700px}.solve-form input{flex:1;min-width:0;color:#f5e8d8;background:linear-gradient(#282022,#181619);border:1px solid rgba(199,171,138,.18);border-radius:9px;padding:10px 13px;font-size:13px;outline:none}.solve-form input:focus{border-color:var(--gold);box-shadow:0 0 0 2px rgba(221,185,114,.13)}.solve-form input::placeholder{color:#a29794}
.btn{border:1px solid rgba(206,174,132,.16);background:linear-gradient(#30282a,#151417 82%);color:#f4ebe0;min-height:34px;border-radius:9px;padding:7px 12px;font-size:12px;font-weight:750;white-space:nowrap;box-shadow:0 3px 6px rgba(0,0,0,.2),inset 0 1px rgba(245,227,194,.06);transition:filter .2s,transform .1s,border-color .2s}.btn:hover:not(:disabled){border-color:#c69e69;filter:brightness(1.16)}.btn:active:not(:disabled){transform:translateY(1px)}.btn:focus-visible,.wheel-center:focus-visible,.key:focus-visible{outline:2px solid #f9e1a8;outline-offset:2px}.btn.gold{border-color:#765e3e;background:linear-gradient(#625338,#2f261b);color:#f4e3c2}.btn.red{background:linear-gradient(#38171c,#1a1015);border-color:rgba(149,55,60,.38)}
.keyboard{min-height:120px;padding:10px 8px;border:1px solid #372923;border-radius:12px;display:flex;align-content:center;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;background:linear-gradient(#302521,#100f13 80%);box-shadow:inset 0 0 0 2px rgba(28,19,18,.8)}.key{display:flex;align-items:center;justify-content:center;flex:0 0 calc((100% - 15*6px)/16);height:48px;min-width:35px;border-radius:10px;border:1px solid rgba(183,119,83,.37);background:radial-gradient(ellipse at 37% 10%,#61342f,#361d20 72%,#1a1417);color:#f9eada;text-shadow:0 1px 5px rgba(255,240,210,.35);font-size:18px;font-weight:850;box-shadow:inset 0 1px rgba(255,255,255,.07),0 3px 4px rgba(0,0,0,.4)}.key:hover:not(:disabled){border-color:#dfb983;background:#673b35}.key:disabled,.key.used{opacity:.35;color:#a59388}.key.vowel-active{border-color:#d1ac70;box-shadow:0 0 0 2px rgba(237,187,108,.15)}.keyboard .second-row-break{flex-basis:100%;height:0}.tip{font-size:11px;text-align:center;color:#aaa09a;margin:10px 0 0}
.control-panel{padding:12px 11px 12px;min-width:0}.wheel-heading{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin-bottom:6px}.wheel-heading strong{font:800 15px Georgia,serif;letter-spacing:.15em;color:#f1d08c}.wheel-heading span{color:#a99e95;font-size:10px;white-space:nowrap}.wheel-slot{height:334px;display:flex;align-items:center;justify-content:center;position:relative}.wheel-housing{position:relative;width:326px;height:326px;flex:none;z-index:2;filter:drop-shadow(0 9px 9px rgba(0,0,0,.45))}.wheel-housing canvas{display:block;width:100%;height:100%}.wheel-pointer{position:absolute;top:-5px;left:50%;transform:translateX(-50%);z-index:5;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:0;border-bottom:33px solid #ecc87f;filter:drop-shadow(0 2px 2px #1a100c)}.wheel-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:65px;height:65px;background:radial-gradient(circle at 42% 36%,#f9e6bd 0%,#c9a673 74%,#8d6839 100%);border:5px double #a97d46;border-radius:50%;z-index:4;color:#291d15;font-size:12px;font-weight:900;text-shadow:0 1px rgba(255,255,255,.25);box-shadow:0 0 0 3px #7e5932,0 3px 7px #17100d}
.primary-controls,.secondary-controls,.tertiary-controls{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.primary-controls{margin:4px 0 8px}.primary-controls .btn{padding:6px 10px}.status{border:1px solid rgba(203,173,137,.16);border-radius:9px;background:linear-gradient(#242023,#131216);padding:10px;text-align:center;min-height:36px;font-size:13px;font-weight:760;color:#e5d8c5;line-height:1.3}.turn-card{text-align:center;background:linear-gradient(#262226,#131216);border:1px solid rgba(198,163,123,.18);border-radius:9px;margin:8px 0;padding:9px;min-height:89px}.turn-card span{font-size:12px;color:#a99d97;display:block;font-weight:700}.turn-card strong{display:block;font-size:16px;color:#e9c57e;margin:3px 0 7px}.turn-actions{display:flex;justify-content:center;gap:6px}.btn.mini{padding:3px 8px;min-height:27px;font-size:12px}.secondary-controls{margin-top:8px}.secondary-controls .btn{font-size:11px;padding:7px 10px}.tertiary-controls{margin-top:9px}.tertiary-controls .btn{font-size:11px}
.spotlight-backdrop{position:fixed;inset:0;background:rgba(3,2,4,.67);z-index:40;opacity:0;pointer-events:none;transition:opacity .35s}.spotlight-backdrop.visible{opacity:1;pointer-events:auto}.wheel-housing.staged{position:fixed;z-index:45;transition:left .65s ease,top .65s ease,width .65s ease,height .65s ease;filter:drop-shadow(0 24px 24px #000)}.wheel-housing.staged .wheel-center{pointer-events:none}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);z-index:70;max-width:calc(100vw - 24px);padding:12px 18px;background:linear-gradient(#554022,#2c241c);color:#f8e9ca;border:1px solid #aa8450;border-radius:10px;box-shadow:0 8px 30px #000a;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;text-align:center;font-size:13px;font-weight:700}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1180px){.game-layout{grid-template-columns:minmax(0,1fr) 330px}.wheel-housing{width:304px;height:304px}.wheel-slot{height:314px}.tile{height:clamp(35px,5.4vw,62px)}.puzzle-grid{min-height:0;gap:5px;padding:8px 5px}.keyboard{gap:5px}.key{flex-basis:calc((100% - 15*5px)/16);min-width:29px;height:43px}}
@media(max-width:870px){.game-shell{padding:12px}.header-copy{align-items:flex-start}.scoreboard{max-width:100%}.game-layout{grid-template-columns:1fr}.control-panel{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;align-items:center}.wheel-heading,.wheel-slot{grid-column:1;grid-row:auto}.wheel-slot{grid-row:2/8}.primary-controls,.status,.turn-card,.secondary-controls,.tertiary-controls{grid-column:2}.control-panel .primary-controls{margin:0}.puzzle-grid{gap:5px}.tile{height:clamp(39px,6vw,65px)}.wheel-heading{align-self:end}.wheel-housing{width:290px;height:290px}.wheel-slot{height:310px}}
@media(max-width:620px){.game-shell{padding:10px 7px 28px}.header-copy h1{font-size:17px}.header-copy p{font-size:10px}.scoreboard{gap:4px}.team-card{padding:7px 5px;border-radius:9px}.team-name{font-size:10px}.score-pair{gap:4px}.score-box{padding:5px}.score-box span{font-size:8px}.score-box strong{font-size:13px}.board-panel{padding:10px 5px 13px}.board-frame{padding:7px;border-radius:12px;box-shadow:inset 0 0 0 4px #201610,inset 0 0 0 6px #452b22}.puzzle-grid{padding:5px 3px;gap:3px}.tile{height:clamp(25px,8vw,44px);border-radius:5px;font-size:clamp(12px,5vw,22px)}.keyboard{gap:3px;padding:6px 3px;min-height:90px}.key{flex-basis:calc((100% - 15*3px)/16);min-width:0;height:34px;border-radius:6px;font-size:12px}.keyboard .second-row-break{height:0}.tip{font-size:10px}.control-panel{display:flex;flex-direction:column}.wheel-heading{width:100%}.wheel-slot{height:305px}.wheel-housing{width:288px;height:288px}.primary-controls,.secondary-controls{width:100%}.turn-card{width:100%}.status{width:100%}.solve-form input{font-size:12px}.btn{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
