:root{--bg:#f5f3ec;--paper:#fffefa;--ink:#213f36;--muted:#777c70;--green:#214c3e;--red:#bd4b3e;--blue:#3c6ead;--red-soft:#f7e5de;--blue-soft:#e4ecf6;color:var(--ink);background:var(--bg);font-family:ui-rounded,SF Pro Rounded,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;border:0}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid var(--ink);outline-offset:4px}button,a,input{-webkit-tap-highlight-color:transparent}a{color:inherit}h1,h2,h3,p{margin:0}h1{letter-spacing:-1.5px;font-size:clamp(32px,4vw,52px);font-weight:800;line-height:1.1}h2{letter-spacing:-.6px;font-size:27px}h3{font-size:19px}p{color:var(--muted);line-height:1.55}small{color:var(--muted);font-size:12px;display:block}.red{color:var(--red)}.blue{color:var(--blue)}.namyokom{overscroll-behavior-y:contain;background:var(--bg);height:100dvh;overflow-y:auto}.site-header{justify-content:space-between;align-items:center;gap:16px;max-width:1152px;margin:auto;padding:22px 32px;display:flex}.site-header>div{align-items:center;gap:20px;display:flex}.brand{letter-spacing:2px;align-items:center;gap:10px;font-size:17px;font-weight:850;text-decoration:none;display:flex}.brand img{border-radius:13px;width:42px;height:42px}.connection-status{color:var(--muted);font-size:12px}.primary,.secondary,.quiet,.icon-button{min-height:48px;color:var(--ink);border-radius:17px;justify-content:center;align-items:center;gap:8px;padding:13px 20px;font-weight:650;text-decoration:none;transition:background .2s,box-shadow .2s;display:inline-flex}.primary{background:var(--green);color:#fff}.primary.red,.primary.danger{background:var(--red);color:#fff}.primary.blue{background:var(--blue);color:#fff}.secondary{background:#214c3e0d}.secondary.danger{color:var(--red);background:var(--red-soft)}.quiet{background:0 0;min-height:44px;padding:8px}.quiet.danger{color:var(--red)}.primary:hover:not(:disabled),.secondary:hover:not(:disabled){filter:brightness(.97)}.icon-button{background:0 0;min-width:44px;min-height:44px;padding:0;font-size:28px}.full{width:100%}.eyebrow{color:var(--muted);letter-spacing:2px;font-size:11px;font-weight:750}.caption{font-size:13px}.stack{flex-direction:column;gap:18px;display:flex}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.welcome,.lobby{max-width:1088px;margin:0 auto;padding:22px 32px 48px}.welcome-nav{justify-content:space-between;align-items:center;min-height:44px;margin-bottom:26px;display:flex}.page-heading{flex-direction:column;gap:16px;margin-bottom:30px;display:flex}.page-heading p{font-size:18px}.name-screen,.join-screen{flex-direction:column;gap:20px;max-width:460px;margin:20px auto;display:flex}.name-screen .app-icon{border-radius:26px;width:94px;height:94px}.name-screen h1{font-size:48px}.name-screen input,.join-screen input{background:var(--paper);width:100%;min-height:66px;color:var(--ink);border:1px solid #213f361c;border-radius:20px;outline:none;padding:18px 20px;font-size:23px;font-weight:600}.name-screen input:focus,.join-screen input:focus{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.name-screen .primary,.join-screen .primary{min-height:58px}.choices{grid-template-columns:1fr 1fr;gap:22px;display:grid}.choice{text-align:left;min-height:390px;color:var(--ink);background:#e7edda;border-radius:32px;flex-direction:column;justify-content:space-between;align-items:stretch;padding:32px;transition:transform .2s,box-shadow .2s;display:flex;position:relative}.choice.dark{background:var(--green);color:var(--paper)}.choice.dark p{color:#d7eaaa}.choice .art{width:100%;height:240px}.choice h2{margin-bottom:8px;font-size:32px}.choice-arrow{font-size:28px;position:absolute;bottom:36px;right:30px}.choice p{padding-right:32px}.choice:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 12px 32px #213f3612}.art{width:100%;max-width:440px;display:block}.join-screen .art{align-self:center;height:170px}.join-screen h1{font-size:36px}.code-input{letter-spacing:6px;text-transform:uppercase}.lobby-actions{gap:14px;margin-bottom:26px;display:flex}.lobby-actions .primary{flex:1}.teams{grid-template-columns:1fr 1fr;gap:22px;display:grid}.team-panel{background:var(--red-soft);border-radius:28px;padding:24px}.team-panel.blue{background:var(--blue-soft)}.team-panel>header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}.team-name{align-items:center;gap:10px;display:flex}.team-name h2{font-size:30px}.crest{flex-shrink:0;width:36px;height:40px}.count{white-space:nowrap;background:#ffffff60;border-radius:24px;padding:8px 11px;font-size:13px;font-weight:650}.seat{background:#fffefaaf;border-radius:20px;flex-direction:column;gap:14px;margin-top:12px;padding:18px;display:flex}.seat h3{color:var(--ink)}.empty{font-size:14px}.person{color:var(--ink);align-items:center;gap:10px;display:flex}.person>div{overflow-wrap:anywhere;flex:1;min-width:0}.person strong{font-size:15px}.avatar{background:#ffffffb0;border-radius:12px;flex-shrink:0;place-items:center;width:38px;height:38px;font-weight:750;display:grid}.online{background:#aaa;border-radius:50%;width:7px;height:7px}.online.yes{background:#53826b}.remove{color:var(--red);background:0 0;min-width:32px;min-height:32px;font-size:22px}.team-button{border-radius:14px;width:100%;font-size:14px}.team-panel.red .primary{background:var(--red)}.team-panel.blue .primary{background:var(--blue)}.team-panel .seat-selected{background:var(--red-soft);color:var(--red);opacity:1;min-height:48px;padding:13px 20px;font-weight:650}.team-panel.blue .seat-selected{background:var(--blue-soft);color:var(--blue)}.waiting{margin-top:26px}.chips{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.chips>span{background:#214c3e0d;border-radius:13px;padding:10px 14px}.tv-member{background:var(--paper);border-radius:18px;justify-content:space-between;align-items:center;gap:16px;margin-top:16px;padding:16px;display:flex}.lobby-footer{justify-content:space-between;align-items:center;gap:24px;padding:28px 0;display:flex}.lobby-footer p{margin-top:5px;font-size:14px}.lobby-footer .primary{min-width:230px}.n-dialog{background:var(--bg);color:var(--ink);border:0;border-radius:30px;width:calc(100% - 32px);max-width:520px;max-height:calc(100dvh - 32px);padding:0;animation:.25s ease-out modal-in;box-shadow:0 28px 90px #17292038}.n-dialog.wide{max-width:1020px}.n-dialog::backdrop{backdrop-filter:blur(5px);background:#14271d80}.modal-content{flex-direction:column;gap:22px;padding:28px;display:flex}.modal-heading{justify-content:space-between;align-items:center;gap:15px;display:flex}.modal-heading h2{font-size:25px}.modal-actions{gap:12px;margin-top:8px;display:flex}.modal-actions>*{flex:1}.rule{gap:18px;display:flex}.rule>span{color:var(--red);padding-top:5px;font-size:13px;font-weight:750}.rule h3{margin-bottom:6px}.rule p{font-size:15px}.invite-qr{background:#fff;border-radius:22px;flex-direction:column;align-self:center;align-items:center;gap:14px;padding:20px;display:flex}.room-code{letter-spacing:6px;-webkit-user-select:all;user-select:all;font-size:30px}.invite-link{text-align:center;overflow-wrap:anywhere;color:var(--muted);font-size:12px}.result{grid-template-columns:40% 1fr;align-items:center;gap:36px;padding:20px 0;display:grid}.result-copy{flex-direction:column;gap:18px;display:flex}.result h1{letter-spacing:-1px;font-size:clamp(27px,3.5vw,42px)}.result h3{color:var(--ink);font-size:23px}.result .stats p{font-size:14px;font-weight:550;line-height:1.8}.result .primary{width:100%}.error-toast{z-index:20;background:var(--red-soft);width:max-content;max-width:calc(100vw - 24px);color:var(--red);border-radius:16px;align-items:center;gap:20px;padding:12px 16px;display:flex;position:fixed;top:16px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0002}.error-toast button{color:inherit;background:0 0;min-width:32px;min-height:32px;font-size:24px}.loading-screen{flex-direction:column;justify-content:center;align-items:center;gap:22px;min-height:65vh;display:flex}.spinner{border:3px solid #214c3e20;border-top-color:var(--green);border-radius:50%;width:32px;height:32px;animation:1s linear infinite spin}.in-game{height:100dvh;overflow:hidden}.game-screen{background:#f5f3ec linear-gradient(135deg,#bd4b3e14,#0000);flex-direction:column;gap:14px;height:100%;padding:clamp(8px,1.5vw,24px);transition:background-color .55s;display:flex}.game-screen.turn-blue{background-color:#e9eff3;background-image:linear-gradient(135deg,#3c6ead09,#0000)}.game-screen.turn-red{background-color:#f4eae4}.game-toolbar{flex-wrap:wrap;align-items:center;gap:20px;display:flex}.scoreboard{flex-shrink:0;gap:10px;display:flex}.score{background:var(--red-soft);font-variant-numeric:tabular-nums;border-radius:18px;place-items:center;width:64px;height:58px;font-size:34px;font-weight:800;display:grid;position:relative;overflow:hidden}.score.blue{background:var(--blue-soft)}.score span{grid-area:1/1}.score-in{animation:.42s ease-in-out score-in}.score-out{animation:.42s ease-in-out forwards score-out}.game-toolbar h1{letter-spacing:-.5px;flex-shrink:0;width:285px;font-size:26px}.game-controls{align-items:center;gap:12px;margin-left:auto;display:flex}.game-controls button{white-space:nowrap;min-height:48px;padding:12px 20px;font-size:15px}.team-badge{background:var(--red-soft);border-radius:16px;align-items:center;gap:8px;padding:8px 12px;display:flex}.team-badge.blue{background:var(--blue-soft)}.team-badge .crest{width:31px;height:35px}.team-badge strong{font-size:12px}.team-badge small{color:inherit;margin-top:1px;font-size:11px}.board-grid{flex:1;grid-template-rows:repeat(5,minmax(0,1fr));grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(6px,1.1vw,20px);min-height:0;display:grid}.tile{perspective:900px;min-width:0;min-height:0}.tile-button{width:100%;height:100%;transform-style:preserve-3d;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:0 0;border-radius:15px;padding:0;transition:transform .2s;position:relative}.tile-button:disabled{opacity:1}.tile-button:enabled:hover{filter:brightness(1.015)}.tile-face{text-align:center;border-radius:inherit;background:var(--paper);color:var(--ink);overflow-wrap:anywhere;backface-visibility:hidden;border:1px solid #213f3618;justify-content:center;align-items:center;padding:8px;font-size:clamp(10px,2.05vw,30px);font-weight:780;line-height:1.1;display:flex;position:absolute;inset:0;box-shadow:0 3px #213f3610}.tile-face.red{color:#622b24;background:#e7a08c}.tile-face.blue{color:#274e7b;background:#a5c4e4}.tile-face.neutral{color:#6a6453;background:#ddd8c7}.tile-face.assassin{color:#fff;background:#333d37}.tile-face.revealed{opacity:.6}.flipping .front{animation:.48s ease-in-out forwards flip-front}.flipping .back{animation:.48s ease-in-out forwards flip-back}.tile:has(.holding){z-index:2}.tile-button.holding{filter:drop-shadow(0 8px 8px #213f3633);transition:transform 1s ease-out;transform:translateY(-3px)scale(1.025)}.hold{-webkit-user-select:none;user-select:none;position:relative}.hold-progress{opacity:0;transform-origin:0;pointer-events:none;background:currentColor;border-radius:4px;height:3px;transition:transform .15s,opacity .15s;position:absolute;bottom:6px;left:12px;right:12px;transform:scaleX(0)}.holding .hold-progress{opacity:.6;transition:transform 1s linear,opacity .1s;transform:scaleX(1)}.tile-button .hold-progress{display:none}.game-hint{color:var(--muted);text-align:center;font-size:12px}.rotate-hint{display:none}.connection-banner{background:var(--red-soft);color:var(--red);border-radius:12px;padding:6px 14px;font-size:14px}.connection-banner button{color:inherit;background:0 0;min-height:30px;text-decoration:underline}.screen-wave{pointer-events:none;z-index:10;opacity:0;width:280vmax;height:280vmax;color:var(--red);background:radial-gradient(circle,#0000 0%,currentColor 63%,#0000 71%);border-radius:50%;margin-top:-140vmax;margin-left:-140vmax;animation:1.15s linear forwards wave;position:fixed;transform:scale(0)}.screen-wave.blue{color:var(--blue)}.screen-wave.neutral{color:#ccaa5b}.screen-wave.assassin{color:#213f36}body:has(.in-game){overflow:hidden}.history{padding-left:24px;line-height:1.6}.history li{margin-bottom:14px}@keyframes modal-in{0%{opacity:0;transform:translateY(16px)scale(.98)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes score-in{0%{opacity:0;transform:translateY(60px)}to{opacity:1;transform:translateY(0)}}@keyframes score-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-60px)}}@keyframes flip-front{to{transform:rotateY(180deg)}}@keyframes flip-back{0%{transform:rotateY(-180deg)}to{transform:rotateY(0)}}@keyframes wave{0%{opacity:0;transform:scale(0)}8%{opacity:.4}45%{opacity:.22}to{opacity:0;transform:scale(1)}}@media (width<=1000px){.game-toolbar{gap:12px}.game-toolbar h1{width:200px;font-size:21px}.game-controls{gap:8px}.game-controls button{padding:10px 14px;font-size:14px}.score{border-radius:14px;width:48px;height:46px;font-size:27px}.scoreboard{gap:6px}.team-badge{padding:5px 8px}.game-screen{gap:8px}.game-hint{font-size:10px}.tile-button{border-radius:10px}}@media (width<=700px){.site-header{padding:16px 20px}.site-header .connection-status{display:none}.welcome,.lobby{padding:14px 20px 30px}.welcome-nav{margin-bottom:14px}.eyebrow{font-size:10px}.name-screen{margin:12px auto}.name-screen h1{font-size:40px}.choices{grid-template-columns:1fr;gap:14px}.choice{flex-direction:row;align-items:center;min-height:240px;padding:24px}.choice .art{order:2;width:48%;height:180px}.choice>div{max-width:52%}.choice h2{font-size:25px}.choice p{padding:0;font-size:14px}.choice-arrow{font-size:22px;bottom:20px;left:24px;right:auto}.page-heading p{font-size:16px}.teams{gap:14px}.team-panel{border-radius:24px;padding:16px}.team-name h2{font-size:23px}.team-name .crest{width:26px;height:30px}.seat{padding:14px}.count{font-size:11px}.lobby-footer{flex-direction:column;align-items:stretch;gap:16px}.lobby-actions{gap:8px}.lobby-actions button{padding:12px;font-size:13px}.modal-content{gap:18px;padding:22px}.modal-heading h2{font-size:23px}.result{grid-template-columns:1fr;gap:18px;padding:0}.result .art{max-width:250px;max-height:180px;margin:auto}.result-copy{gap:14px}.result h3{font-size:20px}.n-dialog .teams{grid-template-columns:1fr}.game-toolbar{gap:8px}.game-toolbar h1{width:170px;font-size:17px}.game-controls{gap:6px}.game-controls button{min-height:42px;padding:9px 11px;font-size:12px}.team-badge .crest{width:26px;height:30px}.team-badge{border-radius:12px}.game-hint{display:none}.tile-face{padding:4px}}@media (width<=520px){.teams{grid-template-columns:1fr}.game-controls{justify-content:flex-end;width:100%}.game-toolbar h1{flex:1}.board-grid{gap:5px}.tile-face{font-size:clamp(10px,2.7vw,14px)}.rotate-hint{display:block}.game-hint{font-size:10px;display:block}.result .stats p{font-size:12px}.brand{font-size:14px}.welcome-nav .eyebrow{max-width:180px;line-height:1.5}}@media (orientation:landscape) and (height<=550px){.game-screen{gap:6px;padding:6px 10px}.game-toolbar{flex-wrap:nowrap;gap:8px}.game-toolbar h1{width:165px;font-size:16px}.game-controls{width:auto}.game-controls button{min-height:40px;padding:8px 12px;font-size:12px}.score{width:42px;height:40px;font-size:25px}.team-badge{height:40px}.team-badge .crest{width:24px;height:29px}.game-hint{display:none}.board-grid{gap:5px}.tile-face{padding:4px;font-size:clamp(11px,1.9vw,20px)}.tile-button{border-radius:8px}.n-dialog{max-height:calc(100dvh - 16px)}.modal-content{gap:12px;padding:18px 24px}.result{grid-template-columns:32% 1fr;gap:24px;padding:0}.result-copy{gap:8px}.result h1{font-size:28px}.result h3{font-size:18px}.result p{font-size:13px}.result .stats p{font-size:11px}.result .primary{min-height:40px;padding:9px}.result .art{max-height:210px}.modal-heading h2{font-size:19px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:0s!important;animation-duration:.001ms!important;animation-delay:0s!important}.screen-wave{display:none}}img.art{object-fit:contain}.team-panel{--team-tint:var(--red);--team-soft:var(--red-soft);border-radius:30px;padding:20px}.team-panel.blue{--team-tint:var(--blue);--team-soft:var(--blue-soft)}.team-panel .seat{background:#fffefad9;border-radius:22px;gap:14px;margin-top:18px;padding:18px}.team-panel .seat h3{color:var(--team-tint);align-items:center;gap:12px;font-size:18px;font-weight:650;display:flex}.role-icon{flex-shrink:0;width:25px;height:25px}.team-panel .avatar{width:42px;height:42px;color:var(--team-tint);background:color-mix(in srgb,var(--team-tint) 12%,transparent);border-radius:14px;font-size:18px}.team-panel .person{gap:12px}.team-panel .person strong{font-size:17px}.team-panel .person small{margin-top:3px}.team-panel .online{flex-shrink:0;width:8px;height:8px}.team-panel .online.yes{background:var(--green)}.team-panel .empty{font-size:16px}.team-panel .team-button{text-align:left;border-radius:18px;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:16px 18px;font-size:17px;font-weight:650;display:flex}.team-panel .seat-selected{background:color-mix(in srgb,var(--team-tint) 8%,transparent);color:var(--team-tint)}.seat-action-icon{flex-shrink:0;width:22px;height:22px}