@layer theme{:root,:host{--font-sans:"Tajawal", Tahoma, Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.isolate{isolation:isolate}.flex{display:flex}.w-full{width:100%}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-4{gap:calc(var(--spacing) * 4)}}.phase-scene.is-day .scene-copy{color:#263b50;background:#fff9eb;border:2px solid #c6b68e;border-radius:24px;width:calc(100% - 48px);max-width:700px;margin-bottom:20px;padding:16px 24px;box-shadow:0 5px #263b501f}.phase-scene.is-day .scene-copy h1{color:#263b50;text-shadow:none}.phase-scene.is-day .scene-copy p{color:#35465a;font-weight:600}.phase-scene.is-day .scene-result{color:#263b50;background:#fff9eb;border:2px solid #bcab85}.phase-scene.is-day .scene-topline{color:#35465a;background:#fff9eb;margin-bottom:20px}.elimination-scene{flex-shrink:0;width:190px;height:180px;margin:0 auto 24px;position:relative}.elimination-portrait{width:152px;height:152px;animation:6s both portrait-depart;animation-delay:var(--result-delay);filter:grayscale();opacity:.45;background:#eef0f4;border:3px solid #596378;border-radius:50%;margin:auto;overflow:hidden;transform:scale(.91)}.elimination-portrait img{object-fit:contain;width:100%;height:100%}.elimination-symbol{color:#fff9eb;width:72px;height:72px;animation:6s both ghost-arrive;animation-delay:var(--result-delay);background:#4d546b;border:3px solid #fff9eb;border-radius:50%;place-items:center;margin:auto;display:grid;position:absolute;inset:35px 0 auto;box-shadow:0 5px 16px #18243e44}.elimination-symbol svg{width:44px;height:44px}.elimination-stamp{text-align:center;color:#6c3544;animation:6s both result-stamp;animation-delay:var(--result-delay);bottom:7px;background:#fff9eb;border:3px double #6c3544;border-radius:8px;padding:3px 8px;font-weight:800;position:absolute;inset-inline:25px;transform:rotate(-7deg)}.vote-elimination .elimination-symbol{background:#8c4a39;animation-name:ballot-arrive}.vote-elimination .elimination-portrait{animation-name:voted-depart}.elimination-puff{opacity:0;width:28px;height:28px;animation:6s both result-puff;animation-delay:var(--result-delay);background:#778198;border:3px solid #fff9eb;border-radius:50%;position:absolute;top:70px}.puff-one{left:0}.puff-two{right:0}@keyframes portrait-depart{0%,10%{filter:grayscale(0);opacity:1;transform:scale(1)}35%,to{filter:grayscale();opacity:.45;transform:scale(.91)}}@keyframes voted-depart{0%,12%{filter:grayscale(0);opacity:1;transform:none}35%{transform:rotate(8deg)scale(.91)}45%,to{filter:grayscale();opacity:.45;transform:scale(.91)}}@keyframes ghost-arrive{0%,15%{opacity:0;transform:translateY(36px)scale(.6)}40%,to{opacity:1;transform:none}}@keyframes ballot-arrive{0%,15%{opacity:0;transform:translateY(-45px)rotate(-18deg)}35%{opacity:1;transform:translateY(5px)}45%,to{opacity:1;transform:none}}@keyframes result-stamp{0%,28%{opacity:0;transform:scale(1.6)rotate(-7deg)}40%,to{opacity:1;transform:scale(1)rotate(-7deg)}}@keyframes result-puff{0%,20%{opacity:0;transform:scale(.3)}30%{opacity:.8}50%,to{opacity:0;transform:translateY(-40px)scale(1.6)}}.room-main .player-card.eliminated{background:#ece9ef;border:2px dashed #81768e;box-shadow:0 4px #b1a8bd}.room-main .eliminated .player-avatar>img{filter:grayscale();opacity:.4}.room-main .eliminated .player-name{color:#544b60}.room-main .ghost-sticker{color:#493858;background:#fffbff;border:3px double #594967;border-radius:8px;justify-content:center;min-width:85px;padding:5px 12px;font-size:16px;font-weight:800;bottom:4px;left:50%;transform:translate(-50%)rotate(-8deg);box-shadow:0 3px #49385826}html[data-theme=night] .room-main .player-card.eliminated{background:#1a2237;border-color:#858da4;box-shadow:0 4px #080e22}html[data-theme=night] .room-main .eliminated .player-name{color:#c7c9da}.quick-chat{padding:10px 14px 0}.quick-chat-toggle{color:#51452e;background:#fff6df;border:1px solid #9b8d72;border-radius:12px;align-items:center;gap:7px;min-height:44px;padding:7px 12px;font-weight:700;display:inline-flex}.quick-chat-phrases{flex-wrap:wrap;gap:7px;max-height:230px;padding:10px 0 2px;display:flex;overflow-y:auto}.quick-chat-phrases button{color:#364153;text-align:start;background:#fffaf0;border:1px solid #b4a78a;border-radius:14px;max-width:100%;min-height:44px;padding:7px 12px}.quick-chat button:hover:not(:disabled){background:#f6e4b9}.quick-chat button:disabled{opacity:.5;cursor:not-allowed}.room-main .mafia-chat-panel{color:#f6edee;background:#20273e;border-color:#976d7f;width:100%;max-width:1000px;margin:28px auto}.mafia-chat-panel .chat-header{background:#34283c;border-color:#796277}.mafia-chat-panel .chat-header h3{color:#ffccc5}.mafia-chat-panel .chat-header>span{color:#e4c8d4}.mafia-chat-panel .chat-messages{height:260px}.mafia-chat-panel .chat-empty,.mafia-chat-panel .chat-empty p,.mafia-chat-panel .chat-message time,.mafia-chat-panel .chat-hint{color:#cbd0e4}.mafia-chat-panel .chat-message>p{color:#fff4f4;background:#35415d;border-color:#62708b}.mafia-chat-panel .own-message>p{background:#54394d}.mafia-chat-panel .chat-form{background:#151e34;border-color:#8a7a92}.mafia-chat-panel .chat-form input{color:#fff5f6;background:#151e34;border-color:#8a7a92}.mafia-chat-panel .chat-form input::placeholder{color:#bfc5d9}.mafia-chat-panel .quick-chat button{color:#ffe4df;background:#392e45;border-color:#987589}.mafia-chat-panel .quick-chat button:hover:not(:disabled){background:#634156}html[data-theme=night]{color-scheme:dark;--ink:#edf1ff;--muted:#b8c3df;--paper:#202c49;--cream:#10182e;--line:#465577;--red:#ffae94;--blue:#91baff;--shadow-card:0 5px 0 #080e22;background:#10182e}html[data-theme=day]{color-scheme:light}html[data-theme=night] body{background-image:radial-gradient(#b9caff14 1px,#0000 1px)}html[data-theme=night] .site-header,html[data-theme=night] .site-footer{border-color:#394866}html[data-theme=night] :is(.how-button,.room-identity,.private-role,.guide-dialog,.button.secondary){color:#edf1ff;background:#202c49;border-color:#526282;box-shadow:0 3px #090f20}html[data-theme=night] :is(.text-button,.player-count,.eyebrow,.player-status,.player-name small,.board-heading h2 span,.board-footnote,.site-footer,.guide-dialog p,.guide-steps,.guide-roles p){color:#c1cde6}html[data-theme=night] :is(.player-name small,.board-heading h2 span){color:#f1f5ff;background:#354665}html[data-theme=night] .seat-number{color:#becbe4}html[data-theme=night] .brand-mark{color:#293449;border-color:#e6c264;box-shadow:3px 3px #040b1e}html[data-theme=night] .player-card{background:#202c49;border-color:#526282;box-shadow:0 5px #080e22}html[data-theme=night] .player-card.eliminated{background:#1a2237;border-color:#46506b}html[data-theme=night] .player-card.selected,html[data-theme=night] .player-card.confirmed{background:#263f61;border-color:#aacbff;box-shadow:0 5px #14223d}html[data-theme=night] .world-night[data-private-role=MAFIA]{--action-accent:#ffb4ad}html[data-theme=night] .world-night[data-private-role=DOCTOR]{--action-accent:#9ee8ce}html[data-theme=night] .world-night[data-private-role=DETECTIVE]{--action-accent:#a8d3ff}html[data-theme=night] .world-night .player-card.selected{border-color:var(--action-accent,#a8d3ff);box-shadow:0 5px #111d35}html[data-theme=night] .night-panel{background:#1c2b4b;border-color:#536788}html[data-theme=night] .night-panel:before{opacity:.25;background:url(/art/backgrounds/scene-night.webp) 50% 65%/cover}html[data-theme=night] .night-panel h1{color:var(--action-accent,#ffdf8b)}html[data-theme=night] .timer{color:#edf1ff;background:#18253e;border-color:#536788}html[data-theme=night] :is(.timer-label,.countdown,.night-panel .small){color:#d4def5}html[data-theme=night] .countdown.urgent{color:#ffb4ad}html[data-theme=night] :is(button,a,summary):focus-visible{outline-color:#ffd682}html[data-theme=night] .leave-confirm{background:#352c3e;border-color:#a78490}html[data-theme=night] .investigation-panel{color:#293449}.game-layout.night-action-layout{grid-template-columns:minmax(0,1fr);max-width:1000px;margin-inline:auto}.room-main .role-reveal{--role-accent:#a83d4c;--role-pale:#f9ddd3;--role-deep:#512334;box-shadow:none;background:0 0;border:0;border-radius:0;padding:12px 32px 42px;overflow:visible}.room-main .role-detective{--role-accent:#316baf;--role-pale:#dcebf9;--role-deep:#1e3c66}.room-main .role-doctor{--role-accent:#26705d;--role-pale:#d9eee0;--role-deep:#184d44}.room-main .role-villager{--role-accent:#936018;--role-pale:#ffedb8;--role-deep:#68451e}.role-reveal .role-reveal-top{margin-bottom:20px}.role-reveal .role-reveal-layout{grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:clamp(28px,6vw,88px);max-width:1050px;margin-inline:auto}.role-passport{border:3px solid var(--role-deep);background:var(--role-pale);box-shadow:7px 9px 0 var(--role-deep),16px 25px 44px #29344918;border-radius:28px 28px 60px;padding:14px;animation:.7s cubic-bezier(.2,.8,.3,1) both identity-arrive;position:relative;transform:rotate(2deg)}.role-passport:before{content:"";border:1px solid var(--role-accent);pointer-events:none;border-radius:21px 21px 52px;position:absolute;inset:8px}.role-passport-header{color:var(--role-deep);border-bottom:2px dashed var(--role-accent);justify-content:space-between;align-items:center;gap:8px;padding:10px 9px 16px;font-size:12px;font-weight:700;display:flex}.role-passport .role-art-stage{height:clamp(220px,27vw,340px);margin-top:12px}.role-passport .role-halo{background:repeating-conic-gradient(from 10deg,#ffffff70 0deg 10deg,#0000 10deg 24deg);border:0;border-radius:50%;inset:9% 8%;transform:rotate(-10deg)}.role-mafia .role-passport .role-halo{background:repeating-conic-gradient(#8d3b4e20 0deg 16deg,#0000 16deg 32deg)}.role-detective .role-passport{background-image:repeating-linear-gradient(0deg,#0000 0 27px,#316baf15 27px 28px)}.role-doctor .role-passport{background-image:radial-gradient(#26705d18 2px,#0000 2px);background-size:18px 18px}.role-villager .role-passport-caption{border-radius:18px 18px 38px}.role-motif{width:55px;height:55px;color:var(--role-accent);opacity:.4;position:absolute}.motif-one{top:2%;left:2%;transform:rotate(-19deg)}.motif-two{bottom:4%;right:0;transform:rotate(22deg)}.role-passport .role-art{z-index:1}.role-passport .role-sparkle{z-index:2}.role-passport-caption{background:var(--role-deep);color:#fff8eb;text-align:center;border-radius:15px 15px 40px;padding:13px 20px 18px;position:relative}.role-passport-caption span{letter-spacing:1px;opacity:.8;font-size:11px;display:block}.role-passport-caption strong{font:700 20px var(--font-display);display:block}.role-seal{width:58px;height:58px;color:var(--role-accent);border:3px double var(--role-accent);z-index:3;background:#fff9e9;border-radius:50%;place-items:center;display:grid;position:absolute;bottom:85px;left:-20px;transform:rotate(-12deg)}.role-reveal .role-reveal-copy h1{font-size:clamp(42px,5vw,70px)}.role-reveal .role-reveal-copy>p:not(.eyebrow){font-size:18px;line-height:1.9}.role-reveal .role-reveal-copy .button{background:var(--role-deep);color:#fff9ed;border-color:var(--role-deep);box-shadow:0 5px 0 var(--role-accent);min-height:58px}.role-reveal .role-reveal-copy .button:hover:not(:disabled){background:var(--role-accent)}.phase-scene{isolation:isolate;color:#263b50;background:#e8f3fa;border:2px solid #bdd0dd;border-radius:32px;flex-direction:column;min-height:clamp(520px,69vh,760px);margin-bottom:30px;animation:.55s ease-out both scene-arrive;display:flex;position:relative;overflow:hidden}.phase-scene.is-night{color:#f5f2ff;background:#172445;border-color:#52678e}.scene-atmosphere{z-index:-1;pointer-events:none;position:absolute;inset:0;overflow:hidden}.scene-landscape{object-fit:cover;object-position:center 62%;width:100%;height:100%;animation:18s ease-in-out infinite alternate scene-breathe}.scene-light{background:linear-gradient(#f2f9ffee,#f2f9ff94 28%,#0000 52%,#ffedca20 70%,#fff3dbd9);position:absolute;inset:0}.scene-night .scene-light{background:linear-gradient(#0d1733d9,#101a3a75 31%,#0000 60%,#0e172eaa)}.scene-celestial{color:#ffcc62;animation:7s ease-in-out infinite celestial-float;position:absolute;top:14%;left:9%}.scene-celestial svg{stroke-width:1.4px;fill:#ffe399;filter:drop-shadow(0 0 24px #ffd25d88);width:clamp(48px,6vw,88px);height:auto}.scene-night .scene-celestial{color:#e6d9ff}.scene-night .scene-celestial svg{fill:#e4d6ff;filter:drop-shadow(0 0 20px #ba9fe98c)}.scene-cloud{color:#fff6e1;fill:currentColor;opacity:.45;stroke-width:.5px;width:160px;height:60px;animation:24s ease-in-out infinite alternate cloud-glide;position:absolute}.scene-night .scene-cloud{color:#b7b9ea;opacity:.12}.cloud-one{top:22%;left:3%}.cloud-two{width:120px;animation-delay:-12s;top:30%;right:5%}.scene-stars span{color:#fff0bf;font-size:15px;animation:4s ease-in-out infinite star-shimmer;position:absolute}.scene-birds{gap:18px;animation:16s ease-in-out infinite alternate cloud-glide;display:flex;position:absolute;top:32%;left:16%;transform:rotate(-9deg)}.scene-birds i:before,.scene-birds i:after{content:"";border-top:2px solid #455f78;border-radius:50%;width:13px;height:8px;display:inline-block;transform:rotate(17deg)}.scene-birds i:after{transform:rotate(-17deg)}.scene-birds i:nth-child(2){margin-top:-15px}.scene-drift span{background:#ffefad;border-radius:50%;width:5px;height:5px;animation:9s ease-in-out infinite mote-drift;position:absolute;bottom:15%;left:23%;box-shadow:0 0 10px #ffd880}.scene-drift span:nth-child(2){animation-delay:-3s;bottom:26%;left:72%}.scene-drift span:nth-child(3){animation-delay:-6s;bottom:32%;left:40%}.scene-topline{justify-content:space-between;align-items:center;gap:16px;padding:24px 30px;font-size:13px;font-weight:700;display:flex}.scene-copy{text-align:center;width:100%;max-width:780px;margin-inline:auto;padding:6px 24px 180px}.scene-copy h1{text-shadow:0 3px #ffffff40;margin:0 0 10px;font-size:clamp(40px,5.6vw,76px);line-height:1.3}.is-night .scene-copy h1{text-shadow:0 4px 18px #060e27;color:#fff1c9}.scene-copy>p{margin:0;font-size:clamp(16px,1.6vw,21px);font-weight:500;line-height:1.8}.scene-emblem{opacity:.8;border:1px solid;border-radius:50%;margin-bottom:10px;padding:10px;display:inline-flex}.scene-emblem svg{width:22px;height:22px}.scene-result{background:#fff9ecef;border:1px solid #d3c6aa;border-radius:20px;margin:auto 30px 26px;padding:18px 24px;box-shadow:0 5px 20px #50412615}.is-night .scene-result{background:#14213de8;border-color:#647298}.scene-result-message{text-align:center;font:700 clamp(20px,2.3vw,29px) var(--font-display);margin:0 0 10px}.scene-result-footer{justify-content:space-between;align-items:center;gap:20px;font-size:14px;display:flex}.scene-result .timer{background:0 0;border:0;flex-shrink:0;padding:0}.scene-result .timer-label{display:none}.scene-result .countdown{font-size:22px}.night-waiting{isolation:isolate;color:#f1f2ff;background:#172445;border:2px solid #4e6086;border-radius:28px;justify-content:center;align-items:center;gap:40px;min-height:360px;margin-bottom:32px;padding:40px;display:flex;position:relative;overflow:hidden}.night-waiting .scene-light{background:#101c38d9}.night-waiting .scene-celestial{opacity:.6;top:10%;left:5%}.night-waiting .scene-celestial svg{width:44px}.waiting-portrait{background:radial-gradient(#5b668070,#0000 70%);border-radius:50%;flex:0 0 220px;width:220px;height:230px;animation:6s ease-in-out infinite celestial-float;position:relative}.waiting-portrait>span{background:#2a6c5e;border:2px solid #bcf0d8;border-radius:50%;place-items:center;width:48px;height:48px;display:grid;position:absolute;bottom:0;left:10px}.waiting-copy{max-width:470px}.waiting-copy h2{font:700 36px var(--font-display);color:#fff0c9;margin:8px 0}.waiting-copy>p{margin:8px 0;font-size:18px}.waiting-copy>.small{color:#c2cce4;font-size:14px}.waiting-dots{color:#8baddc;align-items:center;gap:8px;margin-top:12px;display:inline-flex}.waiting-dots i{background:currentColor;border-radius:50%;width:6px;height:6px;animation:1.8s infinite star-shimmer}.waiting-dots i:nth-last-child(2){animation-delay:.3s}.waiting-dots i:last-child{animation-delay:.6s}@keyframes identity-arrive{0%{opacity:0;transform:translateY(25px)rotate(-6deg)scale(.94)}to{opacity:1;transform:rotate(2deg)}}@keyframes scene-arrive{0%{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes scene-breathe{0%{transform:scale(1.02)}to{transform:scale(1.07)translateY(-1%)}}@keyframes celestial-float{50%{transform:translateY(-8px)rotate(3deg)}}@keyframes cloud-glide{0%{transform:translate(-18px)}to{transform:translate(24px)}}@keyframes star-shimmer{0%,to{opacity:.25}50%{opacity:1}}@keyframes mote-drift{0%,to{opacity:.2;transform:translateY(0)}50%{opacity:.8;transform:translate(12px,-30px)}}@media(max-width:850px){.room-main .role-reveal{padding:12px 16px 30px}.role-reveal .role-reveal-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:34px}.role-passport-header{padding-inline:2px;font-size:10px}.role-passport-caption strong{font-size:17px}.role-seal{width:46px;height:46px;left:-17px}.role-reveal .role-reveal-copy>p:not(.eyebrow){font-size:16px}}@media(max-width:600px){.phase-scene{border-radius:24px;min-height:560px}.scene-topline{gap:8px;padding:18px 16px;font-size:11px}.scene-copy{padding:20px 18px 180px}.scene-copy h1{font-size:43px}.scene-copy p{font-size:16px}.scene-celestial{top:39%;left:7%}.scene-celestial svg{width:44px}.scene-cloud{width:100px}.cloud-one{top:46%}.cloud-two{top:38%}.scene-result{margin:auto 12px 14px;padding:16px 14px}.scene-result-footer{gap:12px;font-size:12px}.scene-result .countdown{font-size:19px}.scene-result-message{font-size:23px}.room-main .role-reveal{padding:0 9px 30px}.role-reveal .role-reveal-layout{grid-template-columns:1fr;gap:30px}.role-passport{width:min(100% - 28px,330px);margin-inline:auto;padding:12px}.role-passport .role-art-stage{height:230px}.role-passport-header{font-size:11px}.role-passport-caption strong{font-size:19px}.role-reveal .role-reveal-copy h1{font-size:46px}.night-waiting{text-align:center;flex-direction:column;gap:12px;min-height:430px;padding:26px 22px}.waiting-portrait{flex-basis:170px;width:170px;height:170px}.waiting-copy h2{font-size:29px}.waiting-copy>p{font-size:16px}}@media(prefers-reduced-motion:reduce){.phase-scene *,.night-waiting *,.role-reveal *,.waiting-dots i{transition:none!important;animation:none!important}}@font-face{font-family:Tajawal;src:url(/fonts/Tajawal-Regular.ttf)format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Tajawal;src:url(/fonts/Tajawal-Medium.ttf)format("truetype");font-weight:500;font-display:swap}@font-face{font-family:Tajawal;src:url(/fonts/Tajawal-Bold.ttf)format("truetype");font-weight:700;font-display:swap}@font-face{font-family:Baloo;src:url(/fonts/BalooBhaijaan2.ttf)format("truetype");font-weight:400 800;font-display:swap}:root{--ink:#293449;--muted:#667080;--paper:#fffdf6;--cream:#fff8e8;--line:#ded6c4;--red:#c94d38;--primary:#ee6748;--yellow:#ffd76c;--teal:#389b86;--blue:#4d88ce;--shadow-card:0 5px 0 #ded4bc;--radius-card:24px;--radius-control:14px;--font-display:"Baloo", "Tajawal", Tahoma, sans-serif;font-family:var(--font-sans);color:var(--ink);background:var(--cream);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{background-image:radial-gradient(#b7a27d20 1px,#0000 1px);background-size:18px 18px;min-width:320px;margin:0;line-height:1.65}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button:not(:disabled),summary{cursor:pointer}button{transition:transform .16s,box-shadow .16s,background .16s}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline-offset:5px;outline:3px solid #2658a0}button:disabled:not(.player-card-content){opacity:.55}svg{flex-shrink:0}input,select{border-radius:var(--radius-control);width:100%;min-height:54px;color:var(--ink);background:#fffefa;border:2px solid #d7cdb7;outline:none;padding:12px 15px;font-size:16px;box-shadow:inset 0 3px #ece5d570}input:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 4px #4d88ce20}input::placeholder{color:#79818c}input:disabled,select:disabled{background:#f2eee4}input[dir=auto]:placeholder-shown{text-align:start;direction:rtl}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--teal);box-shadow:none}h1,h2,h3,.button,.brand,.art-caption,.room-code{font-family:var(--font-display)}h1,h2,h3,p{overflow-wrap:anywhere}.app-shell{max-width:1400px;margin:0 auto;padding-inline:44px}.site-header{border-bottom:2px dashed #ddd0b4;justify-content:space-between;align-items:center;gap:20px;min-height:104px;display:flex}.brand{color:var(--ink);white-space:nowrap;align-items:center;gap:12px;font-size:29px;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{border:2px solid var(--ink);background:var(--yellow);width:48px;height:48px;color:var(--ink);--eye-color:#ffd76c;box-shadow:3px 3px 0 var(--ink);border-radius:17px 17px 7px;place-items:center;display:grid;position:relative;transform:rotate(7deg)}.brand-mark i{background:var(--primary);border:2px solid var(--ink);inset-inline-end:-5px;border-radius:50%;width:11px;height:11px;position:absolute;top:-4px}.brand-light{color:var(--red)}.brand-dot{color:var(--red);display:inline-block;transform:rotate(-12deg)}.header-actions{align-items:center;gap:22px;display:flex}.connection-status{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:inline-flex}.connection-status i,.status-dot,.pulse-dot{background:#d59e2a;border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.connection-status.online i,.status-dot{background:var(--teal);box-shadow:0 0 0 4px #389b8616}.how-button{background:var(--paper);border:2px solid #d9cdb5;border-radius:13px;align-items:center;gap:8px;min-height:44px;padding:9px 16px;font-size:14px;font-weight:700;display:inline-flex;box-shadow:0 3px #dfd3bb}.how-button:hover{transform:translateY(-2px)}.eyebrow{color:#716247;align-items:center;gap:7px;font-size:13px;font-weight:700;display:inline-flex}.small{color:var(--muted);font-size:13px}.button{border-radius:var(--radius-control);border:2px solid var(--ink);justify-content:center;align-items:center;gap:12px;min-height:54px;padding:10px 24px;font-size:18px;font-weight:700;line-height:1.55;display:inline-flex}.button.primary{background:var(--primary);color:#14202f;box-shadow:0 5px #994733}.button.primary:hover:not(:disabled){background:#e35b3d;transform:translateY(-2px);box-shadow:0 7px #994733}.button.secondary{background:var(--paper);color:var(--ink);box-shadow:0 4px #d4c8b1}.button.secondary:hover:not(:disabled){background:#fff0c7;transform:translateY(-2px)}.button:active:not(:disabled),.how-button:active{transform:translateY(3px);box-shadow:0 1px #994733}.icon-button{background:0 0;border:0;border-radius:12px;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:9px;display:inline-flex}.icon-button:hover:not(:disabled){background:#2934490b}.text-button{color:#606878;background:0 0;border:0;align-items:center;gap:7px;min-height:44px;padding:9px 5px;font-size:14px;font-weight:700;display:inline-flex}.text-button:hover{color:var(--red)}.status-badge{color:#68604f;background:#fff9e9;border:1.5px solid #d5c9b3;border-radius:9px;align-items:center;gap:6px;padding:5px 12px;font-size:12px;font-weight:700;display:inline-flex}.badge-success{color:#246756;background:#dcf1de;border-color:#acd1b7}.badge-warning{color:#765512;background:#fff0bc}.badge-danger{color:#983d39;background:#ffe0d7}.hero-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:46px;padding:54px 0 70px;display:grid}.hero-copy{max-width:510px}.hero-eyebrow{color:#715820;background:#fff0b5;border:1.5px solid #d8be70;border-radius:8px;padding:6px 14px;transform:rotate(1deg)}.little-line{background:var(--primary);border-radius:3px;width:8px;height:8px}.hero-copy h1{margin:22px 0 16px;font-size:clamp(42px,4.6vw,65px);font-weight:800;line-height:1.25}.hero-copy h1 em{color:var(--red);font-size:.88em;font-style:normal}.hero-description{color:#656b78;margin:0 0 27px;font-size:17px;line-height:1.9}.room-form-box{background:var(--paper);border-radius:var(--radius-card);box-shadow:var(--shadow-card);border:2px solid #cfc2a8;padding:8px 24px 23px;position:relative}.form-tabs{background:#f0eadc;border-radius:13px;gap:4px;margin:12px 0 20px;padding:6px;display:flex}.form-tabs button{color:#777264;background:0 0;border:2px solid #0000;border-radius:9px;flex:1;justify-content:center;align-items:center;gap:6px;padding:9px 3px;font-size:14px;font-weight:700;display:flex}.form-tabs button[aria-selected=true]{color:var(--ink);background:#fffdf6;border-color:#dbcfb6;box-shadow:0 2px #d9ceb7}.room-form{flex-direction:column;gap:10px;display:flex}.room-form label{font-size:15px;font-weight:700}.room-form .button{margin-top:7px}.form-note{color:#767166;text-align:center;margin:9px 0 0;font-size:12px}.form-error{color:#a7372d;margin:8px 0 0;font-size:14px}.code-input{text-transform:uppercase;letter-spacing:7px;text-align:center;font-size:23px;font-weight:700}.village-art{isolation:isolate;width:100%;height:570px;position:relative}.village-world{border:3px solid #c6ba97;border-radius:48% 45% 24% 35%;position:absolute;inset:90px -5px 48px;overflow:hidden;transform:rotate(-4deg);box-shadow:0 10px #d5c69e66}.village-world img{object-fit:cover;width:100%;height:100%}.hero-character{filter:drop-shadow(0 8px #29344925);position:absolute}.role-art,.avatar-art{object-fit:contain;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block}.hero-mafia{z-index:4;width:66%;height:77%;top:48px;left:16%;transform:rotate(-6deg)}.hero-detective{z-index:5;width:43%;height:53%;top:163px;left:3%;transform:rotate(-14deg)}.hero-doctor{z-index:5;width:40%;height:49%;top:228px;right:-2%;transform:rotate(12deg)}.hero-villager{z-index:2;width:32%;height:41%;top:-1px;right:-1%;transform:rotate(14deg)}.hero-secret{z-index:6;color:var(--ink);border:2px solid var(--ink);inset-inline-end:9%;background:#fff;padding:11px 18px;font-size:17px;position:absolute;top:14px;transform:rotate(-8deg);box-shadow:3px 4px #29344925}.hero-tag{z-index:7;background:var(--yellow);border:2px solid var(--ink);font:700 21px var(--font-display);border-radius:10px;padding:9px 23px;position:absolute;bottom:62px;left:27%;transform:rotate(-7deg);box-shadow:0 4px #b8a365}.hero-sun{color:#df9a33;font-size:65px;position:absolute;top:10px;left:36%}.hero-doodle{z-index:7;font:800 62px var(--font-display);color:#fff;-webkit-text-stroke:2px var(--ink);position:absolute;top:24%;left:4%;transform:rotate(-17deg)}.art-caption{bottom:-6px;justify-content:center;gap:14px;font-size:15px;font-weight:600;display:flex;position:absolute;inset-inline:0}.art-caption span{background:#fff9ed;border:1.5px dashed #baa984;border-radius:10px;padding:4px 13px}.how-strip{border-block:2px dashed #d7c8a8;grid-template-columns:1.05fr repeat(3,1fr);gap:24px;padding:36px 0;display:grid}.strip-intro h2{margin:10px 0;font-size:27px;line-height:1.4}.strip-intro .eyebrow{color:#816a39;font-size:12px}.strip-step{padding:8px 0;position:relative}.step-icon{background:#f8d888;border:1.5px solid #ccb779;border-radius:13px;margin-bottom:14px;padding:10px;display:inline-flex;transform:rotate(5deg);box-shadow:0 3px #d4c089}.strip-step:nth-child(3) .step-icon{background:#d2e7f1;border-color:#aac4d1;transform:rotate(-5deg);box-shadow:0 3px #aac4d1}.strip-step:nth-child(4) .step-icon{background:#d9ebd4;border-color:#b1c8aa;box-shadow:0 3px #b1c8aa}.step-number{font:700 30px var(--font-display);color:#bcaf93;top:12px;position:absolute;inset-inline-end:10px}.strip-step h3{margin:0 0 8px;font-size:20px}.strip-step p{color:#6e7278;margin:0;font-size:15px}.home-bottom{color:#6c715e;flex-wrap:wrap;justify-content:center;gap:28px;padding:26px 0;font-size:13px;display:flex}.home-bottom span{align-items:center;gap:7px;display:inline-flex}.site-footer{color:#7b7c79;border-top:1px solid #e0d6be;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;min-height:72px;padding:18px 0;font-size:12px;display:flex}.footer-star{color:var(--red);margin-inline:9px;display:inline-block}.error-banner,.reconnect-banner{color:#8c392c;background:#ffe5d9;border:2px solid #df9d86;border-radius:14px;justify-content:space-between;align-items:center;gap:10px;margin:20px 0 0;padding:12px 17px;font-size:15px;display:flex}.reconnect-banner{color:#71591f;background:#fff0be;border-color:#d8bd6a}.room-main{min-height:calc(100vh - 176px);padding-bottom:38px}.room-toolbar{justify-content:space-between;align-items:center;gap:16px;padding:25px 0;display:flex}.profile-toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px;display:flex}.profile-toolbar .how-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.profile-dialog{max-width:480px}.profile-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.profile-heading h2{margin:0}.profile-form{flex-direction:column;gap:12px;margin-top:18px;display:flex}.profile-preview{border:2px solid #d7cdb7;border-radius:24px;align-self:center;width:100px;height:100px;overflow:hidden}.profile-preview .avatar-art,.profile-avatar .avatar-art{object-fit:contain;width:100%;height:100%}.profile-form label,.profile-form legend{font-weight:700}.profile-form fieldset{border:0;min-width:0;margin:4px 0;padding:0}.profile-form legend{margin-bottom:10px}.profile-avatars{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.profile-avatar{aspect-ratio:1;border:2px solid #d7cdb7;border-radius:16px;padding:3px;overflow:hidden}.profile-avatar[aria-pressed=true]{border-color:var(--blue);box-shadow:0 0 0 3px #4d88ce40}.profile-actions{flex-wrap:wrap;gap:10px;margin-top:10px;display:flex}.profile-actions .primary{flex:1}.room-identity{background:#fff4ce;border:2px dashed #c6b27e;border-radius:14px;flex-wrap:wrap;align-items:center;gap:13px;padding:6px 14px;display:flex}.room-identity .eyebrow{font-size:12px}.room-code{letter-spacing:3px;font-size:26px;font-weight:700}.room-toolbar-right{align-items:center;gap:20px;display:flex}.player-count{color:#5f6d7c;align-items:center;gap:9px;font-size:15px;font-weight:700;display:flex}.leave-button svg{transform:scaleX(-1)}.game-panel{border-radius:var(--radius-card);box-shadow:var(--shadow-card);background:var(--paper);border:2px solid #cfc2a8}.phase-panel{isolation:isolate;justify-content:space-between;align-items:center;gap:28px;min-height:190px;margin-bottom:32px;padding:28px 32px;animation:.35s ease-out both phase-enter;display:flex;position:relative;overflow:hidden}.phase-panel h1{margin:7px 0 10px;font-size:34px;font-weight:700;line-height:1.35}.phase-panel p{color:#63707e;max-width:660px;margin:0;font-size:16px;line-height:1.8}.lobby-phase{background:#edf2df;border-color:#bdcbb0;box-shadow:0 5px #c4d0b7}.lobby-phase:before{content:"";z-index:-1;opacity:.25;background:linear-gradient(90deg,#edf2df44,#edf2df 70%),url(/art/backgrounds/village-day.webp) 0/52% no-repeat;position:absolute;inset:0}.phase-summary{align-items:center;gap:20px;min-width:0;display:flex}.phase-summary>div{min-width:0}.phase-icon{background:var(--yellow);color:#785c1e;border:2px solid #cbb577;border-radius:20px;flex:0 0 66px;place-items:center;height:66px;display:grid;transform:rotate(6deg);box-shadow:0 4px #b69e67}.phase-icon svg{width:34px;height:34px}.phase-action{flex-direction:column;flex-shrink:0;align-items:center;gap:13px;max-width:260px;display:flex}.phase-action .button{max-width:260px}.phase-action .small{overflow-wrap:anywhere;text-align:center}.night-panel{color:#fff7df;background:#303c62;border-color:#28304c;box-shadow:0 5px #202942}.night-panel:before{content:"";z-index:-1;opacity:.7;background:linear-gradient(90deg,#303c6288,#303c62 74%),url(/art/backgrounds/village-night.webp) 0/65% no-repeat;position:absolute;inset:0}.night-panel h1{color:#ffdf8b}.night-panel p,.night-panel .eyebrow,.night-panel .small{color:#e2e5f1}.night-panel .phase-icon{background:#f8db85;border-color:#e8c670;box-shadow:0 4px #1f2944}.night-panel .submitted-label{color:#276552;background:#def3e8}.phase-night_result{background:#fff0c8;border-color:#ddc277}.phase-night_result .phase-icon{background:#ffcb58}.phase-night_result:before{content:"";z-index:-1;opacity:.24;background:linear-gradient(90deg,#fff0c866,#fff0c8 65%),url(/art/backgrounds/village-day.webp) 0 65%/60% no-repeat;position:absolute;inset:0}.role-reveal-copy h1{font-weight:700}.phase-discussion{background:#e6f1ee;border-color:#b0cfc5}.phase-discussion .phase-icon{color:#2b7167;background:#b9e1d4;border-color:#82b5a5;box-shadow:0 4px #95bbaa}.phase-voting{background:#e8eff9;border-color:#b4c8e2}.phase-voting .phase-icon,.phase-vote_result .phase-icon{color:#315e92;background:#cee1f5;border-color:#9ebde0;box-shadow:0 4px #9eb4d1}.phase-vote_result{background:#f3e9d7}.timer{background:#fffdf6;border:2px solid #cfbf9a;border-radius:15px;flex-direction:column;align-items:center;padding:5px 16px 7px;display:inline-flex;box-shadow:0 3px #d3c8ae}.timer-label{color:#697181;font-size:11px}.countdown{color:var(--ink);font-variant-numeric:tabular-nums;align-items:center;gap:8px;font-size:27px;font-weight:700;line-height:1.25;display:inline-flex}.countdown.urgent{color:#b43f36}.timer:has(.urgent){background:#fff1e4;border-color:#d17b64}.submitted-label,.waiting-label,.spectator-label{align-items:center;gap:8px;font-size:14px;font-weight:500;display:inline-flex}.submitted-label{color:#26614f;background:#deefda;border:1.5px solid #a6cba1;border-radius:10px;padding:9px 13px;animation:.25s ease-out stamp-in}.waiting-label{color:#667453}.spectator-label{color:#71697c;background:#efebf6;border-radius:8px;padding:5px 10px}.pulse-dot{animation:2s ease-in-out 3 pulse}.vote-progress{color:#315e92;padding-top:7px;font-size:14px;font-weight:700;display:inline-block}.game-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:28px;display:grid}.board-section{min-width:0}.board-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px;display:flex}.board-heading h2{flex-wrap:wrap;align-items:center;gap:12px;margin:0;font-size:24px;display:flex}.board-heading h2 span{font-family:var(--font-sans);color:#757965;background:#e9e6d6;border-radius:8px;padding:2px 9px;font-size:13px;font-weight:500}.player-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.player-card{background:var(--paper);border:2px solid #cfc5ae;border-radius:20px;min-width:0;transition:transform .18s,box-shadow .18s,border-color .18s;animation:.3s ease-out both card-enter;position:relative;box-shadow:0 5px #d6cbb3}.player-card:has(.player-card-content:not(:disabled)):hover{border-color:#8c9eb6;transform:translateY(-5px)rotate(-1deg);box-shadow:0 9px #c0c8cf}.player-card-content{color:inherit;background:0 0;border:0;border-radius:18px;flex-direction:column;align-items:center;width:100%;height:100%;min-height:240px;padding:10px 13px 15px;display:flex}.player-card:has(.remove-player) .player-card-content{height:auto}.player-card-top{justify-content:space-between;align-items:center;width:100%;min-height:25px;display:flex}.seat-number{color:#959784;font-size:11px;font-weight:700}.card-badges{color:#737c90;align-items:center;gap:8px;display:inline-flex}.host-badge{background:var(--yellow);color:#79602a;border:1px solid #d1b55f;border-radius:8px;justify-content:center;align-items:center;width:27px;height:26px;display:inline-flex;transform:rotate(-9deg)}.player-avatar{background:#ece9df;border:1px solid #dfd8c7;border-radius:38% 45% 35% 42%;width:115px;height:115px;margin:7px 0 11px;position:relative}.player-avatar .avatar-art,.player-avatar .role-art{width:115%;max-width:none;height:115%;position:absolute;bottom:-2px;left:-7.5%}.avatar-1{background:#e1ebec;border-color:#c6dadb}.avatar-2{background:#f0e4d8;border-color:#dfcdbb}.avatar-3{background:#e5e3ed;border-color:#cfcbdd}.player-name{overflow-wrap:anywhere;text-align:center;max-width:100%;font-size:17px;font-weight:700;line-height:1.5}.player-name small{color:#695c34;background:#ffedb1;border-radius:6px;margin-inline-start:7px;padding:1px 6px;font-size:11px;font-weight:700;display:inline-block}.player-status{color:#686e6c;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;min-height:22px;margin-top:6px;font-size:13px;display:inline-flex}.player-status i{background:#5a9d74;border-radius:50%;width:6px;height:6px}.player-card.selected{background:#f0f6ff;border-color:#3d78b5;transform:translateY(-5px);box-shadow:0 6px #86a8cf,0 0 0 3px #b8d6f366}.selected-check{color:#fff;background:#3f81be;border-radius:50%;place-items:center;width:25px;height:25px;animation:.2s ease-out stamp-in;display:grid}.player-card.confirmed{background:#f2faed;border-color:#30806b;box-shadow:0 6px #89b398}.confirmed .selected-check{background:#30806b}.choice-stamp{color:#28664e;background:#d9efdb;border:1px dashed #6c9e77;border-radius:6px;align-items:center;gap:4px;margin-top:6px;padding:2px 8px;font-size:11px;font-weight:700;animation:.25s ease-out stamp-in;display:inline-flex;transform:rotate(-4deg)}.player-card.eliminated{background:#f2eef7;border-color:#c9c2d5;box-shadow:0 4px #d6cede}.eliminated .player-avatar>img{opacity:.55;filter:saturate(.55)}.eliminated .player-name{color:#767080}.ghost-sticker{color:#6b5884;background:#fff8ff;border:1.5px solid #b7a9ca;border-radius:8px;align-items:center;gap:4px;padding:3px 7px;font-size:11px;display:flex;position:absolute;bottom:1px;left:-9px;transform:rotate(-9deg)}.player-card.disconnected{border-style:dashed}.disconnected .player-status i{display:none}.player-card.teammate{border-color:#be7779}.teammate .player-status{color:#a23b47}.ready-badge{margin-top:7px;padding-block:2px}.remove-player{color:#9b483d;background:#f9ecd9;border:0;border-top:1px dashed #c8b79a;border-radius:0 0 18px 18px;width:100%;min-height:44px;font-size:13px}.empty-seat{text-align:center;color:#948362;background:#f4eddc80;border:2px dashed #cdbd9b;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;min-height:240px;padding:18px;display:flex}.empty-seat>span{background:#ece2ca;border-radius:50%;place-items:center;width:58px;height:58px;margin-bottom:15px;font-size:30px;display:grid}.empty-seat strong{font-size:15px}.empty-seat small{margin-top:5px;font-size:12px}.settings-panel,.investigation-panel{background:#fffaf0;border:2px solid #d6c9ad;border-radius:18px;margin-top:25px;overflow:hidden}.settings-panel summary,.investigation-panel summary{align-items:center;gap:9px;min-height:54px;padding:15px 18px;font-size:15px;font-weight:700;list-style:none;display:flex}.settings-panel summary span,.investigation-panel summary span{color:#776c57;margin-inline-start:auto;font-size:12px;font-weight:400}.settings-panel summary:after,.investigation-panel summary:after{content:"+";margin-inline-start:9px;font-size:22px}.settings-panel[open] summary:after,.investigation-panel[open] summary:after{content:"−"}.settings-grid{grid-template-columns:repeat(3,1fr);gap:16px;padding:0 18px 20px;display:grid}.settings-grid label{color:#5f6672;flex-direction:column;gap:8px;font-size:14px;display:flex}.settings-grid select{min-height:46px;padding:8px;font-size:15px}.settings-grid .checkbox-label{flex-direction:row;grid-column:1/-1;align-items:center}.board-footnote{color:#767b7b;text-align:center;justify-content:center;align-items:center;gap:7px;margin-top:24px;font-size:12px;display:flex}.private-role{color:#695e4d;background:#fffbef;border:1.5px solid #cbbfa7;border-radius:10px;align-items:center;gap:7px;min-height:40px;padding:6px 10px;font-size:13px;display:inline-flex}.mafia,.known-mafia .player-avatar{color:#a63849;--eye-color:#f7ded9;background:#f7ded9}.detective,.known-detective .player-avatar{color:#376da8;background:#dceaf7}.doctor,.known-doctor .player-avatar{color:#287965;background:#deefdf}.villager,.known-villager .player-avatar{color:#946915;background:#fff0bf}.chat-panel{box-shadow:var(--shadow-card);background:#fffdf6;border:2px solid #cfc2a8;border-radius:22px;overflow:hidden}.chat-header{background:#ffedbf;border-bottom:2px solid #d9c79c;justify-content:space-between;align-items:center;gap:10px;padding:16px 17px;display:flex}.chat-header h3{align-items:center;gap:8px;margin:0;font-size:20px;display:inline-flex}.chat-header>span{color:#74633d;font-size:12px}.chat-messages{scrollbar-width:thin;scrollbar-color:#c2b492 transparent;height:370px;padding:17px;overflow-y:auto}.chat-empty{text-align:center;color:#91805f;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:100%;display:flex}.chat-empty>svg{background:#f0e7d1;border-radius:18px;width:54px;height:54px;padding:10px;transform:rotate(-8deg)}.chat-empty strong{font-size:15px}.chat-empty p{margin:0;font-size:13px}.chat-message{margin-bottom:18px;animation:.2s ease-out card-enter}.chat-message>div{align-items:center;gap:7px;display:flex}.chat-message .avatar-art{background:#eee9d8;border-radius:50%;flex-shrink:0;width:28px;height:28px}.chat-message strong{overflow-wrap:anywhere;min-width:0;font-size:13px}.chat-message time{color:#838781;white-space:nowrap;margin-inline-start:auto;font-size:11px}.chat-message p{text-align:start;white-space:pre-wrap;overflow-wrap:anywhere;background:#eaf0f2;border:1px solid #d7e1e5;border-radius:14px 3px 14px 14px;margin:7px 0 0;padding:10px 13px;font-size:15px;line-height:1.65}.own-message p{background:#fff0c8;border-color:#ead5a3;border-radius:3px 14px 14px}.chat-form{background:#fffaf0;border:2px solid #d7c9ac;border-radius:13px;gap:3px;margin:0 13px;padding:4px;display:flex}.chat-form input{box-shadow:none;background:0 0;border:0;min-width:0;min-height:42px;padding:8px;font-size:15px}.chat-form input:focus{outline:2px solid var(--blue)}.chat-form .icon-button{color:#fff;background:var(--teal);border-radius:9px}.chat-form .icon-button svg{transform:scaleX(-1)}.chat-hint{color:#72796c;text-align:center;justify-content:center;align-items:center;gap:5px;margin:0;padding:13px 12px 16px;font-size:11px;display:flex}.role-reveal{--role-accent:#c84b57;--role-pale:#f9dfd5;margin-bottom:32px;padding:20px 28px 26px;animation:.4s ease-out phase-enter;position:relative;overflow:hidden}.role-detective{--role-accent:#4d88ce;--role-pale:#dfeaf6}.role-doctor{--role-accent:#389b86;--role-pale:#deeee2}.role-villager{--role-accent:#bc8528;--role-pale:#fff0bf}.role-reveal-top{z-index:1;justify-content:space-between;align-items:center;gap:20px;display:flex;position:relative}.role-reveal-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:25px;display:grid}.role-art-stage{isolation:isolate;height:340px;position:relative}.role-halo{background:var(--role-pale);z-index:-1;border:2px dashed var(--role-accent);border-radius:45% 55% 40% 45%;position:absolute;inset:15% 9% 2%;transform:rotate(8deg)}.role-art-stage>.role-art{filter:drop-shadow(0 8px #29344918);animation:.5s cubic-bezier(.18,.9,.35,1.15) both role-reveal;position:absolute;inset:0}.role-sparkle{color:var(--role-accent);width:40px;height:40px;position:absolute;top:9%;right:4%;transform:rotate(12deg)}.role-reveal-copy{text-align:start;padding:10px 0 15px}.role-reveal-copy h1{color:var(--role-accent);margin:5px 0 10px;font-size:52px;line-height:1.3}.role-reveal-copy>p:not(.eyebrow){color:#5c6778;max-width:520px;margin:10px 0 18px;font-size:16px}.role-reveal-copy .small{display:block}.role-reveal-copy .button{max-width:100%}.teammate-note{background:var(--role-pale);border:1px solid #e3b7a9;border-radius:12px;padding:9px 13px}.teammate-note bdi{margin-inline-start:.5em;display:inline-block}.ready-progress{background:#e8e5d9;border-radius:8px;max-width:280px;height:7px;margin:23px 0 8px;display:block;overflow:hidden}.ready-progress>span{background:var(--teal);border-radius:inherit;height:100%;transition:width .2s;display:block}.game-over-panel{background:#fff0bc;border-color:#d1b66a;min-height:270px;box-shadow:0 5px #d2bc7b}.game-over-panel>div:nth-child(2){flex:1}.game-over-panel h1{color:#886015;font-size:37px}.victory-art{flex:0 0 220px;height:230px;position:relative}.victory-art .role-art{z-index:1;position:relative}.winner-icon{color:#a87920;z-index:2;background:#fff7d7;border:2px solid #ceb25e;border-radius:14px;padding:8px;position:absolute;bottom:0;left:-5px;transform:rotate(-12deg)}.confetti{background-image:radial-gradient(#e56d4c 3px,#0000 4px),radial-gradient(#48a48b 3px,#0000 4px),radial-gradient(#4d88ce 3px,#0000 4px);background-position:0 0,17px 29px,34px 15px;background-size:53px 57px;animation:1.2s ease-out both celebrate;position:absolute;inset:0}.investigation-panel{background:#edf3fc;border-color:#b3c8e3}.investigation-panel>div{padding:0 16px 15px}.investigation-panel p{background:#fffdf7;border:1px solid #bfcde0;border-radius:10px;flex-wrap:wrap;align-items:center;gap:9px;margin:8px 0 0;padding:12px;animation:.25s ease-out card-enter;display:flex}.investigation-panel p span{color:#6e7d93;font-size:12px}.investigation-panel strong{overflow-wrap:anywhere;min-width:0;font-size:15px}.investigation-panel b{color:#2c755f;background:#e1f2df;border-radius:7px;margin-inline-start:auto;padding:3px 8px;font-size:13px}.investigation-panel b.mafia-result{color:#a63f49;background:#f9e0dc}.leave-confirm{background:#ffe8d6;border:2px solid #d6ad8a;border-radius:18px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:23px;padding:18px;display:flex}.leave-confirm p{flex:1;margin:0;font-size:15px}.guide-dialog{border:2px solid var(--ink);background:var(--paper);width:min(610px,100vw - 28px);max-height:90dvh;color:var(--ink);border-radius:26px;margin:auto;padding:29px;overflow-y:auto;box-shadow:8px 9px #29344940}.guide-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#29344988}.guide-dialog h2{margin:18px 0 10px;font-size:35px;font-weight:700}.guide-dialog>p{color:#606b7b;font-size:16px}.guide-roles{flex-direction:column;gap:17px;margin:24px 0;display:flex}.guide-roles>div{align-items:center;gap:14px;display:flex}.role-symbol{border:1px solid #29344920;border-radius:15px;flex-shrink:0;justify-content:center;align-items:center;width:49px;height:49px;display:inline-flex}.guide-roles strong{font:700 19px var(--font-display)}.guide-roles p{color:#647082;margin:4px 0 0;font-size:14px;line-height:1.7}.guide-steps{color:#59677a;padding-inline-start:20px;font-size:15px;line-height:1.9;list-style:decimal}.guide-dialog>.button{margin-top:20px}.code-input,.room-code,.countdown,.seat-number{direction:ltr;unicode-bidi:isolate}.copy-success{animation:.3s ease-out copy-bounce}.player-card{animation-fill-mode:backwards}.guide-role-art{border-radius:18px;flex-shrink:0;width:76px;height:85px;padding:5px;display:inline-block}.private-night-art{filter:drop-shadow(0 5px #101a3860);flex-shrink:0;width:100px;height:120px;margin-block:-12px}.phase-summary:has(.private-night-art) .phase-icon{display:none}.world-night[data-private-role=DOCTOR] .player-card.selected{border-color:#30806b;box-shadow:0 6px #8bbaa2}.world-night[data-private-role=DOCTOR] .player-card.selected .player-avatar:after{content:"+";color:#fff;background:#389b86;border:2px solid #eaf7df;border-radius:12px;width:32px;height:35px;font-size:25px;line-height:30px;animation:.3s ease-out stamp-in;position:absolute;bottom:5px;right:-8px}.world-night[data-private-role=MAFIA] .player-card.selected{border-color:#b84851;box-shadow:0 6px #c48888}@media(max-width:850px){.private-night-art{width:74px;height:95px}}@media(max-width:600px){.private-night-art{display:none}.guide-role-art{width:65px;height:80px}}@keyframes card-enter{0%{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes phase-enter{0%{opacity:.6;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes role-reveal{0%{opacity:0;transform:translateY(18px)rotate(-8deg)scale(.9)}to{opacity:1;transform:none}}@keyframes stamp-in{0%{opacity:.4;scale:1.18}to{opacity:1;scale:1}}@keyframes pulse{50%{opacity:.5}}@keyframes copy-bounce{50%{transform:translateY(-4px)rotate(-1deg)}}@keyframes celebrate{0%{opacity:0;transform:translateY(-25px)scale(.7)}to{opacity:1;transform:none}}@media(max-width:1120px){.app-shell{padding-inline:28px}.hero-layout{gap:25px}.village-art{height:480px}.hero-mafia{top:35px}.hero-detective{top:143px}.hero-doctor{top:191px}.hero-secret{font-size:14px;top:0}.hero-tag{font-size:18px;bottom:50px}.hero-copy h1{font-size:48px}.game-layout{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.player-grid{gap:12px}.player-avatar{width:92px;height:92px}.player-card-content{min-height:215px;padding-inline:10px}.empty-seat{min-height:215px}.phase-panel{gap:20px;padding:25px}.phase-icon{display:none}.phase-panel h1{font-size:29px}.victory-art{flex-basis:170px;height:190px}}@media(max-width:850px){.app-shell{padding-inline:24px}.connection-status{display:none}.hero-layout{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:15px}.hero-copy h1{font-size:42px}.hero-description{font-size:15px}.room-form-box{padding-inline:16px}.form-tabs button{font-size:13px}.village-art{height:400px}.village-world{inset-block:75px 50px}.hero-secret{padding:7px 10px;font-size:13px}.hero-detective{top:128px}.hero-doctor{top:160px}.hero-tag{font-size:16px;bottom:28px;left:21%}.art-caption{gap:6px;font-size:12px;bottom:-21px}.art-caption span{padding-inline:9px}.hero-sun{font-size:40px}.hero-doodle{font-size:42px}.how-strip{grid-template-columns:repeat(3,1fr);gap:20px}.strip-intro{grid-column:1/-1;align-items:center;gap:25px;display:flex}.strip-intro br{display:none}.game-layout{grid-template-columns:minmax(0,1fr)}.chat-messages{height:250px}.player-avatar{width:112px;height:112px}.player-card-content{min-height:240px}.board-heading h2{font-size:23px}.site-footer>span:first-child{display:none}.site-footer{justify-content:center}.role-art-stage{height:280px}.role-reveal-copy h1{font-size:44px}.victory-art{flex-basis:150px;height:175px}.game-over-panel{flex-wrap:wrap}.game-over-panel .phase-action{flex-direction:row;justify-content:center;width:100%;max-width:none}}@media(max-width:600px){.app-shell{padding-inline:16px}.site-header{gap:9px;min-height:82px}.brand{gap:8px;font-size:23px}.brand-mark{border-radius:13px 13px 6px;width:39px;height:39px}.brand-mark svg{width:25px}.how-button{gap:5px;min-height:42px;padding:7px 9px;font-size:12px}.how-button svg{width:15px}.hero-layout{flex-direction:column;gap:27px;padding:16px 0 36px;display:flex}.hero-copy{order:2;width:100%;max-width:none}.village-art{order:1;width:100%;max-width:400px;height:330px;margin:0 auto}.village-world{inset:55px 5% 30px}.hero-mafia{width:60%;height:85%;top:17px;left:18%}.hero-detective{width:43%;height:66%;top:86px;left:6%}.hero-doctor{width:40%;height:61%;top:111px;right:5%}.hero-villager{width:30%;height:43%;top:0;right:5%}.hero-secret{top:17px;padding:5px 10px;font-size:12px;inset-inline-end:0}.hero-tag{padding:5px 13px;font-size:16px;bottom:13px;left:29%}.hero-sun{font-size:32px;top:1px;left:41%}.hero-doodle{font-size:38px;top:32%;left:0}.art-caption{display:none}.hero-copy h1{text-align:center;margin:13px 0;font-size:46px}.hero-eyebrow{margin:0 auto;font-size:12px;display:table}.hero-eyebrow .little-line{display:none}.hero-description{text-align:center;margin-bottom:22px;font-size:15px}.room-form-box{border-radius:21px;padding:5px 17px 20px}.form-tabs button{font-size:14px}.button{min-height:54px;padding-inline:18px;font-size:17px}.room-form input,.chat-form input,.settings-grid select{font-size:16px}.room-form .code-input{font-size:23px}.how-strip{grid-template-columns:1fr;gap:21px;padding:26px 0}.strip-intro{text-align:center;display:block}.strip-intro h2{font-size:27px}.strip-step{padding-inline-start:66px}.step-icon{top:6px;position:absolute;inset-inline-start:3px}.step-number{top:4px;font-size:22px;inset-inline-end:5px}.strip-step h3{padding-inline-end:30px;font-size:20px}.strip-step p{font-size:14px}.home-bottom{gap:15px;font-size:12px}.site-footer{text-align:center;font-size:11px}.room-toolbar{align-items:flex-start;gap:10px;padding-block:20px}.room-identity{gap:5px;max-width:66%;padding:4px 9px}.room-identity .eyebrow{width:100%;font-size:11px}.room-code{letter-spacing:2px;font-size:23px}.room-identity .icon-button{min-width:36px;min-height:36px;padding:6px}.room-toolbar-right{flex-direction:column;align-items:flex-end;gap:5px}.player-count{font-size:13px}.leave-button{min-height:35px;padding:3px 0;font-size:12px}.phase-panel{border-radius:21px;flex-direction:column;align-items:stretch;gap:19px;margin-bottom:25px;padding:21px}.phase-panel h1{font-size:29px}.phase-panel p{font-size:15px}.phase-summary{width:100%}.phase-action{flex-flow:wrap;justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:none}.phase-action .button{flex:1;max-width:100%;padding-inline:14px;font-size:16px}.phase-action .small{text-align:start;flex:100%}.lobby-phase .phase-action{flex-direction:column;align-items:stretch}.lobby-phase .small{text-align:center}.night-panel:before{background-image:linear-gradient(90deg,#303c62bd,#303c62ef),url(/art/backgrounds/village-night.webp);background-size:cover}.phase-panel .timer{padding:4px 11px 6px}.countdown{font-size:24px}.submitted-label{padding:8px;font-size:13px}.player-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.player-card-content{min-height:226px;padding:9px 10px 14px}.player-avatar{width:104px;height:104px}.player-name{font-size:16px}.player-status{font-size:12px}.empty-seat{min-height:226px;padding:14px}.empty-seat strong{font-size:14px}.board-heading{gap:8px}.board-heading h2{gap:8px;font-size:21px}.board-heading h2 span{font-size:12px}.private-role{padding-inline:8px;font-size:12px}.settings-grid{grid-template-columns:1fr}.settings-panel summary span{display:none}.board-footnote{font-size:11px}.chat-messages{height:250px}.chat-hint{font-size:11px}.role-reveal{border-radius:22px;padding:16px 18px 23px}.role-reveal-top{gap:9px}.role-reveal-top .status-badge{padding-inline:8px;font-size:11px}.role-reveal-top .timer{padding:3px 9px 6px}.role-reveal-top .countdown{font-size:21px}.role-reveal-layout{grid-template-columns:1fr;gap:4px}.role-art-stage{width:100%;max-width:300px;height:260px;margin:auto}.role-reveal-copy{text-align:center;padding-bottom:0}.role-reveal-copy h1{font-size:42px}.role-reveal-copy>p:not(.eyebrow){margin-bottom:17px;font-size:15px}.role-reveal-copy .button{width:100%}.ready-progress{margin-inline:auto}.role-reveal-copy .small{font-size:12px}.game-over-panel{text-align:center;align-items:center;gap:6px}.victory-art{flex-basis:auto;width:215px;height:220px}.game-over-panel h1{font-size:34px}.game-over-panel .phase-action{flex-direction:column;align-items:stretch;margin-top:15px}.game-over-panel .text-button{justify-content:center}.winner-icon{width:49px;height:49px}.leave-confirm p{flex-basis:100%}.leave-confirm .button{flex:1}.guide-dialog{border-radius:22px;padding:21px}.guide-dialog .eyebrow{font-size:12px}.guide-dialog h2{font-size:29px}.guide-dialog>p{font-size:15px}.guide-roles p{font-size:14px}}@media(max-width:360px){.app-shell{padding-inline:12px}.brand{gap:6px;font-size:20px}.how-button{padding-inline:7px}.hero-copy h1{font-size:40px}.form-tabs button{font-size:12px}.player-avatar{width:91px;height:91px}.player-card-content{min-height:218px}.phase-action .button{font-size:15px}.room-code{font-size:21px}}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
