:root{color-scheme:dark;--bg:#0c0918;--panel:#171123;--line:#3b2b59;--purple:#b27bff;--muted:#a69abf;--blue:#67c9ff;--red:#ff5a79}*{box-sizing:border-box}body{margin:0;color:#f3edff;background:radial-gradient(ellipse at 35% 0,#30174a,transparent 50%),#0c0918;font:15px system-ui,Segoe UI,sans-serif;min-height:100vh}button,select,input{font:inherit;color:inherit;border:1px solid #554071;background:#241935;border-radius:8px;padding:10px 13px}button{cursor:pointer;transition:.15s}button:hover:not(:disabled){border-color:#cf9dff;background:#4b2a75}button:disabled{opacity:.35;cursor:default}.primary{background:linear-gradient(120deg,#6940cc,#9c41d1);border-color:#b78cff;box-shadow:0 0 16px #833ce44a;font-weight:700}.danger{background:#69233f;border-color:#c75473}.shell{max-width:1500px;margin:auto;padding:18px}.top{display:flex;align-items:center;gap:14px;padding:8px 0 18px;border-bottom:1px solid var(--line)}.brand{font-weight:900;letter-spacing:3px;font-size:22px}.brand small{letter-spacing:0;font-size:14px;color:var(--purple)}.mark{width:44px;height:44px;border-radius:9px;object-fit:cover}.grow{flex:1}.sub{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted)}.muted{color:var(--muted)}.blue{color:var(--blue)}.red{color:var(--red)}.panel{background:linear-gradient(145deg,#1b142c,#120e20);border:1px solid var(--line);border-radius:13px;padding:18px;min-width:0}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.menu{display:grid;grid-template-columns:220px 1fr;gap:16px;margin-top:16px}.sidebar button{width:100%;text-align:left;margin-bottom:8px}.hero{display:flex;align-items:center;gap:26px;min-height:240px;background:radial-gradient(ellipse at 10% 50%,#53247b55,transparent 70%)}.hero img{width:min(38%,260px);border-radius:15px}.hero h1{font-size:clamp(28px,4vw,56px);letter-spacing:4px;margin:0}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.mode{min-height:155px;text-align:left;padding:18px;background:linear-gradient(150deg,#452675,#161126)}.mode:nth-child(2){background:linear-gradient(150deg,#164466,#151529)}.mode:nth-child(3){background:linear-gradient(150deg,#5c254f,#1a1228)}.mode b{display:block;font-size:23px;margin:15px 0 5px}.icon{font-size:25px}.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cards img{width:100%;display:block;border-radius:8px}.game{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:15px;margin-top:15px}.main{display:flex;flex-direction:column;gap:12px;min-width:0}.stage{text-align:center;min-height:200px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 0,#59338a55,transparent 70%),#151025}.stage.night{background:radial-gradient(ellipse at 50% 0,#123a6555,transparent 70%),#101222}.clock{font-size:56px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15;color:#dbb9ff;text-shadow:0 0 25px #a95fff77;margin:12px}.track{height:5px;border-radius:5px;background:#35264d;overflow:hidden;max-width:460px;margin:0 auto 16px}.track div{height:100%;background:#a16bff;transition:width .15s}.stage h2{font-size:25px;margin:7px 0}.announcement{min-height:44px;color:#e3d5ff;font-size:17px}.roster .player{display:flex;gap:8px;align-items:center;padding:13px 7px;border-bottom:1px solid #30243f;min-height:53px}.player:last-child{border-bottom:0}.player .num{color:#7d6a9e;width:21px;font-size:12px}.player button{padding:6px 9px;font-size:12px}.player.active{background:#42276a77;border-left:3px solid #b385ff}.player.dead .name{text-decoration:line-through;color:#7f748f}.count{font-weight:700;color:#d7baff;min-width:16px;text-align:center}.chat{height:250px;overflow:auto;margin:12px 0;line-height:1.5}.message{padding:8px 0;border-bottom:1px solid #2c2239;overflow-wrap:anywhere}.message small{display:block;color:#9f8bbf;font-size:10px;letter-spacing:1px}.input{display:flex;gap:7px}.input input{min-width:0;flex:1}.role-overlay{position:fixed;inset:0;background:#07050cc9;display:grid;place-items:center;z-index:5;padding:15px}.role-card{width:min(920px,100%);max-height:95vh;overflow:auto;text-align:center;box-shadow:0 0 70px #8544d044}.role-grid{display:grid;grid-template-columns:1fr 220px 1fr;gap:20px;align-items:center;text-align:left}.role-grid img{width:100%;border-radius:10px}.role-grid h3{color:#c39cff}.result h1{font-size:40px}.result table{width:100%;border-collapse:collapse}.result td,.result th{text-align:left;padding:10px;border-bottom:1px solid var(--line)}.controls{margin-top:12px;font-size:12px;color:var(--muted)}.controls button,.controls select{font-size:12px;padding:6px 9px}.room-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.slot{padding:18px;text-align:center;border:1px solid var(--line);border-radius:9px;background:#211633}.notice{border-left:3px solid #ad80ff;padding:10px 14px;background:#2a1c41;color:#d9c9f5}.center{text-align:center}h2,h3{margin-top:0}footer{margin-top:15px;color:var(--muted);font-size:12px} @media(max-width:800px){.shell{padding:10px}.menu{grid-template-columns:1fr}.sidebar{display:none}.game{grid-template-columns:minmax(0,1fr) minmax(145px,38%);gap:7px}.panel{padding:10px}.brand{font-size:17px;letter-spacing:1px}.top{gap:7px;flex-wrap:wrap}.roster .player{flex-wrap:wrap;padding:9px 2px;font-size:12px}.player button{font-size:10px;padding:5px}.player .num{display:none}.modes{gap:7px}.mode{padding:10px;min-height:130px}.mode b{font-size:17px}.role-grid{grid-template-columns:1fr 1fr}.role-grid img{grid-row:1 / 3;grid-column:2}.role-grid>div:last-child{grid-column:1}.cards{grid-template-columns:repeat(3,1fr)}.hero{min-height:180px;gap:12px}.clock{font-size:45px}.stage h2{font-size:20px}.announcement{font-size:14px}.chat{height:210px}}

/* v0.3: centered entry, dedicated home, full match layout */
.eyebrow{color:#c3a7ed;letter-spacing:2.5px;font-size:11px;font-weight:650;text-transform:uppercase}.welcome{position:relative;min-height:100svh;display:grid;place-items:center;isolation:isolate;overflow:hidden;padding:70px 24px 38px;background:radial-gradient(ellipse at 50% 35%,#45216a88 0%,#20103388 40%,transparent 70%),radial-gradient(ellipse at 12% 80%,#48206466,transparent 40%),#0b0714}.welcome:before{content:'';position:absolute;z-index:-1;width:min(78vw,800px);aspect-ratio:1;top:-25%;left:50%;transform:translateX(-50%);border:1px solid #a35aff66;border-radius:50%;box-shadow:0 0 70px #8c3aff44,inset 0 0 55px #8c3aff22;pointer-events:none}.welcome:after{content:'';position:absolute;z-index:-1;bottom:-18%;width:110%;height:32%;border-radius:50%;border-top:2px solid #d1a0ff70;background:radial-gradient(ellipse at 50% 0,#b43cff33,transparent 50%);box-shadow:0 -12px 70px #9a32fa22;pointer-events:none}.welcome-tools{position:absolute;right:24px;top:24px}.welcome-center{width:min(100%,920px);text-align:center;display:flex;flex-direction:column;align-items:center}.welcome-logo{display:block;width:min(44vh,430px,80vw);aspect-ratio:1;object-fit:contain;mix-blend-mode:lighten;mask-image:radial-gradient(ellipse at center,#000 59%,transparent 78%);filter:drop-shadow(0 0 23px #8f4ddf33)}.welcome-motto{display:flex;align-items:center;justify-content:center;gap:20px;margin:12px 0 6px;width:min(100%,460px);color:#f2dfff;font-size:clamp(12px,1.7vw,17px);font-weight:700;letter-spacing:.38em;white-space:nowrap;text-shadow:0 0 18px #b26aff,0 0 35px #9342ff}.welcome-motto:before,.welcome-motto:after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#c28bff);box-shadow:0 0 10px #bf7aff}.welcome-motto:after{transform:rotate(180deg)}.welcome-center h1{font-size:clamp(37px,7vw,78px);letter-spacing:.065em;line-height:1.05;margin:12px 0 4px;font-weight:900;background:linear-gradient(#fff,#d7b8f5);color:#f6eaff;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 6px 14px #0008)}.arabic{font-size:clamp(24px,4vw,40px);font-weight:750;color:#e8d2ff;margin:0 0 22px}.welcome-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;width:min(100%,760px);margin:14px 0 24px}.welcome-actions button{font-size:clamp(15px,2vw,20px);font-weight:700;min-height:61px;border-radius:14px;background:linear-gradient(145deg,#302044,#1a122b);border-color:#8957b9}.welcome-actions .primary{background:linear-gradient(150deg,#b03aff,#6c1db2 65%,#39155e);border-color:#e6b1ff;box-shadow:0 0 23px #a638ff80,inset 0 0 8px #e3a4ff55}.welcome-actions button:hover{transform:translateY(-2px);box-shadow:0 0 25px #a65cf955}.local-access{background:#1c122e;border:1px solid #64418e;border-radius:12px;padding:15px;margin:0 0 16px}.local-access input{margin-right:8px}.home-shell{min-height:100svh}.home-intro{text-align:center;margin:48px auto 26px}.home-intro h1{font-size:clamp(30px,5vw,50px);margin:12px 0}.home-intro p{color:var(--muted)}.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1160px;margin:0 auto}.mode-choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:280px;padding:26px;gap:13px;border-radius:20px;background:radial-gradient(ellipse at 90% 0,#67419977,transparent 70%),linear-gradient(150deg,#2a1d43,#151024);border:1px solid #6d4a99;overflow:hidden}.mode-choice.m1{background:radial-gradient(ellipse at 90% 0,#405b9f77,transparent 70%),linear-gradient(150deg,#1c2647,#131329);border-color:#515d95}.mode-choice.m2{background:radial-gradient(ellipse at 90% 0,#8f3c8977,transparent 70%),linear-gradient(150deg,#361c41,#1b1127);border-color:#89518a}.mode-symbol{font-size:48px;line-height:1.1;color:#ead6ff}.mode-index{font-size:10px;letter-spacing:2px;color:#c2acd9}.mode-choice b{font-size:30px}.mode-description{color:#d2c4e6;line-height:1.5}.mode-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border-top:1px solid #ffffff25;margin-top:auto;padding-top:15px;font-weight:700}.mode-choice:hover{transform:translateY(-4px)}.test-setup{max-width:1160px;margin:24px auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.test-setup p{margin:5px 0 0}.home-shell footer{text-align:center}.game{grid-template-columns:minmax(0,1fr) minmax(215px,245px) minmax(225px,265px);gap:13px;align-items:stretch;min-height:calc(100svh - 160px)}.main>.stage{flex:1;min-height:305px;display:flex;flex-direction:column;justify-content:center;padding:24px}.main>.panel:last-child{display:flex;flex-direction:column;min-height:260px;flex:1}.chat{height:clamp(150px,26vh,310px);flex:1;min-height:150px;max-height:380px;scrollbar-width:thin;scrollbar-color:#684a8e #1b142b}.announcement{margin:16px auto;min-height:80px;width:100%;max-width:620px;padding:18px 12px;background:linear-gradient(90deg,transparent,#56358035,transparent);border-top:1px solid #68468b55;border-bottom:1px solid #68468b55}.announcement p{font-size:clamp(16px,1.6vw,23px);line-height:1.4;margin:12px 0 0;font-weight:650}.identity{text-align:center;min-width:0;overflow:hidden}.identity-art{width:100%;max-width:235px;display:block;object-fit:contain;margin:14px auto 10px;border-radius:12px}.identity-name{font-size:24px;font-weight:800}.identity-faction{font-size:11px;letter-spacing:1.6px;margin-top:5px;color:var(--muted)}.identity-info{text-align:left;border-top:1px solid var(--line);margin-top:18px;padding-top:6px;font-size:13px;line-height:1.5}.identity-info h4{color:#c8aff0;margin:12px 0 4px;font-size:12px;text-transform:uppercase;letter-spacing:1px}.identity-info p{margin:5px 0 12px}.identity-info button{width:100%}.identity.faction-mafia{border-color:#754052}.identity.faction-town{border-color:#365774}.private-updates{max-height:160px;overflow:auto}.roster h3{font-size:16px;display:flex;justify-content:space-between}.roster .player{min-height:55px}.roster .player small{display:block;font-size:11px}.controls{padding-bottom:12px}.controls .grow{font-size:10px;letter-spacing:1px}
@media(max-width:1000px){.game{grid-template-columns:minmax(0,1fr) minmax(190px,32%);min-height:0}.identity{grid-column:2;grid-row:2}.main{grid-row:1 / 3}.identity-art{max-width:175px}.mode-choice{padding:18px;min-height:240px}.mode-choice b{font-size:24px}.main>.stage{min-height:260px}}
@media(max-width:600px){.welcome{padding:65px 15px 30px}.welcome-tools{right:12px;top:12px}.welcome-actions{grid-template-columns:1fr;max-width:350px;gap:10px}.welcome-actions button{min-height:50px}.welcome-logo{width:min(38vh,76vw)}.welcome-center h1{font-size:clamp(32px,9vw,52px)}.welcome-motto{gap:9px;letter-spacing:.25em}.mode-grid{grid-template-columns:1fr;gap:12px}.mode-choice{min-height:170px;gap:7px}.mode-symbol{font-size:32px}.home-intro{margin:24px 0}.test-setup{flex-wrap:wrap}.game{grid-template-columns:minmax(0,1fr) minmax(124px,39%);gap:6px}.main>.stage{padding:10px;min-height:230px}.identity{padding:8px}.identity-name{font-size:17px}.identity-info{font-size:11px}.identity-faction{letter-spacing:.3px}.identity .eyebrow{font-size:9px;letter-spacing:.8px}.announcement{padding:8px 4px}.announcement p{font-size:14px}.roster .player{min-height:45px}.roster h3{font-size:12px}.main>.panel:last-child{min-height:220px}.chat{height:200px;font-size:12px}.input{flex-wrap:wrap}.input input{width:100%}.input button{width:100%}}
/* v0.4 persistent artwork and player hub */
.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand span{white-space:nowrap}.header-logo{width:76px;height:76px;object-fit:contain;border-radius:12px;filter:drop-shadow(0 0 8px #8744d966);flex-shrink:0}.top{padding-top:0;padding-bottom:12px}.hub-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:1160px;margin:24px auto 0}.hub-link{display:flex;align-items:center;gap:14px;min-height:86px;padding:16px 18px;text-align:left;background:linear-gradient(145deg,#271c3d,#171124);border:1px solid #59417b;border-radius:14px}.hub-link.selected{border-color:#bb86ff;background:linear-gradient(145deg,#452768,#20142e)}.hub-icon{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;border-radius:10px;background:#a26bff1b;color:#d5b5ff;border:1px solid #8b60b84d}.hub-icon svg{width:24px;height:24px}.hub-label{display:flex;flex-direction:column;gap:5px;flex:1}.hub-label strong{font-size:17px}.hub-label small{color:var(--muted);font-size:12px}.hub-arrow{font-size:26px;color:#c8a5f6}.home-intro{margin:26px auto 22px}.mode-choice{min-height:245px}.hub-page{max-width:1160px;margin:auto;padding-bottom:40px}.hub-title{margin:25px 0}.hub-title h1{font-size:clamp(30px,4vw,44px);margin:6px 0}.hub-title>button{margin-bottom:20px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.guide-section{display:flex;gap:16px;line-height:1.6}.guide-section h3{margin:0 0 7px;color:#e7d8ff}.guide-section p{margin:0;color:#cfc0e1}.guide-num{font-size:22px;font-weight:800;color:#ba8df6}.role-library{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.library-card{display:flex;flex-direction:column;text-align:left;padding:8px;background:#1a1227;border-radius:14px;overflow:hidden}.library-card.mafia-card{border-color:#824052}.library-card.town-card{border-color:#385b85}.library-card img{width:100%;aspect-ratio:2/3;object-fit:contain;border-radius:8px;background:#100c1b}.library-caption{display:flex;flex-direction:column;gap:5px;padding:10px 5px}.library-caption strong{font-size:17px}.library-caption span{font-size:10px;letter-spacing:1.5px}.library-caption small{color:var(--muted)}.library-detail{position:relative;display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);align-items:center;gap:28px;width:min(780px,100%);max-height:90svh;overflow:auto;padding:30px;box-shadow:0 0 60px #743baf55}.library-detail img{width:100%;max-height:430px;object-fit:contain;border-radius:10px}.library-detail h2{font-size:34px;margin:8px 0 20px}.library-detail h3{font-size:15px;color:#d0adff;margin:15px 0 5px}.library-detail p{line-height:1.65;color:#dbd0e7;margin:0 0 12px}.close-library{position:absolute;right:10px;top:10px;font-size:24px;padding:0 10px;line-height:1.4}.leader-scroll{overflow:auto}.leader-table{border-collapse:collapse;width:100%;min-width:550px}.leader-table td,.leader-table th{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line)}.leader-table th{font-size:12px;text-transform:uppercase;color:#c1abd9}.leader-table .empty-leader{text-align:center;padding:32px;color:var(--muted)}.leader-tabs .grow{text-align:right}.tier-heading{margin:25px 0 12px}.tier-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.tier{display:flex;flex-direction:column;gap:7px}.tier small{color:var(--muted)}
@media(max-width:800px){.header-logo{width:58px;height:58px}.brand{gap:8px}.hub-nav{gap:8px}.hub-link{padding:10px;gap:8px;min-height:75px}.hub-label strong{font-size:14px}.hub-label small{display:none}.hub-icon{width:32px;height:32px}.hub-icon svg{width:20px;height:20px}.hub-arrow{display:none}.role-library{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-grid{grid-template-columns:1fr}}
@media(max-width:500px){.brand span{font-size:14px;letter-spacing:1px}.brand small{display:none}.top button{font-size:11px;padding:8px}.hub-link{flex-direction:column;justify-content:center;text-align:center}.hub-label strong{font-size:12px}.role-library{grid-template-columns:repeat(2,minmax(0,1fr))}.library-detail{grid-template-columns:1fr;gap:10px;padding:23px}.library-detail img{height:220px}.library-detail h2{font-size:25px}.tier-grid{grid-template-columns:repeat(2,1fr)}.leader-tabs .grow{text-align:left}.guide-section{gap:10px}}
/* v0.5: three-column home dashboard */
.dashboard-shell{max-width:1800px;padding:18px clamp(14px,2.2vw,38px);width:100%}.home-dashboard{display:grid;grid-template-columns:minmax(200px,240px) minmax(0,1fr) minmax(215px,255px);gap:clamp(12px,1.5vw,24px);align-items:start;margin-top:30px}.home-center{min-width:0}.home-center .home-intro{margin:4px 0 28px}.home-center .home-intro h1{font-size:clamp(28px,3vw,46px)}.home-center .mode-grid{gap:12px}.home-center .mode-choice{padding:clamp(14px,1.5vw,24px);min-height:270px}.home-center .mode-choice b{font-size:clamp(19px,1.7vw,28px);overflow-wrap:anywhere}.home-center .mode-description{font-size:14px}.home-center .mode-cta{font-size:13px}.home-center .test-setup{margin:18px 0 0}.player-profile,.home-resources{padding:20px 16px;background:linear-gradient(160deg,#231735,#141020 70%);border-radius:17px}.player-profile>.eyebrow,.home-resources>.eyebrow{font-size:10px;letter-spacing:1.8px;color:#c5a4ec}.profile-avatar{display:grid;place-items:center;width:84px;height:84px;margin:23px auto 12px;border-radius:50%;border:2px solid #ad77ef;box-shadow:0 0 22px #9d58ed38,inset 0 0 16px #bb86ff30;background:radial-gradient(circle at 35% 25%,#65478d,#251638 75%);color:#f0d8ff;font-size:35px;font-weight:800}.player-profile h2{text-align:center;font-size:22px;margin:0 0 7px;overflow-wrap:anywhere}.profile-status{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:12px}.profile-status i{width:7px;height:7px;border-radius:50%;background:#65d9ad;box-shadow:0 0 8px #65d9ad66}.profile-rank{display:flex;align-items:center;gap:12px;padding:14px 10px;background:#bb83ff0b;border:1px solid #694f854d;border-radius:11px;margin:22px 0 14px}.rank-emblem{display:grid;place-items:center;width:44px;height:44px;background:#ab775b18;border:1px solid #b88464;border-radius:10px;font-size:32px;color:#dca784;flex-shrink:0}.profile-rank div{display:flex;flex-direction:column;gap:3px;min-width:0}.profile-rank small{font-size:9px;color:var(--muted);letter-spacing:.7px}.profile-rank strong{font-size:17px;color:#e5b698}.profile-rank div span{font-size:12px;color:#d6c4eb}.profile-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-stat-grid>div{display:flex;flex-direction:column;gap:5px;text-align:center;padding:11px 5px;border-radius:9px;background:#120d20;border:1px solid #38294f}.profile-stat-grid strong{font-size:20px;font-variant-numeric:tabular-nums}.profile-stat-grid small{font-size:11px;color:var(--muted)}.profile-winrate{display:flex;justify-content:space-between;gap:10px;margin-top:20px;font-size:12px;color:#c7b4e0}.profile-progress{height:5px;border-radius:6px;background:#362747;overflow:hidden;margin-top:9px}.profile-progress span{display:block;height:100%;background:linear-gradient(90deg,#7445b6,#cc9cff)}.profile-note{color:var(--muted);font-size:11px;line-height:1.5;margin:16px 0 0}.home-resources .hub-nav{display:flex;flex-direction:column;gap:12px;margin:20px 0 0}.home-resources .hub-link{padding:14px 10px;gap:10px;min-height:91px;flex-direction:row;text-align:left;justify-content:flex-start;width:100%}.home-resources .hub-icon{width:37px;height:37px}.home-resources .hub-label strong{font-size:15px}.home-resources .hub-label small{font-size:11px;display:block;line-height:1.4}.home-resources .hub-arrow{display:block;font-size:22px}.dashboard-shell footer{margin:26px 0 0}.dashboard-shell .brand{min-width:0}.dashboard-shell .brand span{white-space:normal}
@media(max-width:1190px) and (min-width:851px){.home-dashboard{grid-template-columns:190px minmax(0,1fr) 205px;gap:12px}.home-center .mode-grid{grid-template-columns:1fr}.home-center .mode-choice{min-height:135px;gap:6px}.home-center .mode-symbol{font-size:30px}.home-center .mode-index{display:none}.home-center .mode-description{font-size:13px}.home-center .mode-cta{padding-top:8px}.home-center .mode-choice b{font-size:22px}}
@media(max-width:850px){.home-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:18px;gap:12px}.home-center{grid-column:1/-1;grid-row:2}.player-profile{grid-column:1;grid-row:1}.home-resources{grid-column:2;grid-row:1}.home-center .mode-choice{min-height:220px}.home-center .home-intro{margin:12px 0 20px}}
@media(max-width:540px){.home-dashboard{grid-template-columns:minmax(0,1fr)}.player-profile{grid-column:1;grid-row:1}.home-center{grid-column:1;grid-row:2}.home-resources{grid-column:1;grid-row:3}.profile-avatar{width:64px;height:64px;margin:12px auto;font-size:28px}.profile-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-rank{margin:12px 0}.home-center .mode-grid{grid-template-columns:1fr}.home-center .mode-choice{min-height:165px}.home-resources .hub-link{min-height:68px}.home-center .test-setup select{width:100%}}
/* v0.6 — MALGHOOM original metallic vector icon system */
.mg-emblem{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 4px #070510a0)}
.mode-symbol{display:grid;place-items:center;width:84px;height:84px;flex-shrink:0;position:relative;border-radius:22px;background:radial-gradient(ellipse at 45% 35%,#aa75ef29,transparent 72%),linear-gradient(145deg,#baa1ee13,#0d091e66);border:1px solid #b798e849;box-shadow:inset 0 0 18px #ab73ef10;transition:transform .2s,box-shadow .2s}
.mode-symbol .mg-emblem{width:63px;height:63px}.m1 .mode-symbol{background:radial-gradient(ellipse,#e8b96627,transparent 75%),#12182799;border-color:#d5b47755}.m2 .mode-symbol{background:radial-gradient(ellipse,#d480cf28,transparent 75%),#21122499;border-color:#e295d15c}.mode-choice:hover .mode-symbol{transform:translateY(-3px);box-shadow:0 0 25px #a773ed33}.mode-cta>span{display:flex;align-items:center}.mode-cta .ui-icon{width:18px;height:18px}
.home-resources .hub-icon,.hub-icon{width:48px;height:48px;background:radial-gradient(ellipse at 40% 30%,#a07bd229,#140e2355);border:1px solid #9471c44d;border-radius:13px;box-shadow:inset 0 0 10px #a982e012}.hub-icon .mg-emblem,.home-resources .hub-icon .mg-emblem{width:39px;height:39px}.hub-arrow .ui-icon{width:16px;height:16px;display:block}.home-resources .hub-link{gap:9px}.hub-label{min-width:0}.rank-emblem{width:50px;height:50px;border-color:#ba95634d;background:radial-gradient(ellipse,#c2975f25,#1d1329);border-radius:12px}.rank-emblem .mg-emblem{width:43px;height:43px}
.ui-icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle;display:inline-block}.welcome-actions button,.welcome-tools button,.top button,#back-menu{display:inline-flex;align-items:center;justify-content:center;gap:8px}.welcome-actions .ui-icon{width:24px;height:24px}.close-library .ui-icon{width:22px;height:22px}.home-center .mode-choice{min-height:290px}.mode-index{color:#b7a3d4}
@media(max-width:1190px) and (min-width:851px){.home-center .mode-choice{min-height:170px}.home-center .mode-symbol{width:52px;height:52px;border-radius:14px}.home-center .mode-symbol .mg-emblem{width:44px;height:44px}}
@media(max-width:850px){.home-center .mode-symbol{width:62px;height:62px}.home-center .mode-symbol .mg-emblem{width:50px;height:50px}.home-center .mode-choice{min-height:240px}.hub-icon,.home-resources .hub-icon{width:40px;height:40px}.hub-icon .mg-emblem,.home-resources .hub-icon .mg-emblem{width:32px;height:32px}}
@media(max-width:540px){.home-center .mode-choice{min-height:190px}.top .ui-icon{width:15px;height:15px}.top button{gap:4px}.welcome-actions .ui-icon{width:21px;height:21px}}
/* v0.7 — restrained, text-first navigation and game mode design */
body{background:radial-gradient(ellipse at 50% -20%,#382054 0%,#161025 44%,#0c0915 79%);}
.top{gap:24px;min-height:84px;padding:0 0 14px;flex-wrap:wrap}.brand{flex:0 0 auto;gap:12px;font-size:19px;letter-spacing:2px}.header-logo{width:64px;height:64px;border-radius:10px;filter:none}.brand span{white-space:nowrap}.brand small{display:block;font-size:11px;letter-spacing:1px;color:#bfa6e7;margin-top:4px}.top-nav{display:flex;align-items:center;gap:4px;flex:1;min-width:0}.top-nav button{position:relative;background:none;border:0;border-radius:0;padding:17px 14px;color:#b7accb;font-size:14px;font-weight:600;white-space:nowrap}.top-nav button.current{color:#f5eaff}.top-nav button.current:after{content:'';position:absolute;bottom:2px;left:14px;right:14px;height:2px;background:#c290ff;border-radius:2px;box-shadow:0 0 12px #b47cff66}.top-nav button:hover:not(:disabled){background:#b28af00c;color:#fff}.header-actions{display:flex;gap:8px;margin-left:auto}.header-actions button{background:#1c1529;border-color:#49385e;padding:10px 14px;font-size:13px}.header-actions button:hover{background:#332246}.dashboard-shell,.home-shell{max-width:1660px;width:100%;padding:22px clamp(16px,2.4vw,40px)}
.home-dashboard{gap:22px;grid-template-columns:minmax(190px,232px) minmax(0,1fr) minmax(180px,228px);margin-top:44px}.home-center .home-intro{margin:2px 0 26px;text-align:left}.home-center .home-intro h1{letter-spacing:-1.6px;font-weight:650;font-size:clamp(30px,3vw,46px);margin:10px 0}.home-center .home-intro p{font-size:14px}.home-center .mode-grid{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.home-center .mode-choice{isolation:isolate;min-height:264px;border-radius:14px;padding:22px 17px 17px;gap:10px;box-shadow:0 8px 30px #07050c22;justify-content:flex-start;border:1px solid #6c4c94;background:linear-gradient(155deg,#392351,#1a1329 80%);overflow:hidden}.home-center .mode-choice:before{content:'';position:absolute;z-index:-1;top:0;left:0;right:0;height:3px;background:var(--accent);opacity:.8}.home-center .mode-choice.m0{--accent:#c292ff}.home-center .mode-choice.m1{--accent:#c9a87e;border-color:#715e54;background:linear-gradient(155deg,#352c3c,#1a1525 80%)}.home-center .mode-choice.m2{--accent:#bc91e0;border-color:#624674;background:linear-gradient(155deg,#342442,#1a1328 80%)}.mode-kicker{color:var(--accent);font-size:10px;font-weight:700;letter-spacing:1.7px;margin:10px 0 18px}.home-center .mode-choice b{font-size:clamp(20px,1.8vw,29px);font-weight:700;letter-spacing:-.7px;line-height:1.15;overflow-wrap:normal}.home-center .mode-description{color:#c4b9d5;font-size:13px;line-height:1.55}.home-center .mode-cta{border:1px solid #ffffff26;background:#ffffff09;border-radius:7px;justify-content:center;padding:11px 5px;margin-top:auto;font-size:13px;font-weight:650;line-height:1.2;color:#f1e8ff}.home-center .mode-choice:hover{transform:translateY(-2px);border-color:var(--accent);background:linear-gradient(155deg,#422b5b,#21162f)}.home-center .mode-choice:hover .mode-cta{background:#c395ff25;border-color:#c395ff66}
.player-profile,.home-resources{background:#171121;border-color:#3c2d51;padding:18px 15px;border-radius:14px}.profile-rank{border:0;border-top:1px solid #473451;border-bottom:1px solid #473451;border-radius:0;background:none;padding:14px 2px}.profile-rank strong{font-size:23px;font-weight:600;color:#e3bb97}.profile-avatar{border:1px solid #9065c8;box-shadow:none;background:linear-gradient(145deg,#3a2655,#221831);font-weight:500}.home-resources .hub-link{min-height:86px;background:#21182f;box-shadow:none;border:1px solid #49365f;border-radius:9px;padding:15px;gap:0}.home-resources .hub-link:hover{background:#302142;border-color:#9c70cb}.hub-label strong{font-weight:650}.home-resources .hub-label small{font-size:12px}.home-resources .hub-nav{margin-top:18px;gap:10px}.welcome-actions button{font-weight:650;letter-spacing:.2px}.close-library{font-size:13px;padding:6px 10px}.hub-title>button{font-size:13px}.hub-title{margin-top:32px}
@media(max-width:1220px){.top{gap:12px}.top-nav button{padding:14px 10px}.brand{font-size:17px}.header-logo{width:52px;height:52px}.home-dashboard{grid-template-columns:180px minmax(0,1fr) 185px;gap:14px}.home-center .mode-grid{grid-template-columns:1fr}.home-center .mode-choice{min-height:140px;gap:6px;padding:17px}.mode-kicker{margin:0}.home-center .mode-cta{width:auto;min-width:120px;align-self:flex-end;margin-top:0}.home-center .mode-choice b{font-size:25px}}
@media(max-width:900px){.site-header .top-nav{order:3;flex:1 0 100%;overflow-x:auto;justify-content:flex-start;gap:5px}.top-nav button{padding:12px 14px}.home-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:24px}.home-center{grid-column:1/-1;grid-row:1}.player-profile{grid-column:1;grid-row:2}.home-resources{grid-column:2;grid-row:2}.home-center .mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-center .mode-choice{min-height:200px}.home-center .mode-cta{width:100%;min-width:0;margin-top:auto}.dashboard-shell,.home-shell{padding:14px}.home-center .home-intro{text-align:left}.brand span{white-space:normal}}
@media(max-width:540px){.site-header .top-nav{gap:0}.top-nav button{font-size:12px;padding:12px 10px}.header-actions button{padding:7px 8px;font-size:11px}.header-logo{width:44px;height:44px}.brand{font-size:14px;letter-spacing:1px;gap:7px}.home-dashboard{grid-template-columns:minmax(0,1fr)}.home-center{grid-row:1;grid-column:1}.player-profile{grid-row:2;grid-column:1}.home-resources{grid-row:3;grid-column:1}.home-center .mode-grid{grid-template-columns:1fr}.home-center .mode-choice{min-height:152px}.home-center .mode-cta{width:auto;padding:9px 17px;align-self:flex-end;margin-top:4px}.home-resources .hub-link{min-height:66px}.hub-title{margin-top:20px}}
/* v0.8 */
button.brand-link{background:transparent;border:0;padding:0;text-align:left;justify-content:flex-start;color:inherit}button.brand-link:hover:not(:disabled){background:#b58aff0b;border-color:transparent}.header-actions,.welcome-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.volume-control{display:flex;align-items:center;gap:6px;font-size:12px;color:#c5b8d8;padding:6px 9px;border:1px solid #49385e;border-radius:8px;background:#1c1529}.volume-control input{width:85px;accent-color:#b48aff;padding:0;cursor:pointer}.volume-control output{min-width:32px;font-variant-numeric:tabular-nums}.header-actions .leave-btn{border-color:#76506a;color:#ffc0cd}.match-header .header-actions{flex:1;justify-content:flex-end}.match-header{gap:12px}.match-meta{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 17px;border:1px solid #48355f;border-radius:10px;background:linear-gradient(90deg,#241735,#171223)}.match-meta strong{display:block;font-size:19px;margin-top:3px}.match-meta strong span{font-size:12px;font-weight:400}.phase-strip{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.phase-strip span{font-size:11px;color:#a99cbd;padding:7px 10px;border-bottom:2px solid #48365e}.phase-strip span.current{color:#f2e7ff;background:#a576e51a;border-color:#bf93ff;font-weight:700}.game{min-height:calc(100svh - 225px);grid-template-columns:minmax(0,1fr) minmax(220px,275px) minmax(235px,300px)}.game .main>.stage{flex:0 0 auto;min-height:300px;justify-content:flex-start;padding:20px}.game .stage .clock{font-size:64px;margin:10px 0}.stage .track{width:85%;flex-shrink:0}.game .announcement{min-height:85px;margin:14px auto 7px}.phase-hint{color:#b6a6cc;font-size:13px;line-height:1.5;margin:10px auto 0;max-width:540px}.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}.chat-heading h3{font-size:16px;margin:0 0 3px}.chat-heading .small{font-size:12px}.chat-status{font-size:11px;color:#c5b8d8;border:1px solid #4a395e;padding:5px 8px;border-radius:6px}.chat-panel .chat{max-height:unset;min-height:190px;overflow:auto}.empty-chat{color:#9889af;font-size:13px;padding:24px 8px;text-align:center}.game .roster h3{font-size:17px;padding-bottom:10px;border-bottom:1px solid #48365e}.game .roster .player{min-height:56px}.game .identity-info{line-height:1.5}.game .identity-info h4{margin:12px 0 5px}.game .identity-info p{margin:0 0 8px;font-size:13px}.mg-dialog{color:#f3edff;background:linear-gradient(145deg,#291c3c,#171123);border:1px solid #79569e;border-radius:15px;padding:26px;width:min(460px,calc(100vw - 28px));max-height:90vh;overflow:auto;box-shadow:0 20px 100px #0009}.mg-dialog::backdrop{background:#090610bd;backdrop-filter:blur(3px)}.mg-dialog h2{margin:12px 0}.mg-dialog p{color:#c5b8d8;line-height:1.6}.mg-dialog label{display:grid;gap:7px;margin:14px 0;font-size:13px;color:#d8cbe9}.mg-dialog textarea,.mg-dialog select{width:100%;font:inherit;color:inherit;background:#1a1229;border:1px solid #60477a;border-radius:8px;padding:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.guide-intro{padding:25px;margin-bottom:18px;background:linear-gradient(135deg,#2b1d40,#171222)}.guide-intro h2{font-size:clamp(24px,3vw,34px);margin:12px 0}.guide-intro p,.guide-section p{line-height:1.7;color:#c9bedb}.guide-factions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.guide-factions>div{border:1px solid #514166;background:#160f24;padding:16px;border-radius:10px}.guide-factions p{margin-bottom:0}.guide-jump{display:flex;flex-wrap:wrap;gap:8px}.guide-jump a{font-size:12px;color:#dcc2ff;padding:8px 11px;border:1px solid #574272;border-radius:6px;text-decoration:none}.guide-jump a:hover{background:#3d2858}.guide-section{scroll-margin-top:16px;align-items:flex-start}.guide-section h4{font-size:13px;color:#d6b7ff;margin:16px 0 3px}.guide-section h4+p{margin-top:5px}.guide-grid{align-items:start}.guide-section>div{min-width:0}.welcome-tools{justify-content:flex-end}
@media(max-width:1100px){.game{grid-template-columns:minmax(0,1fr) minmax(190px,230px) minmax(200px,245px);gap:10px}.game .identity{padding:12px}.phase-strip span{padding:6px;font-size:10px}.site-header .top-nav{order:3;flex:1 0 100%}}
@media(max-width:850px){.game{grid-template-columns:minmax(0,1fr) minmax(145px,39%)}.game .identity{grid-column:1/-1;display:grid;grid-template-columns:minmax(100px,160px) 1fr;gap:8px;text-align:left;align-items:start}.game .identity .eyebrow{grid-column:1/-1}.game .identity .identity-art{grid-column:1;grid-row:2/6}.game .identity-info{grid-column:2}.match-meta{flex-wrap:wrap;gap:8px}.phase-strip{justify-content:flex-start}.game .main>.stage{padding:12px}.match-header .header-actions{flex:1 0 100%;justify-content:flex-start}.welcome-tools{top:12px;right:12px;left:12px}.volume-control input{width:70px}.game .roster .player{min-height:47px}.game .stage .clock{font-size:46px}.guide-factions{grid-template-columns:1fr}}
@media(max-width:480px){.match-meta{padding:9px}.phase-strip{gap:2px}.phase-strip span{padding:5px;font-size:9px}.header-actions button,.welcome-tools button{padding:7px 8px;font-size:11px}.volume-control{padding:5px;font-size:11px}.volume-control input{width:60px}.game .main>.stage{min-height:280px}.chat-heading{flex-wrap:wrap}.game .stage h2{font-size:18px}.guide-intro{padding:15px}.mg-dialog{padding:18px}}

/* v0.9 — split communication timeline */
.communication-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px;flex:1;min-width:0;align-items:stretch}
.communication-grid>.panel{display:flex;flex-direction:column;min-width:0;padding:14px;min-height:330px}
.communication-grid .chat-heading{min-height:42px;align-items:flex-start;margin:0 0 12px;flex-wrap:wrap;gap:5px}
.communication-grid .chat-heading h3{font-size:17px;letter-spacing:-.3px}
.communication-grid .chat-heading .small{font-size:11px}
.communication-grid .chat-status{font-size:10px;white-space:nowrap}
.communication-grid .row button{font-size:12px;padding:6px 10px}
.communication-grid .chat,.communication-grid .log-feed{height:clamp(230px,32vh,360px);min-height:210px;max-height:360px;flex:1 1 auto;overflow:auto;scrollbar-width:thin;scrollbar-color:#684a8e #1b142b;margin:8px 0 10px;padding-right:5px;line-height:1.55}
.game-log-panel{background:linear-gradient(145deg,#181222,#100d1a)}
.day-divider{display:flex;align-items:center;gap:9px;margin:15px 0 8px;color:#d5b4ff;font-size:10px;letter-spacing:1.8px;font-weight:750;white-space:nowrap}
.day-divider:before,.day-divider:after{content:'';height:1px;background:#624880;flex:1}
.day-divider:first-child{margin-top:5px}.night-divider{color:#8f9bc6;font-size:10px;letter-spacing:1.3px;margin:12px 0 5px}
.event-entry{border-left:2px solid #76539c;padding:7px 0 7px 9px;margin:6px 0;color:#cbbddd;font-size:12px;overflow-wrap:anywhere;background:linear-gradient(90deg,#63478b15,transparent)}
.player-message{padding:8px 2px;font-size:13px}.player-message strong{display:block;color:#ceb6ef;font-size:11px;margin-bottom:3px}.player-message strong.own-name{color:#91d2ff}.player-message span{color:#f0e9fa}.communication-grid .empty-chat{font-size:12px;padding:12px 3px}.communication-grid .input button{font-size:12px;padding:9px}.communication-grid .input input{font-size:12px;padding:9px}
@media(min-width:1101px){.game{grid-template-columns:minmax(0,1fr) minmax(190px,240px) minmax(205px,255px)}}
@media(max-width:1000px){.communication-grid{grid-template-columns:minmax(0,1fr)}.communication-grid>.panel{min-height:220px}.communication-grid .chat,.communication-grid .log-feed{height:230px;min-height:130px;max-height:300px}}
@media(max-width:600px){.communication-grid>.panel{padding:9px}.communication-grid .chat-heading h3{font-size:14px}.communication-grid .chat-heading .small{font-size:10px}.communication-grid .chat,.communication-grid .log-feed{height:190px}.communication-grid .day-divider{font-size:9px;gap:5px}.communication-grid .event-entry{font-size:11px}}
/* v0.10 player hub */
.top.site-header{flex-wrap:wrap;gap:12px}.site-header .top-nav{flex:1;display:flex;flex-wrap:wrap;gap:3px}.site-header .top-nav button{font-size:13px;padding:8px 10px}.header-actions{flex-wrap:wrap}.wallet-top{color:#f0d39a;font-weight:750;white-space:nowrap;background:#30243a}.wallet-top small{font-size:9px;letter-spacing:1px}.wide{width:100%}.profile-wallet{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:15px;padding:12px 0;color:#f2d49d}.profile-wallet strong{font-size:25px}.profile-level{color:#cbb4ee;font-size:12px;margin-bottom:10px}.player-profile .wide{margin:4px 0}.custom-avatar{overflow:hidden;display:grid;place-items:center;aspect-ratio:1;border:4px solid #544367;background:radial-gradient(circle,#573b7d,#1c152e);box-shadow:0 0 0 3px #211a32;color:#f3dfff;font-weight:800}.custom-avatar img{width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block}.frame-violet{border-color:#bd85ff;box-shadow:0 0 0 3px #59358e,0 0 19px #9c58e688}.frame-gold{border-color:#edcf81;box-shadow:0 0 0 3px #7f542b,0 0 20px #e2b35765}.frame-ice{border-color:#a0e3ff;box-shadow:0 0 0 3px #397f9a,0 0 20px #70c4ff65}.frame-crimson{border-color:#fc809b;box-shadow:0 0 0 3px #87384a,0 0 20px #ee567f55}.frame-obsidian{border-color:#b1a9c8;box-shadow:0 0 0 3px #393342,0 0 20px #b0a3d655}.home-economy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.reward-tile{display:flex;flex-direction:column;gap:9px;padding:16px}.reward-tile strong{font-size:19px}.reward-tile small{color:var(--muted);font-size:12px;flex:1}.reward-tile button{font-size:12px;margin-top:8px}.account-page{max-width:1200px;margin:auto}.account-page>.panel,.account-page>.reward-grid,.account-page>.profile-editor-grid{margin-bottom:18px}.profile-editor-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:16px}.profile-preview{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:radial-gradient(ellipse at 50% 22%,#52307755,transparent 70%),#181123}.large-avatar{width:160px;height:160px;border-radius:50%;font-size:58px;margin:18px auto}.profile-preview h2{margin:0}.profile-title-display{font-size:14px;letter-spacing:2px;color:#e1c389;text-transform:uppercase}.profile-preview .row span{font-size:12px;border:1px solid var(--line);border-radius:6px;padding:7px}.profile-editor h3{margin-top:24px}.upload-photo{display:block;padding:16px;border:1px dashed #765599;background:#22182e;border-radius:8px;margin:14px 0;font-weight:700}.upload-photo input{display:block;width:100%;margin-top:10px;padding:7px;font-size:12px}.owned-grid{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}.owned-grid button{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:100px;font-size:12px}.owned-grid .cosmetic-photo{height:80px;width:80px}.owned-grid .cosmetic-frame{height:60px;width:60px;font-size:24px}.store-banner,.wallet-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:radial-gradient(ellipse at 10% 0,#58358255,transparent 65%),#181123}.store-banner h2,.wallet-hero p{margin:8px 0}.store-filters{margin:18px 0}.cosmetic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.cosmetic-item{text-align:center;display:flex;flex-direction:column;align-items:stretch;gap:10px}.cosmetic-visual{display:grid;place-items:center;min-height:150px;background:radial-gradient(ellipse,#3e285a,#171222);border:1px solid #423050;border-radius:10px;padding:12px}.cosmetic-photo{height:130px;width:130px;object-fit:cover;object-position:top;border-radius:8px;max-width:100%}.cosmetic-frame{border-radius:50%;height:90px;width:90px;font-size:34px}.title-preview{color:#e4c58d;text-transform:uppercase;letter-spacing:2px;font-weight:700;font-size:13px}.cosmetic-item h3{margin:0;font-size:17px}.cosmetic-item button{margin-top:auto}.token-total{font-size:58px;font-weight:800;color:#f0d096;font-variant-numeric:tabular-nums}.token-total small{font-size:14px;letter-spacing:3px}.reward-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.reward-box h2{margin:12px 0 6px}.reward-box button{margin-top:8px}.pack-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}.token-pack{display:flex;flex-direction:column;gap:12px;text-align:center}.token-pack strong{font-size:32px;color:#f0d096}.token-pack button{font-size:12px}.wallet-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);gap:15px}.wallet-row:last-child{border:0}.wallet-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.ad-preview{width:120px;border-radius:12px;display:block;margin:12px auto}.mg-dialog progress{width:100%;accent-color:#a86bf8}.mic-live{color:#b7fbd0;border-color:#60bc86;background:#1b4934}.settings-panel h3{margin-top:24px}.account-page .hub-title{margin-bottom:24px}
@media(max-width:1150px){.home-economy{grid-template-columns:1fr 1fr}.cosmetic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.profile-editor-grid,.reward-grid{grid-template-columns:1fr}.home-economy{grid-template-columns:1fr}.cosmetic-grid,.pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cosmetic-item{padding:12px}.cosmetic-visual{min-height:115px}.cosmetic-photo{width:95px;height:95px}.token-total{font-size:44px}.site-header .top-nav{order:3;flex-basis:100%}.site-header .top-nav button{font-size:12px;padding:7px 9px}.account-page{padding:0 2px}}

/* Match HUD — compact arena inspired by approved original mockup. */
.match-shell{max-width:1800px;padding:12px 22px;background:radial-gradient(ellipse at 48% 15%,#1b183b 0,transparent 55%),linear-gradient(145deg,#110b22,#080b17 75%);min-height:100svh}
.match-shell .match-header{min-height:56px;padding:0 0 10px;gap:10px;border-color:#302848}
.match-shell .brand-link{gap:9px;font-size:16px;letter-spacing:2px}.match-shell .header-logo{width:46px;height:46px;border-radius:10px}.match-shell .brand-link small{font-size:11px}
.match-shell .header-actions{gap:6px}.match-shell .header-actions button{border-radius:7px;background:#19172c;border-color:#39314f;padding:8px 10px;font-size:12px}.match-shell .header-actions .leave-btn{background:#35172b;border-color:#803b5e}.match-shell .header-actions .mic-live{background:#153b2a;border-color:#4a9c70}
.match-shell .match-meta{margin:10px 0;padding:9px 13px;gap:16px;border-radius:9px;background:#141427;border-color:#35304c}.match-shell .match-meta>div:first-child{min-width:145px}.match-timing{display:flex;align-items:center;gap:14px;justify-content:center;flex:1;min-width:0}.match-timing>strong{font-size:15px;color:#f0e6ff;text-align:center}.hud-timer{display:flex;align-items:center;gap:10px;padding:5px 9px;border:1px solid #7950ae;border-radius:8px;background:#241a3b;box-shadow:0 0 13px #9654dd20}.hud-timer span{font-weight:800;font-size:24px;color:#e4c5ff;min-width:32px;text-align:center;font-variant-numeric:tabular-nums}.hud-timer .track{width:74px;height:4px;margin:0}.match-shell .phase-strip span{font-size:10px;padding:5px 7px}
.match-shell .game{margin-top:0;gap:10px;min-height:0}.match-shell .panel{border-color:#35304f;border-radius:10px;background:linear-gradient(145deg,#15162d,#101121);box-shadow:inset 0 1px 0 #c8b9ff09}.match-shell .stage{isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#161633,#101326 60%,#17112e);border:1px solid #494268;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.match-shell .stage:before,.match-shell .stage:after{content:'';position:absolute;z-index:-1;pointer-events:none;transform:skewX(-25deg)}.match-shell .stage:before{left:-12%;top:0;width:32%;height:100%;background:linear-gradient(150deg,#5d3d9e30,transparent 70%);border-right:1px solid #8a62d315}.match-shell .stage:after{right:-17%;bottom:0;width:36%;height:100%;background:linear-gradient(0deg,#823bd840,transparent 65%);border-left:1px solid #b08cf52b}.match-shell .stage.night{background:linear-gradient(145deg,#111c35,#0b1224 70%,#15112d)}.stage-mark{width:82px;height:62px;color:#9885d6;opacity:.24;margin:12px auto 8px}.stage-mark svg{width:100%;height:100%}.match-shell .stage .sub{font-size:10px;letter-spacing:2px;color:#a9a2c8}.match-shell .stage h2{font-size:clamp(20px,2vw,31px);margin:8px 0;color:#f3efff}.match-shell .announcement{max-width:90%;min-height:0;padding:16px 12px;margin:8px auto;border-color:#795ca34d;background:linear-gradient(90deg,transparent,#4d367933,transparent)}.match-shell .announcement p{font-size:clamp(15px,1.35vw,20px);line-height:1.4;margin:6px 0}.match-shell .phase-hint{font-size:12px;margin:12px 0 0;color:#9f9ab9}
.match-shell .game-log-panel{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:linear-gradient(150deg,#1e1738,#101120 48%);overflow:hidden;padding:12px}.log-brand{flex:none;text-align:center;border-bottom:1px solid #41365b;padding:4px 0 14px;margin-bottom:14px}.log-brand img{width:min(100%,130px);display:block;margin:0 auto 7px;border-radius:12px;box-shadow:0 0 35px #7b37d328}.log-brand div{font-size:9px;font-weight:700;letter-spacing:2px;color:#ba9deb}.match-shell .chat-heading{margin:0 0 6px;min-height:0;gap:5px}.match-shell .chat-heading h3,.match-shell .roster h3{font-size:14px;margin:0}.match-shell .chat-heading .small{font-size:10px}.match-shell .chat-status{font-size:10px}.match-shell .event-entry{font-size:11.5px;padding:6px 0 6px 7px}.match-shell .chat-panel{display:flex;flex-direction:column;min-height:0;padding:12px}.match-shell .chat-panel .row button{font-size:11px;padding:5px 10px}.match-shell .log-feed,.match-shell .chat-panel .chat{flex:1;min-height:0;max-height:none;height:auto;overflow:auto;margin:5px 0}.match-shell .input{margin:5px 0 0}.match-shell .input input{min-width:0;flex:1;background:#0d0f1e;border-color:#39334f}.match-shell .input button{background:#422767;border-color:#7555a3}.match-shell .player-message{padding:6px 0;font-size:12px}.match-shell .player-message strong{display:inline;margin-right:8px;font-size:11px}.match-right{display:flex;flex-direction:column;gap:10px;min-height:0;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#51436e #111322}.match-shell .roster{padding:11px;flex:none;min-height:0}.match-shell .roster h3{padding:0 0 9px;border-bottom:1px solid #35304f}.match-shell .roster .player{min-height:32px;padding:5px 4px;gap:5px;border:1px solid #302c46;border-radius:5px;margin:4px 0;background:#111323;font-size:12px}.match-shell .roster .player.active{border:1px solid #ab79fa;background:linear-gradient(90deg,#452469,#211736);box-shadow:0 0 10px #a660f52e}.match-shell .roster .player .num{font-size:10px;width:18px;min-width:18px;color:#aaa3c6}.match-shell .roster .player small{font-size:9px;line-height:1.15}.match-shell .roster .player button{font-size:10px;padding:4px 6px}.match-shell .identity{padding:11px;flex:1;min-height:0;text-align:left;overflow:visible;display:block}.match-shell .identity-art{max-width:130px;width:75%;margin:10px auto 6px;object-fit:contain}.match-shell .identity-name{text-align:center;font-size:20px}.match-shell .identity-faction{text-align:center;font-size:10px}.match-shell .identity-info h4{font-size:11px;margin:9px 0 4px;color:#c9b9ec}.match-shell .identity-info p{font-size:11px;line-height:1.4}.match-shell .controls{margin:8px 0 0;padding:0;font-size:11px}.match-shell .controls button,.match-shell .controls select{padding:5px 8px;font-size:11px}
@media(min-width:1000px){.match-shell .game{height:calc(100svh - 182px);min-height:570px;grid-template-columns:minmax(180px, .8fr) minmax(340px, 2.65fr) minmax(220px, 1.05fr);grid-template-rows:minmax(280px,1.6fr) minmax(200px,1fr);grid-template-areas:'events stage right' 'events chat right';align-items:stretch}.match-shell .main,.match-shell .communication-grid{display:contents}.match-shell .game-log-panel{grid-area:events;min-height:0}.match-shell .main>.stage{grid-area:stage;min-height:0;padding:16px;justify-content:center}.match-shell .chat-panel{grid-area:chat;min-height:0}.match-right{grid-area:right}.match-shell .identity{min-height:300px;flex:none}.match-shell .phase-strip{max-width:370px}}
@media(max-width:999px){.match-shell{padding:9px}.match-shell .game{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px, 32%);height:auto}.match-shell .main{display:flex;grid-column:1;grid-row:1}.match-shell .communication-grid{display:flex;flex-direction:column}.match-shell .game-log-panel{min-height:200px;max-height:270px}.log-brand{display:none}.match-shell .chat-panel{min-height:250px;max-height:380px}.match-shell .main>.stage{min-height:260px;justify-content:center}.match-right{grid-column:2;grid-row:1;overflow:visible}.match-shell .match-meta{flex-wrap:wrap}.match-timing{justify-content:flex-end}.match-shell .phase-strip{width:100%}.match-shell .stage h2{font-size:19px}.match-shell .announcement p{font-size:14px}}
@media(max-width:540px){.match-shell .game{grid-template-columns:1fr}.match-shell .main{grid-column:1;grid-row:auto}.match-right{grid-column:1;grid-row:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px}.match-shell .roster .player{flex-wrap:wrap}.match-shell .identity-art{max-width:110px}.match-shell .brand-link{font-size:14px}.match-shell .header-actions{justify-content:flex-start}.match-shell .match-meta>div:first-child{min-width:0}.match-timing{flex-wrap:wrap;justify-content:center;gap:5px}.match-shell .phase-strip{display:none}}
@media(min-width:1000px){.match-shell .roster .player{min-height:29px;margin:3px 0;padding:4px}.match-shell .roster .player .grow small:empty{display:none}.match-shell .identity{display:grid;grid-template-columns: minmax(85px,108px) minmax(0,1fr);column-gap:10px;align-items:start;min-height:220px}.match-shell .identity>.eyebrow{grid-column:1/-1;margin-bottom:10px}.match-shell .identity .identity-art{grid-column:1;grid-row:2;width:100%;margin:0;max-width:108px}.match-shell .identity-name{grid-column:1;grid-row:3;font-size:15px;margin:5px 0 0}.match-shell .identity-faction{grid-column:1;grid-row:4;font-size:9px;margin:5px 0}.match-shell .identity-info{grid-column:2;grid-row:2/6;border-top:0;padding:0;margin:0}.match-shell .identity-info h4:first-child{margin-top:0}.match-shell .identity-info p{overflow-wrap:anywhere}.match-shell .identity-info button{font-size:11px;padding:6px}.match-shell .private-updates{max-height:180px;overflow:auto}}
/* v0.11 — dimensional game-client theme */
body:has(.home-shell){background:#100c20 url('assets/night-city.svg') center/cover fixed no-repeat}.home-shell{position:relative;isolation:isolate;min-height:100svh;max-width:1840px;padding:16px clamp(14px,2.2vw,36px)}.home-shell:before{content:'';position:fixed;inset:0;z-index:-2;background:linear-gradient(180deg,#090a1980,#100b2370 55%,#080a15cc);pointer-events:none}.home-shell:after{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.5;background-image:radial-gradient(circle,#dfb6ff 0 1px,transparent 2px),radial-gradient(circle,#a691ff 0 1px,transparent 2px);background-size:157px 197px,263px 173px;background-position:0 0,80px 90px;animation:nightdrift 32s linear infinite;mask-image:linear-gradient(black,transparent 80%)}@keyframes nightdrift{to{background-position:157px -197px,343px -83px}}
.home-shell .top.site-header{background:linear-gradient(180deg,#302344e8,#17152bdc);border:1px solid #665082;border-bottom:3px solid #100e20;box-shadow:0 8px 25px #05040d80,inset 0 1px 0 #c5adff28;border-radius:16px;padding:10px 14px;gap:13px}.home-shell .header-logo{width:54px;height:54px}.home-shell .brand-link{font-size:18px;letter-spacing:2px}.home-shell .top-nav button{border:1px solid transparent;border-radius:8px;color:#c9c0dc;font-weight:750;white-space:nowrap}.home-shell .top-nav button.current{background:linear-gradient(#6b40a5,#39245b);border-color:#a57adf;box-shadow:inset 0 1px 0 #ffffff30,0 3px 0 #21142e;color:#fff}.home-shell .header-actions button{font-size:12px}.home-shell .wallet-top{background:linear-gradient(#5b421d,#302317);border-color:#a9844f;color:#ffe3a3;box-shadow:0 3px 0 #130c0a}
.home-shell .primary,.home-shell .reward-tile button,.home-shell .cosmetic-item button,.home-shell .token-pack button,.home-shell .side-rewards button{background:linear-gradient(180deg,#a565ef,#7240bd 45%,#542b95);border:1px solid #c5a0f5;border-bottom:3px solid #3b1c6b;color:#fff;box-shadow:inset 0 1px 0 #ffffff47,0 4px 0 #160e2b,0 8px 16px #05030e55;font-weight:800;text-shadow:0 1px 2px #170a39;border-radius:9px}.home-shell .primary:hover:not(:disabled){filter:brightness(1.15)}.home-shell button:active:not(:disabled){transform:translateY(2px)}.home-shell .panel{background:linear-gradient(150deg,#302341ee,#151426f5 65%);border:1px solid #72548c;border-bottom:3px solid #100c1d;box-shadow:inset 0 1px 0 #bfa2e22b,0 8px 26px #05040f68;border-radius:14px}
.dashboard-shell .home-dashboard{margin:22px 0 0;gap:18px;grid-template-columns:minmax(190px,224px) minmax(0,1fr) minmax(180px,215px);align-items:start}.dashboard-shell .player-profile,.dashboard-shell .home-resources{align-self:stretch;padding:20px 15px}.dashboard-shell .player-profile .profile-avatar{width:88px;height:88px;font-size:32px;margin:14px auto;border-width:4px}.dashboard-shell .profile-rank{background:linear-gradient(135deg,#4b354e,#201a2e);border:1px solid #95775c;border-radius:9px;padding:13px;margin:14px 0;color:#f5d5a1}.dashboard-shell .profile-stat-grid{gap:8px}.dashboard-shell .profile-stat-grid>div{background:#100e2190;border:1px solid #5b46774d;border-radius:7px;padding:9px 4px}.dashboard-shell .profile-level{margin-bottom:4px}.xp-meter{height:8px;border-radius:6px;background:#0e1021;border:1px solid #59436f;margin:0 0 16px;overflow:hidden}.xp-meter i{display:block;height:100%;background:linear-gradient(90deg,#8d54d9,#b9dbff);box-shadow:0 0 10px #a16bff}.dashboard-shell .profile-wallet{margin-top:13px}.dashboard-shell .profile-note{font-size:10px}
.lobby-hero{min-height:230px;position:relative;isolation:isolate;overflow:hidden;border-radius:16px;border:1px solid #9b6fca;border-bottom:3px solid #3d235f;background:#1b1231 url('assets/night-city.svg') center 53%/cover;box-shadow:0 10px 30px #07040e80,inset 0 1px 0 #ffffff24;display:flex;align-items:center;padding:28px clamp(18px,3vw,38px)}.lobby-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#130f25f5,#25143edb 37%,#351a6077 68%,#100c2a15)}.hero-copy{position:relative;z-index:2;max-width:70%}.hero-copy .eyebrow{color:#d0afea;letter-spacing:2px}.hero-copy h1{font-size:clamp(28px,3.6vw,53px);line-height:.98;letter-spacing:-1.8px;margin:15px 0 10px;font-weight:950;text-shadow:0 3px 0 #312048,0 0 24px #c190ff55}.hero-copy p{font-size:14px;color:#d9c8e7;margin:10px 0 16px}.hero-tag{font-size:10px;font-weight:800;letter-spacing:3px;color:#e9d0ff;border-left:2px solid #d3a1ff;padding-left:9px}.hero-art{position:absolute;right:-3%;top:-15%;width:50%;height:130%;z-index:0;background:url('assets/logo.webp') center/contain no-repeat;mask-image:radial-gradient(ellipse at center,#000 44%,#000b 60%,transparent 78%);filter:drop-shadow(0 0 18px #ac50ff);opacity:.9}.section-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 10px;gap:8px}.section-head h2{margin:0;font-size:21px;letter-spacing:-.5px}.section-head span{font-size:9px;letter-spacing:1.6px;color:#c8b6de}
.dashboard-shell .mode-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-shell .mode-choice{position:relative;isolation:isolate;overflow:hidden;min-height:190px;border:1px solid var(--edge);border-bottom:5px solid var(--base);border-radius:13px;padding:16px 13px 12px;gap:7px;background:linear-gradient(150deg,var(--light),var(--mid) 46%,var(--dark));box-shadow:inset 0 1px 0 #fff5,0 5px 0 #0b0916,0 9px 22px #0006;text-shadow:0 2px 2px #110a2e}.dashboard-shell .mode-choice:before{width:60%;height:140%;left:55%;top:-30%;right:auto;opacity:.16;transform:rotate(25deg);background:linear-gradient(90deg,transparent,#fff8,transparent);z-index:-1;border:1px solid #ffffff30}.dashboard-shell .mode-choice:after{content:'';position:absolute;inset:5px;border:1px solid #ffffff19;border-radius:8px;pointer-events:none;z-index:-1}.dashboard-shell .mode-choice.m0{--light:#7847be;--mid:#513189;--dark:#271c50;--edge:#bc90fc;--base:#382063;--accent:#d8b6ff}.dashboard-shell .mode-choice.m1{--light:#325f9e;--mid:#223d74;--dark:#162846;--edge:#83baff;--base:#15294e;--accent:#bee2ff}.dashboard-shell .mode-choice.m2{--light:#805b38;--mid:#553548;--dark:#30213f;--edge:#e1b976;--base:#3f2536;--accent:#ffdfa4}.dashboard-shell .mode-choice b{font-size:clamp(17px,1.8vw,28px);font-weight:900;letter-spacing:-.6px}.dashboard-shell .mode-kicker{color:var(--accent);font-weight:800;font-size:9px;letter-spacing:1.6px}.dashboard-shell .mode-description{font-size:12px;line-height:1.45;color:#f1eafa;text-shadow:none}.dashboard-shell .mode-choice .mode-cta{width:100%;margin-top:auto;padding:10px 3px;border:1px solid #ffffff59;border-bottom:3px solid #0005;background:linear-gradient(#ffffff32,#ffffff0b);border-radius:7px;font-size:13px;font-weight:850;box-shadow:inset 0 1px 0 #ffffff30}.dashboard-shell .mode-choice:hover{background:linear-gradient(150deg,var(--light),var(--mid) 46%,var(--dark));filter:brightness(1.15);transform:translateY(-3px)}.dashboard-shell .mode-choice:active{transform:translateY(3px)}
.dashboard-shell .test-setup{margin:18px 0 0;padding:12px 14px}.dashboard-shell .home-economy{margin-top:14px;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-shell .reward-tile{padding:13px;min-height:132px;gap:7px}.dashboard-shell .reward-tile strong{font-size:17px}.dashboard-shell .reward-tile small{font-size:11px}.dashboard-shell .reward-tile button{padding:8px 5px;font-size:11px}.dashboard-shell .home-resources .hub-link{background:linear-gradient(#49345e,#261c39);border:1px solid #8c6aae;border-bottom:3px solid #20122f;border-radius:9px;min-height:73px;box-shadow:0 4px 0 #100c1c,inset 0 1px 0 #ffffff19;padding:13px 11px}.dashboard-shell .home-resources .hub-label strong{font-size:16px;font-weight:850}.dashboard-shell .home-resources .hub-label small{color:#ccbddd;font-size:11px}.side-rewards{display:flex;flex-direction:column;align-items:center;text-align:center;gap:11px;padding:20px 8px 8px;margin-top:24px;border-top:1px solid #795591}.side-rewards button{width:100%;font-size:12px}.reward-coin{height:66px;width:66px;display:grid;place-items:center;flex:none;border-radius:50%;border:4px solid #e4bd69;background:radial-gradient(circle at 32% 24%,#f7dda3,#ad7637 60%,#664026);box-shadow:0 0 0 2px #72512a,inset 0 0 0 3px #8c5d2e,inset 0 0 0 5px #ecc37b,0 6px 0 #5e3a28,0 8px 24px #e2b15b35;color:#fff1bc;font-weight:950;font-size:28px;text-shadow:0 2px 0 #75421f;transform:rotate(-8deg)}.side-rewards .reward-coin{animation:coinhover 3s ease-in-out infinite}@keyframes coinhover{50%{transform:translateY(-4px) rotate(3deg)}}
.shop-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:20px 0 26px}.feature-offer{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:205px;padding:22px;border:1px solid #b79563;border-bottom:5px solid #4d3240;border-radius:16px;overflow:hidden;background:radial-gradient(ellipse at 85% 50%,#c28d5955,transparent 60%),linear-gradient(140deg,#65464f,#30243d 70%);box-shadow:0 7px 0 #110c1b,0 14px 30px #0005}.feature-offer h2{font-size:29px;margin:10px 0 4px}.feature-offer p{font-size:13px;color:#e5d5e4;margin:8px 0 18px}.feature-offer button{font-weight:750}.feature-reward{background:radial-gradient(ellipse at 85% 50%,#9865ff66,transparent 60%),linear-gradient(140deg,#50317e,#252145 80%);border-color:#a786d9;border-bottom-color:#322052}.showcase-frame{width:92px;height:92px;border-radius:50%;flex:none;font-size:36px}.feature-offer .reward-coin{width:88px;height:88px;font-size:37px}.cosmetic-item .cosmetic-visual{background:radial-gradient(ellipse at 50% 65%,#7750ba55,#1c1837 75%);border:1px solid #76549d;box-shadow:inset 0 1px 0 #ffffff20}.cosmetic-item .cosmetic-photo{box-shadow:0 6px 15px #0008}.token-pack .reward-coin{margin:8px auto}.home-shell .token-pack{background:radial-gradient(ellipse at 50% 30%,#9a684a40,transparent 65%),linear-gradient(#392a45,#1a1628)}.token-pack strong{color:#ffe0a0}.home-shell .guide-section{border-left:3px solid #9e73db}.home-shell .library-card{border-width:2px;box-shadow:0 6px 0 #100b1c,0 10px 23px #0007}.home-shell .hub-title h1{text-shadow:0 4px 12px #0008;font-weight:900}.home-shell footer{color:#b6a9ca;font-size:10px;margin-top:22px}
@media(max-width:1190px){.dashboard-shell .home-dashboard{grid-template-columns:180px minmax(0,1fr) 175px;gap:12px}.dashboard-shell .mode-choice{min-height:182px;padding:12px 10px}.dashboard-shell .mode-choice b{font-size:20px}.dashboard-shell .home-economy{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-shell .home-resources{padding:14px 10px}.dashboard-shell .home-resources .hub-label strong{font-size:14px}}
@media(max-width:900px){.dashboard-shell .home-dashboard{grid-template-columns:1fr 1fr}.dashboard-shell .home-center{grid-column:1/-1;grid-row:1}.dashboard-shell .player-profile{grid-column:1;grid-row:2}.dashboard-shell .home-resources{grid-column:2;grid-row:2}.dashboard-shell .home-economy{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-copy h1{font-size:40px}}
@media(max-width:560px){.home-shell{padding:10px}.home-shell .top.site-header{padding:10px;gap:8px}.home-shell .brand-link{font-size:15px}.home-shell .header-logo{width:43px;height:43px}.home-shell .top-nav button{font-size:11px;padding:7px}.dashboard-shell .home-dashboard{grid-template-columns:1fr;gap:14px;margin-top:15px}.dashboard-shell .home-center,.dashboard-shell .player-profile,.dashboard-shell .home-resources{grid-column:1;grid-row:auto}.lobby-hero{min-height:186px;padding:18px}.hero-copy h1{font-size:32px}.hero-copy p{font-size:12px}.hero-art{right:-9%;width:60%}.dashboard-shell .mode-grid{grid-template-columns:1fr;gap:12px}.dashboard-shell .mode-choice{min-height:130px;padding:13px 15px}.dashboard-shell .mode-choice b{font-size:23px}.dashboard-shell .mode-choice .mode-cta{align-self:flex-end;width:auto;min-width:120px;padding:8px 10px}.dashboard-shell .home-economy{grid-template-columns:1fr}.shop-feature-grid{grid-template-columns:1fr}.feature-offer{padding:17px;min-height:170px}.feature-offer h2{font-size:24px}.showcase-frame{width:68px;height:68px}.feature-offer .reward-coin{width:66px;height:66px}.home-shell .player-profile{max-width:none}.section-head h2{font-size:19px}}
html[data-motion="off"] .home-shell:after,html[data-motion="off"] .side-rewards .reward-coin{animation:none}html[data-motion="off"] .home-shell button{transition:none!important}
.dashboard-shell .home-center .mode-choice.m0,.dashboard-shell .home-center .mode-choice.m1,.dashboard-shell .home-center .mode-choice.m2{background:linear-gradient(150deg,var(--light),var(--mid) 46%,var(--dark));border:1px solid var(--edge);border-bottom:5px solid var(--base)}.dashboard-shell .home-center .mode-choice:hover{filter:brightness(1.18)}.dashboard-shell .hero-art{height:112%;top:-6%;right:0;mask-image:radial-gradient(ellipse at center,#000 42%,#000a 64%,transparent 79%)}.dashboard-shell .home-resources{align-self:start}.dashboard-shell .player-profile{align-self:start}.home-shell .feature-reward button{background:linear-gradient(#ad6af4,#6e3db3);border-color:#d1a5ff;border-bottom:3px solid #42236f;box-shadow:0 4px 0 #1a102c;font-weight:800}.dashboard-shell .home-center .mode-choice .mode-cta{background:linear-gradient(180deg,#ffffff30,#ffffff09);border-bottom:3px solid #0006}

/* v0.12 — refined typography, unchanged artwork and layout. */
:root{--ui-font:'Segoe UI Variable','Inter','Segoe UI',Arial,sans-serif}
body{font-family:var(--ui-font);font-weight:400;letter-spacing:0;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:var(--ui-font)}
button{font-weight:600;text-shadow:none;letter-spacing:.12px}
.home-shell .top-nav button,.home-shell .primary,.home-shell .reward-tile button,.home-shell .cosmetic-item button,.home-shell .token-pack button,.home-shell .side-rewards button,.home-shell .feature-reward button,.feature-offer button{font-weight:600;text-shadow:none}
.home-shell .hub-title h1,.hero-copy h1{font-weight:750;letter-spacing:-.025em;text-shadow:0 4px 18px #09061280}
.dashboard-shell .mode-choice{text-shadow:none;font-weight:400}
.dashboard-shell .home-center .mode-choice b{font-size:clamp(19px,1.85vw,28px);font-weight:700;letter-spacing:-.035em;line-height:1.2;text-shadow:none}
.dashboard-shell .home-center .mode-choice .mode-cta{font-size:15px;font-weight:600;letter-spacing:.15px;line-height:1.3;color:#fff;text-shadow:none;padding:10px 5px;min-height:42px}
.dashboard-shell .mode-kicker{font-weight:600;letter-spacing:1.4px;font-size:10px}
.dashboard-shell .home-center .mode-description{font-weight:400;line-height:1.55;letter-spacing:.02px}
.dashboard-shell .home-resources .hub-label strong{font-weight:650;text-shadow:none}
.section-head h2,.feature-offer h2{font-weight:650;letter-spacing:-.025em}
.match-shell .stage h2,.identity-name,.result h1{font-weight:700;letter-spacing:-.025em}
@media(max-width:1190px){.dashboard-shell .home-center .mode-choice b{font-size:20px}.dashboard-shell .home-center .mode-choice .mode-cta{font-size:14px}}
@media(max-width:560px){.dashboard-shell .home-center .mode-choice b{font-size:23px}.dashboard-shell .home-center .mode-choice .mode-cta{font-size:15px}}

/* v0.13 — clean, readable typography and complete lobby layout. */
:root{--ui-font:Arial,Helvetica,sans-serif}
body{font-family:var(--ui-font);font-size:15px;line-height:1.45;letter-spacing:0;-webkit-font-smoothing:auto}
button,input,select,textarea{font-family:var(--ui-font);font-size:14px;line-height:1.35;letter-spacing:0}
button,b,strong{font-weight:600}button{text-shadow:none}
.home-shell h1,.home-shell h2,.home-shell h3,.home-shell strong,.home-shell b,.home-shell button,.home-shell .hub-label,.home-shell .eyebrow,.home-shell .hero-tag{font-family:var(--ui-font);text-shadow:none;letter-spacing:normal}
.home-shell .brand-link{letter-spacing:2px;font-weight:700}
.home-shell .eyebrow,.home-shell .hero-tag{font-size:11px;letter-spacing:1.4px;font-weight:600}
.home-shell .hero-copy h1{font-size:clamp(32px,3.2vw,52px);line-height:1.07;font-weight:700;letter-spacing:-1px;margin:12px 0}
.home-shell .hero-copy p{font-size:15px;line-height:1.5}
.home-shell .top-nav button{font-size:14px;font-weight:600;letter-spacing:0;padding:10px 12px}
.dashboard-shell{display:flex;flex-direction:column;width:100%;min-height:100svh;height:auto;overflow:visible;padding:18px clamp(14px,2.2vw,36px) 48px}
body:has(.dashboard-shell){min-height:100svh;overflow-y:auto}
.dashboard-shell .home-dashboard{flex:1;gap:20px;margin:24px 0 0;align-content:start;align-items:start}
.dashboard-shell .home-center{min-width:0;overflow:visible;padding-bottom:12px}
.dashboard-shell .lobby-hero{min-height:230px;padding:28px 30px;margin-bottom:26px}
.dashboard-shell .section-head{margin:0 0 14px;gap:10px}
.dashboard-shell .section-head h2{font-size:22px;font-weight:600;line-height:1.25;letter-spacing:0}
.dashboard-shell .mode-grid{width:100%;max-width:none;margin:0;gap:15px;align-items:stretch}
.dashboard-shell .home-center .mode-choice{min-height:205px;height:auto;gap:10px;padding:22px 18px 16px;justify-content:flex-start;align-items:stretch;border-radius:15px;box-shadow:inset 0 1px 0 #ffffff30,0 4px 0 #0b0916,0 10px 24px #0005}
.dashboard-shell .home-center .mode-choice:before{opacity:.07}
.dashboard-shell .home-center .mode-choice b{font-size:clamp(21px,1.65vw,28px);font-weight:600;line-height:1.2;letter-spacing:0;overflow-wrap:normal;margin:0;color:#fff}
.dashboard-shell .home-center .mode-choice .mode-description{font-size:14px;line-height:1.5;color:#eee6f7;margin:0 0 10px;font-weight:400}
.dashboard-shell .home-center .mode-choice .mode-cta{display:flex;align-items:center;justify-content:center;align-self:stretch;min-height:46px;width:100%;margin-top:auto;padding:12px 10px;border:1px solid #d2b4fb80;border-bottom:2px solid #201038;border-radius:9px;background:#7950b8;box-shadow:0 3px 8px #0003;font-size:15px;font-weight:600;letter-spacing:.2px;line-height:1.25;text-shadow:none;color:white;transition:background .15s,box-shadow .15s}
.dashboard-shell .home-center .mode-choice.m1 .mode-cta{background:#2c649e;border-color:#9dc8ff80;border-bottom-color:#173454}
.dashboard-shell .home-center .mode-choice.m2 .mode-cta{background:#94673d;border-color:#f6cf9380;border-bottom-color:#4b3020}
.dashboard-shell .home-center .mode-choice:hover .mode-cta{filter:brightness(1.12);box-shadow:0 3px 14px #0004}
.dashboard-shell .test-setup{margin-top:22px;padding:16px;max-width:none}
.dashboard-shell .test-setup strong,.dashboard-shell .reward-tile strong{font-size:16px;font-weight:600}
.dashboard-shell .test-setup p{font-size:14px;line-height:1.5}
.dashboard-shell .home-economy{margin-top:20px;gap:14px;align-items:stretch}
.dashboard-shell .home-economy .reward-tile{padding:17px 14px;min-height:158px;gap:8px}
.dashboard-shell .home-economy .reward-tile small{font-size:12px;line-height:1.5}
.home-shell .reward-tile button,.home-shell .side-rewards button,.home-shell .player-profile .primary{font-size:14px;font-weight:600;padding:10px 8px;min-height:40px;background:linear-gradient(180deg,#9664d6,#6e44ad);border:1px solid #b98ee8;border-bottom:2px solid #41286e;border-radius:8px;box-shadow:0 3px 8px #0004;text-shadow:none}
.dashboard-shell .home-resources .hub-label strong{font-size:16px;font-weight:600;line-height:1.3}
.dashboard-shell .home-resources .hub-label small{font-size:12px;line-height:1.4}
.dashboard-shell .player-profile,.dashboard-shell .home-resources{padding:20px 15px;line-height:1.45}
.dashboard-shell footer{flex:none;margin:34px 0 0;padding:14px 0 8px;border-top:1px solid #7a5a9c35;font-size:12px;line-height:1.5;text-align:center}
@media(min-width:901px) and (max-width:1190px){.dashboard-shell .home-dashboard{grid-template-columns:176px minmax(0,1fr) 174px;gap:12px}.dashboard-shell .home-center .mode-choice{padding:16px 10px 12px;min-height:200px}.dashboard-shell .home-center .mode-choice b{font-size:20px}.dashboard-shell .home-center .mode-description{font-size:13px}.dashboard-shell .home-center .mode-choice .mode-cta{font-size:14px}.dashboard-shell .home-economy{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-shell .player-profile,.dashboard-shell .home-resources{padding:16px 10px}}
@media(max-width:900px){.dashboard-shell{padding-bottom:32px}.dashboard-shell .home-dashboard{gap:16px}.dashboard-shell .home-center .mode-choice{min-height:190px;padding:18px 14px 14px}.dashboard-shell .lobby-hero{min-height:200px}}
@media(max-width:560px){.dashboard-shell{padding:10px 10px 32px}.dashboard-shell .lobby-hero{min-height:182px;padding:18px 16px;margin-bottom:20px}.home-shell .hero-copy h1{font-size:30px}.home-shell .hero-copy p{font-size:13px}.dashboard-shell .home-center .mode-choice{min-height:155px;padding:16px;gap:7px}.dashboard-shell .home-center .mode-choice b{font-size:24px}.dashboard-shell .home-center .mode-choice .mode-cta{width:100%;min-height:42px}.dashboard-shell .home-economy .reward-tile{min-height:130px}.dashboard-shell .test-setup{flex-wrap:wrap}.home-shell .top-nav button{font-size:12px;padding:8px 9px}.dashboard-shell footer{margin-top:24px}}

/* v0.14: approved integrated cinematic hero. Live welcome text remains accessible. */
.dashboard-shell .lobby-hero{background:#171225 url('assets/night-city.svg') center 53%/cover; border-bottom-width:1px;}
.dashboard-shell .lobby-hero:before{background:linear-gradient(90deg,#130f25f5,#25143edb 44%,#25143e55 85%);}
.dashboard-shell .hero-art{inset:0 0 0 auto;width:70%;max-width:780px;height:100%;background:url('assets/lobby-hero.webp') right center/auto 100% no-repeat;opacity:1;filter:none;mask-image:linear-gradient(90deg,transparent 0%,#000 34%,#000 100%);}
.dashboard-shell .hero-copy{max-width:57%;}
@media(max-width:900px){.dashboard-shell .hero-art{width:70%;}}
@media(max-width:560px){.dashboard-shell .hero-art{width:58%;background-position:53% center;mask-image:linear-gradient(90deg,transparent,#000 26%);}.dashboard-shell .hero-copy{max-width:58%;}.home-shell .hero-copy h1{font-size:clamp(23px,6vw,30px);}.home-shell .hero-copy p{font-size:12px;}}

/* v0.15 — animated welcome scene; all effects are scoped to the landing screen. */
.welcome{background:radial-gradient(ellipse at 50% 37%,#31174c 0%,#160e26 43%,#090711 80%);min-height:100svh;overflow:hidden;padding:76px 24px 42px;position:relative}
.welcome:before,.welcome:after{display:none}
.welcome-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;isolation:isolate}
.welcome-city{position:absolute;inset:10% 0 0;background:url('assets/night-city.svg') center bottom/cover no-repeat;opacity:.35;mask-image:linear-gradient(transparent 7%,#0009 52%,#000 100%)}
.welcome-fog{position:absolute;width:115%;height:70%;left:-8%;border-radius:50%;background:radial-gradient(ellipse at 35% 50%,#9a32dc44 0%,#5426a12a 25%,transparent 60%),radial-gradient(ellipse at 75% 60%,#6a2bbd55,transparent 52%);filter:blur(36px);mix-blend-mode:screen;will-change:transform,opacity}
.welcome-fog.fog-a{bottom:0;animation:mgFogA 20s ease-in-out infinite alternate}.welcome-fog.fog-b{top:0;opacity:.6;animation:mgFogB 27s ease-in-out infinite alternate}
.welcome-orbit{position:absolute;left:50%;top:35%;width:min(68vw,700px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);border:1px solid #b980ff30;box-shadow:0 0 75px #8c3aff26,inset 0 0 65px #8c3aff20;animation:mgHalo 7s ease-in-out infinite}
.welcome-orbit:after{content:'';position:absolute;inset:-2px;border:2px solid transparent;border-top-color:#ce9affaa;border-right-color:#8f4cdd33;border-radius:50%;animation:mgOrbit 36s linear infinite}
.welcome-sparks{position:absolute;inset:0}.welcome-sparks i{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:50%;background:#ead2ff;box-shadow:0 0 8px 2px #af64ff99;opacity:0;animation:mgSpark var(--t) var(--delay) linear infinite;will-change:transform,opacity}
.welcome-floor{position:absolute;left:-12%;right:-12%;bottom:-19%;height:36%;border-radius:50%;border-top:1px solid #d1a0ff55;background:radial-gradient(ellipse at 50% 0,#ad4dff44,transparent 52%),#110b20aa;box-shadow:0 -8px 65px #a439ff22;animation:mgFloor 10s ease-in-out infinite}
.welcome-center{position:relative;z-index:1;animation:mgArrival .85s ease-out both}
.welcome-logo{animation:mgFloat 7s ease-in-out infinite;filter:drop-shadow(0 0 28px #9a50e444);will-change:transform;}
.welcome-motto{animation:mgMotto 5s ease-in-out infinite;}
.welcome-actions button{position:relative;overflow:hidden;isolation:isolate;transition:transform .18s ease,box-shadow .2s ease,background .2s ease;min-height:54px;font-weight:600}
.welcome-actions button:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 30%,#ffffff26 48%,transparent 65%);transform:translateX(-120%);pointer-events:none}
.welcome-actions .primary:after{animation:mgShine 7s ease-in-out infinite}
.welcome-actions button:hover:after{animation:mgShineHover .65s ease-out both}
.welcome-actions button:active{transform:translateY(1px) scale(.985)}.welcome-actions button:focus-visible{outline:2px solid #e4c7ff;outline-offset:4px}
.welcome-tools{z-index:3}
@keyframes mgFogA{from{transform:translate(-9%,6%) scale(1);opacity:.55}to{transform:translate(10%,-12%) scale(1.15);opacity:1}}
@keyframes mgFogB{from{transform:translate(12%,-8%) rotate(-9deg);opacity:.3}to{transform:translate(-13%,12%) rotate(9deg);opacity:.85}}
@keyframes mgHalo{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes mgOrbit{to{transform:rotate(360deg)}}
@keyframes mgSpark{0%{transform:translate(0,45px);opacity:0}18%{opacity:.65}72%{opacity:.4}100%{transform:translate(var(--dx),-155px);opacity:0}}
@keyframes mgFloor{0%,100%{opacity:.75}50%{opacity:1}}
@keyframes mgFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes mgMotto{0%,100%{text-shadow:0 0 10px #ae6aff88}50%{text-shadow:0 0 20px #d7a1ff,0 0 32px #8b3eff88}}
@keyframes mgArrival{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes mgShine{0%,67%{transform:translateX(-120%)}88%,100%{transform:translateX(120%)}}
@keyframes mgShineHover{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@media(max-width:600px){.welcome{padding:90px 16px 30px}.welcome-orbit{width:95vw;top:34%}.welcome-city{background-size:auto 100%;opacity:.28}.welcome-sparks i:nth-child(n+23){display:none}.welcome-fog{filter:blur(24px)}.welcome-actions{gap:10px}.welcome-actions button{min-height:48px}}
html[data-motion="off"] .welcome *,html[data-motion="off"] .welcome *:before,html[data-motion="off"] .welcome *:after{animation:none!important;transition:none!important}html[data-motion="off"] .welcome-sparks i{opacity:.2}html[data-motion="off"] .welcome-center{opacity:1;transform:none}

/* v0.20 real account controls */
.mg-auth-form{display:grid;gap:10px;max-width:430px;margin:12px auto;text-align:left}.mg-auth-form label{display:grid;gap:5px;font-size:13px;color:#dcd2ed}.mg-auth-form input{width:100%;min-width:0}.mg-auth-form #mg-auth-status{font-size:12px;line-height:1.5;margin:0;min-height:1.2em}.mg-auth-form button{width:100%}.online-account{display:grid;gap:12px;margin:16px 0;padding:16px}.online-account h3{margin:5px 0}.online-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.online-stats>div{padding:10px;background:#131020;border:1px solid #4a365e;border-radius:10px;display:grid;gap:5px}.online-stats small{color:#b9aacd}.online-stats strong{font-size:23px;color:#d7b8ff}.welcome{overflow-y:auto}.welcome-center{padding-bottom:30px}

.mg-otp-form{width:min(430px,90vw);padding:22px;border-color:#9a6bd0;background:linear-gradient(150deg,#251936f5,#14101ff5);box-shadow:0 12px 45px #08051099}.mg-otp-form>strong{font-size:22px}.mg-otp-form>p{margin:0;line-height:1.5}.mg-otp-form .mg-otp-input{font-size:24px;letter-spacing:.16em;text-align:center;min-height:54px;font-variant-numeric:tabular-nums}.mg-otp-form .mg-otp-input::placeholder{font-size:15px;letter-spacing:0}.mg-otp-form #mg-auth-status{min-height:35px}.mg-otp-form .primary{min-height:45px}

.lobby-shell{max-width:1400px;margin:auto;padding:24px}.lobby-shell main{max-width:1100px;margin:30px auto}.lobby-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.lobby-box{padding:22px;margin:16px 0}.lobby-box form{display:grid;gap:12px}.lobby-box label{display:grid;gap:5px}.lobby-box input,.lobby-box select{width:100%;min-width:0}.lobby-member{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #463454;padding:12px 0}.lobby-member strong{flex:1}.lobby-code{font-size:32px;letter-spacing:5px;color:#dbc2ff}#lobby-messages{height:280px;overflow:auto;overflow-wrap:anywhere}#lobby-messages p{border-bottom:1px solid #392b4b;padding:8px 0}#lobby-status{color:#e9bb83}@media(max-width:760px){.lobby-pair{grid-template-columns:1fr}.lobby-shell{padding:12px}}

.lobby-shell .lobby-pair>.lobby-box{margin:0;min-width:0}.lobby-shell .lobby-box h2{margin:0 0 16px}.lobby-shell .lobby-box .row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lobby-shell .lobby-box form button{min-height:40px}.lobby-shell .lobby-box input,.lobby-shell .lobby-box select{box-sizing:border-box;padding:10px 12px}.lobby-shell .lobby-member{min-height:42px}.lobby-shell .lobby-member strong{overflow-wrap:anywhere}.lobby-shell .lobby-member .ready-status{font-weight:600;color:#9be4bb}.lobby-shell .lobby-member .seat{color:#9987b1;font-size:12px;min-width:22px}.lobby-shell #lobby-status{min-height:22px}.lobby-shell #lobby-chat{grid-template-columns:minmax(0,1fr) auto}.lobby-shell #lobby-messages{background:#100d1b;border:1px solid #382a50;border-radius:10px;padding:0 12px;margin:10px 0}.lobby-shell .lobby-code{font-variant-numeric:tabular-nums}.lobby-shell .lobby-header-details{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.lobby-shell .lobby-footer{color:#bcaed2;font-size:12px;margin-top:24px}.test-setup{flex-wrap:wrap}.lobby-shell .lobby-box button:disabled{opacity:.5;cursor:not-allowed}
.om-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:14px;margin-top:14px}.om-scroll{max-height:520px;overflow:auto}.om-scroll p{padding:8px 0;border-bottom:1px solid var(--line);margin:0;overflow-wrap:anywhere}.om-scroll small{color:var(--muted)}.om-player{display:grid;grid-template-columns:1fr auto;gap:6px;border-bottom:1px solid var(--line);padding:10px 0}.om-player .row{grid-column:1/-1}.om-player button{padding:6px 9px;text-transform:capitalize}.om-dead{opacity:.5}.om-card{width:min(100%,220px);border-radius:12px;display:block;margin:auto}.om-chat{height:180px;margin:8px 0}.om-grid input{min-width:0;flex:1}#fill-bots{accent-color:var(--purple)}@media(max-width:850px){.om-grid{grid-template-columns:1fr}.om-scroll{max-height:220px}}
/* Online gameplay 0.23.3 */
.om-shell{--accent:#c5a1ff;--glow:#9e5be333;max-width:1600px;position:relative;isolation:isolate}.om-shell.om-night{--accent:#8ebdff;--glow:#3b77d544}.om-shell:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#100b20aa,#0b0917f5),url('assets/night-city.svg') center bottom/cover;opacity:.9}.om-shell.om-night:before{background:linear-gradient(180deg,#0a1535a0,#080b1af0),url('assets/night-city.svg') center bottom/cover}.om-shell .panel{background:linear-gradient(150deg,#201932ed,#101020f5);border:1px solid #77619b50;box-shadow:0 12px 36px #0004;min-width:0}.om-shell .om-stage{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(90deg,#100d21db,#281c4e88,#100d21db),url('assets/lobby-hero.webp') center/cover;border-color:var(--accent);box-shadow:0 0 35px var(--glow);isolation:isolate}.om-stage:before{content:'';position:absolute;inset:-70%;background:conic-gradient(from 30deg,transparent 20%,var(--glow),transparent 50%,var(--glow),transparent 85%);animation:omSpin 22s linear infinite;z-index:-1;pointer-events:none}.om-stage .clock{font-size:clamp(48px,6vw,82px);font-weight:800;line-height:1;color:var(--accent);text-shadow:0 0 25px var(--glow);font-variant-numeric:tabular-nums}.om-stage .eyebrow{letter-spacing:.24em}.om-grid{grid-template-columns:minmax(210px,1fr) minmax(330px,1.65fr) minmax(240px,1fr);align-items:start}.om-grid h2{font-size:15px;text-transform:uppercase;letter-spacing:.13em;color:var(--accent);padding-bottom:10px;border-bottom:1px solid #a78cdb33}.om-player{padding:12px 10px;border-radius:8px;border-bottom:1px solid #a78cdb22;transition:background .25s}.om-player.om-speaking{background:linear-gradient(90deg,#8046c94d,#8046c910);box-shadow:inset 3px 0 var(--accent),0 0 15px var(--glow);animation:omPulse 2s ease-in-out infinite}.om-card-frame{--role:#6ab5ff;--rolebg:#13223e;position:relative;overflow:hidden;max-width:275px;margin:16px auto;padding:12px;border:2px solid var(--role);border-radius:18px;text-align:center;background:radial-gradient(ellipse at top,var(--rolebg),#100e1b 85%);box-shadow:0 0 24px color-mix(in srgb,var(--role) 35%,transparent),inset 0 0 18px #0009}.om-card-frame.om-red{--role:#ff6f81;--rolebg:#431726}.om-card-frame .om-card{width:100%;height:auto;max-height:340px;object-fit:contain;object-position:center;aspect-ratio:auto;border-radius:8px;display:block}.om-card-kicker{font-size:9px;letter-spacing:.14em;color:var(--role);margin:4px 0 10px}.om-card-label{font-size:22px;font-weight:800;letter-spacing:.04em;margin:12px 0 4px;color:var(--role)}.om-card-frame small{letter-spacing:.2em}.om-intel{max-height:300px;overflow:auto}.om-intel-entry{background:#32254d;border:1px solid #a888ed77;border-left:4px solid #c29aff;border-radius:9px;padding:10px;margin:8px 0}.om-intel-entry small{color:#e0c6ff;font-size:10px;letter-spacing:.1em}.om-intel-entry p{margin:6px 0;color:#fff;line-height:1.5}.om-result{--victory:#8bcaff;max-width:1100px}.om-result.mafia{--victory:#ff7187}.om-result.draw{--victory:#d9d4e4}.om-result-hero{position:relative;text-align:center;padding:30px 20px 36px;background:radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--victory) 22%,#111022),#100d1d 70%);border:1px solid var(--victory);border-radius:20px;box-shadow:0 0 45px color-mix(in srgb,var(--victory) 25%,transparent);animation:omArrival .65s ease-out}.om-result-hero img{width:90px;height:90px;object-fit:contain}.om-result-hero h1{font-size:clamp(40px,7vw,90px);letter-spacing:.055em;color:var(--victory);margin:12px 0;text-shadow:0 0 26px color-mix(in srgb,var(--victory) 60%,transparent)}.om-result-hero .primary{min-width:220px;margin-top:12px}.om-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.om-result-player{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #a78cdb33}.om-result-player img{width:48px;height:62px;object-fit:contain}.om-result-player div{flex:1;display:grid;gap:4px}.om-result-player>span{font-size:12px;color:#c8bfd7}.om-result-player small{font-size:12px}.om-result-grid .panel{min-width:0}.om-result-grid .om-scroll{max-height:600px}@keyframes omSpin{to{transform:rotate(360deg)}}@keyframes omPulse{50%{filter:brightness(1.2)}}@keyframes omArrival{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}@media(max-width:1050px){.om-grid{grid-template-columns:1fr 1.3fr}.om-grid>section:last-child{grid-column:1/-1}}@media(max-width:700px){.om-grid,.om-result-grid{grid-template-columns:1fr}.om-grid>section:last-child{grid-column:auto}.om-stage{min-height:180px!important}}@media(prefers-reduced-motion:reduce){.om-stage:before,.om-speaking,.om-result-hero{animation:none!important}}html[data-motion="off"] .om-stage:before,html[data-motion="off"] .om-speaking,html[data-motion="off"] .om-result-hero{animation:none!important}
/* v0.23.3: the artwork itself is the card, not a cropped inset. */
.om-card-frame{width:min(100%,310px);max-width:310px;padding:0;border:0;border-radius:16px;overflow:visible;background:none;box-shadow:none;margin:16px auto 20px;}
.om-card-frame .om-card{display:block;width:100%;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:14px;filter:drop-shadow(0 0 12px color-mix(in srgb,var(--role) 35%,transparent));}
.om-shell .om-stage{background:radial-gradient(ellipse at center,#35285a88,transparent 65%),linear-gradient(110deg,#100d21e8,#1c1734cc),url('assets/night-city.svg') center/cover;}
.om-morning-report{width:min(720px,95%);margin:8px auto;padding:12px 24px;border:1px solid #bca8ee66;border-radius:14px;background:#151126e8;text-align:center;box-shadow:0 0 35px #ad91ff22;}
.om-morning-report p{font-size:clamp(15px,2vw,22px);font-weight:650;margin:8px 0;line-height:1.45;}.om-morning-report .om-morning-private{color:#e3c6ff;font-size:14px;}
.om-timer-control{display:flex;align-items:center;gap:8px}.om-timer-control input{width:85px;}
.lobby-timer-grid{display:grid;gap:8px;padding:14px 0}.lobby-timer-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #ffffff13;padding:7px 0}.lobby-stepper{display:flex;align-items:center;gap:5px;flex-shrink:0}.lobby-stepper input{width:64px!important;text-align:center;padding:6px!important;min-width:0;margin:0!important}.lobby-stepper button{min-width:34px;padding:6px 9px;font-size:17px;line-height:1}.lobby-timer-grid #lobby-timer-reset{justify-self:start;font-size:12px}.lobby-timer-row span{font-size:13px}
