@font-face{font-family:Story;src:url('/game-assets/story.woff') format('woff');font-display:swap}@font-face{font-family:JP;src:url('/game-assets/jp.woff') format('woff');font-display:swap}@font-face{font-family:Latin;src:url('/game-assets/latin.woff') format('woff');font-display:swap}@font-face{font-family:Display;src:url('/game-assets/display.woff') format('woff');font-display:swap}
:root{color-scheme:dark;--ink:#0a1813;--forest:#132b21;--gold:#d8bd80;--paper:#f6eedc;--soft:#bbcabb;--line:#c4aa6254;--serif:Story,'Yu Mincho',serif;--sans:Latin,JP,'Hiragino Kaku Gothic ProN',sans-serif;--display:Display,Georgia,serif}
*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--paper);font:15px/1.65 var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.58}button:not(:disabled),a{transition:background .16s,box-shadow .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ffe3a3;outline-offset:4px}a{color:var(--gold);text-underline-offset:4px}h1,h2,h3,p{margin:0}input,select,textarea{color:var(--paper);background:#10261e;border:1px solid #9f94656e;border-radius:4px;padding:12px;width:100%;min-height:48px}input::placeholder,textarea::placeholder{color:#95a898}select{cursor:pointer}label{display:block;color:#d4dccb;font-size:13px}label>input,label>select{margin-top:8px}fieldset{border:0;padding:0;margin:0}legend{margin-bottom:10px;color:var(--gold)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;top:-70px;left:16px;z-index:100;background:var(--ink);padding:12px}.skip-link:focus{top:10px}.boot{min-height:100dvh;display:flex;flex-direction:column;gap:24px;align-items:center;justify-content:center}.boot p{color:var(--soft)}.brand{font:600 23px/1.1 var(--display);letter-spacing:4px;color:var(--gold)}.brand small{font-size:14px;letter-spacing:2.4px}.brand-link{text-decoration:none}.muted{color:var(--soft)}.kicker{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:var(--gold)}.connection{position:sticky;top:0;z-index:30;padding:9px 18px;text-align:center;background:#4b351c;color:#ffebc9;font-size:12px;border-bottom:1px solid #bb9e61}.notice{position:fixed;left:50%;transform:translateX(-50%);top:max(16px,env(safe-area-inset-top));z-index:90;max-width:600px;width:calc(100% - 28px);padding:15px 46px 15px 18px;background:#482b25;border:1px solid #d29a72;box-shadow:0 10px 50px #0006;font-size:13px;border-radius:5px}.notice.success{background:#203e2e;border-color:#829d71}.notice button.close-notice{position:absolute;right:2px;top:2px;width:40px;height:40px;font-size:23px}.notice .retry{display:block;text-decoration:underline;color:#ffe0a8;padding:9px 0 0;min-height:40px}.primary,.secondary,.danger-button{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:49px;padding:12px 18px;border:1px solid #e7cd92;border-radius:4px;background:linear-gradient(110deg,#e0c68c,#b29a66);color:#14231a;font-size:14px;font-weight:600;text-align:center;text-decoration:none;line-height:1.5}.primary:hover:not(:disabled){background:#e4cf9c;box-shadow:0 0 0 3px #e3c77b20}.primary:disabled{background:#304339;border-color:#73846a70;color:#bdc8b7;opacity:.75;box-shadow:none}.secondary{background:#193328;border-color:#a998605c;color:#e9d4a2;font-weight:400}.secondary:hover:not(:disabled){background:#284437}.danger-button{background:#382920;border-color:#a97b5c;color:#f1cba6}.text-button{min-height:44px;padding:9px 7px;color:var(--gold);font-size:12px;text-decoration:underline;text-underline-offset:4px}.icon-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;border:1px solid #d8bf835c;border-radius:50%;font-size:22px;line-height:1}.button-row{display:flex;gap:10px;align-items:center}.button-row>*{flex:1}.field-stack{display:grid;gap:16px}.quiet-note{font-size:12px;color:var(--soft);line-height:1.8}.environment{position:absolute;inset:0;z-index:-3;pointer-events:none;overflow:hidden}.environment svg{width:100%;height:100%;display:block}.landing{min-height:100dvh;position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr minmax(360px,470px);gap:6vw;align-items:center;padding:65px max(6vw,24px)}.landing:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#091810a0,#0918102b 30%,#0a1c18e8 75%,#0a1c18),linear-gradient(0deg,#06180be8,#06180b15 50%,#07160c99)}.landing .environment{right:20%}.landing-title{padding-top:18px}.landing h1{font:400 clamp(35px,4.2vw,67px)/1.65 var(--serif);letter-spacing:.05em;margin:35px 0 17px;max-width:640px;text-shadow:0 3px 20px #0007}.landing-intro{font-size:15px;line-height:2;color:#e2e6d5;max-width:400px}.landing-caption{margin-top:55px;color:#e4d0a0;font-size:12px;letter-spacing:2px}.entry-panel{background:#0d211dee;padding:29px;border:1px solid #bc9f655c;box-shadow:0 25px 70px #0003;border-radius:5px}.entry-panel h2{font:25px var(--serif);margin-bottom:20px}.entry-tabs{display:flex;margin-bottom:24px;border-bottom:1px solid var(--line)}.entry-tabs button{flex:1;min-height:46px;color:#bacabd;border-bottom:2px solid transparent}.entry-tabs button[aria-selected=true]{color:#edd69d;border-color:var(--gold)}.entry-panel .form-note{font-size:12px;color:#bdcbbc;line-height:1.85}.entry-separator{display:flex;align-items:center;gap:15px;margin:23px 0;color:#aebeae;font-size:11px}.entry-separator:before,.entry-separator:after{content:'';height:1px;background:var(--line);flex:1}.landing-links{display:flex;gap:22px;justify-content:center;margin-top:21px;font-size:12px}.landing-footer{position:absolute;bottom:15px;left:6vw;font-size:10px;color:#aac0ab}.room-code-input{text-transform:uppercase;letter-spacing:5px;font:22px var(--display)}
.game{position:relative;isolation:isolate;min-height:100dvh;padding:0 26px 26px;max-width:1600px;margin:auto;overflow:hidden}.game>.environment{inset:0 16%;opacity:1}.game:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#0a1c15f2 0%,#0a1c1588 25%,#0a1c1511 50%,#0a1c1599 75%,#0a1c15f2),linear-gradient(0deg,#0a1b15 0%,#0a1b15ce 24%,#08150d15 65%,#071610e8 100%)}.game.night:before,.game.first_night:before{background:linear-gradient(90deg,#0a1423f5,#0a142377 25%,#0a142322 50%,#0a142399 75%,#0a1423f5),linear-gradient(0deg,#0a1722 0%,#0a1722e0 24%,#0a142330 65%,#061019f0 100%)}.game-header{height:84px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #c3ac6a42;position:relative}.game-header .brand{font-size:17px;letter-spacing:3px}.game-header .brand small{font-size:11px;letter-spacing:1.7px}.header-meta{display:flex;gap:16px;align-items:center;color:#dac798;font-size:12px}.room-code{border:0;background:none;padding:10px 5px;min-height:44px;color:#d5c69f;font:15px var(--sans);letter-spacing:2px}.phase-heading{text-align:center;padding:30px 20px 18px;position:relative}.phase-line{color:#e6cc99;font-size:12px;display:flex;gap:15px;justify-content:center;align-items:center}.clock{font:22px var(--display);font-variant-numeric:tabular-nums;letter-spacing:1px}.clock.urgent{color:#ffce9a}.phase-heading h1{font:400 clamp(25px,3vw,36px)/1.5 var(--serif);margin:11px 0 8px;text-shadow:0 3px 20px #0008}.phase-heading p{font-size:13px;color:#d5dfcc;max-width:600px;margin:auto;line-height:1.85}.game-layout{display:grid;grid-template-columns:minmax(170px,220px) minmax(370px,1fr) minmax(170px,220px);gap:28px;align-items:start;margin-top:4px}.left-rail,.right-rail{padding-top:14px}.event-ribbon{border-top:1px solid var(--line);padding:16px 0;position:relative}.event-ribbon h2{font:26px/1.4 var(--display);color:#ead09a;margin:10px 0 6px}.event-ribbon p{font-size:12px;line-height:1.9;color:#d1dccb}.event-ribbon button{font-size:11px;padding:10px 0;min-height:40px;color:#dbc491}.small-section-title{font:17px var(--serif);color:#dfc794;padding:0 0 12px;border-bottom:1px solid var(--line)}.public-log{list-style:none;padding:0;margin:0;max-height:360px;overflow:auto;scrollbar-color:#7d7e54 transparent}.public-log li{font-size:12px;color:#c8d5c3;line-height:1.9;padding-top:17px;word-break:break-word}.public-log time{display:block;font-size:10px;color:#bdab7b;margin-bottom:3px}.side-link{display:block;width:100%;text-align:left;min-height:44px;padding:12px 0;color:#d9c18c;font-size:12px}.table-area{min-width:0}.board{padding:16px 0 8px;position:relative}.board-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#e4e0c9;font-size:11px;padding:0 3px 11px;border-bottom:1px solid #d0bb7650;margin-bottom:20px}.board-top strong{color:#ecd09a;font-weight:400}.seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 9px}.seat{min-width:0;min-height:106px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 2px 7px;position:relative;border-radius:5px;line-height:1.4;opacity:1!important}.coin{display:grid;place-items:center;position:relative;width:64px;height:64px;border:1px solid #d1bd85aa;border-radius:50%;background:radial-gradient(circle at 35% 20%,#4c6953,#173123 76%);box-shadow:0 2px 15px #0005,inset 0 0 0 4px #172c21,inset 0 0 0 5px #bba16766;color:#f1deae;font:30px var(--display)}.coin:before{content:'';position:absolute;inset:-4px;border:1px solid #bfa76860;border-radius:50%}.seat-name{display:block;color:#f6eedc;font-size:13px;margin-top:9px;max-width:100%;overflow-wrap:anywhere;line-height:1.4}.seat-status{font-size:10px;color:#bfcdbb;line-height:1.5;margin-top:3px;min-height:16px}.seat .self-label{display:block;font-size:9px;color:#ddc58e}.seat.selected .coin{border-color:#ffe0a1;box-shadow:0 0 0 3px #c8aa67,0 0 0 7px #d7ba7225,inset 0 0 0 4px #3d502f}.seat.selected .coin:after{content:'✓';position:absolute;bottom:-2px;right:-4px;width:19px;height:19px;border-radius:50%;background:#e1c381;color:#19251c;display:grid;place-items:center;font:12px var(--sans)}.seat.selectable:hover .coin{box-shadow:0 0 0 3px #c8aa6766,0 4px 16px #0006}.seat.dead .coin{background:#29352c;color:#a4ad9d;border-color:#7f8c6b77;box-shadow:inset 0 0 0 4px #17271f}.seat.dead .coin:after{content:'';position:absolute;left:12px;right:12px;height:1px;transform:rotate(-45deg);background:#bac4ab9f}.seat.dead .seat-name,.seat.dead .seat-status{color:#aab6a5}.seat.speaking .coin{border-color:#f0d897;box-shadow:0 0 0 4px #d6b85c44,0 0 20px #e4c47244,inset 0 0 0 4px #32442b}.seat.speaking .seat-status{color:#f2d791}.seat.disconnected .coin{border-style:dashed}.seat .public-card{font-size:9px;color:#d9ba7f;max-width:100%;overflow-wrap:anywhere;margin-top:4px}.seat .revealed-role{font-size:11px;color:#f2d39a;margin-top:5px}.center-whisper{text-align:center;color:#e3d4ac;font-size:12px;letter-spacing:.5px;margin:18px 0;min-height:20px;text-shadow:0 2px 8px #0008}.action-dock{margin:20px 0 0;border-top:1px solid #c5a76777;padding-top:16px;min-height:96px}.action-selection{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:12px;color:#becdbf;font-size:12px}.action-selection strong{color:#efd9a4;font-size:16px;font-weight:400;text-align:right;overflow-wrap:anywhere}.dock-note{text-align:center;color:#bacbbb;font-size:11px;margin-top:12px;line-height:1.8}.submitted-mark{display:flex;justify-content:center;align-items:center;gap:10px;color:#e6d49b;font-size:15px;padding:13px 0}.submitted-mark:before{content:'✓';display:grid;place-items:center;width:29px;height:29px;border:1px solid #acb37b;border-radius:50%}.waiting-orb{width:44px;height:44px;margin:3px auto 15px;border:1px solid #c7ac6c66;border-radius:50%;box-shadow:0 0 0 8px #a4ab7312,0 0 0 9px #bdae4c22}.private-ability{padding:14px 15px 14px 86px;position:relative;min-height:92px;background:#0e2130ec;border-left:2px solid #a3bcc6;margin:13px 0 8px;overflow:hidden}.private-ability img{position:absolute;left:0;top:0;width:70px;height:100%;object-fit:cover;object-position:center 25%;mask-image:linear-gradient(90deg,#000 80%,transparent)}.private-ability h2{font:23px var(--display);color:#e5c990;margin-bottom:5px}.private-ability p{font-size:12px;color:#d2e2e4;line-height:1.8}.private-ability .kicker{font-size:9px;color:#b8ccce;margin-bottom:6px}.hand{margin-top:25px;border-top:1px solid #c1a16260;padding:15px 0 0}.hand-title{display:flex;justify-content:space-between;color:#d4bd89;font-size:10px;letter-spacing:.5px;margin-bottom:10px}.hand-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hand-card{padding:13px;min-height:81px;position:relative;text-align:left;background:linear-gradient(120deg,#2c4434,#173327);border:1px solid #bdad6654;border-radius:3px;overflow:hidden}.hand-card:after{content:'◇';position:absolute;right:10px;top:9px;color:#c4a96c88;font-size:12px}.hand-card .hand-name{font:21px var(--display);color:#e6d4a5;display:block;line-height:1.4}.hand-card .hand-detail{font-size:10px;display:block;color:#c8d9c4;margin-top:5px;line-height:1.65}.hand-card.experience{background:linear-gradient(120deg,#294048,#17302d)}.hand-card:hover:not(:disabled){background:#355041}.game-bottom{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid #c1a16230;align-items:center}.voice-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.voice-button{min-height:42px;display:flex;align-items:center;gap:7px;border:1px solid #c4ae6655;border-radius:4px;font-size:11px;padding:9px 12px}.voice-light{width:7px;height:7px;border-radius:50%;background:#84997e}.voice-button.live .voice-light{background:#dab96e;box-shadow:0 0 9px #e9cc8066}.voice-button.muted .voice-light{background:#956956}.bottom-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.bottom-tools button{min-height:40px;padding:8px;color:#d6c495;font-size:11px}.spectator-note{background:#112b22db;border-left:2px solid #a3a16f;padding:13px 15px;font-size:12px;color:#cfdbca;line-height:1.8;margin-top:15px}.outcome-message{text-align:center;padding:26px 12px 35px;max-width:560px;margin:auto}.outcome-symbol{display:block;font:34px var(--display);color:#f4daab;margin-bottom:15px}.outcome-message h2{font:400 29px/1.7 var(--serif);color:#fff0d0;text-wrap:balance;text-shadow:0 2px 22px #0007}.outcome-message p{font-size:13px;line-height:1.95;color:#e2e4cc;margin-top:13px;white-space:pre-line}.morning .phase-heading,.execution .phase-heading{padding-bottom:5px}.morning.phase-enter .outcome-message{animation:result-in .8s ease-out both}.morning.phase-enter>.environment{animation:sunrise 1.2s ease-out both}.result .outcome-message h2{font-size:36px}.result .seat{min-height:138px}.result .result-summary{margin-top:20px;border-top:1px solid var(--line);padding-top:15px;font-size:12px;color:#d3d8c4}.result-votes{font-size:12px;line-height:2}.result-votes div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #c7b45f26;padding:5px 0}.result-votes strong{font-weight:400;color:#e0c998}.lobby-grid{display:grid;grid-template-columns:minmax(360px,1fr) 340px;gap:45px;max-width:1100px;margin:20px auto 0;align-items:start}.invite-panel{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;margin:15px 0 24px;gap:15px}.invite-code{font:31px var(--display);letter-spacing:5px;color:#eed7a2}.invite-panel p{color:#b8c9b9;font-size:11px}.invite-panel button{max-width:150px}.lobby-settings{padding:23px;background:#0d271ddd;border:1px solid #ac995444;border-radius:4px}.lobby-settings h2{font:22px var(--serif);margin-bottom:18px;color:#e4cd97}.lobby-settings label{margin-bottom:17px}.check-label{display:flex;align-items:flex-start;gap:10px;margin:9px 0}.check-label input{min-height:20px;width:20px;height:20px;margin:2px 0 0;accent-color:#d6b97b}.check-label span{display:block}.check-label small{color:#acc0ae;display:block;font-size:11px;line-height:1.8}.settings-readonly{font-size:13px;line-height:2.1;color:#ced8c4}.lobby-actions{display:grid;gap:12px;margin-top:24px}.ready-summary{font-size:12px;color:#d6c18b;margin-bottom:12px}.lobby .seat-status{color:#d2c698}.lobby .seat.ready .coin{border-color:#e5c883;box-shadow:inset 0 0 0 4px #263c2c,inset 0 0 0 5px #bcac6b}.practice-note{font-size:12px;color:#dbc692;background:#183225cc;border-left:2px solid #bba069;padding:12px 14px;margin-bottom:20px}.private-intro{max-width:480px;margin:18px auto 30px;text-align:center}.card-back{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;width:190px;height:260px;margin:25px auto;background:linear-gradient(140deg,#213c2d,#102217);border:1px solid #c8ab65;border-radius:6px;box-shadow:0 22px 45px #0005,inset 0 0 0 6px #102318,inset 0 0 0 7px #97865166;transition:transform .2s}.card-back:hover{transform:translateY(-4px)}.card-back .seal{font:50px var(--display);color:#d1b779;border:1px solid #99894e85;padding:8px 20px;border-radius:50%}.card-back small{font:13px var(--display);letter-spacing:2px;color:#d6c597}.private-intro h2{font:25px var(--serif);color:#e7d19d}.private-intro p{font-size:13px;color:#c9d8c2;line-height:1.9;margin:12px 0 17px}.partner-list{list-style:none;padding:0;margin:15px 0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.partner-list li{border:1px solid #a99d5e77;padding:9px 15px;color:#e1c896;border-radius:3px}.proposal-list{padding:0;list-style:none;font-size:11px;color:#d0d5c5;border-top:1px solid #a4aa7744;margin:14px 0 0}.proposal-list li{padding:6px 0;display:flex;justify-content:space-between;gap:10px}.proposal-list strong{font-weight:400;color:#e0c787}
#dialog{padding:0;border:1px solid #c1a36966;border-radius:8px;background:#0c211a;color:var(--paper);width:min(520px,calc(100% - 26px));max-height:calc(100dvh - 30px);box-shadow:0 25px 100px #000a;overflow:auto;scrollbar-color:#9b9b62 transparent}#dialog::backdrop{background:#04110ee0;backdrop-filter:blur(7px)}#dialog-content{padding:30px 27px;position:relative;min-height:200px}.dialog-close{position:absolute;right:12px;top:12px;width:44px;height:44px;border:1px solid #bbad6b55;border-radius:50%;font-size:25px;z-index:2;background:#0b211bd9}.dialog-kicker{text-align:center;font-size:10px;color:#cebb8b;letter-spacing:1.3px;margin:10px 32px 13px}.dialog-title{font:28px/1.6 var(--serif);color:#ecd49d;margin:14px 0 15px;text-align:center;padding:0 12px;overflow-wrap:anywhere}.dialog-title.latin{font:34px/1.4 var(--display)}.dialog-copy{font-size:13px;line-height:2;color:#d3decd;margin:14px 0 18px;white-space:pre-line}.role-illustration{display:block;width:100%;height:min(330px,39dvh);object-fit:cover;object-position:50% 25%;border:1px solid #c3a05b77;mask-image:linear-gradient(#000 83%,transparent);margin-top:14px}.role-illustration.experience-art,.role-illustration.event-art{object-position:center;height:min(280px,34dvh)}.team-label{font-size:12px;text-align:center;color:#d0bc87;margin:-5px 0 15px}.dialog-actions{display:grid;gap:9px;margin-top:24px}.dialog-footnote{font-size:11px;color:#aabeac;text-align:center;line-height:1.8;margin-top:14px}.confirm-target{margin:20px auto 15px;width:78px;height:78px;border:1px solid #c6a862;border-radius:50%;display:grid;place-items:center;font:40px var(--display);color:#e9d09b;background:#1d3929}.modal-error{color:#f4c3a4;border-left:2px solid #c6956e;background:#442920;margin:15px 0;padding:12px;font-size:12px;line-height:1.8}.target-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:17px 0}.target-option{padding:11px;border:1px solid #ac9a5c55;border-radius:3px;min-height:50px;text-align:left;font-size:13px;overflow-wrap:anywhere}.target-option[aria-pressed=true]{border-color:#e6c881;background:#354630;color:#ffe0a3}.target-option .target-status{display:block;color:#afc0a9;font-size:10px;margin-top:4px}.insight-list,.history-list{list-style:none;padding:0;margin:20px 0}.insight-list li,.history-list li{border-top:1px solid var(--line);padding:14px 0;font-size:13px;color:#d6dfcb;line-height:1.9;overflow-wrap:anywhere}.insight-list small,.history-list small{display:block;font-size:10px;color:#c8b47c;margin-bottom:5px}.insight-list strong{font-weight:400;color:#efcf95}.chat-history{list-style:none;padding:0;margin:18px 0;max-height:42dvh;min-height:120px;overflow:auto;scrollbar-color:#a2985c transparent}.chat-history li{padding:12px 0;border-top:1px solid var(--line);font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}.chat-history .chat-name{display:block;font-size:10px;color:#d2b779;margin-bottom:5px}.chat-form textarea{resize:vertical;min-height:85px;max-height:180px;font-size:14px;margin-bottom:10px}.menu-links{display:grid;gap:9px;margin:24px 0}.menu-links .secondary{font-size:13px}.menu-meta{font-size:12px;color:#b6c5ae;line-height:2;border-top:1px solid var(--line);padding-top:14px}.instruction-list{font-size:13px;color:#c7d4bd;line-height:1.9;padding-left:20px}.instruction-list li{padding:6px 0}.guide-mini{font-size:12px;line-height:1.9;color:#b7c8b5;margin-top:20px}.empty-note{font-size:13px;color:#baccb7;text-align:center;padding:24px 5px;line-height:1.9}.noscript{padding:30px}.loading-mark{display:inline-block;width:14px;height:14px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}.vote-summary{margin:18px 0 0;border-top:1px solid var(--line);padding-top:12px}.vote-summary summary{cursor:pointer;min-height:44px;font-size:12px;color:#dbc28d;display:flex;align-items:center}.vote-summary ul{padding:0;list-style:none;font-size:12px;color:#cbd6bf;line-height:1.9}.vote-summary li{padding:5px 0;overflow-wrap:anywhere}.vote-summary .voter{color:#e0c788}.mobile-only{display:none}@keyframes spin{to{transform:rotate(360deg)}}@keyframes sunrise{from{filter:brightness(.18) saturate(.6)}to{filter:brightness(1) saturate(1)}}@keyframes result-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1250px){.game-layout{gap:40px}.table-area{padding:0 10px}.seats{column-gap:17px;row-gap:27px}.coin{width:72px;height:72px;font-size:35px}.seat{min-height:115px}.board{padding-top:25px}.action-dock{max-width:590px;margin-left:auto;margin-right:auto}.hand{max-width:590px;margin-left:auto;margin-right:auto}.game-bottom{max-width:590px;margin-left:auto;margin-right:auto}.game-header{padding-left:15px;padding-right:15px}}
@media(max-width:1050px){.game-layout{grid-template-columns:minmax(150px,190px) minmax(350px,1fr);gap:30px}.right-rail{display:none}.game{max-width:1050px}.lobby-grid{gap:30px;grid-template-columns:minmax(310px,1fr) 300px}.game>.environment{inset:0 8%}.game:before{background:linear-gradient(90deg,#091d16e8,#091d1633 40%,#091d1677),linear-gradient(0deg,#0a1b15 0%,#0a1b15e0 24%,#08150d10 70%,#071610e8)}.landing{grid-template-columns:1fr 390px;padding-left:4vw;padding-right:4vw;gap:30px}.landing h1{font-size:39px}.header-meta{gap:10px}.header-meta .hide-tablet{display:none}}
@media(max-width:760px){body{font-size:14px}.landing{display:block;padding:27px 21px 35px;min-height:100dvh;overflow:visible}.landing .environment{inset:0 0 auto;height:700px}.landing:before{background:linear-gradient(0deg,#0a1b15 0%,#0a1b15ee 45%,#0a1b1533 75%,#07190bd6)}.landing-title{padding:0 1px 34px;min-height:340px}.landing .brand{font-size:22px}.landing h1{font-size:36px;margin-top:38px;line-height:1.6;letter-spacing:.02em}.landing-intro{font-size:13px;line-height:1.9;max-width:300px}.landing-caption{display:none}.entry-panel{padding:24px 21px;max-width:460px;margin:auto}.entry-panel h2{font-size:22px}.landing-footer{position:static;margin-top:22px;text-align:center;font-size:10px}.game{padding:0 19px max(23px,env(safe-area-inset-bottom));max-width:560px;min-height:100dvh;overflow:clip}.game>.environment{inset:0 0 auto;height:max(1050px,100dvh)}.game:before{background:linear-gradient(180deg,#06190fdc 0%,#0d211610 21%,#0b211430 39%,#0b2115df 63%,#0b2115 85%)}.game.night:before,.game.first_night:before{background:linear-gradient(180deg,#081220e8 0%,#0c1d3222 21%,#0c1d3255 43%,#0b1a29ee 65%,#0b1a29 85%)}.game-header{height:73px;border:0;gap:6px}.game-header .brand{font-size:15px;letter-spacing:2.5px}.game-header .brand small{font-size:10px;letter-spacing:1.5px}.header-meta{margin-left:auto;font-size:10px;gap:5px}.header-meta .hide-mobile{display:none}.room-code{font-size:13px;letter-spacing:1.5px;padding:9px 4px}.icon-button{width:42px;height:42px;min-width:42px;font-size:21px}.phase-heading{padding:8px 3px 12px;text-align:left}.phase-line{justify-content:space-between;font-size:11px}.phase-heading h1{font-size:26px;margin:9px 0 7px;line-height:1.65}.phase-heading p{font-size:12px;margin:0}.clock{font-size:22px}.game-layout{display:flex;flex-direction:column;gap:0;margin-top:2px}.left-rail{width:100%;padding-top:0;order:0}.left-rail:empty{display:none}.left-rail .rail-extra{display:none}.table-area{width:100%;order:1}.right-rail{display:none}.event-ribbon{border:0;border-left:2px solid var(--gold);background:#0a231dee;padding:11px 13px;margin:8px 0 16px;box-shadow:0 5px 20px #0002}.event-ribbon .kicker{display:inline;margin-right:8px;font-size:9px;letter-spacing:.4px}.event-ribbon h2{font-size:21px;display:inline;margin:0 8px 0 0}.event-ribbon p{font-size:11px;line-height:1.8;margin-top:5px}.event-ribbon button{position:absolute;right:5px;top:5px;width:38px;height:38px;min-height:38px;font-size:11px;opacity:.9}.event-ribbon .event-more-text{display:none}.event-ribbon.with-info{padding-right:39px}.board{padding:7px 0 3px}.board-top{font-size:10px;margin-bottom:17px;padding-bottom:9px}.seats{gap:13px 5px;grid-template-columns:repeat(4,minmax(0,1fr))}.coin{width:54px;height:54px;font-size:27px}.seat{min-height:98px;padding-bottom:4px}.seat-name{font-size:12px;margin-top:9px}.seat-status{font-size:9px;line-height:1.4}.seat .self-label{font-size:9px}.seat .revealed-role{font-size:10px}.seat .public-card{font-size:9px}.center-whisper{font-size:11px;margin:16px 0 18px;min-height:18px}.action-dock{margin-top:20px;padding-top:14px}.action-selection{font-size:11px}.action-selection strong{font-size:14px}.primary,.secondary{min-height:48px;font-size:13px}.dock-note{font-size:11px}.hand{margin-top:22px;padding-top:13px}.hand-card{padding:12px 10px;min-height:79px}.hand-name{font-size:20px!important}.hand-title{font-size:10px}.game-bottom{margin-top:13px;padding-top:10px}.voice-controls{gap:6px}.voice-button{font-size:11px;min-height:41px;padding:8px 10px}.bottom-tools button{padding:7px;font-size:10px}.private-ability{margin:10px 0 19px;min-height:96px;padding-left:86px}.private-ability h2{font-size:22px}.private-ability p{font-size:11px;line-height:1.85}.outcome-message{padding:30px 8px 38px;min-height:245px;display:flex;flex-direction:column;justify-content:center}.outcome-message h2{font-size:29px}.outcome-message p{font-size:12px}.outcome-symbol{font-size:29px}.morning .phase-heading h1,.execution .phase-heading h1{font-size:21px}.lobby-grid{display:flex;flex-direction:column;gap:23px;margin-top:9px}.lobby-main,.lobby-settings{width:100%}.lobby-settings{padding:19px}.lobby-settings h2{font-size:22px}.invite-panel{margin:7px 0 21px}.invite-code{font-size:27px;letter-spacing:4px}.invite-panel button{max-width:125px;font-size:12px}.lobby-actions{margin-top:20px}.lobby .board{padding-top:0}.private-intro{margin:9px auto 26px}.private-intro h2{font-size:23px}.card-back{width:165px;height:226px;margin:22px auto}.private-intro p{font-size:12px}.result .seat{min-height:126px}.result .outcome-message{padding-top:20px;padding-bottom:30px;min-height:240px}.result .outcome-message h2{font-size:32px}.mobile-only{display:initial}.desktop-only{display:none!important}#dialog-content{padding:26px 20px}.dialog-title{font-size:25px}.dialog-title.latin{font-size:31px}.dialog-copy{font-size:12px;line-height:1.95}.role-illustration{height:33dvh}.dialog-kicker{font-size:9px}.dialog-close{right:10px;top:10px}.dialog-actions{margin-top:20px}}
@media(max-width:370px){.game{padding-left:15px;padding-right:15px}.coin{width:48px;height:48px;font-size:25px}.seat-name{font-size:11px}.seat{min-height:96px}.phase-heading h1{font-size:24px}.landing{padding-left:16px;padding-right:16px}.landing h1{font-size:32px}.entry-panel{padding-left:17px;padding-right:17px}.hand-cards{gap:7px}.hand-card{padding-left:9px}.hand-name{font-size:18px!important}.game-header .brand{font-size:14px}.header-meta{gap:2px}}
.phase-heading p,.center-whisper,.board-top{text-shadow:0 1px 3px #000d,0 2px 12px #06180de0}
@media(min-width:761px){.board{padding-top:12px}.seats{row-gap:15px}.seat{min-height:101px}.coin{width:62px;height:62px;font-size:30px}.phase-heading{padding-top:23px;padding-bottom:12px}.private-ability{min-height:86px;margin-top:9px}.action-dock{margin-top:13px}.hand{margin-top:18px}}
@media(max-width:760px){.phase-heading p{background:linear-gradient(90deg,#071911ad,#07191130);padding:5px 8px;margin-left:-8px;max-width:calc(100% + 8px)}.center-whisper{padding:8px 5px;background:linear-gradient(90deg,transparent,#061a11a8 20%,#061a11a8 80%,transparent)}.board-top{background:linear-gradient(90deg,#07191169,#07191117);padding:7px 4px 10px}}
.skip-link:not(:focus){clip-path:inset(50%);height:1px;width:1px;overflow:hidden;padding:0}
.voice-consent{display:block;flex-basis:100%;font-size:10px;line-height:1.8;color:#b9c9b8;max-width:360px}
/* A real two-sided card. The final face stays visible without JavaScript motion. */
.card-reveal{width:min(100%,245px);aspect-ratio:3/4;perspective:1100px;margin:20px auto 22px}
.card-turn{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateY(180deg)}
.card-back-face,.card-front-face{position:absolute;inset:0;border:1px solid #c8ab65;border-radius:8px;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 14px 32px #05120e70}
.card-back-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;background:repeating-linear-gradient(45deg,#c8ab6507 0 1px,transparent 1px 9px),linear-gradient(140deg,#294c38,#102217);box-shadow:inset 0 0 0 6px #102318,inset 0 0 0 7px #97865166;color:var(--gold);text-align:center;font:15px/1.6 var(--display);letter-spacing:3px}
.card-seal{font:62px var(--display);border:1px solid #99894e85;border-radius:50%;padding:7px 25px;letter-spacing:0}
.card-front-face{transform:rotateY(180deg);background:#183126}
.card-front-face .role-illustration{width:100%;height:100%;margin:0;border:0;mask-image:none;object-fit:cover;object-position:50% 25%}
.dealt-hand{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,3vw,22px);margin:22px 0 25px}
.dealt-card{min-width:0;margin:0;text-align:center}
.dealt-card-kind{margin:0 0 10px;font:12px var(--display);letter-spacing:1.6px;color:var(--gold)}
.dealt-card .card-reveal{width:100%;margin:0 0 12px}
.dealt-card figcaption{font:clamp(18px,4vw,24px)/1.3 var(--display);color:#ecd49d;overflow-wrap:anywhere}
.dealt-card .card-back-face{font-size:clamp(10px,2.6vw,14px);letter-spacing:1.8px;gap:16px}
.dealt-card .card-seal{font-size:clamp(32px,8vw,52px);padding:5px 15px}
.dealt-notes section{border-top:1px solid var(--line);padding-top:15px;margin-top:17px}
.dealt-notes h3{margin:0;font:15px/1.6 var(--display);color:#e2c998;overflow-wrap:anywhere}
.dealt-notes h3 span{display:block;font:11px/1.8 var(--sans);color:#bdc9b2}
.dealt-notes .dialog-copy{margin:8px 0 12px}
.partner-access{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;width:100%;margin-top:10px;padding:11px 13px;border:1px solid #bcaa6c66;border-radius:3px;background:#122820;color:#e2c998;text-align:left;font-size:12px}
.partner-access span:last-child{font-size:11px;color:#c0cdb7}.partner-access:hover{background:#263e2e}
.private-partners{margin:22px 0;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.private-partners h3{font:17px var(--serif);text-align:center;color:#e1c896}
.partner-list li{max-width:100%;overflow-wrap:anywhere}.partner-list strong{font-weight:500}.partner-status{display:block;font-size:11px;text-align:center;color:#b9cab4;margin-top:3px}
.presentation-settings{display:grid;gap:13px;margin-top:25px}.presentation-settings>.secondary:not(:first-child){margin-top:8px}.sound-volume-label{display:flex;justify-content:space-between;gap:15px}.sound-volume-label output{font-variant-numeric:tabular-nums;color:var(--gold)}
#sound-volume{min-height:44px;padding:0;accent-color:var(--gold);margin:0}.presentation-settings .text-button{justify-self:center}.landing-links{flex-wrap:wrap;gap:8px 16px;align-items:center}
@media(max-width:760px){.card-reveal{width:min(100%,210px)}.partner-access{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important}

/* Fixed app table with readable jade surfaces and bounded detail sheets. */
:root{--surface:#10271f;--surface-raised:#19372b;--surface-edge:#aa925253;--motion-out:cubic-bezier(.16,1,.3,1);--motion-spring:cubic-bezier(.2,.8,.2,1.08)}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}#main{height:100dvh;min-height:0;outline:none}
button:not(:disabled),a{transition:background-color .18s ease,border-color .18s ease,box-shadow .24s ease,transform .24s var(--motion-spring)}button:active:not(:disabled){transform:translateY(1px) scale(.98)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ffe2a2;outline-offset:3px}
.primary{background:linear-gradient(110deg,#e4ce96,#c4ac73);box-shadow:inset 0 1px #faedc9b3,0 4px 12px #07150f35;border-color:#d8bd80;border-radius:7px}.secondary{background:#1a372b;border-color:#aa945d73;border-radius:7px}.connection{position:fixed;top:0;left:0;right:0;box-shadow:0 4px 14px #05151080}
.app-shell.game{height:100dvh;min-height:0;max-width:1600px;padding:0 clamp(12px,3vw,36px) max(10px,env(safe-area-inset-bottom));display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:12px;overflow:hidden}
.app-shell.game{grid-template-columns:minmax(0,1fr)}.app-shell>.phase-heading,.app-shell>.app-stage,.app-shell>.action-dock,.app-stage>*{min-width:0}
.app-shell.game>.environment{inset:0;height:100%;opacity:.85}.app-shell.game:before{background:linear-gradient(90deg,#071b16c7,#071b161a 40%,#071b1640 65%,#071b16c7),linear-gradient(0deg,#071b16e8,transparent 55%,#071b16bf)}.app-shell.game.night:before,.app-shell.game.first_night:before,.app-shell.game.role_reveal:before{background:linear-gradient(90deg,#08161fcf,#08161f33 45%,#08161fcf),linear-gradient(0deg,#071820f5,transparent 58%,#071820d9)}
.app-shell .game-header{height:66px;padding:0 3px;border-bottom:1px solid #d5bd7952;flex-shrink:0;text-shadow:0 1px 8px #071b16}.app-shell .game-header .brand{font-size:17px;letter-spacing:3px}.app-shell .game-header .brand small{font-size:11px}.app-shell .room-code{padding:8px 12px;background:#0e271fe8;border:1px solid #b9a5664d;border-radius:5px;font-variant-numeric:tabular-nums}.app-shell .icon-button{background:#10271fea;border-color:#b39a625e}
.app-shell .phase-heading{width:min(100%,960px);margin:0 auto;padding:13px 20px 15px;min-height:0;text-align:left;background:#10271ff5;border:1px solid var(--surface-edge);border-radius:12px;box-shadow:0 9px 28px #05151040,inset 0 1px #ddc7950b;position:relative}.app-shell.night .phase-heading,.app-shell.first_night .phase-heading,.app-shell.role_reveal .phase-heading{background:#122a32f7;border-color:#8da2a64d}
.app-shell .phase-line{justify-content:space-between;font-size:12px;color:#ddc899;min-height:24px}.phase-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.app-shell .phase-heading h1{font-size:clamp(23px,2.4vw,32px);line-height:1.5;margin:2px 0 0;text-shadow:none;letter-spacing:.03em}.app-shell .phase-explanation{font-size:13px;background:none;padding:0;margin:5px 0 0;max-width:700px;line-height:1.7;color:#d8e0d0;text-shadow:none}.phase-help{display:grid;place-items:center;min-width:40px;min-height:40px;padding:8px;border:1px solid #b19c6061;border-radius:50%;background:#20392c;color:#eddbaf;font-size:17px;flex-shrink:0}.app-shell .clock{font-size:24px;color:#f0d9a6;line-height:1.2}.app-shell .clock.urgent{color:#ffc6a0}
.app-stage{width:min(100%,960px);min-height:0;display:flex;flex-direction:column;gap:10px;margin:0 auto;position:relative}.stage-tools{display:flex;align-items:stretch;gap:8px;flex-shrink:0;min-height:40px}.event-chip{display:flex;align-items:center;gap:10px;min-width:0;min-height:42px;padding:8px 13px;background:#142d23fa;border:1px solid #b59b566b;border-radius:7px;text-align:left;box-shadow:0 3px 9px #08180e36}.event-chip .kicker{font-size:10px;letter-spacing:.7px;flex-shrink:0;color:#d8c28e}.event-chip strong{font:20px/1.2 var(--display);font-weight:400;color:#f0d9a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-chip>span:last-child{margin-left:auto;color:#deca97}.stage-tools>.partner-access{width:auto;min-height:42px;margin:0;padding:8px 13px;white-space:nowrap;gap:10px;flex-shrink:0;background:#162c2cfa;border-color:#9fa88157}.stage-tools>.partner-access span:last-child{display:none}.stage-tools>.secondary,.stage-tools>.text-button{width:auto;background:#122a21f5;border:1px solid #aa945d57;border-radius:7px;min-height:42px;padding:7px 12px;white-space:nowrap;font-size:12px;flex-shrink:0;text-decoration:none}
.app-stage>.board{flex:1;min-height:0;padding:12px 15px;display:flex;flex-direction:column;background:#0e241efa;border:1px solid #b59b5657;border-radius:12px;box-shadow:0 8px 30px #07150f36}.app-shell .board-top{margin:0 0 11px;padding:0 0 9px;background:none;font-size:12px;min-height:29px;flex-shrink:0;text-shadow:none;line-height:1.4}.app-shell .board-top button{font-size:11px;color:#e9d49f;min-height:30px;padding:4px 8px;background:#20372b;border:1px solid #bfa46142;border-radius:4px;margin:-4px 0 -4px 3px}
.app-shell .seats{flex:1;min-height:0;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:12px 8px;align-content:stretch}.app-shell .seat{min-height:0;padding:7px 4px;justify-content:center;background:#1a3228;border:1px solid #9e935d29;border-radius:8px;overflow:hidden}.app-shell .coin{width:clamp(34px,6dvh,62px);height:clamp(34px,6dvh,62px);font-size:clamp(23px,3dvh,31px);flex-shrink:0;box-shadow:0 3px 8px #05160e4f,inset 0 0 0 3px #182e23,inset 0 0 0 4px #bba16755}.app-shell .coin:before{inset:-3px;border-color:#bfa76838}.app-shell .seat-name{font-size:13px;margin-top:8px;line-height:1.3;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f3eddd}.app-shell .seat .self-label{display:inline;font-size:9px;margin-left:4px;color:#e5c88f}.app-shell .seat-status{font-size:10px;line-height:1.25;min-height:13px;margin-top:3px;color:#c6d4c4}
.app-shell .seat.selected{background:#324735;border-color:#e2c68a;box-shadow:inset 0 0 0 1px #b59b6c}.app-shell .seat.selected .coin{box-shadow:0 0 0 2px #d6b773,0 0 0 5px #d5b96d21,inset 0 0 0 3px #3d502f}.app-shell .seat.selectable:hover{background:#294433;border-color:#d8bf8366;transform:translateY(-2px)}.app-shell .seat.dead{background:#14251f;border-color:#84917726}.app-shell .seat.dead .seat-name{color:#b5bfb0}.app-shell .seat.speaking{background:#263f2f;border-color:#cfb7778c}
.app-shell>.action-dock{width:min(100%,960px);margin:0 auto;padding:12px 16px;min-height:0;border:1px solid #b9a36666;border-radius:10px;background:#10271ffa;box-shadow:0 -5px 25px #06150e30}.app-shell .action-selection{margin:0 0 8px;font-size:12px;line-height:1.4;gap:10px}.app-shell .action-selection strong{font-size:14px;max-width:65%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-shell .action-dock .primary,.app-shell .action-dock .secondary{min-height:44px;padding:10px 16px;font-size:14px}.app-shell .dock-note{margin:5px 0 0;font-size:11px;line-height:1.6;color:#c5d2c1;text-wrap:pretty}.app-shell .submitted-mark{padding:3px 0;font-size:14px;line-height:1.5}.app-shell .submitted-mark:before{width:24px;height:24px;flex-shrink:0}.app-shell .waiting-orb{width:18px;height:18px;display:inline-block;margin:1px 12px 1px 3px;vertical-align:middle;box-shadow:0 0 0 5px #a4ab7312,0 0 0 6px #bdae4c22}.app-shell .waiting-orb+.dock-note{display:inline;vertical-align:middle}.app-shell .proposal-list{margin-top:6px;padding-top:4px;font-size:11px;display:flex;gap:10px;flex-wrap:wrap}.app-shell .proposal-list li{padding:0}.app-shell .action-dock>.text-button{min-height:34px;padding:3px 0}
.app-nav.game-bottom{width:min(100%,960px);max-width:960px;margin:0 auto;padding:0;border:1px solid #baa36b5e;border-radius:10px;background:#0c221dfa;box-shadow:0 6px 20px #06130e4a;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;flex-shrink:0;overflow:hidden;align-items:stretch}.app-nav>button{min-height:62px;min-width:0;width:100%;padding:8px 4px;color:#e5d8b5;border-radius:0;font-size:12px;line-height:1.4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative}.app-nav>button+button{border-left:1px solid #a2925840}.app-nav>button:hover:not(:disabled){background:#233d2f}.app-nav>button:focus-visible{outline-offset:-4px}.app-nav .nav-icon,.app-nav>button>svg{width:20px;height:20px;font-size:20px;line-height:1;color:#e3c789}.app-nav .nav-label{display:block;white-space:nowrap;font-size:12px;line-height:1.2}.app-nav .is-usable,.app-nav [data-usable=true]{background:#243f2c;color:#f3dfaa;box-shadow:inset 0 2px #ddc28a}.app-nav .is-usable:after,.app-nav [data-usable=true]:after{content:'';width:5px;height:5px;position:absolute;right:8px;top:8px;border-radius:50%;background:#e3c789}
.app-shell .lobby-summary{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:10px 13px;background:#11291ffa;border:1px solid #ab95525c;border-radius:8px;color:#d5dfcc;font-size:12px;min-height:43px;line-height:1.5}.app-shell .lobby-summary button{margin-left:auto;color:#efdbab;min-height:30px;font-size:12px}.app-shell button.lobby-summary{justify-content:space-between;min-height:44px;width:100%;text-align:left}.app-shell .lobby-actions{display:grid;gap:8px}.lobby-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.app-shell .ready-summary{margin:0;font-size:12px;line-height:1.4}
.app-shell .private-intro{width:100%;min-height:0;flex:1;margin:0;max-width:none;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px;border-radius:12px;background:#0e2520f5;border:1px solid #b4a36c45}.app-shell .private-intro h2{font-size:25px;color:#f0dbab;line-height:1.5;margin-top:10px}.app-shell .private-intro p{font-size:13px;line-height:1.8;margin:8px 0 0;color:#d4dfcd}.hand-stack{position:relative;width:190px;height:min(31dvh,260px);flex-shrink:1;min-height:100px;margin:2px 0 10px;perspective:900px}.app-shell .hand-stack .card-back{position:absolute;inset:0;width:100%;height:100%;margin:0;z-index:1;transform:rotate(-6deg);background:repeating-linear-gradient(45deg,#bea36607 0 1px,transparent 1px 10px),linear-gradient(140deg,#294a38,#10251b);box-shadow:0 14px 22px #05151077,inset 0 0 0 6px #102318,inset 0 0 0 7px #bda16866;transition:transform .4s var(--motion-spring),box-shadow .4s}.app-shell .hand-stack .card-back:hover{transform:rotate(-9deg) translateY(-5px);box-shadow:0 20px 32px #04150d90,inset 0 0 0 6px #102318,inset 0 0 0 7px #bda16866}.app-shell .hand-stack .card-back:active{transform:rotate(-4deg) scale(.97)}.card-back-shadow{position:absolute;inset:0;border:1px solid #bfa76d;border-radius:6px;background:repeating-linear-gradient(-45deg,#bca46708 0 1px,transparent 1px 10px),#1e3b36;transform:rotate(7deg) translateX(11px);box-shadow:inset 0 0 0 6px #153329,inset 0 0 0 7px #ad986960,0 14px 25px #05151055}.app-shell .card-back .seal{font-size:48px;padding:5px 18px}.app-shell .card-back small{font-size:12px;letter-spacing:1.5px}
.stage-outcome{display:block;width:100%;padding:15px 18px;text-align:center;background:#162e24fa;border:1px solid #c3a96877;border-radius:12px;flex-shrink:0;position:relative;box-shadow:0 6px 25px #07150f3d}.stage-outcome>span{display:block;font:28px/1.5 var(--serif);color:#f1dda9;text-wrap:balance;margin:0 0 4px}.stage-outcome>small{display:block;font-size:12px;line-height:1.7;color:#d8e0cf;max-width:600px;margin:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Header and actions stay put; long explanations remain comfortably readable. */
#dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border-color:#c1a3698a;border-radius:14px;overflow:hidden;background:#10271f;box-shadow:0 24px 100px #03100cd6}#dialog::backdrop{background:#04140cd4;backdrop-filter:blur(8px)}#dialog-content{padding:0;min-height:0;max-height:calc(100dvh - 26px);display:flex;flex-direction:column;overflow:hidden}.dialog-header{position:relative;padding:20px 60px 15px 24px;border-bottom:1px solid #bca46549;flex-shrink:0;background:#163026}.dialog-header .dialog-kicker{margin:0 0 5px;padding:0;text-align:left;font-size:10px;line-height:1.5;letter-spacing:1px;color:#d7c18f}.dialog-header .dialog-title,.dialog-header .dialog-title.latin{font:26px/1.45 var(--serif);margin:0;padding:0;text-align:left;color:#efdbad;text-wrap:balance}.dialog-header .dialog-title.latin{font-family:var(--display);font-size:29px}.dialog-header .dialog-close{right:12px;top:50%;transform:translateY(-50%);background:#223c2f;border-color:#bfa66375;font-size:24px}.dialog-header .dialog-close:active{transform:translateY(-50%) scale(.96)}
.dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 24px;scrollbar-width:thin;scrollbar-color:#9b9566 #10271f}.dialog-body .dialog-copy{font-size:14px;line-height:1.9;margin:8px 0 16px;color:#dce5d7}.dialog-body .dialog-footnote{color:#c3d1bf;font-size:12px;line-height:1.75}#dialog-content>.dialog-actions{flex-shrink:0;margin:0;padding:13px 20px max(13px,env(safe-area-inset-bottom));border-top:1px solid #bca46549;background:#122b22;gap:8px}#dialog-content>.dialog-actions .primary,#dialog-content>.dialog-actions .secondary{min-height:44px;padding:10px 15px;font-size:13px}#dialog-content>.modal-error{margin:0;padding:10px 20px;flex-shrink:0}
.dialog-body .dealt-hand{margin:0 0 20px;gap:18px}.dialog-body .dealt-card .card-reveal{max-width:210px;margin:0 auto 11px}.dialog-body>.card-reveal{width:min(100%,220px);margin-top:0}.dialog-body .dealt-notes section{padding-top:12px;margin-top:12px}.dialog-body .dealt-notes h3{font-size:17px}.dialog-body .dealt-notes .dialog-copy{font-size:13px}.dialog-body .private-partners{margin:15px 0}.dialog-body .public-log{max-height:none;overflow:visible}.dialog-body .lobby-settings{padding:0;background:none;border:0}.dialog-body .history-list,.dialog-body .insight-list{margin-top:0}.dialog-body .voice-controls{padding:5px 0;gap:10px}.dialog-body .voice-consent{font-size:12px;max-width:none}.dialog-body .voice-button{font-size:13px;min-height:44px}.dialog-body .presentation-settings{margin-top:0}
.hand-note-tabs{display:flex;gap:5px;padding:4px;border:1px solid #b09a5e54;background:#0b2119;border-radius:7px;margin:12px 0}.hand-note-tabs button{flex:1;min-height:40px;font-size:12px;border-radius:4px;color:#bfcfba}.hand-note-tabs button[aria-selected=true]{color:#f0dba7;background:#28432f;box-shadow:inset 0 0 0 1px #bb9f5d74}.roster-list{display:grid;gap:9px;margin:0;padding:0;list-style:none}.roster-item{padding:12px 13px;background:#1b362a;border:1px solid #a9935a3d;border-radius:7px;overflow-wrap:anywhere}.roster-item strong{color:#ecdbaf}.roster-item small{color:#c7d5c1;display:block;font-size:12px;margin-top:4px}
/* A compact front door, with the illustrated village still in view. */
.landing{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;padding:clamp(20px,5dvh,56px) max(6vw,24px);gap:5vw;grid-template-columns:1fr minmax(350px,440px)}.landing .environment{right:0;height:100%}.landing:before{background:linear-gradient(90deg,#06191170,#071b1320 40%,#091c17ba 76%,#091c17db),linear-gradient(0deg,#071b15e6,transparent 70%)}.landing-title{padding:0;min-height:0;max-width:640px}.landing .brand{display:inline-block;padding:0 0 20px;color:#edd3a0;text-shadow:0 2px 8px #061911}.landing h1{font-size:clamp(36px,4vw,64px);line-height:1.5;margin:20px 0 15px;letter-spacing:.03em;text-shadow:0 2px 16px #04130ecc}.landing-intro{font-size:15px;line-height:1.9;background:#0e261cf5;padding:14px 18px;border-left:2px solid #c9b075;border-radius:0 6px 6px 0;max-width:440px;color:#e1e8d7}.landing-caption{margin-top:28px;font-size:10px;letter-spacing:2.3px}.entry-panel{padding:26px;background:#10271ff7;border-color:#b69b626d;border-radius:12px;box-shadow:0 20px 55px #04160e70;max-width:none;width:100%;min-height:0;margin:0}.entry-panel h2{font-size:25px;margin-bottom:15px}.entry-tabs{margin-bottom:17px;gap:8px}.entry-tabs button{font-size:13px;min-height:44px}.entry-panel .field-stack{gap:14px}.entry-panel label{font-size:12px;color:#dce5d4}.entry-panel input{min-height:47px;padding:10px 12px;font-size:16px;background:#0b2119;border-color:#a795656e;border-radius:6px}.entry-panel label>input{margin-top:6px}.entry-panel .form-note{font-size:11px;line-height:1.7;color:#c4d1bf}.entry-panel .entry-separator{margin:14px 0}.entry-panel>.secondary{margin-top:14px;min-height:44px}.entry-panel .landing-links{margin-top:13px;gap:3px 12px;justify-content:space-between}.landing-links .text-button,.landing-links a{font-size:11px;min-height:40px;display:inline-flex;align-items:center;padding:4px 0}.landing-footer{bottom:14px;color:#c8d4bd;font-size:10px;text-shadow:0 2px 5px #04140d}
@media(max-width:760px){
.app-shell.game{padding:0 12px max(8px,env(safe-area-inset-bottom));gap:8px;max-width:560px}.app-shell .game-header{height:53px;padding:0 3px}.app-shell .game-header .brand{font-size:14px;letter-spacing:2.4px}.app-shell .game-header .brand small{font-size:9px;letter-spacing:1.5px}.app-shell .room-code{font-size:12px;min-height:38px;padding:6px 9px;letter-spacing:1.5px}.app-shell .icon-button{height:40px;width:40px;min-width:40px}.app-shell .phase-heading{padding:9px 13px 10px;border-radius:10px}.app-shell .phase-line{font-size:11px;min-height:23px}.app-shell .phase-heading h1{font-size:23px;line-height:1.45;margin:3px 0 0;letter-spacing:0}.app-shell .phase-explanation{display:none}.app-shell .clock{font-size:22px}.phase-help{min-width:32px;min-height:32px;width:32px;height:32px;font-size:15px;padding:5px}.phase-title-row{gap:7px}
.app-stage{gap:7px}.stage-tools{gap:6px;min-height:36px}.event-chip{flex:1;min-height:36px;padding:6px 9px;gap:7px}.event-chip .kicker{font-size:9px}.event-chip strong{font-size:17px}.stage-tools>.partner-access,.stage-tools>.secondary,.stage-tools>.text-button{min-height:36px;padding:6px 8px;font-size:11px;gap:5px}.app-stage>.board{padding:9px 9px 10px;border-radius:10px}.app-shell .board-top{font-size:11px;margin-bottom:8px;padding:0 0 6px;min-height:27px}.app-shell .board-top button{font-size:10px;padding:3px 6px;min-height:28px}.app-shell .seats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 5px}.app-shell .seat{padding:5px 2px;border-radius:6px}.app-shell .coin{width:clamp(28px,4.9dvh,43px);height:clamp(28px,4.9dvh,43px);font-size:clamp(19px,3dvh,25px)}.app-shell .seat-name{font-size:12px;margin-top:6px;line-height:1.25}.app-shell .seat .self-label{display:none}.app-shell .seat-status{font-size:10px;margin-top:3px;min-height:12px;line-height:1.2}
.app-shell>.action-dock{padding:10px 11px;border-radius:9px}.app-shell .action-dock .primary,.app-shell .action-dock .secondary{min-height:43px;padding:9px 11px;font-size:13px}.app-shell .action-selection{font-size:11px;margin-bottom:6px}.app-shell .action-selection strong{font-size:13px}.app-shell .dock-note{font-size:10px;line-height:1.5;margin-top:4px}.app-nav.game-bottom{border-radius:9px}.app-nav>button{min-height:58px;padding:6px 3px;font-size:11px;gap:4px}.app-nav .nav-label{font-size:10px}.app-nav .nav-icon,.app-nav>button>svg{width:18px;height:18px;font-size:18px}.app-shell .ready-summary{font-size:11px}.app-shell .lobby-actions{gap:7px}.lobby-action-buttons{gap:7px}.app-shell .lobby-summary{min-height:39px;padding:7px 9px;font-size:11px}
.app-shell .private-intro{padding:12px}.app-shell .private-intro h2{font-size:23px;margin-top:7px}.app-shell .private-intro p{font-size:12px;margin-top:6px}.hand-stack{width:150px;height:min(29dvh,208px);margin-bottom:8px}.app-shell .card-back .seal{font-size:40px;padding:3px 16px}.app-shell .card-back small{font-size:11px;letter-spacing:1px}.stage-outcome{padding:10px 12px}.stage-outcome>span{font-size:22px;line-height:1.4;margin-bottom:3px}.stage-outcome>small{font-size:11px}
#dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:12px}#dialog-content{max-height:calc(100dvh - 18px)}.dialog-header{padding:15px 54px 13px 18px}.dialog-header .dialog-kicker{font-size:9px}.dialog-header .dialog-title{font-size:22px}.dialog-header .dialog-title.latin{font-size:26px}.dialog-header .dialog-close{right:9px;width:38px;height:38px}.dialog-body{padding:16px 17px}.dialog-body .dialog-copy{font-size:13px;line-height:1.85}.dialog-body .dialog-footnote{font-size:11px}.dialog-body .dealt-hand{gap:13px;margin-bottom:15px}.dialog-body .dealt-card-kind{font-size:11px;margin-bottom:8px}.dialog-body .dealt-card figcaption{font-size:20px}#dialog-content>.dialog-actions{padding:11px 15px max(11px,env(safe-area-inset-bottom))}
.landing{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:max(15px,env(safe-area-inset-top)) 18px max(17px,env(safe-area-inset-bottom));height:100dvh;min-height:0;overflow:hidden}.landing .environment{inset:0;height:100%}.landing:before{background:linear-gradient(180deg,#071b1590,transparent 25%,#071b1570 50%,#071b15e5)}.landing-title{width:100%;max-width:430px;display:grid;grid-template-columns:100px 1fr;column-gap:13px;align-items:center;padding:0;min-height:0}.landing .brand{padding:0;font-size:20px;line-height:1.2;letter-spacing:3px}.landing .brand small{font-size:11px;letter-spacing:1.5px}.landing h1{font-size:29px;line-height:1.45;margin:0;letter-spacing:0}.landing-intro{grid-column:1/-1;margin-top:14px;padding:10px 13px;font-size:12px;line-height:1.7;max-width:none;background:#10271ffa}.landing-caption{display:none}.entry-panel{width:100%;max-width:430px;padding:19px 18px;border-radius:11px}.entry-panel h2{font-size:23px;margin-bottom:11px}.entry-tabs{margin-bottom:13px;gap:4px}.entry-tabs button{font-size:12px;min-height:41px}.entry-panel .field-stack{gap:11px}.entry-panel input{min-height:44px}.entry-panel .primary{min-height:44px;padding:9px 12px}.entry-panel .form-note{font-size:10px;line-height:1.65}.entry-panel>.secondary{margin-top:11px;min-height:42px;font-size:12px;padding:9px 12px}.entry-panel .landing-links{margin-top:7px;gap:3px 10px}.landing-links .text-button,.landing-links a{font-size:10px;min-height:35px}.landing-footer{position:static;margin:0;text-align:center;font-size:9px;line-height:1.4;flex-shrink:0}
}
@media(max-width:760px) and (max-height:700px){
.app-shell.game{gap:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}.app-shell .game-header{height:48px}.app-shell .phase-heading{padding:8px 11px}.app-shell .phase-heading h1{font-size:21px;line-height:1.4;margin-top:1px}.app-shell .phase-line{min-height:21px}.app-stage{gap:6px}.stage-tools{min-height:32px}.event-chip,.stage-tools>.partner-access,.stage-tools>.secondary,.stage-tools>.text-button{min-height:32px;padding-top:4px;padding-bottom:4px}.event-chip .kicker{font-size:8px}.event-chip strong{font-size:16px}.app-stage>.board{padding:7px}.app-shell .board-top{margin-bottom:6px;min-height:24px;padding-bottom:5px}.app-shell .seats{gap:5px 4px}.app-shell .seat{padding:4px 2px}.app-shell .coin{width:30px;height:30px;font-size:20px}.app-shell .seat-name{margin-top:4px;font-size:11px}.app-shell .seat-status{font-size:9px;min-height:11px;margin-top:2px}.app-shell>.action-dock{padding:8px 10px}.app-shell .action-dock .primary,.app-shell .action-dock .secondary{min-height:40px;padding:8px 9px;font-size:12px}.app-shell .dock-note{font-size:10px;line-height:1.4}.app-nav>button{min-height:52px;padding:5px 2px;gap:3px}.app-nav .nav-label{font-size:9px}.app-nav .nav-icon,.app-nav>button>svg{font-size:17px;width:17px;height:17px}.hand-stack{width:122px;height:165px;margin:0 0 6px}.app-shell .card-back .seal{font-size:34px}.app-shell .card-back small{font-size:10px}.app-shell .private-intro h2{font-size:21px}.app-shell .private-intro p{font-size:11px;line-height:1.6;margin-top:5px}.stage-outcome{padding:8px 10px}.stage-outcome>span{font-size:19px}.stage-outcome>small{font-size:10px}
.landing{gap:12px;padding:14px 16px}.landing-title{grid-template-columns:88px 1fr;gap:12px}.landing .brand{font-size:18px}.landing .brand small{font-size:10px}.landing h1{font-size:25px;line-height:1.35}.landing-intro{display:none}.entry-panel{padding:15px 16px}.entry-panel h2{font-size:21px;margin-bottom:8px}.entry-tabs{margin-bottom:11px}.entry-panel .field-stack{gap:10px}.entry-panel label>input{margin-top:4px}.entry-panel .landing-links{margin-top:6px}
}
@media(max-width:760px) and (max-height:590px){
.app-shell .coin{width:24px;height:24px;font-size:17px;box-shadow:inset 0 0 0 2px #172c21,inset 0 0 0 3px #bba16766}.app-shell .coin:before{display:none}.app-shell .seat{padding:3px 1px}.app-shell .seat-name{margin-top:3px;line-height:1.2}.app-shell .seat-status{margin-top:1px}.app-shell .phase-heading h1{font-size:20px}.app-shell .phase-heading{padding-top:6px;padding-bottom:6px}.app-shell .game-header{height:45px}.app-shell .lobby-summary{min-height:34px;padding:5px 8px}.app-shell .ready-summary{font-size:10px}.app-shell .lobby-actions{gap:5px}.app-shell .submitted-mark{font-size:12px}.app-shell .submitted-mark:before{height:21px;width:21px}.hand-stack{width:112px;height:145px}.app-shell .private-intro h2{font-size:20px}.app-shell .private-intro p{font-size:11px}.app-shell .card-back .seal{font-size:29px;padding:3px 12px}
.landing{gap:10px;padding:12px 14px}.entry-panel{padding:12px 14px}.entry-panel h2{font-size:20px;margin-bottom:6px}.entry-tabs{margin-bottom:9px}.entry-tabs button{min-height:36px}.entry-panel .field-stack{gap:8px}.entry-panel label{font-size:11px}.entry-panel input{min-height:42px;padding:8px 11px}.entry-panel .primary{min-height:42px}.entry-panel>.secondary{margin-top:9px;min-height:40px}.landing-footer{font-size:8px}
}
@media(min-width:761px) and (max-height:740px){.app-shell.game{gap:8px;padding-bottom:8px}.app-shell .game-header{height:53px}.app-shell .phase-heading{padding:8px 17px}.app-shell .phase-explanation{display:none}.app-shell .phase-heading h1{font-size:26px}.app-shell .phase-line{min-height:20px}.app-shell .app-stage{gap:7px}.app-shell .coin{width:39px;height:39px;font-size:25px}.app-shell .seat{padding:4px}.app-shell .seat-name{margin-top:5px}.app-shell .seats{gap:7px}.app-shell .app-nav>button{min-height:54px}.app-shell>.action-dock{padding:8px 13px}.landing{padding:22px 4vw;gap:4vw}.entry-panel{padding:20px}.landing h1{font-size:43px}.landing-intro{font-size:13px}.entry-panel .field-stack{gap:10px}.entry-panel>.secondary{margin-top:10px}}
@media(max-height:480px) and (min-width:560px){
.app-shell.game{max-width:1600px;padding:0 10px 7px;gap:6px;grid-template-columns:minmax(0,1fr) 228px;grid-template-rows:43px auto minmax(0,1fr) auto}.app-shell .game-header{height:43px;grid-column:1/-1}.app-shell .phase-heading{grid-column:1;grid-row:2;padding:5px 12px}.app-shell .phase-heading h1{font-size:19px;line-height:1.3}.app-shell .phase-line{font-size:10px;min-height:18px}.app-shell .clock{font-size:19px}.app-shell .phase-explanation{display:none}.app-shell .app-stage{grid-column:1;grid-row:3/5;gap:5px;overflow:auto;overscroll-behavior:contain}.app-shell>.action-dock{grid-column:2;grid-row:2/4;align-self:end;padding:11px 12px}.app-shell .app-nav{grid-column:2;grid-row:4;grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.app-nav>button{min-height:46px;font-size:10px;padding:5px 2px}.app-nav>button+button{border-left:0}.app-nav>button:nth-child(n+4){border-top:1px solid #a2925840}.app-nav>button:nth-child(3n+2){border-left:1px solid #a2925840;border-right:1px solid #a2925840}
.app-shell .seats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.app-shell .coin{width:22px;height:22px;font-size:16px}.app-shell .seat-name{font-size:10px;margin-top:2px}.app-shell .seat-status{font-size:9px;margin-top:1px;min-height:10px}.app-shell .seat{padding:3px 1px}.app-shell .coin:before{display:none}.app-shell .board-top{font-size:10px;min-height:22px;margin-bottom:4px;padding-bottom:4px}.app-shell .app-stage>.board{padding:6px;min-height:190px}.app-shell .stage-tools{min-height:29px}.event-chip,.stage-tools>.partner-access,.stage-tools>.secondary,.stage-tools>.text-button{min-height:29px;padding:4px 7px;font-size:10px}.event-chip .kicker{font-size:8px}.event-chip strong{font-size:15px}.app-shell .lobby-summary{min-height:31px;padding:4px 8px}.lobby-action-buttons{grid-template-columns:1fr}.app-shell .private-intro{min-height:185px;flex-direction:row;flex-wrap:wrap;column-gap:24px;align-content:center;padding:10px}.hand-stack{width:93px;height:123px;margin:4px 10px}.app-shell .private-intro h2{font-size:20px;width:45%;margin:0}.app-shell .private-intro p{font-size:11px;margin:7px 0 0}.app-shell .card-back .seal{font-size:25px;padding:2px 10px}.app-shell .card-back small{font-size:8px}.stage-outcome{padding:5px 8px}.stage-outcome>span{font-size:18px}.stage-outcome>small{display:none}
.landing{display:grid;grid-template-columns:1fr minmax(300px,390px);padding:10px 20px;gap:25px;align-items:center}.landing-title{display:block}.landing .brand{font-size:19px}.landing .brand small{font-size:10px}.landing h1{font-size:30px;margin:18px 0 0}.landing-intro,.landing-caption,.landing-footer{display:none}.entry-panel{padding:12px 16px}.entry-panel h2{display:none}.entry-tabs{margin-bottom:8px}.entry-tabs button{min-height:33px}.entry-panel .field-stack{gap:7px}.entry-panel label{font-size:10px}.entry-panel label>input{margin-top:3px;min-height:37px;padding:6px 10px}.entry-panel .primary{min-height:37px;padding:7px 10px}.entry-panel .form-note{font-size:9px}.entry-panel>.secondary{min-height:35px;margin-top:7px;padding:6px 10px}.entry-panel .landing-links{margin-top:4px}.landing-links .text-button,.landing-links a{min-height:28px;font-size:9px}.dialog-header{padding-top:11px;padding-bottom:10px}.dialog-header .dialog-title{font-size:22px}.dialog-body{padding-top:12px;padding-bottom:12px}#dialog-content>.dialog-actions{padding-top:9px;padding-bottom:9px}
}
@media(max-height:500px) and (max-width:559px){.app-shell .app-stage{overflow:auto;overscroll-behavior:contain}.app-shell .app-stage>.board{min-height:220px}.app-shell .private-intro{min-height:240px}.landing{overflow:auto;justify-content:flex-start}.landing>*{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important}
/* Hidden announcements must not add a stray bottom pixel to the document. */
.sr-only{top:0;left:0}.app-shell .seat-status{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* New shell components share the same control vocabulary. */
.app-nav .nav-symbol{font-size:20px;line-height:1;color:#e3c789}.app-nav .usable{background:#243f2c;color:#f3dfaa;box-shadow:inset 0 2px #ddc28a}.app-nav .usable:after{content:'';width:5px;height:5px;position:absolute;right:8px;top:8px;border-radius:50%;background:#e3c789}
.stage-shortcut{min-height:40px;padding:7px 11px;background:#142d23fa;border:1px solid #b59b566b;border-radius:7px;color:#ead4a0;font-size:12px;white-space:nowrap}.stage-tools:has(.stage-shortcut){display:grid;grid-template-columns:minmax(0,1fr) auto}.stage-tools:empty{display:none}
.roster-list>li{padding:12px 13px;background:#1b362a;border:1px solid #a9935a3d;border-radius:7px;overflow-wrap:anywhere}.roster-list>li strong{display:block;color:#ecdbaf;font-weight:500}.roster-list>li>span{display:block;color:#c7d5c1;font-size:12px;margin-top:4px}.roster-list>li p{font-size:12px;line-height:1.8;margin-top:5px;color:#dfd8bb}
.app-shell .spectator-note{flex-shrink:0;margin:0;padding:7px 10px;font-size:11px;line-height:1.5;background:#10271ffa;border-radius:5px}
@media(max-width:760px){.app-nav .nav-symbol{font-size:18px}.stage-shortcut{min-height:34px;padding:5px 8px;font-size:10px}}
@media(max-height:590px){.app-nav .nav-symbol{font-size:17px}.app-shell .spectator-note{font-size:10px;padding:5px 8px}}
/* Token names and labels do not compress when a phase adds a result row. */
.app-shell .seat-name,.app-shell .seat-status{flex-shrink:0}.app-nav>button>span:last-child{white-space:nowrap;font-size:12px;line-height:1.2}.app-nav .nav-symbol{flex-shrink:0}
@media(max-width:760px){.app-nav>button>span:last-child{font-size:10px}}
@media(max-height:590px) and (max-width:760px){.app-shell .coin{width:20px;height:20px;font-size:15px}.app-shell .seat{padding:2px 1px}.app-shell .seat-name{margin-top:2px}.app-shell .seat-status{margin-top:0}.app-nav>button>span:last-child{font-size:10px}.app-shell .action-dock>.stage-shortcut{min-height:29px;font-size:11px}.app-shell .action-dock .stage-shortcut{margin-top:4px}}
/* Keep names and actions readable when additional phase information reduces the board. */
.app-stage>.board{container:participant-board / size}
@container participant-board (max-height:240px){.app-shell .coin{display:none}.app-shell .seat{padding:3px 2px}.app-shell .seat-name{margin-top:0}.app-shell .seat-status{margin-top:3px}}
@media(min-width:761px){.stage-tools:has(.stage-shortcut){display:flex}.stage-tools .event-chip{flex:1}.stage-tools .stage-shortcut{flex-shrink:0}}
#dialog[data-modal=chat] .dialog-actions .chat-form{width:100%;margin:0}
#dialog[data-modal=chat] .dialog-actions textarea{min-height:54px;max-height:110px}

/* Chosen village emblems remain visible, even on a crowded, short table. */
.avatar-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
.entry-avatar{width:100%;display:flex;align-items:center;gap:12px;min-height:62px;padding:8px 12px;background:#19372b;border:1px solid #bba56b66;border-radius:8px;text-align:left}
.entry-avatar>.avatar-image{width:46px;height:46px;flex-shrink:0}
.entry-avatar-copy{display:grid;flex:1;min-width:0;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:1px 10px;align-items:center;color:#eedbad;font-size:13px;line-height:1.45}
.entry-avatar-copy>small{grid-column:1;grid-row:1}.entry-avatar-copy>strong{grid-column:1;grid-row:2}.entry-avatar-copy>span:last-child{grid-column:2;grid-row:1/3;font-size:11px}
.entry-avatar-copy small{color:#c5d2bd;font-size:11px}
.entry-avatar:hover{background:#244334;border-color:#d0b67d}
.avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 17px}
.avatar-option{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 5px 8px;border:1px solid #b3a26b40;border-radius:9px;background:#1a352a;color:#e4dec7;font-size:11px;line-height:1.4}
.avatar-option>.avatar-image{width:clamp(42px,11vw,66px);height:clamp(42px,11vw,66px)}
.avatar-option:hover{background:#284a36;border-color:#c9ae71}
.avatar-option[aria-pressed=true]{background:#344d36;border-color:#e8ca89;box-shadow:inset 0 0 0 1px #d5b36f}
.avatar-option[aria-pressed=true]:after{content:'✓';position:absolute;top:5px;right:5px;width:19px;height:19px;border-radius:50%;background:#efd49b;color:#1a3123;font:600 12px/19px var(--sans);text-align:center}
.app-shell .coin.avatar-coin{display:grid;width:clamp(32px,6dvh,62px);height:clamp(32px,6dvh,62px);background:#102a20;border-color:#c5ac737d;box-shadow:0 3px 8px #05160e4f;overflow:visible}
.app-shell .coin.avatar-coin>.avatar-image{border-radius:50%}
.app-shell .seat.dead .avatar-coin>.avatar-image{filter:saturate(.38);opacity:.76}
.app-shell .seat.dead .avatar-coin:after{z-index:1;left:4px;right:4px;height:2px;background:#e0d7b4c9;box-shadow:0 1px 1px #173024}
.app-shell .seat.selected .avatar-coin:after{z-index:2}
.app-shell .seats{grid-auto-rows:minmax(86px,1fr);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9b9566 #10271f;padding:3px}
.app-shell .seat-name{margin-top:7px}

/* The board keeps every Role visible; full hand details switch inside the dialog. */
.app-shell.result .stage-tools{display:none}
.app-shell .result-seats{grid-auto-rows:minmax(max-content,1fr);gap:12px 8px;align-items:stretch}
.app-shell .result-seat{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:9px 5px 5px;background:#193329;border:1px solid #bba36744;border-radius:8px;text-align:center;overflow:hidden}
.result-seat.own-seat{border-color:#ddc18a8c;background:#263e2d}
.result-card{display:flex;flex-shrink:0;flex-direction:column;align-items:center;min-width:0;max-width:100%;padding:0 2px 4px;border-radius:5px;line-height:1.2;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.result-card-art{display:block;flex-shrink:0;height:clamp(62px,11dvh,114px);width:auto;aspect-ratio:3/4;max-width:100%;object-fit:cover;border:1px solid #cfb37a;border-radius:4px;box-shadow:0 4px 10px #04130c7a;pointer-events:none;-webkit-user-drag:none}
.result-card-copy{display:flex;flex-direction:column;max-width:100%;min-width:0;align-items:center}
.result-card-kind{display:block;color:#cbb77f;font-size:8px;font-weight:500;letter-spacing:1.1px;text-transform:uppercase;margin-top:5px}
.result-card-name{display:block;max-width:100%;width:100%;color:#f1dbab;font:15px/1.2 var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.result-card:hover .result-card-art{border-color:#f0d899;box-shadow:0 4px 15px #dab97526}
.result-card:active{transform:scale(.97)}
.app-shell .result-seat .seat-name{margin-top:4px;line-height:1.3;font-size:12px;flex-shrink:0}
.app-shell .result-seat .seat-status{font-size:9px;line-height:1.3;min-height:12px;flex-shrink:0}
.result-card-details{width:100%;min-height:32px;flex-shrink:0;margin-top:3px;padding:4px 2px;color:#dccca5;font-size:10px;line-height:1.4;background:#10271f;border:1px solid #ad945836;border-radius:4px}
.result-card-details:hover{background:#304831;border-color:#c7ac6e}
.result-gesture-help{font-size:10px;line-height:1.5;color:#c6d2bd;text-align:right}
.result-action-buttons{display:flex;gap:9px;align-items:stretch}.result-action-buttons>button{flex:1;min-width:0;line-height:1.55}
.result-card-tabs{position:sticky;top:-1px;z-index:2;display:flex;gap:5px;padding:5px;margin:0 0 17px;background:#0b2119;border:1px solid #b09a5e70;border-radius:8px;box-shadow:0 5px 12px #10271faa}
.result-card-tabs>button{flex:1;min-width:0;min-height:43px;padding:7px 10px;border-radius:5px;color:#c4d1bd;font:15px/1.4 var(--display)}
.result-card-tabs>button[aria-selected=true]{color:#f3dca8;background:#294531;box-shadow:inset 0 0 0 1px #c0a36688}
.result-card-panel{outline-offset:3px}.result-card-panel[hidden]{display:none}.result-card-panel:focus-visible{outline:2px solid #ffe2a2}
.result-card-panel .card-reveal{width:min(100%,220px);margin:0 auto 19px}.result-detail-name{font:27px/1.3 var(--display);color:#efdbad;text-align:center;margin:0 0 15px;overflow-wrap:anywhere}
.result-card-usage{padding:10px 13px;border:1px solid #a08d565c;background:#1a3428;border-radius:6px}
@media(max-width:760px){
  .result-action-buttons{gap:7px}.result-card-panel .card-reveal{width:min(100%,190px)}.result-detail-name{font-size:25px}.result-card-tabs{margin-bottom:15px}.result-gesture-help{font-size:9px}
  .entry-avatar{min-height:55px;padding:6px 9px;gap:10px}.entry-avatar>.avatar-image{width:40px;height:40px}.entry-avatar-copy{font-size:12px}.entry-avatar-copy small{font-size:10px}
  .app-shell .coin.avatar-coin{width:clamp(28px,4.9dvh,43px);height:clamp(28px,4.9dvh,43px)}
  .app-shell .seats{grid-auto-rows:minmax(68px,1fr);padding:2px}.app-shell .seat-name{margin-top:4px}
  .app-shell .result-seats{grid-auto-rows:minmax(max-content,1fr);gap:7px 5px}.app-shell .result-seat{padding:6px 3px 3px;border-radius:6px}.result-card-art{height:clamp(54px,9dvh,78px)}.result-card-kind{font-size:7px;letter-spacing:.65px;margin-top:4px}.result-card-name{font-size:12px;margin-top:2px}.app-shell .result-seat .seat-name{font-size:11px;margin-top:3px}.app-shell .result-seat .seat-status{font-size:9px;min-height:12px}.result-card-details{min-height:30px;margin-top:3px;font-size:9px}
}
@media(max-width:380px){.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.avatar-option{padding:8px 4px 7px;gap:5px}.avatar-option>.avatar-image{width:49px;height:49px}}
@media(max-height:700px) and (max-width:760px){.entry-avatar{min-height:50px;padding:5px 9px}.entry-avatar>.avatar-image{width:36px;height:36px}.result-card-art{height:54px}}
@media(max-height:590px) and (max-width:760px){.landing{overflow-y:auto;justify-content:flex-start}.landing>*{flex-shrink:0}.entry-avatar{min-height:46px}.entry-avatar>.avatar-image{width:32px;height:32px}.entry-avatar-copy small{font-size:9px}.entry-panel h2{display:none}.landing h1{font-size:22px}.entry-panel .entry-separator{margin:7px 0}.app-shell .coin.avatar-coin{width:28px;height:28px}.result-card-art{height:50px}.app-shell .seat-name{margin-top:3px}}
@media(max-height:480px) and (min-width:560px){.entry-avatar{min-height:41px;padding:3px 8px}.entry-avatar>.avatar-image{width:32px;height:32px}.entry-avatar-copy{font-size:11px}.entry-avatar-copy small{font-size:9px}.app-shell .coin.avatar-coin{width:28px;height:28px}}

/* Explicit navigation and pre-creation room voice choice. */
.dialog-back{display:block;min-height:36px;margin:-5px 0 6px;padding:5px 0;color:#dcca9c;font-size:12px;line-height:1.4}
.dialog-back:hover{color:#ffe5a9}.entry-back{margin:-6px 0 8px;min-height:32px;font-size:11px}
.voice-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.voice-mode-options>button{min-height:106px;text-align:left;padding:14px;border:1px solid #a6945b77;border-radius:8px;background:#112b21}
.voice-mode-options strong{display:block;font-size:19px;color:#efdab0;margin-bottom:7px}.voice-mode-options span{display:block;color:#bac9b4;font-size:12px;line-height:1.6}
.voice-mode-options>button[aria-pressed=true]{background:#2d4631;border-color:#ead29b;box-shadow:inset 0 0 0 1px #ead29b}
.room-voice-mode{margin-bottom:14px;line-height:1.7}
@media(max-width:380px){.voice-mode-options{gap:7px}.voice-mode-options>button{padding:11px;min-height:118px}.voice-mode-options strong{font-size:17px}.voice-mode-options span{font-size:11px}.dialog-back{min-height:32px}}

/* Atmosphere is above the dark scenic tint, below every control. */
.environment svg{transform:none;animation:none;will-change:auto}
.ambient-atmosphere{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.ambient-glow,.ambient-specks{position:absolute;inset:0;pointer-events:none}
/* Animate only decorative overlays, never the image or readable controls. */
.ambient-atmosphere::before{content:'';position:absolute;inset:0;background:linear-gradient(115deg,#07130ccc,transparent 65%);opacity:.12;animation:village-shade 20s ease-in-out infinite alternate;pointer-events:none}
.ambient-glow{background:radial-gradient(ellipse at 25% 20%,rgba(255,218,153,.32),transparent 65%);opacity:.4;animation:village-light 16s ease-in-out infinite alternate}
.ambient-atmosphere[data-scenery="1"]::before{background:linear-gradient(115deg,#040e20dd,transparent 70%);animation-duration:24s}
.ambient-atmosphere[data-scenery="2"] .ambient-glow{background:radial-gradient(ellipse at 65% 25%,rgba(255,193,112,.36),transparent 65%);animation-duration:18s}
.ambient-atmosphere[data-scenery="1"] .ambient-glow{background:radial-gradient(ellipse at 70% 20%,rgba(164,203,226,.25),transparent 65%)}
.ambient-specks i{position:absolute;left:var(--x);top:var(--y);width:4px;height:4px;border-radius:50%;background:#ffecab;box-shadow:0 0 9px 3px #efd88b88;opacity:.55;animation:village-firefly 6s ease-in-out infinite;animation-delay:calc(var(--drift) * -.73s)}
.ambient-atmosphere:not([data-scenery="1"]) .ambient-specks i{width:3px;height:3px;background:#ffeac5;box-shadow:0 0 8px 2px #efdbb866;animation-duration:9s}
@keyframes village-light{from{opacity:.25}to{opacity:.8}}
@keyframes village-shade{from{opacity:.08}to{opacity:.3}}
@keyframes village-firefly{0%,100%{opacity:.25;transform:translate(-8px,12px)}35%{opacity:.95}65%{opacity:.6;transform:translate(18px,-32px)}}
.background-paused :is(.environment,.ambient-atmosphere) *{animation-play-state:paused!important}
.reduce-motion :is(.environment,.ambient-atmosphere) *{animation:none!important;will-change:auto}
.reduce-motion .ambient-specks{display:none}
@media(prefers-reduced-motion:reduce){:is(.environment,.ambient-atmosphere) *{animation:none!important;will-change:auto}.ambient-specks{display:none}}

/* Pseudo-elements also follow visibility and both motion preferences. */
.background-paused .ambient-atmosphere::before{animation-play-state:paused!important}
.reduce-motion .ambient-atmosphere::before{animation:none!important;opacity:.12}
@media(prefers-reduced-motion:reduce){.ambient-atmosphere::before{animation:none!important;opacity:.12}}

/* Per-player language choice, available at the entrance and throughout play. */
.language-switch{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:5px;flex-shrink:0}
.language-switch button{min-height:36px;padding:6px 10px;font:12px/1.4 var(--sans);color:var(--soft);white-space:nowrap;border-radius:4px}
.language-switch button[aria-pressed=true]{background:#c3a96726;color:var(--gold)}
.entry-panel>.language-switch{display:flex;width:max-content;margin:0 0 18px auto}
html[lang=en] .landing h1{line-height:1.25;letter-spacing:0}
html[lang=en] .phase-heading h1{letter-spacing:0;font-size:clamp(22px,2.8vw,34px)}
html[lang=en] .bali-scene-title{letter-spacing:0}
@media(max-width:600px){.header-meta{gap:5px}.game-header{gap:8px}.game-header .language-switch button{padding:5px 6px;min-height:34px;font-size:11px}.game-header .room-code{font-size:12px;letter-spacing:1px}.game-header .brand{font-size:14px;letter-spacing:1.4px}.game-header .brand small{font-size:9px;letter-spacing:.5px}html[lang=en] .dock-note{font-size:11px}html[lang=en] .bottom-controls button{font-size:10px}}

/* Group consent and deliberate host recovery share the existing dialog/sheet. */
.discussion-consent{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.discussion-count{color:#dfc68e;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
.discussion-consent>button{flex:1;min-width:190px}
.recovery-shortcut{display:block;min-height:34px;padding:7px 0 0;color:#efd2a1;font-size:12px;line-height:1.5;text-align:left;overflow-wrap:anywhere}
.recovery-list .secondary{margin-top:10px;min-height:44px;max-width:100%;white-space:normal}
.recovery-name{font-size:20px;color:#efd6a3;line-height:1.6;margin:0 0 15px;overflow-wrap:anywhere}
@media(max-width:600px){.discussion-consent{gap:5px}.discussion-count{font-size:11px}.discussion-consent>button{width:100%;min-width:0}.recovery-shortcut{font-size:11px;padding-top:5px}.lobby-summary>span{min-width:0;line-height:1.55}}
