@font-face{font-family:Demo UI;src:url(assets/ui-regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Demo UI;src:url(assets/ui-bold.woff) format("woff");font-weight:700;font-display:swap}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{min-width:320px}
body{margin:0;min-height:100vh;background:var(--bg,#24242d);color:var(--ink,#f6f0df);font-family:"Demo UI","Malgun Gothic","Apple SD Gothic Neo",sans-serif}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{color:inherit;cursor:pointer}
img{display:block;max-width:100%}
:focus-visible{outline:2px solid var(--focus,#68cbff);outline-offset:3px}
.skip{position:fixed;z-index:10;top:6px;left:6px;padding:8px 14px;background:#111b17;color:white;transform:translateY(-160%)}
.skip:focus{transform:none}
.header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px clamp(12px,2vw,34px);min-height:59px;background:var(--head);border-bottom:1px solid var(--edge)}
.brand{flex:none}
.brand img{width:145px;height:auto}
.event-links,.account{display:flex;align-items:center;gap:5px;min-width:0}
.event-links{margin-left:auto}
.header button,.account-shortcuts button,.side-menu :is(a,button),.mobile-menu nav>*{
 display:grid;place-items:center;min-height:35px;border:1px solid var(--edge);border-radius:var(--small);background:var(--control);padding:4px 9px;text-align:center;color:var(--ink);font-weight:700;font-size:.76rem
}
.header button:hover,.account-shortcuts button:hover,.side-menu :is(a,button):hover,.mobile-menu nav>*:hover{border-color:var(--focus)}
.header .account [data-dialog=register],.action{
 display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:35px;border:1px solid var(--accent);border-radius:var(--small);padding:5px 12px;background:var(--accent);color:var(--action-ink);font-size:.8rem;font-weight:700;white-space:nowrap
}
.action:hover{filter:brightness(1.08)}
.account .menu-button{display:none}
.primary{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;padding:3px 9px;gap:3px;border-bottom:1px solid var(--edge);background:var(--primary)}
.primary a{display:grid;place-items:center;padding:0 12px;min-height:34px;color:var(--primary-ink);font-size:.8rem;font-weight:700;border-radius:var(--small)}
.primary a[aria-current=page],.side-menu a[aria-current=page]{background:var(--accent);color:var(--action-ink)}
.primary a:hover{outline:1px solid var(--edge);outline-offset:-1px}
.mobile-menu{padding:8px;background:var(--head);border-bottom:1px solid var(--edge)}
.mobile-menu nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:5px}
.board{width:min(100%,1840px);margin-inline:auto;padding:12px clamp(10px,1.5vw,24px) 20px;display:grid;grid-template-columns:minmax(160px,var(--left)) minmax(0,1fr) minmax(215px,var(--right));align-items:start;gap:var(--gap)}
.board>*{min-width:0}
.left-column,.cart-column,#home-screen{display:grid;gap:var(--gap)}
.account-shortcuts,.side-menu,.amounts{display:grid;gap:4px}
.account-shortcuts,.amounts{grid-template-columns:repeat(3,minmax(0,1fr))}
.account-shortcuts button{padding:4px 2px}
.side-menu{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:37px}
.side-menu :is(a,button){min-width:0;min-height:0;padding:2px;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere;line-height:1.15}
.side-sports,.slip,.bulletins section{background:var(--surface);border:1px solid var(--edge);border-radius:var(--round);overflow:hidden}
.side-sports h2,.slip h2,.bulletins h2{margin:0;font-size:.9rem}
.side-sports h2,.bulletins h2,.slip>header{padding:8px 9px;background:var(--plate);border-bottom:1px solid var(--edge)}
.side-sports a{display:block;padding:8px 9px;border-bottom:1px solid var(--edge);font-size:.79rem}
.side-sports a:last-child{border:0}
.side-sports a:hover,.bulletins button:hover{background:var(--control)}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:clamp(227px,21vw,332px);border:1px solid var(--edge);border-radius:var(--round);color:var(--hero-ink)}
.hero-copy{position:relative;z-index:1;display:grid;justify-items:start;align-content:center;gap:10px;min-height:inherit;width:min(60%,520px);padding:clamp(13px,3vw,44px)}
.hero-copy>p{margin:0;line-height:1.2;font-size:clamp(.84rem,1.36vw,1.2rem);font-weight:700}
.hero-copy .hero-overline{color:var(--hero-tag);font-size:clamp(.7rem,1.15vw,1rem);letter-spacing:.1em}
.hero h1{margin:0;font-size:clamp(1.7rem,4.15vw,3.9rem);font-weight:700;line-height:1.02;word-break:keep-all;letter-spacing:-.09em}
.hero-links{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:7px}
.hero-alt{display:inline-flex;align-items:center;min-height:35px;padding:4px 9px;border:1px solid var(--hero-tag);border-radius:var(--small);background:var(--hero-alt);color:var(--hero-ink);font-size:.78rem;font-weight:700}
.hero-alt:hover{outline:1px solid var(--hero-tag)}
.hero-character{position:absolute;z-index:0;inset:auto 0 -4% auto;width:60%;height:111%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 13px #0005)}
.lantern-billboard{width:min(calc(100% - 42px),1792px);margin:12px auto 0}
.shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.shortcut{display:block;min-width:0;overflow:hidden;border:1px solid var(--edge);border-radius:var(--round);background:var(--surface)}
.shortcut img{width:100%;height:70px;object-fit:cover;object-position:center 42%}
.shortcut>span,.game-tile>span{display:flex;align-items:center;justify-content:space-between;min-height:33px;gap:3px;padding:5px 8px;font-size:.79rem;background:var(--plate)}
.shortcut i{font-style:normal;color:var(--muted)}
.shortcut:hover,.game-tile:hover{border-color:var(--focus)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:6px 10px;background:var(--plate);border:1px solid var(--edge);border-radius:var(--round)}
.section-head :is(h1,h2){font-size:1rem;margin:0}
.section-head a{font-size:.78rem;font-weight:700}
.section-head a:hover{text-decoration:underline}
.fixture-list{display:grid;gap:4px;margin-top:4px}
.fixture{display:grid;grid-template-columns:53px minmax(0,1fr) max-content;align-items:center;gap:8px;min-height:42px;padding:5px 8px;border:1px solid var(--edge);border-radius:var(--small);background:var(--surface);font-size:.82rem}
.fixture time{font-weight:700;font-variant-numeric:tabular-nums}
.fixture-league{display:block;font-size:.72rem;color:var(--muted)}
.fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:center}
.fixture-teams b{overflow-wrap:anywhere}
.fixture-teams b:first-child{text-align:right}
.fixture-teams span{color:var(--muted);font-size:.72rem}
.odds-buttons{display:grid;grid-template-columns:repeat(3,minmax(40px,1fr));gap:3px}
.odds-buttons button,.amounts button{min-height:28px;padding:4px;border:1px solid var(--edge);border-radius:var(--small);background:var(--control);font-size:.78rem;font-weight:700}
.odds-buttons button[aria-pressed=true]{background:var(--accent);color:var(--action-ink)}
.odds-buttons button:hover,.amounts button:hover{border-color:var(--focus)}
.bulletins{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.bulletins button{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:34px;padding:5px 9px;width:100%;border:0;background:none;font-size:.78rem;text-align:left}
.slip{display:grid;gap:7px;padding-bottom:8px}
.slip>header{display:flex;align-items:center;justify-content:space-between;gap:6px}
.slip>header button{border:0;background:transparent;font-size:.74rem}
.slip-input,.slip>p,.slip>dl,.slip>.action,.amounts{margin-inline:8px}
.slip>p{display:grid;place-items:center;background:var(--bg);border:1px solid var(--edge);border-radius:var(--small);min-height:64px;margin-block:0;padding:6px;text-align:center;color:var(--muted);font-size:.76rem}
.slip-input{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:7px;font-size:.8rem;font-weight:700}
.slip-input>input{height:31px;text-align:right;border:1px solid var(--edge);border-radius:var(--small);background:var(--bg);color:var(--ink);padding:3px 5px}
.slip>dl{margin-block:0;display:grid;gap:5px;font-size:.76rem}
.slip>dl>div{display:flex;justify-content:space-between;gap:6px}
.slip dt{color:var(--muted)}
.slip dd{margin:0;font-weight:700}
.telegram-banner{position:relative;isolation:isolate;min-height:107px;display:flex;align-items:center;border-radius:var(--round);border:1px solid var(--tg-edge);overflow:hidden;background:var(--tg);color:white}
.telegram-banner>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;z-index:-2}
.telegram-banner::before{position:absolute;inset:0;content:"";background:linear-gradient(90deg,var(--tg),color-mix(in srgb,var(--tg) 80%,transparent) 40%,transparent 73%);z-index:-1}
.telegram-banner>span{display:grid;justify-items:start;gap:2px;width:min(70%,170px);padding:7px}
.telegram-banner strong{font-size:.88rem;text-shadow:0 1px 4px #000;word-break:keep-all}
.telegram-banner small{font-size:.72rem;color:#f5efe7}
.telegram-banner b{font-size:.66rem;border:1px solid #fffb;padding:2px 5px;border-radius:var(--small)}
.telegram-banner:hover{border-color:var(--focus)}
.game-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.game-tile{min-width:0;overflow:hidden;border:1px solid var(--edge);border-radius:var(--round);background:var(--surface);padding:0;text-align:left}
.game-tile img{width:100%;aspect-ratio:1.92;height:auto;object-fit:cover}
footer{display:flex;justify-content:space-between;gap:8px;width:min(100%,1840px);margin:auto;padding:10px clamp(10px,1.5vw,24px) 19px;color:var(--muted);font-size:.76rem}
footer a:hover{text-decoration:underline}
dialog{max-width:min(455px,calc(100vw - 30px));width:100%;padding:15px;border:1px solid var(--edge);border-radius:var(--round);color:var(--ink);background:var(--surface)}
dialog::backdrop{background:#171516a6}
.dialog-head{display:flex;align-items:center;justify-content:space-between}
.dialog-head h2{font-size:1.22rem;margin:0}
.dialog-head button,.outline-button{min-height:34px;border:1px solid var(--edge);background:var(--control);border-radius:var(--small);padding:4px 9px;color:var(--ink)}
.outline-button{display:inline-flex;align-items:center;gap:4px;margin-right:6px;font-size:.8rem}
#dialog-text{line-height:1.55}

.review{background:#24242d}
.review-container{margin:auto;width:min(100%,1110px);padding:25px 17px}
.review-container>img{height:auto}
.review-container>h1{font-size:clamp(1.45rem,4vw,2.2rem);letter-spacing:-.048em;margin:16px 0 19px}
.review-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.choice{overflow:hidden;border:1px solid #807985;border-radius:11px;background:#2e303c}
.choice>img{width:100%;height:auto;aspect-ratio:1.48;object-fit:contain}
.choice>b{display:block;padding:9px}
.choice:hover{border-color:#f1d8ac}

@media(max-width:1200px){
 .primary a{padding-inline:8px}
 .board{grid-template-columns:158px minmax(0,1fr) 190px}
 .side-menu :is(a,button){font-size:.71rem}
}
@media(max-width:980px){
 .header{flex-wrap:wrap}
 .event-links{flex:1 0 100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));order:3}
 .account .menu-button{display:grid}
 .board{grid-template-columns:minmax(0,1fr) 182px}
 .left-column{display:none}
 .lantern-billboard{width:calc(100% - 26px)}
}
@media(max-width:670px){
 .header{padding:7px 8px;gap:6px}
 .brand img{width:110px}
 .header button,.header .account [data-dialog=register]{min-height:31px;padding:3px 5px;font-size:.72rem}
 .event-links{grid-template-columns:repeat(6,minmax(0,1fr))}
 .event-links button{grid-column:span 2}
 .event-links button:nth-child(n+4){grid-column:span 3}
 .primary{display:none}
 .board{display:grid;grid-template-columns:minmax(0,1fr);padding:8px}
 .hero,.theme-lantern .hero{min-height:201px}
 .hero-copy,.hero-lantern .hero-copy{padding:12px 9px;width:62%}
 .hero h1{font-size:clamp(1.57rem,7.3vw,2.65rem)}
 .hero-character,.hero-lantern .hero-character,.hero-grin .hero-character{width:54%;height:108%;right:0;bottom:-10%}
 .hero .action,.hero-alt{min-height:31px;padding:3px 5px;font-size:.71rem}
 .lantern-billboard{width:calc(100% - 16px);margin-top:8px}
 .shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .shortcut img,.theme-lantern .shortcut img{height:60px}
 .shortcut>span{min-height:29px;padding:4px 5px;font-size:.73rem}
 .fixture{grid-template-columns:40px minmax(0,1fr);gap:4px;font-size:.78rem}
 .odds-buttons{grid-column:2}
 .telegram-banner>img{object-fit:contain;object-position:right center}
 .telegram-banner>span{padding-inline:12px}
 .game-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .review-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

body[class^=theme-]{
 background-image:linear-gradient(180deg,var(--stage-top),transparent 230px,var(--stage-bottom)),var(--stage-art);
 background-position:center top;
 background-size:cover;
 background-attachment:fixed;
}
body[class^=theme-] .header{
 background:color-mix(in srgb,var(--head) 94%,transparent);
 backdrop-filter:blur(11px);
}
body[class^=theme-] .primary{background:var(--rail-bar)}
body[class^=theme-] .board{
 min-height:calc(100svh - 142px);
 gap:clamp(8px,1vw,15px);
}
body[class^=theme-] .left-column,
body[class^=theme-] .cart-column{
 position:relative;
 isolation:isolate;
 align-self:stretch;
 grid-auto-rows:max-content;
 min-height:100%;
 overflow:hidden;
 padding:8px;
 border:1px solid var(--beam);
 border-radius:var(--round);
 background:linear-gradient(180deg,var(--rail-cover) 30%,var(--rail-fade)),var(--stage-art) var(--rail-crop)/auto 730px;
}
body[class^=theme-] :is(.left-column,.cart-column)::after{
 content:"";
 position:absolute;
 inset:auto 0 -10px;
 height:clamp(115px,12vw,220px);
 opacity:.25;
 background:var(--character) center bottom/contain no-repeat;
 z-index:-1;
 pointer-events:none;
}
body[class^=theme-] .hero{
 background:linear-gradient(93deg,var(--hero-cover) 13%,var(--hero-fade) 66%,transparent),var(--stage-art) var(--hero-crop)/cover;
 border-color:var(--beam);
}
body[class^=theme-] .hero::after{
 content:"";
 position:absolute;
 inset:6px;
 z-index:-1;
 border:1px solid var(--glint);
 border-radius:inherit;
 background:repeating-linear-gradient(128deg,transparent 0 55px,var(--thread) 56px 57px,transparent 58px 76px);
}
body[class^=theme-] .cart-column .slip{box-shadow:0 3px 10px var(--shadow)}
body[class^=theme-] .shortcut>span{border-top:1px solid var(--beam)}
body[class^=theme-] footer{padding-inline:clamp(12px,3vw,41px);color:var(--foot-ink);text-shadow:0 1px 4px var(--stage-top)}
.choice-scene{display:block;padding:7px;background-size:cover;background-position:center}
.choice-card .choice-scene{background-image:url(assets/card-backdrop.webp)}
.choice-lantern .choice-scene{background-image:url(assets/lantern-backdrop.webp)}
.choice-grin .choice-scene{background-image:url(assets/grin-backdrop.webp)}
.choice-scene img{width:100%;height:auto;aspect-ratio:1.53;object-fit:contain}
@media(max-width:980px){
 body[class^=theme-] .cart-column{padding:6px}
 body[class^=theme-] .board{min-height:0}
}
@media(max-width:670px){
 body[class^=theme-]{background-attachment:scroll;background-size:auto 890px;background-position:center top;background-repeat:repeat-y}
 body[class^=theme-] .board{gap:8px}
 body[class^=theme-] .lantern-billboard{width:calc(100% - 16px);margin-top:8px}
 body[class^=theme-] .hero{min-height:207px}
 body[class^=theme-] .hero-copy{padding:13px 10px;width:63%}
 body[class^=theme-] .hero-character{width:55%;height:113%;right:0;bottom:-13%}
 body[class^=theme-] .cart-column::after{display:none}
}

body[class^=theme-] .hero .hero-character {
 inset:0 0 0 auto;height:100%;width:96%;object-fit:cover;object-position:64% 47%;
 mask-image:linear-gradient(90deg,transparent,transparent 6%,#000 42%);filter:none;
}
body.theme-lantern .hero .hero-character { width:76%;object-position:68% 46% }
body.theme-grin .hero .hero-character { width:89%;object-position:70% 43%;mask-image:linear-gradient(90deg,transparent,transparent 13%,#000 49%) }
body[class^=theme-] :is(.left-column,.cart-column)::after { mask-image:linear-gradient(transparent,#000 37%);opacity:.20 }
.theme-card .hero-copy,.theme-lantern .hero-copy { text-shadow:0 2px 5px #1a172b }
.choice-scene { padding:0 }
.choice-scene img { aspect-ratio:1.9;object-fit:cover }
@media(max-width:670px) {
 body[class^=theme-] .hero .hero-character { width:95%;object-position:81% center }
 body.theme-lantern .hero .hero-character { width:94%;object-position:83% 46% }
 body.theme-grin .hero .hero-character { width:94%;object-position:86% center }
}
:root {
  --ink-on-deep:#f8f8ff;
  --theme-outline:color-mix(in srgb,var(--theme-light) 66%,var(--theme-core));
}
.theme-card {
 --theme-base:#151119;--theme-panel:#352b39;--theme-core:#ba2047;--theme-light:#ffb4c7;--theme-outline:#e2e6f3;
 --theme-glint:#fff4f8;--theme-ink:#fff5f6;--theme-button-ink:#240711;--trim:#f1effc;--engraving:#f9bbd52b;
 --hero-mobile-position:63%;--tg-position:64%;
}
.theme-lantern {
 --theme-base:#151e08;--theme-panel:#33461b;--theme-core:#608309;--theme-light:#ffe26d;--theme-outline:#e6fe54;
 --theme-glint:#fff4b8;--theme-ink:#fff9d7;--theme-button-ink:#192305;--trim:#eaff9b;--engraving:#dfff5c25;
 --hero-mobile-position:77%;--tg-position:67%;
}
.theme-grin {
 --theme-base:#150a2a;--theme-panel:#402065;--theme-core:#812baa;--theme-light:#8ef8f0;--theme-outline:#70ebea;
 --theme-glint:#f5e2ff;--theme-ink:#fcf0ff;--theme-button-ink:#211238;--trim:#bafdf5;--engraving:#95f7f22d;
 --hero-mobile-position:59%;--tg-position:49%;
}

body[class^=theme-] {
 --stage-top:color-mix(in srgb,var(--theme-base) 62%,transparent);
 --stage-bottom:color-mix(in srgb,var(--theme-base) 66%,transparent);
 --bg:var(--theme-base);
 --head:color-mix(in srgb,var(--theme-core) 65%,var(--theme-base));
 --surface:color-mix(in srgb,var(--theme-panel) 70%,var(--theme-base));
 --ink:var(--theme-ink);--muted:color-mix(in srgb,var(--theme-glint) 86%,var(--theme-core));
 --edge:color-mix(in srgb,var(--theme-light) 45%,var(--theme-core));--control:var(--theme-panel);
 --focus:var(--theme-light);--accent:var(--theme-light);--action-ink:var(--theme-button-ink);--primary-ink:var(--theme-ink);
 --plate:linear-gradient(180deg,var(--theme-core),var(--theme-panel));
 --hero-tag:var(--theme-glint);--hero-ink:var(--theme-ink);
 --hero-alt:color-mix(in srgb,var(--theme-base) 82%,transparent);
 --tg:var(--theme-base);--tg-edge:var(--theme-outline);
 --left:14.3%;--right:16.5%;--gap:11px;--round:8px;--small:5px;
 --rail-bar:linear-gradient(180deg,var(--theme-core),var(--theme-panel));
 --beam:var(--theme-outline);--glint:color-mix(in srgb,var(--theme-glint) 60%,transparent);
 --thread:color-mix(in srgb,var(--theme-light) 18%,transparent);--shadow:#0c061ab8;
 --rail-cover:color-mix(in srgb,var(--theme-panel) 87%,transparent);
 --rail-fade:color-mix(in srgb,var(--theme-core) 44%,transparent);--rail-crop:center;
 --hero-cover:var(--theme-base);--hero-fade:color-mix(in srgb,var(--theme-core) 17%,transparent);
 --hero-crop:right 42%;--foot-ink:var(--theme-glint);
}
.theme-card{
 --stage-art:url(assets/card-backdrop.webp);--character:url(assets/card-hero.webp);
 --round:10px;--small:6px;
}
.theme-lantern{
 --stage-art:url(assets/lantern-backdrop.webp);--character:url(assets/lantern-hero.webp);
 --round:5px;--small:4px;
}
.theme-grin{
 --stage-art:url(assets/grin-backdrop.webp);--character:url(assets/grin-hero.webp);
 --round:9px;--small:6px;
}
body[class^=theme-] .header{
 background:linear-gradient(100deg,var(--theme-panel) 3%,var(--theme-core) 62%,var(--theme-panel));
 border-bottom:1px solid var(--theme-outline);
}
body[class^=theme-] .event-links button{
 background:linear-gradient(180deg,var(--theme-core),var(--theme-panel));
 box-shadow:inset 0 1px var(--glint);
 border-color:var(--edge);
}
body[class^=theme-] .primary{border-bottom:2px solid var(--theme-outline);box-shadow:0 3px 8px #0004}
body[class^=theme-] .hero-copy{text-shadow:0 2px 5px var(--theme-base)}
body[class^=theme-] .section-head{border-left:3px solid var(--theme-light);}
body[class^=theme-] .bulletins section{border-top:2px solid var(--theme-outline)}
.theme-card .hero{min-height:clamp(246px,23vw,349px)}
.theme-card .hero::after{box-shadow:inset 0 0 21px #62ecff78}
body.theme-card .hero .hero-character{width:95%;object-position:65% 8%}

.theme-lantern .lantern-billboard{width:min(calc(100% - 40px),1780px);margin:11px auto 0}
.theme-lantern .hero{min-height:clamp(248px,20vw,310px);}
.theme-lantern .hero-copy{width:60%;padding-inline:clamp(16px,4vw,74px)}
body.theme-lantern .hero .hero-character{width:78%;object-position:69% 8%}
.theme-lantern .board{min-height:calc(100svh - 424px)}
.theme-lantern .event-links button{border-bottom:2px solid #d68a50}
.theme-lantern .slip{border-color:#c28354}

.theme-grin .hero{min-height:clamp(242px,22vw,338px)}
body.theme-grin .hero .hero-character{width:95%;object-position:75% 8%}
.theme-grin .hero::after{background:repeating-linear-gradient(44deg,transparent 0 45px,#fcd7ff2c 46px 47px,transparent 48px 67px)}
.theme-grin .shortcut>span{border-top:1px solid #e2aaff}

@media(max-width:980px) {
 .theme-lantern .board{min-height:0}
}
@media(max-width:670px) {
 body[class^=theme-] .hero{min-height:210px}
 body[class^=theme-] .hero .hero-character{width:95%;object-position:83% center}
 .theme-lantern .lantern-billboard{width:calc(100% - 16px);margin-top:8px}
}

/* Keep the same banner frame in the center column of all three themes. */
body[class^="theme-"] .hero {
 height:clamp(239px,22vw,332px);
 min-height:0;
 width:100%;
}
body[class^="theme-"] .hero-copy{height:100%;min-height:0}
body[class^="theme-"] .hero .hero-character{
 inset:0 0 0 auto;
 width:100%;
 height:100%;
 object-fit:contain;
 object-position:right center;
 mask-image:linear-gradient(90deg,transparent 23%,#000 58%);
}
body[class^="theme-"] .board{min-height:calc(100svh - 142px)}
.theme-card .hero::after{
 border:1px solid #b4faffbb;
 box-shadow:inset 0 0 28px #45d6ff72,0 0 9px #3bb9ff7e;
}
.theme-card .side-menu :is(a,button){border-radius:8px;box-shadow:inset 0 1px #aaf3ff44}
.theme-lantern .hero{border:2px solid #f0a05a}
.theme-lantern .hero::after{
 background:repeating-linear-gradient(132deg,transparent 0 37px,#ffe0a72f 38px 39px,transparent 40px 60px);
 box-shadow:inset 0 0 25px #e3534963;
}
.theme-lantern .slip header,.theme-lantern .bulletins h2{border-left:3px solid #f1a768}
.theme-grin .hero::after{
 border:1px solid #e4baffb3;
 outline:1px solid #965cf078;
 outline-offset:-5px;
 box-shadow:inset 0 0 30px #ba72f250;
}
.theme-grin .event-links button{border-radius:10px}
.theme-grin .side-sports{outline:1px solid #dfaaff4d;outline-offset:-5px}
@media(max-width:980px) {
 body[class^="theme-"] .board{min-height:0}
}
@media(max-width:670px) {
 body[class^="theme-"] .hero{height:212px;min-height:0}
 body[class^="theme-"] .hero .hero-character{
  width:94%;object-fit:cover;object-position:85% center;mask-image:linear-gradient(90deg,transparent 13%,#000 54%);
 }
}

/* Full-width artwork spans the common center-column frame across all themes. */
body[class^="theme-"] .hero {
 background:var(--theme-base);
 border:1px solid var(--theme-outline);
}
.hero-art {
 position:absolute;
 z-index:0;
 inset:0;
 width:100%;
 height:100%;
 object-fit:cover;
 object-position:var(--hero-position, 66%) center;
}
body[class^="theme-"] .hero::before {
 content:"";
 position:absolute;
 z-index:1;
 inset:0;
 pointer-events:none;
 background:linear-gradient(90deg,var(--theme-base) 0%,color-mix(in srgb,var(--theme-base) 77%,transparent) 25%,color-mix(in srgb,var(--theme-base) 27%,transparent) 43%,transparent 65%);
}
body[class^="theme-"] .hero::after {
 z-index:2;
 background:none;
 outline:none;
 box-shadow:inset 0 0 15px color-mix(in srgb,var(--theme-outline) 30%,transparent);
 pointer-events:none;
}
body[class^="theme-"] .hero-copy {
 z-index:3;
 text-shadow:0 3px 11px var(--theme-base),0 1px 2px var(--theme-base);
}
body[class^="theme-"] .hero h1 {
 color:var(--theme-ink);
 letter-spacing:-.065em;
}
body[class^="theme-"] .hero-overline {
 color:var(--theme-glint);
}
.choice-scene { padding:0; background:none }
.choice-scene img { display:block; width:100%; height:auto; aspect-ratio:1400/470; object-fit:cover }
.telegram-banner > img { object-fit:cover; object-position:var(--tg-position, 72%) center }
.telegram-banner::before {
 background:linear-gradient(90deg,var(--theme-base),color-mix(in srgb,var(--theme-base) 90%,transparent) 27%,color-mix(in srgb,var(--theme-base) 45%,transparent) 55%,transparent 78%);
}
.telegram-banner > span {
 text-shadow:0 2px 4px var(--theme-base);
 padding:10px 9px;
}
@media (max-width:670px) {
 .hero-art { object-position:var(--hero-mobile-position, 70%) center }
 body[class^="theme-"] .hero::before {
  background:linear-gradient(90deg,var(--theme-base),color-mix(in srgb,var(--theme-base) 76%,transparent) 28%,color-mix(in srgb,var(--theme-base) 24%,transparent) 59%,transparent 81%);
 }
}

.hero-art { object-position:var(--hero-position, 66%) top; }
@media(max-width:670px) {
 .hero-art { object-position:var(--hero-mobile-position) center; }
}

/* The three scenes share a frame while each uses its own metal, lacquer and lighting. */
body[class^="theme-"] .header {
  border-bottom-color:var(--theme-outline);
  background:linear-gradient(105deg,var(--theme-base) 8%,var(--theme-panel) 40%,var(--theme-core) 74%,var(--theme-base));
  box-shadow:inset 0 -1px color-mix(in srgb,var(--trim) 67%,transparent);
}
body[class^="theme-"] .header > .brand { padding:4px 5px; border-radius:4px; background:#24242d; }
body[class^="theme-"] .header > .brand > img { display:block; }
body[class^="theme-"] .event-links button,
body[class^="theme-"] .account-shortcuts button {
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-glint) 28%,var(--theme-core)),var(--theme-core) 17%,var(--theme-panel) 53%,var(--theme-base));
  border:1px solid color-mix(in srgb,var(--trim) 70%,var(--theme-base));
  box-shadow:inset 0 1px var(--engraving),inset 0 -2px #0007,0 2px 3px #0006;
}
body[class^="theme-"] .primary {
  background:linear-gradient(180deg,var(--trim),var(--theme-core) 11%,var(--theme-panel) 36%,var(--theme-base) 77%,var(--theme-core));
  box-shadow:0 1px 0 var(--trim),0 4px 12px var(--theme-base);
}
body[class^="theme-"] .side-menu :is(a,button) {
  background:linear-gradient(180deg,var(--theme-panel),color-mix(in srgb,var(--theme-panel) 29%,var(--theme-base)));
  border-color:color-mix(in srgb,var(--theme-outline) 53%,var(--theme-base));
  box-shadow:inset 0 1px var(--engraving),0 1px 3px #0006;
  font-weight:700;
}
body[class^="theme-"] :is(.side-menu,.primary) a[aria-current="page"] {
  color:var(--theme-button-ink);
  background:linear-gradient(180deg,var(--theme-glint),var(--theme-outline));
  border-color:var(--trim);
  box-shadow:inset 0 1px white,inset 0 -2px color-mix(in srgb,var(--theme-core) 52%,transparent);
}
body[class^="theme-"] .hero::after {
  border:1px solid color-mix(in srgb,var(--trim) 85%,transparent);
  outline:1px solid var(--engraving);
  outline-offset:-6px;
  box-shadow:inset 0 0 22px color-mix(in srgb,var(--theme-outline) 21%,transparent),0 0 9px var(--engraving);
}
body[class^="theme-"] .hero h1 {
  color:var(--theme-glint);
  text-shadow:0 2px 0 var(--theme-base),0 6px 8px #000b,0 0 21px var(--engraving);
  letter-spacing:-.067em;
}
body[class^="theme-"] .hero-overline {
  padding-left:9px;
  border-left:2px solid var(--trim);
  text-shadow:0 2px 6px var(--theme-base);
}
body[class^="theme-"] :is(.section-head,.side-sports h2,.bulletins h2,.slip>header) {
  background:linear-gradient(180deg,var(--engraving),transparent 20%),linear-gradient(100deg,var(--theme-core),var(--theme-panel) 64%,var(--theme-base));
  border-bottom:1px solid color-mix(in srgb,var(--theme-outline) 62%,var(--theme-base));
}
body[class^="theme-"] :is(.shortcut,.side-sports,.slip,.bulletins section,.telegram-banner) {
  border-color:color-mix(in srgb,var(--trim) 66%,var(--theme-base));
  box-shadow:inset 0 0 0 1px var(--engraving),0 2px 7px #0008;
}
body[class^="theme-"] .shortcut > span {
  color:var(--theme-ink);
  border-top:1px solid var(--theme-outline);
  background:linear-gradient(98deg,var(--theme-core),var(--theme-base));
}
body[class^="theme-"] .bulletins button + button {
  border-top:1px solid color-mix(in srgb,var(--theme-outline) 32%,var(--theme-base));
}
body[class^="theme-"] .bulletins button,
body[class^="theme-"] .side-sports a { min-height:36px; }
body[class^="theme-"] .telegram-banner {
  min-height:121px;
  background:var(--theme-base);
}
body[class^="theme-"] .telegram-banner b {
  color:var(--theme-button-ink);
  border-color:var(--trim);
  background:linear-gradient(var(--theme-glint),var(--theme-outline));
}
.theme-card .hero { border-radius:10px; }
.theme-lantern .hero { border-radius:5px; }
.theme-grin .hero { border-radius:8px; }
.theme-card .side-sports h2 {
  background:repeating-linear-gradient(135deg,transparent 0 8px,var(--engraving) 8px 10px),
             linear-gradient(100deg,var(--theme-core),var(--theme-base));
}
.theme-lantern .bulletins h2 {
  border-left:3px solid var(--trim);
}
.theme-grin .slip > header {
  border-top:1px solid var(--trim);
  border-left:3px solid color-mix(in srgb,var(--theme-outline) 85%,var(--theme-core));
}
@media(max-width:670px){
  body[class^="theme-"] .hero-copy { padding-inline:12px; }
  body[class^="theme-"] .header > .brand { padding:3px 4px; }
}

/* Match the controls and edge treatments to each scene. */
body[class^="theme-"] {
  --stage-top:color-mix(in srgb,var(--theme-base) 47%,transparent);
  --stage-bottom:color-mix(in srgb,var(--theme-base) 59%,transparent);
  --rail-cover:color-mix(in srgb,var(--theme-panel) 80%,transparent);
}
body[class^="theme-"] .hero::after {
  outline-color:color-mix(in srgb,var(--trim) 36%,transparent);
  box-shadow:inset 0 0 17px var(--engraving),0 0 12px var(--engraving);
}
body[class^="theme-"] .shortcut > img { filter:saturate(1.14) contrast(1.07); }
body[class^="theme-"] .shortcut > span {
  box-shadow:inset 0 -2px var(--engraving);
}
body[class^="theme-"] .hero-copy > p:not(.hero-overline) {
  color:var(--theme-ink);
  text-shadow:0 1px var(--theme-base),0 3px 5px #000a;
}
body[class^="theme-"] .slip > header > button { color:var(--theme-glint); }
body[class^="theme-"] .telegram-banner { min-height:125px; }
.theme-card .hero, .theme-card .side-menu :is(a,button), .theme-card .shortcut, .theme-card .telegram-banner {
  border-radius:3px;
}
body.theme-card .primary {
  background:linear-gradient(180deg,#faf5fd,#c8b9c9 7%,var(--theme-core) 19%,#53142e 40%,var(--theme-base) 77%,var(--theme-core));
}
.theme-card .hero::after {
  border:1px solid #f8eff9bc;
  outline-color:#fff5fc55;
  outline-offset:-5px;
}
body.theme-card .section-head, body.theme-card .slip > header {
  border-top:1px solid var(--theme-outline);
}

.theme-lantern .hero { border-radius:14px; }
body.theme-lantern .side-menu :is(a,button), body.theme-lantern .account-shortcuts button, body.theme-lantern .event-links button {
  border-radius:13px;
  box-shadow:inset 0 1px #f4ff9b4f,0 2px 6px #0008;
}
.theme-lantern .hero::after {
  border-radius:13px;
  box-shadow:inset 0 0 13px #ecff4b44,0 0 15px #e3ff3339;
}
body.theme-lantern .primary {
  background:linear-gradient(180deg,#f4ffac,var(--theme-core) 13%,#304c12 39%,var(--theme-base) 82%,var(--theme-core));
}
body.theme-lantern .hero .action, body.theme-lantern .slip .action {
  border-radius:16px;
  background:linear-gradient(#fff1a4,#ffc13a);
}
body.theme-lantern .telegram-banner { border-radius:13px; }

.theme-grin .hero { border-radius:8px; }
body.theme-grin .header {
  background:linear-gradient(105deg,#1d0f3b,var(--theme-panel) 40%,var(--theme-core) 75%,#1b3560);
}
body.theme-grin .primary {
  background:linear-gradient(180deg,#6af6ea,var(--theme-core) 17%,#3d235e 38%,var(--theme-base) 76%,var(--theme-core));
}
body.theme-grin .hero::after {
  border-color:#9efbf4;
  outline-color:#df8cff71;
  box-shadow:inset 0 0 23px #c565f75b,0 0 14px #b78af947;
}
body.theme-grin .section-head, body.theme-grin .bulletins h2 {
  background:linear-gradient(100deg,#413781,var(--theme-core) 35%,var(--theme-panel) 71%,var(--theme-base));
}
body.theme-grin .event-links button { border-radius:6px; }
body.theme-grin .telegram-banner { outline:1px solid #b976db63; outline-offset:-4px; }

@media(max-width:670px){
  body.theme-grin .hero h1 { font-size:clamp(1.45rem,6.6vw,2.6rem); }
}
