@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&display=swap');
:root{--bg:#071612;--ink:#f0f7e9;--muted:#9cad9f;--line:#32473c;--green:#c5ff58;--lime:#c5ff58}body{background:#071612;color:var(--ink);background-image:linear-gradient(90deg,#071612ee,#071612b0,#071612ed),url('assets/stadium.jpg');background-size:cover;background-position:center;background-attachment:fixed}header{max-width:1360px;background:#07161290;border-bottom-color:#41543d}.brand{color:#f0f7e9;font-size:34px}.brand>span:not(.brand-icon){color:#c5ff58}.wordmark-icon{height:42px;width:42px;margin-right:12px}.brand small{color:#c3d1b9}main{max-width:920px}.intro{padding:52px 0 35px}.intro h1{font-family:'Barlow Condensed',sans-serif;font-size:clamp(66px,10vw,108px);line-height:.86;letter-spacing:-2px;text-transform:uppercase;transform:rotate(-2deg)}h1 span{color:#c5ff58}.intro p{font-size:16px;color:#c1cbbd}.eyebrow{color:#b8c9a7;font-size:12px}.live{background:#c5ff58}.edition-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.segmented{background:#172e23;border:1px solid #38503b}.segmented button,.levels button{font-size:14px;color:#aaba9f;padding:12px 18px}.segmented button.active,.levels button.active{background:#c5ff58;color:#102416;box-shadow:none}.levels{background:#14281e;border-radius:9px}.game{padding:30px;background:#0f241deF;border:1px solid #47603e;border-radius:22px;box-shadow:0 20px 100px #0008}.game-top h2{font-family:'Barlow Condensed',sans-serif;font-size:32px;text-transform:uppercase;color:#fff}.score strong{font-family:'Barlow Condensed';font-size:43px;color:#c5ff58}.score small{font-size:10px;color:#b3c4a5}.progress{gap:10px}.progress span{height:7px;background:#2b3f31}.progress .current{background:#c5ff58;box-shadow:0 0 14px #c5ff5855}.progress .won{background:#5fe2ba}.arena{background-color:#112e25;background-image:radial-gradient(#3e6354 .8px,transparent .8px),radial-gradient(ellipse at center,#38634588,transparent 65%);border-color:#365444;background-size:22px 22px,100% 100%;box-shadow:inset 0 0 60px #07191060}.arena-label{font-size:12px;color:#b1c6a4}.arena-label span:first-child{background:#294635;color:#d4f3ba}.arena-label span:last-child{font-size:18px;color:#ddffbd}.crest-wrap{height:380px}canvas{height:370px;width:370px;filter:drop-shadow(0 12px 18px #0005)}.stage{font-size:13px;color:#b5c8a7;max-width:590px;margin:auto;line-height:1.7;padding:12px 18px 20px}.primary,.start{background:#c5ff58;color:#172812;border:0;font-size:15px;font-weight:800}.start span,.primary span{color:#35521b}.start{box-shadow:0 0 50px #c5ff5820}.under-arena{font-size:12px;color:#b6c8a6}.lives i{background:#c5ff58;width:10px;height:10px}.lives i.used{background:#425342}.hint-controls button{background:#29422f;color:#ddf0cb;font-size:13px;padding:12px}.hint-controls span{font-size:11px;color:#aaba9f}.hint{background:#213f2d;border-left:3px solid #c5ff58;font-size:14px;line-height:1.7}.hint p{margin:6px}label{font-size:18px}input{background:#0b1b15;border-color:#4b6545;color:#fff;font-size:16px;padding:18px}input::placeholder{color:#82957d}.game-bottom{border-color:#36503b}.text-btn{color:#b8d6a3;font-size:13px}.game-bottom>span{color:#afc29e;font-size:12px}#feedback{font-size:16px}.history span{background:#412e27;color:#efc6a5}.below p{color:#b0c39e;font-size:13px}.below span{color:#c5ff58}.below>div+div,footer{border-color:#38503b}.funfact{padding:24px 28px;background:#163025c9;border:1px solid #3d5637;border-radius:14px;margin-top:24px}.funfact span{font-size:10px;letter-spacing:2px;color:#c5ff58}.funfact p{font-size:15px;line-height:1.7}select{background:#142c21;color:#e7f3dd;border:1px solid #44613d;border-radius:8px;padding:12px;font-size:13px}#sectionNote{font-size:12px;color:#a7b99b}dialog{background:#11291f;color:#e9f5e0;border-color:#557249}dialog .stat-grid div{background:#25402b}dialog .stat-grid small{color:#adc29a}.notice{color:#aaba9f}#roundCelebration{padding:22px;background:linear-gradient(110deg,#263b25,#17392f);border:1px solid #648344;border-radius:12px;margin:20px 0}#roundCelebration>strong{font-family:'Barlow Condensed';font-size:48px;color:#d6ff94}#roundCelebration small{font:14px 'DM Sans';color:#9bb78b}.powerbar{height:16px;border-radius:20px;overflow:hidden;background:#354536;margin:14px 0;box-shadow:inset 0 2px 6px #0006}.powerbar i{display:block;height:100%;background:linear-gradient(90deg,#729979,#b6d99e);border-radius:20px;animation:fill 1s ease-out}.powerbar.electric i{background:linear-gradient(90deg,#3ce6a0,#b9ff47,#ffde5a,#ff8e6c);box-shadow:0 0 24px #b9ff47}.rank-title{font-family:'Barlow Condensed';font-size:38px;color:#c5ff58;text-transform:uppercase}.source-links{display:flex;gap:15px;margin-top:15px}.source-links a,.learn{color:#c5ff58;font-size:11px}@keyframes fill{from{width:0}}@media(max-width:600px){.intro{padding-top:35px}.intro h1{font-size:70px}.intro p{font-size:13px}.edition-controls{align-items:stretch;flex-direction:column}.segmented button,.levels button{font-size:12px;padding:11px 12px}.game{padding:20px 15px}.crest-wrap{height:310px}canvas{width:300px;height:300px}.score strong{font-size:36px}.game-top h2{font-size:26px}.hint-controls{flex-direction:column;align-items:stretch}.hint-controls span{text-align:center}.input-row{flex-direction:column}.input-row .primary{padding:15px}.arena-label{font-size:10px}.below{padding-top:24px}.below p{font-size:11px}header{padding:17px}.result-row{gap:8px}.result-row small{font-size:9px}.below>div+div{padding-left:10px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

body::before,body::after{content:'';position:fixed;top:32%;width:230px;height:300px;background:url('assets/kit.svg') center/contain no-repeat;opacity:.35;z-index:-1;pointer-events:none;transform:rotate(-16deg)}body::before{left:2%}body::after{right:2%;transform:rotate(16deg);filter:hue-rotate(90deg)}@media(max-width:1200px){body::before,body::after{display:none}}.creator-credit{color:#a9bb98;font-size:12px;letter-spacing:.2px}footer{gap:15px;flex-wrap:wrap}@media(max-width:600px){.creator-credit{font-size:11px}}
.community-nav{display:flex;align-items:center;gap:15px;justify-content:space-between;margin:15px 0;flex-wrap:wrap}.community-nav label{font-size:13px;display:flex;align-items:center;gap:10px;margin:0}.community-nav input{padding:8px;max-width:155px;color-scheme:dark}.board-row{display:flex;gap:15px;align-items:center;border-bottom:1px solid #38503b;padding:15px 0}.board-row span{flex:1}.board-row strong{min-width:30px}.idea-row{border-top:1px solid #38503b;padding:15px 0}.idea-row strong{font-size:12px;color:#c5ff58}.idea-row p{white-space:pre-wrap;overflow-wrap:anywhere}dialog textarea{display:block;width:100%;background:#0b1b15;color:#fff;border:1px solid #476640;padding:13px;border-radius:8px;margin:10px 0}#ideaForm label{font-size:13px;margin-top:15px}#ideaForm input{padding:12px}#ideaForm select{width:100%}

.tutorial-demo{background:#193a2b;border:1px solid #426844;padding:16px;border-radius:15px;text-align:center}.tutorial-demo svg{display:block;width:180px;height:180px;margin:auto}.tutorial-demo span{display:block;font-size:12px;color:#b7cba5}.tutorial-demo strong{display:block;font-size:40px;color:#c5ff58}.tutorial-dots{display:flex;justify-content:center;gap:8px;margin:20px}.tutorial-dots i{width:7px;height:7px;border-radius:50%;background:#466142}.tutorial-dots .on{background:#c5ff58}.tutorial-actions{display:flex;gap:10px;align-items:center;justify-content:space-between}#profileForm .primary{margin-top:10px}#progressChart svg{width:100%;background:#1d3d2a;border-radius:12px}.signin{display:block;text-decoration:none;text-align:center;line-height:1.6}
body::before,body::after{display:block;background-image:url('assets/real-kit-1.png');width:clamp(100px,19vw,270px);height:380px;opacity:.28;filter:drop-shadow(0 20px 15px #0009);transform:rotate(-12deg)}body::after{background-image:url('assets/real-kit-2.png');filter:drop-shadow(0 20px 15px #0009);transform:rotate(12deg)}.edition-controls{display:block}.edition-controls>.segmented{width:fit-content;margin-bottom:18px}.rule-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rule-cards button{position:relative;text-align:left;border:1px solid #37533d;border-radius:12px;padding:18px 16px;background:linear-gradient(130deg,#172f25,#102218);color:#cbdcc0;overflow:hidden}.rule-cards button b{position:absolute;right:12px;top:5px;font-family:'Barlow Condensed';font-size:48px;opacity:.13}.rule-cards strong{display:block;font-size:21px;font-family:'Manrope';letter-spacing:-.8px}.rule-cards small{display:block;font-size:11px;margin-top:7px;color:#9cb38c}.rule-cards button.active{border-color:#c5ff58;background:linear-gradient(135deg,#c5ff58,#8dca36);color:#14270c;box-shadow:0 5px 25px #c5ff5818}.rule-cards button.active small{color:#314e18}.crest-wrap{height:auto;min-height:320px;aspect-ratio:1.25;display:grid;place-items:center;overflow:hidden}.crest-wrap canvas{display:block;width:min(100%,430px);height:auto;aspect-ratio:1;max-width:100%;filter:drop-shadow(0 6px 10px #0004)}.crest-wrap .start{justify-self:center;align-self:center}.arena{isolation:isolate;overflow:hidden}@media(max-width:600px){.rule-cards{gap:6px}.rule-cards button{padding:15px 10px}.rule-cards strong{font-size:16px}.rule-cards small{font-size:9px;line-height:1.6}.rule-cards button b{font-size:32px;right:7px}.crest-wrap{min-height:290px;aspect-ratio:1.15}body::before,body::after{opacity:.18;height:200px;top:22%}}.crest-wrap{height:clamp(270px,43vh,390px);min-height:0;aspect-ratio:auto}.crest-wrap canvas{height:100%;width:auto;max-width:100%;aspect-ratio:1;object-fit:contain}

/* A definite canvas box prevents percentage/grid sizing from cropping a revealed crest. */
:root{--crest-size:320px}main{max-width:1180px}.intro{padding:34px 0 26px}.intro h1{font-size:clamp(64px,7vw,94px)}#playArea{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:24px;align-items:start}.answer-panel{min-width:0}.answer-panel .under-arena{margin:0 0 18px}.answer-panel .hint-controls{margin:0 0 14px}.answer-panel .game-bottom{margin-top:16px}.arena{min-width:0;overflow:visible!important}.crest-wrap{display:flex!important;align-items:center!important;justify-content:center!important;height:var(--crest-size)!important;min-height:0!important;aspect-ratio:auto!important;overflow:visible!important;padding:0;grid-template:initial!important}.crest-wrap canvas{display:block!important;width:var(--crest-size)!important;height:var(--crest-size)!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;flex:0 0 auto!important;object-fit:contain;aspect-ratio:1}.arena-label{gap:12px;align-items:center;flex-wrap:wrap}.stage{min-height:56px;padding:9px 16px 13px;line-height:1.5}.game{scroll-margin-top:15px}.funfact{position:relative}.funfact .learn{margin-right:14px}body::before{background-image:var(--kit-left,url('assets/real-kit-1.png'))!important}body::after{background-image:var(--kit-right,url('assets/real-kit-2.png'))!important}.duel-options{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.room-code{font-family:'Barlow Condensed';font-size:58px;letter-spacing:8px;color:#c5ff58}.open-room{display:block;padding:12px 0}#duelBar{background:#123c30;border:1px solid #70a14e;border-radius:14px;padding:18px;margin:18px 0}.duel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.duel-heading>strong{color:#c5ff58;letter-spacing:2px}.in-duel .edition-controls,.in-duel .toolbar,.in-duel .community-nav{opacity:.65}#duelPlayers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}#duelPlayers .board-row{font-size:12px}#duelPlayers .board-row strong{min-width:25px}button:disabled{cursor:default}.creator-credit{white-space:nowrap}
@media(min-width:1300px){:root{--crest-size:350px}}
@media(max-width:800px){:root{--crest-size:clamp(210px,33svh,285px)}#playArea{display:flex;flex-direction:column;gap:16px}.arena,.answer-panel{width:100%}.arena-label{padding:10px 13px}.stage{font-size:11px;min-height:36px;padding:8px 12px 10px}.game{padding:18px 14px}.game-top h2{font-size:25px}.progress{margin:15px 0}.answer-panel .under-arena{margin-bottom:12px}.answer-panel .hint-controls{flex-direction:row;align-items:center;gap:8px}.hint-controls button{font-size:11px;padding:10px}.hint-controls span{font-size:9px}.hint{font-size:12px;line-height:1.5;padding:8px 10px}.input-row{flex-direction:row}.input-row input{font-size:14px;padding:14px 10px}.input-row .primary{font-size:12px;padding:13px 12px}.intro{padding:24px 0 18px}.intro h1{font-size:66px}header{padding:14px 15px}.brand{font-size:28px}.wordmark-icon{width:34px;height:34px}.brand small{display:none}.icon{width:30px;height:30px}nav{gap:5px}nav .text-btn{font-size:11px}#duelPlayers{grid-template-columns:1fr}.community-nav{gap:10px}.community-nav .primary{font-size:12px;padding:11px}}
@media(max-width:360px){.input-row{flex-direction:column}.brand{font-size:24px}nav .text-btn{font-size:10px}}

.hint-controls{flex-wrap:wrap;gap:10px}.help-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hint-controls .pass-btn{border:1px solid #81ad4a;border-radius:8px;background:#c5ff5812;color:#dcffac;padding:11px 15px;font-weight:800}.pass-btn:hover:not(:disabled){background:#c5ff5828}.pass-note{font-size:11px;line-height:1.5;color:#a8bba0;margin:0 0 16px}.hint-controls:has(.pass-btn[hidden])+.hint+.pass-note{display:none}@media(max-width:800px){.hint-controls .pass-btn{padding:10px 12px;font-size:12px}.hint-controls>span{width:100%}.pass-note{font-size:10px;margin-bottom:12px}}
/* Account forms share balanced spacing and full-width primary actions. */
#loginForm{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:24px}
#loginForm label{margin:0;line-height:1.4}
#loginForm input{width:100%;min-width:0;box-sizing:border-box;margin:0}
#loginForm label:not(:first-child){margin-top:8px}
#loginSubmit{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin-top:10px;padding:14px 20px;line-height:1.4;border-radius:10px}
#loginStatus:empty{display:none}
#loginSwitch{display:block;width:100%;margin-top:18px;padding:8px 0;text-align:center;line-height:1.5}
/* Language selection and Arabic reading direction. */
.language-picker{position:relative;min-width:0}.language-picker select{font:600 12px 'DM Sans',sans-serif;min-height:38px;max-width:158px;padding:8px 10px;border-radius:10px;background:#142b22;color:#eef8e7;border:1px solid #4b6545;cursor:pointer}.language-status{position:absolute;inset-inline-end:0;top:100%;font-size:11px;background:#142b22;z-index:10}.language-status:empty{display:none}header nav{align-items:center;flex-wrap:wrap}html[lang=ar] body{font-family:Tahoma,Arial,sans-serif}html[lang=ar] .intro h1,html[lang=ar] .game-top h2,html[lang=ar] .rank-title,html[lang=ar] .score strong{font-family:Tahoma,Arial,sans-serif;letter-spacing:0;line-height:1.3}html[lang=ar] .intro h1{font-size:clamp(40px,6vw,74px);transform:none}html[dir=rtl] .brand,html[dir=rtl] .room-code,html[dir=rtl] #clock,html[dir=rtl] #roomCode,html[dir=rtl] #archiveDate{direction:ltr}html[dir=rtl] .wordmark-icon{margin-right:12px}html[dir=rtl] .rule-cards button,html[dir=rtl] label,html[dir=rtl] #accountContent{text-align:right}html[dir=rtl] .rule-cards button b{right:auto;left:12px}html[dir=rtl] .hint{border-left:0;border-right:3px solid #c5ff58}html[dir=rtl] .below>div+div{border-left:0;border-right:1px solid #38503b;padding-left:0;padding-right:24px}html[dir=rtl] .powerbar{direction:rtl}html[dir=rtl] #closeModal{right:auto;left:20px}html[lang=de] .rule-cards strong{font-size:18px}@media(max-width:600px){header{gap:10px;flex-wrap:wrap}header nav{gap:7px}.language-picker select{max-width:130px;font-size:11px;min-height:34px;padding:6px}html[lang=ar] .intro h1{font-size:45px}html[dir=rtl] .below>div+div{padding-right:10px}}
.language-picker{display:flex;align-items:center;gap:7px}.language-flag{width:22px;height:16px;object-fit:contain;flex:none}.language-picker select{max-width:137px}@media(max-width:600px){.language-picker select{max-width:118px}.language-flag{width:20px;height:15px}}
.wordmark-icon{width:46px;height:46px;flex:none;margin-inline-end:12px;margin-inline-start:0}footer .wordmark-icon{width:30px;height:30px;margin-inline-end:8px}.about-brand{display:flex;align-items:center;gap:14px;margin-bottom:24px;direction:ltr}.about-brand b{font:800 38px Manrope,sans-serif;letter-spacing:-2px;color:#f0f7e9}.about-brand b span{color:#c5ff58}@media(max-width:800px){.wordmark-icon{width:38px;height:38px}footer .wordmark-icon{width:26px;height:26px}.about-brand b{font-size:32px}.about-brand img{width:52px;height:52px}}

/* One scoring scale for rounds, daily sets, practice and duels. */
.score-scale-link{display:inline-block;border:0;background:transparent;color:#c5ff58;padding:6px 0;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:4px;line-height:1.4}
.score .score-scale-link{margin-top:5px;text-transform:none;letter-spacing:0}.rating-stars{display:flex;justify-content:center;align-items:center;gap:5px;margin:12px 0;direction:ltr}.rating-stars svg{width:23px;height:23px;flex:none}.rating-stars path{stroke-width:1.5;stroke-linejoin:round}.rating-stars .filled{fill:#c5ff58;stroke:#c5ff58;filter:drop-shadow(0 0 5px #c5ff5838)}.rating-stars .empty{fill:#1c3026;stroke:#56704c}.rating-stars strong{font:800 17px Manrope,sans-serif;margin-inline-start:7px;color:#dbeaca}.rating-stars strong small{font-size:11px;color:#9bad92}.rating-stars.large svg{width:38px;height:38px}.rating-stars.large strong{font-size:22px}.rating-stars.five-stars .filled{fill:#f4d475;stroke:#f4d475;filter:drop-shadow(0 0 7px #f4d47555)}.rank-range{display:block;color:#afc69e;font-size:13px;margin:6px 0}.duel-rating{text-align:center;margin:24px 0}
#roundCelebration .rating-stars{justify-content:flex-start;margin-top:12px}#roundCelebration .rating-stars strong{font-size:15px}#roundCelebration .rating-stars strong small{font-size:10px}#roundCelebration .rank-range{font-size:12px}#roundCelebration .rating-stars svg{width:21px;height:21px}
.score-scale-panel h2{margin-bottom:12px}.score-scale-panel>p{font-size:14px;line-height:1.65}.scale-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;margin-top:20px}.scale-columns h3{font-size:17px;margin:0 0 12px}.rank-scale,.star-scale{list-style:none;padding:0;margin:0}.rank-scale li,.star-scale li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 9px;border-bottom:1px solid #2b4737;border-inline-start:3px solid transparent;font-size:12px}.rank-scale li b{font-size:12px}.rank-scale li span,.star-scale li>span{white-space:nowrap;color:#b5c8a8;font-variant-numeric:tabular-nums}.rank-scale li.current,.star-scale li.current{background:#c5ff5812;border-inline-start-color:#c5ff58;border-radius:4px}.star-scale .rating-stars{margin:0;gap:3px}.star-scale .rating-stars svg{width:16px;height:16px}.star-scale .rating-stars strong{display:none}.star-scale li{min-height:39px}.score-scale-panel .notice{font-size:12px}.rating-stars[role=img]{isolation:isolate}
@media(max-width:600px){.scale-columns{grid-template-columns:1fr;gap:26px}.rating-stars.large svg{width:30px;height:30px}.rating-stars.large{gap:4px}.score .score-scale-link{font-size:10px}.rank-scale li,.star-scale li{font-size:12px;padding:10px 8px}.rank-scale li b{font-size:12px}}

dialog:has(.score-scale-panel){width:min(760px,calc(100vw - 32px));max-width:760px}.score-scale-panel .rank-scale li b{font-size:13px}.score-scale-panel .rank-scale li{min-height:42px}

.rank-scale li>span,.star-scale li>span{direction:ltr;unicode-bidi:isolate}
