@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900;1000&family=Nunito+Sans:wght@400;600;700;800&display=swap');
*,*::before,*::after{box-sizing:border-box}
:root{color-scheme:dark;--mg-bg:#0c1029;--mg-text:#faf9ff;--mg-muted:#c7c9de;--mg-orange:#ff8c17}
body{background:radial-gradient(ellipse at 75% 12%,#37205e50,transparent 43%),radial-gradient(ellipse at 25% 70%,#20265635,transparent 45%),var(--mg-bg);background-color:var(--mg-bg);color:var(--mg-text);font:16px/1.6 'Nunito Sans',system-ui,sans-serif}
body{background-image:radial-gradient(ellipse at 75% 12%,#37205e50,transparent 43%),radial-gradient(ellipse at 25% 70%,#20265635,transparent 45%)}
main{width:min(100%,640px);max-width:640px;margin:auto;padding:12px 20px 44px}
h1,h2,h3,button,.mode strong,.rules-link,.mg-brand{font-family:Nunito,'Arial Rounded MT Bold',system-ui,sans-serif}
h1,h2,h3{font-weight:1000;letter-spacing:-.4px}h1{color:var(--mg-text)}h2{font-size:23px}h3{font-size:19px}
p{color:var(--mg-muted)}a{color:#ffc179}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffbd60;outline-offset:4px}
.mg-header{width:min(100% - 40px,900px);margin:0 auto;min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #78719d35}
.mg-brand{display:flex;align-items:center;gap:9px;font-size:24px;font-weight:1000;letter-spacing:-.9px;line-height:1;text-decoration:none;color:#faf9ff}.mg-brand img{width:48px;height:46px;object-fit:contain}.mg-brand span span{color:var(--mg-orange)}
.mg-back{font-family:Nunito,system-ui,sans-serif;font-weight:800;color:#e2d9f3;text-decoration:none;border:1px solid #5b477c;padding:7px 12px;border-radius:12px;font-size:13px;white-space:nowrap}.mg-back:hover{border-color:var(--mg-orange);color:#ffb44b}
.game-identity{overflow:hidden;border:1px solid #794daa;border-radius:24px;background:linear-gradient(130deg,#35234f,#1a1c38);box-shadow:0 16px 44px #03051850;margin:12px 0 20px}
.game-identity img{display:block;width:100%;height:auto;aspect-ratio:1.8;object-fit:cover;object-position:center 42%;mask-image:linear-gradient(#000 75%,transparent)}
.game-identity .game-title{padding:0 25px 21px;margin-top:-5px;position:relative}.game-identity h1{font-size:39px;letter-spacing:-.8px;line-height:1.1;margin:0 0 7px;text-align:left}.game-identity .sub{margin:0;text-align:left;font-size:16px;color:#d5c7ed}
.card,.panel{background:linear-gradient(135deg,#302346,#1b1e3b);border:1px solid #604480;border-radius:23px;box-shadow:0 12px 30px #03051835;padding:23px;margin:16px 0}
.card>h2:first-child,.panel>h2:first-child{margin-bottom:15px}
button{font-weight:900;transition:background .16s,box-shadow .16s,transform .16s}button:not(:disabled):active{transform:scale(.985)}
button.primary{background:linear-gradient(180deg,#ff9a19,#ff7408);border:1px solid #ffb146;box-shadow:inset 0 1px 1px #ffdb8060,0 4px 0 #b54b001c,0 7px 18px #ff780018;color:#fff;text-shadow:0 1px 1px #bf580055;border-radius:15px;font-size:17px;min-height:52px}
button.primary:hover{filter:brightness(1.06);box-shadow:0 8px 24px #ff790025}
button.secondary,.secondary{background:#292742;border:1px solid #6b5c8c;color:#f7f0ff;border-radius:14px;font-weight:800}
.mode{position:relative;background:linear-gradient(125deg,#3d285e,#262543);border:1px solid #7e56a7;border-radius:18px;padding:20px 43px 20px 19px;box-shadow:inset 0 1px #ffffff09,0 6px 16px #080b2028;transition:border-color .18s,transform .18s;text-decoration:none}
.mode:after{content:'›';position:absolute;right:18px;top:50%;transform:translateY(-50%);color:#ffb347;font:32px/1 system-ui}
.mode strong{font-size:20px;font-weight:1000}.mode span{color:#d6c9e8;font-family:'Nunito Sans',system-ui,sans-serif;font-size:14px;line-height:1.5}
.mode:hover{border-color:#ffad46;transform:translateY(-2px)}button.mode{border-color:#5e639e;background:linear-gradient(125deg,#2d315d,#212940)}
.rules-link{background:linear-gradient(115deg,#38264d,#28253f);border-color:#695080;color:#fff6ec;border-radius:16px;font-weight:900}.rules-link:hover{border-color:#ffad46;background:linear-gradient(115deg,#453052,#302741)}.rules-link-icon{background:#ff9b2220;color:#ffbb6e}.rules-link-arrow{color:#ffb347}
input[type=text],input.nameinput,select{background:#171c35;border-color:#676184;border-radius:12px;color:#faf9ff;min-height:47px}input:focus,select:focus{border-color:#ffa844}
label{color:#e7ddf5}.muted,.sub,.top,.footer{color:#b9b6d3}.code{color:#ffb84b;letter-spacing:5px}
.categories{gap:8px}.cat,.categoryItem{background:#25233e;border-color:#514469;border-radius:12px}.cat input,.categoryItem input,.choice input,.option input{accent-color:#ff9c27}
.choice,.option{background:#27243f;border-color:#594774;border-radius:13px}.option:has(input:checked),.categoryItem:has(input:checked){background:#493349;border-color:#ffac4a}
.note{background:#2b2443;border-color:#6c4d80;border-radius:13px;color:#e0d1ed}
.tabs{background:#171b32}.tab{border-radius:10px}.tab.active{background:linear-gradient(180deg,#ff9a19,#ff7408);color:white;box-shadow:0 3px 10px #ff790025}
.smallbtn{background:#302b48;border-color:#76618d;border-radius:12px;color:#ffcb8b}.step strong{color:#fff3e0}
.playerbtn{background:linear-gradient(130deg,#3b2a54,#28243f);border-color:#755491;border-radius:14px;font-weight:900;min-height:54px}.playerbtn:hover:not(:disabled){border-color:#ffa844}.playerbtn:disabled{background:#1b2036}
.player{border-color:#514064;padding:14px 4px}.player.row>span{overflow-wrap:anywhere}.kick{background:#4c2a3b;border:1px solid #a76479;color:#ffd9e4;padding:8px;font-size:12px;flex-shrink:0}
.back{color:#ffc179}.pill{background:#463052;color:#f7d7b1}.big{font-family:Nunito,system-ui,sans-serif;font-weight:1000}.eyebrow{color:#ffb84b}
dialog{background:linear-gradient(145deg,#2e2345,#141831);border-color:#77608e;border-radius:24px;padding:25px;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#05081dbb;backdrop-filter:blur(7px)}dialog a{color:#ffc179}
footer a{color:#c7bfda!important}footer a:hover{color:#ffb347!important}
.analytics-consent{background:#28213c!important;border-color:#655077!important}.analytics-consent button,#analyticsSettings button{background:#3c2e4a!important;border-color:#927095!important;border-radius:12px!important}
.game-banner{width:calc(100% + 40px);margin-left:-20px}.ad-label{color:#8f8aa9}
.secret-impostor{color:#ffb2bb!important;background:#561b2a!important;border-color:#ff6278!important;box-shadow:0 0 24px #ef334044!important}
.secret-innocent{color:#a7f3c6!important;background:#123e2b!important;border-color:#42db8b!important;box-shadow:0 0 24px #23c97344!important}
body:has(#lobby:not(.hidden),#reveal:not(.hidden),#discussion:not(.hidden),#results:not(.hidden),#setup.hidden) .game-identity{display:flex;align-items:center;border:0;box-shadow:none;background:none;margin:8px 0 14px}
body:has(#lobby:not(.hidden),#reveal:not(.hidden),#discussion:not(.hidden),#results:not(.hidden),#setup.hidden) .game-identity img{width:64px;height:64px;aspect-ratio:1;object-fit:cover;border-radius:16px;mask-image:none;border:1px solid #7a4d9e}
body:has(#lobby:not(.hidden),#reveal:not(.hidden),#discussion:not(.hidden),#results:not(.hidden),#setup.hidden) .game-title{padding:0 0 0 14px;margin:0}
body:has(#lobby:not(.hidden),#reveal:not(.hidden),#discussion:not(.hidden),#results:not(.hidden),#setup.hidden) .game-identity h1{font-size:29px;margin:0}
body:has(#lobby:not(.hidden),#reveal:not(.hidden),#discussion:not(.hidden),#results:not(.hidden),#setup.hidden) .game-identity .sub{display:none}
@media(max-width:420px){.mg-header{width:calc(100% - 32px);min-height:70px}.mg-brand{font-size:20px;gap:5px}.mg-brand img{width:37px;height:38px}.mg-back{font-size:11px;padding:7px 8px}main{padding-inline:16px}.game-banner{width:calc(100% + 32px);margin-left:-16px}.card,.panel{padding:19px}.game-identity{border-radius:21px}.game-identity img{aspect-ratio:1.65}.game-identity .game-title{padding:0 20px 19px}.game-identity h1{font-size:34px}.game-identity .sub{font-size:14px}.mode strong{font-size:18px}.mode{padding:18px 35px 18px 16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:360px){.mg-header{gap:8px}.mg-brand{font-size:17px;gap:4px;letter-spacing:-.6px}.mg-brand img{width:32px;height:34px}.mg-back{font-size:10px;padding:6px 7px}}

.install-button{display:flex!important;align-items:center;justify-content:center;gap:10px;min-height:58px;font-size:15px}.install-button[hidden]{display:none!important}.install-game-icon{width:28px;height:28px;flex-shrink:0;border-radius:7px;object-fit:cover}.install-button span{line-height:1.35}
