@font-face{font-family:Marvin;src:url('assets/fonts/MarvinVisionsBig-Bold.ttf');font-display:swap;font-weight:700}@font-face{font-family:Bricolage;src:url('assets/fonts/BricolageGrotesque-Regular.ttf');font-display:swap}@font-face{font-family:Aurebesh;src:url('assets/fonts/AurebeshAF.otf');font-display:swap}
:root{color-scheme:dark;--cyan:#8be5df;--cyan-dim:#477c80;--cream:#deded2;--gold:#c58c32;--blood:#a0523f;--card:min(160px,30vw,18vh);--ui:Marvin,sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#0d1b24;color:var(--cream);font-family:Bricolage,Arial,sans-serif}body{overflow:hidden}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;padding:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:5px}a{color:var(--cyan)}img{display:block;max-width:100%}[hidden]{display:none!important}.alien{font-family:Aurebesh,sans-serif!important;font-weight:400;letter-spacing:.025em}.cap{font-family:var(--ui);text-transform:uppercase}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--ui);font-weight:700}#app,#play,#home,#game-over{width:100%;height:100svh;min-height:460px}#play{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 10%,#203747 0%,#192e3d 42%,#10202b 80%,#0b151c 100%)}#play:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:90;background:repeating-linear-gradient(0deg,#0000 0px,#0000 2px,#030b102b 3px,#7eafa707 4px);opacity:.64}#world,#table-stage,#board,#piles{position:absolute;inset:0}#world{transition:filter .7s,opacity .7s}#board{width:100%;height:100%;touch-action:none}#piles{pointer-events:none}.pile-hit{position:absolute;pointer-events:auto;border:0;background:transparent}.pile-hit:disabled{pointer-events:none}.pile-bubble{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:none;flex-direction:column;align-items:center;justify-content:center;min-width:80px;border:2px solid var(--cyan);border-radius:50px;background:#2c6971cc;padding:6px 12px;white-space:nowrap;box-shadow:0 0 13px #86e2dc55;color:#edf6e7}.pile-bubble .alien{font-size:8px}.pile-bubble b{font:700 15px var(--ui)}.pile-hit.is-selected .pile-bubble{display:flex}.pile-arrow{position:absolute;left:50%;bottom:-15px;transform:translateX(-50%);font:700 26px sans-serif;color:#5dada9;opacity:.8}.pile-hit:disabled .pile-arrow{display:none}.pile-hit:focus-visible{outline:1px solid var(--cyan);border-radius:50%}.desktop-mark{position:absolute;top:24px;left:28px;display:flex;align-items:center;gap:10px;opacity:.56;pointer-events:none}.desktop-mark img{width:25px;height:36px}.desktop-mark span{font:700 12px var(--ui);color:#b4d9d7}.desktop-mark small{display:block;font:8px Bricolage;letter-spacing:.15em;margin-top:3px;color:#87acae}#opponents{position:absolute;top:6.5vh;left:50%;transform:translateX(-50%);display:flex;gap:clamp(20px,4vw,65px);align-items:flex-start;justify-content:center}.opponent{position:relative;width:126px;min-height:88px;padding:12px 13px 8px;border:1px solid #65777a66;border-radius:28px;background:#0c1b2450;text-align:right;font:700 16px var(--ui);transition:border-color .35s,background .35s,opacity .5s}.opponent.middle{transform:translateY(-15px)}.opponent.active{border-color:#80d6d4;background:#16333f40;box-shadow:0 0 8px #75d5cc0c}.opponent.active:before{content:'';position:absolute;top:9px;left:12px;width:4px;height:4px;border-radius:50%;background:var(--cyan)}.opponent.eliminated{background:#873b4477;border-color:#81353b;opacity:.42}.opponent-name{white-space:nowrap;font-size:14px;display:flex;gap:7px;justify-content:flex-end;align-items:center}.opponent-name img{width:13px;height:13px;filter:brightness(1.7)}.opponent-money{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin-top:5px;height:19px}.opponent-money.invested{color:var(--gold)}.chip-stack{display:inline-flex;align-items:center;justify-content:flex-end;height:20px}.chip-stack img{width:20px;height:20px;max-width:none;margin-left:-14px;filter:drop-shadow(0 1px 1px #0006)}.chip-stack img:first-child{margin-left:0}.opponent .chip-stack img{width:16px;height:16px;margin-left:-11px}.opponent .chip-stack img:first-child{margin-left:0}.mini-tokens{position:absolute;left:calc(100% + 6px);top:7px;display:flex;flex-direction:column;gap:3px}.mini-token{display:block;width:11px;height:19px;background:#666c70;clip-path:polygon(28% 0,72% 0,100% 50%,72% 100%,28% 100%,0 50%)}.mini-token.used{opacity:.12}.standing-label{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);color:var(--gold);font-size:9px}.starting-label{position:absolute;left:0;top:calc(100% + 8px);white-space:nowrap;font-size:7px;color:var(--cyan);letter-spacing:.05em}.starting-label:before{content:'• ';font-size:12px}#player-bank{position:absolute;left:max(16px,calc(50% - 460px));bottom:15.5vh;z-index:8}.bank-line{display:flex;gap:8px;align-items:center;background:#05141d65;border-radius:0 50px 50px 0;padding:9px 17px 9px 10px;min-height:42px;font:700 20px var(--ui);width:fit-content;margin-top:18px}.bank-line .chip-stack img{width:27px;height:27px;margin-left:-17px}.bank-line .chip-stack img:first-child{margin-left:0}.bank-line.invested{color:var(--gold);min-width:70px}.bank-line.invested .chip-stack img{width:25px;height:25px}.player-starting{position:absolute;bottom:100%;margin-bottom:8px;color:var(--cyan);font:700 10px var(--ui);white-space:nowrap}.player-starting .alien{display:block;font-size:7px;margin-bottom:4px}#tokens-dock{position:absolute;left:max(24px,calc(50% - 450px));bottom:-11px;display:flex;align-items:end;z-index:12;height:104px}.shift-card{width:57px;position:relative;margin-right:-22px;transform:rotate(-7deg);filter:drop-shadow(2px 3px 3px #0008);transition:transform .22s,filter .22s}.shift-card:nth-child(2){transform:rotate(0)}.shift-card:nth-child(3){transform:rotate(7deg)}.shift-card img{height:102px;width:57px;object-fit:contain}.shift-card:hover:not(:disabled),.shift-card.selected{transform:translateY(-24px);filter:drop-shadow(0 0 7px #8cf8de8c);z-index:4}.shift-card:disabled{filter:brightness(.6);opacity:.75}.tokens-empty{font:700 9px var(--ui);color:#61848b;margin-bottom:25px;max-width:90px;text-align:center}#hand-dock{position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);width:calc(var(--card)*3.2);height:calc(var(--card)*1.45);z-index:15;pointer-events:none;transition:opacity .4s}.hand-card{position:absolute;width:var(--card);height:calc(var(--card)*1.44);pointer-events:auto;bottom:0;transform:translateY(var(--lift,0px)) rotate(var(--rotation,0deg));transform-origin:50% 90%;filter:drop-shadow(1px 4px 3px #0008);transition:transform .22s,filter .22s}.hand-card.sand{left:calc(50% - var(--card)*.87);--rotation:-10deg;z-index:1}.hand-card.blood{left:calc(50% - var(--card)*.17);--rotation:12deg;z-index:2}.hand-card.new-card{left:calc(50% - var(--card)*1.04);--rotation:-5deg;--lift:-30px;z-index:4}.hand-card.new-card.blood{left:calc(50% - var(--card)*.05);--rotation:7deg}.hand-card img{width:100%;height:100%;object-fit:contain}.hand-card:after{content:'';position:absolute;inset:0;background:url('assets/kessel/wear.png') center/cover;opacity:.3;pointer-events:none;clip-path:polygon(31% 0,69% 0,100% 50%,69% 100%,31% 100%,0 50%)}.hand-card.clickable:hover{--lift:-16px}.hand-card.is-selected{--lift:-30px;filter:drop-shadow(0 0 2px var(--cyan)) drop-shadow(0 0 9px #7ef5e16b);z-index:6}.hand-card:focus-visible{outline:0;filter:drop-shadow(0 0 3px var(--cyan))}.hand-card .hand-choice{display:none;position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);border:2px solid var(--cyan);border-radius:40px;background:#316773dd;min-width:90px;padding:6px 15px;color:white;text-shadow:0 1px 2px #0003;z-index:7}.hand-choice .alien{font-size:8px;display:block}.hand-choice strong{font:700 16px var(--ui)}.hand-card.is-selected .hand-choice{display:block}.resolved-value{position:absolute;top:30%;left:50%;transform:translateX(-50%);border-radius:30px;background:#153b3c;color:var(--cyan);font:700 22px var(--ui);padding:7px 13px;z-index:5}#turn-action{position:absolute;bottom:25vh;left:50%;transform:translateX(-50%);z-index:17;text-align:center;min-width:120px}.capsule{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;border:2px solid var(--cyan);border-radius:40px;background:#071c26c4;padding:9px 25px;color:#e9eee7;text-decoration:none;white-space:nowrap;min-width:106px;min-height:48px;box-shadow:0 0 9px #5fd4d00a}.capsule .alien{font-size:9px}.capsule b{font:700 18px var(--ui)}.capsule:hover:not(:disabled){background:#2b6d6a77;box-shadow:0 0 14px #74e7e14a}.capsule.filled{background:#3e7e7dcc;border-color:#c4f0df}.capsule.small{min-width:75px;min-height:38px;padding:7px 17px}.capsule.small b{font-size:14px}.capsule.small .alien{font-size:7px}.turn-message{font:700 12px var(--ui);color:#92d9d5;white-space:nowrap;text-shadow:0 2px 3px #001118}.turn-message small{display:block;font:10px Bricolage;color:#90b8bb;margin-top:6px}.hand-score{position:absolute;right:max(28px,calc(50% - 440px));bottom:21vh;color:#8ddcce;font:700 12px var(--ui)}.system-buttons{position:absolute;right:max(23px,calc(50% - 460px));bottom:6.8vh;display:flex;flex-direction:column;gap:24px;z-index:55;align-items:center}.system-buttons>button{background:#06151c50;border-radius:50%;width:62px;height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:background .2s}.system-buttons>button:hover{background:#203b4699}.system-buttons img{width:46px;height:35px;object-fit:contain}.menu-button small{font-size:10px;color:var(--cyan);margin-bottom:4px}.menu-button b{font:700 19px var(--ui)}.tilt-hint{position:absolute;left:28px;bottom:135px;color:#507983;font-size:7px;letter-spacing:.12em;pointer-events:none}.tilt-hint span{padding:0 6px}#active-tokens{position:absolute;top:24vh;right:max(18px,calc(50% - 490px));text-align:center;color:var(--cyan);z-index:30}.active-title{font:700 12px/1.6 var(--ui);margin-bottom:12px}.active-token{display:block;width:34px;margin:0 auto 6px;filter:sepia(.25) saturate(.7) hue-rotate(100deg);opacity:.75}.active-token img{width:34px;height:63px;object-fit:contain}.active-token:hover{opacity:1}.is-results #world,.is-revealing #world{filter:blur(5px) brightness(.72)}.is-results #hand-dock,.is-results #player-bank,.is-results #tokens-dock,.is-results #turn-action,.is-revealing #hand-dock,.is-revealing #player-bank,.is-revealing #tokens-dock,.is-revealing #turn-action{opacity:0;pointer-events:none}.is-results .hand-card,.is-revealing .hand-card{pointer-events:none}.is-results .tilt-hint,.is-revealing .tilt-hint{display:none}#results{position:absolute;inset:0;z-index:40;pointer-events:none}.results-inner{position:absolute;top:11.7vh;left:50%;transform:translateX(-50%);width:min(610px,92vw);pointer-events:auto}.results-heading{color:var(--cyan);text-align:center;margin-bottom:5vh}.results-heading h2{font-size:30px;line-height:1.05;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}.results-heading .alien{font-size:17px;margin-top:11px}.result-row{display:grid;grid-template-columns:22px auto 1fr;align-items:center;gap:14px;min-height:13vh;max-height:150px;margin-bottom:8px;animation:resultEnter .5s both;transition:transform .6s,opacity .6s}.result-rank{font:700 18px var(--ui);text-align:center}.result-pair{display:flex;gap:6px;filter:drop-shadow(1px 3px 2px #0005)}.result-card{width:min(72px,13vw);height:min(104px,18.7vw);position:relative}.result-card img{width:100%;height:100%;object-fit:contain}.result-card:after{content:'';position:absolute;inset:0;background:url('assets/kessel/wear.png') center/cover;opacity:.22;clip-path:polygon(31% 0,69% 0,100% 50%,69% 100%,31% 100%,0 50%)}.result-card .die-value{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);background:#173d3feb;color:var(--cyan);font:700 16px var(--ui);padding:4px 7px;border-radius:9px}.result-info{min-width:0}.result-name{padding:9px 15px;border:2px solid #548d8f;border-radius:17px;background:#2e5b5b88;font:700 24px var(--ui);line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-row.winner .result-name{background:#3d716988}.result-funds{display:flex;align-items:center;gap:13px;margin:9px 0 0 13px;font:700 28px var(--ui)}.result-funds span{display:flex;align-items:center;gap:4px}.result-funds img{width:29px;height:29px}.result-funds .loss{color:#a75c45}.result-subtitle{font-size:9px;color:#83a3a8;margin:5px 0 0 15px;letter-spacing:.04em}.results-footer{text-align:center;margin-top:25px}.results-footer button{font:700 12px var(--ui);color:var(--cyan);padding:10px 18px;background:#15384255;border:1px solid #4b767a75;border-radius:25px}.results-footer small{display:block;color:#5c858a;font-size:9px;margin-top:7px}.reveal-center{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);text-align:center;pointer-events:auto}.reveal-center .player-name{font:700 22px var(--ui);padding-bottom:10px;display:inline-block;border-bottom:1px solid var(--cyan);color:var(--cream);margin-bottom:25px}.reveal-pair{display:flex;gap:9px;justify-content:center}.reveal-pair img{width:90px;height:130px;object-fit:contain;animation:flipCard .6s both;filter:drop-shadow(0 4px 5px #0008)}.reveal-center .hand-type{font:700 18px var(--ui);color:var(--cyan);margin-top:25px}.skip-reveal{display:block;margin:22px auto 0;font-size:10px;color:#8aaeb3;padding:10px}.round-announcement,.token-announcement{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);text-align:center;color:var(--cream);pointer-events:none;z-index:45;isolation:isolate;animation:announce 2.7s both}.round-announcement:before,.token-announcement:before{content:'';position:absolute;inset:-100px -80px;background:radial-gradient(ellipse,#71efd680,transparent 66%);filter:blur(12px);z-index:-1}.round-announcement h2{font-size:38px;white-space:nowrap}.round-announcement .alien{color:var(--cyan);font-size:20px;margin-top:6px}.token-announcement{animation-duration:3s;top:40%}.token-announcement .token-player{font:700 17px var(--ui);padding-bottom:8px;margin-bottom:15px;border-bottom:1px solid var(--cyan)}.token-announcement img{height:130px;width:75px;object-fit:contain;margin:0 auto 16px}.token-announcement h3{font-size:19px;white-space:nowrap}.token-announcement p{font:700 12px var(--ui);margin-top:13px}.token-announcement small{font-size:10px;color:#b9e5d8;display:block;margin-top:10px}.token-sheet{position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);width:min(650px,calc(100% - 20px));min-height:210px;z-index:50;border:2px solid var(--cyan);border-radius:30px 30px 0 0;background:#080e0de8;box-shadow:0 -15px 60px #0005;padding:24px 27px 25px;text-align:center;animation:sheetUp .2s both}.token-sheet h3{font-size:22px;margin-bottom:14px}.token-sheet>.alien{font-size:10px;color:var(--cyan);margin-bottom:7px}.token-sheet p{font:18px/1.65 Bricolage;letter-spacing:.03em;color:var(--cyan)}.token-sheet .close-sheet{position:absolute;top:15px;right:19px;font-size:23px;color:#7ab8bc;line-height:1}.token-actions{position:absolute;bottom:calc(100% + 20px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:90px}.token-actions img{height:150px;width:88px;object-fit:contain}.play-token{position:relative;width:88px;height:150px;filter:drop-shadow(0 0 15px #69b1a845)}.play-token img{filter:sepia(.3) hue-rotate(80deg) saturate(.7) brightness(1.3);opacity:.9}.play-token .play-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.play-label .alien{font-size:14px;color:var(--cyan)}.play-label b{font:700 27px var(--ui);color:#e6ede3}.token-targets{display:flex;justify-content:center;gap:10px;margin-top:20px;flex-wrap:wrap}.token-targets button{padding:9px 15px;border:1px solid #528184;border-radius:18px;font:700 15px var(--ui);color:var(--cyan);background:#1d3e4255}.token-targets button:hover{background:#3e6c6b88}.die-options{display:flex;justify-content:center;gap:60px;margin-top:28px}.die-choice{position:relative;width:75px;height:75px;transform-style:preserve-3d;perspective:400px;margin-bottom:24px}.die-front{display:flex;align-items:center;justify-content:center;position:absolute;inset:4px;border:4px solid #b28b40;background:linear-gradient(140deg,#d7af60,#9b6b25);box-shadow:inset 0 0 2px #f2e7bc,3px 4px 5px #0006;transform:rotateX(-12deg) rotateY(-15deg);border-radius:4px}.die-front img{width:44px;height:44px;filter:brightness(.24) sepia(1)}.die-front:before{content:'';position:absolute;left:-14px;top:-4px;height:calc(100% + 7px);width:10px;background:#795622;transform:skewY(22deg);border:2px solid #a98441}.die-front:after{content:'';position:absolute;left:-8px;top:-13px;height:8px;width:calc(100% + 7px);background:#e0bd71;transform:skewX(40deg);border:2px solid #a98441}.die-choice .die-number{position:absolute;left:50%;top:calc(100% + 13px);transform:translateX(-50%);font:700 16px var(--ui);color:var(--cream)}.die-choice:hover{filter:drop-shadow(0 0 11px #75e9d9)}.dice-prompt{font:700 15px var(--ui);color:var(--cyan);text-align:center;margin-top:22px}.dice-layout{position:absolute;top:27%;left:50%;transform:translateX(-50%);width:min(530px,90vw);text-align:center}.dice-layout h2{font-size:26px;color:var(--cyan)}.dice-layout p{font-size:14px;line-height:1.6;color:#b4d8d5;margin:16px auto;max-width:370px}.dice-layout .impostor-image{height:130px;width:90px;margin:20px auto;object-fit:contain}.reaction-picker{position:absolute;right:10%;bottom:15%;width:min(420px,80vw);z-index:60;border:1px solid #5a878b;background:#13232df5;border-radius:14px;padding:18px}.reaction-picker h3{font-size:14px;color:var(--cyan);text-align:center;margin-bottom:20px}.reaction-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.reaction-grid button{height:63px;display:flex;align-items:center;justify-content:center}.reaction-grid img{max-height:60px;max-width:70px;filter:drop-shadow(0 3px 3px #0005)}.reaction-grid button:hover{background:#406b6e55;border-radius:7px}.reaction-bubble{position:absolute;left:50%;bottom:30vh;transform:translateX(-50%);z-index:65;pointer-events:none;animation:reaction 3.6s both}.reaction-bubble img{height:100px;width:150px;object-fit:contain;filter:drop-shadow(0 4px 6px #0008)}.reaction-bubble.droid{top:17vh;bottom:auto}.flying-card{position:absolute;width:55px;height:80px;object-fit:contain;filter:drop-shadow(2px 3px 3px #0007);pointer-events:none;z-index:35}#flights{position:absolute;inset:0;pointer-events:none;z-index:35}.fallback-controls{display:none;position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);width:300px;z-index:22;padding:20px;background:#112835e8;border:1px solid #5a858a;border-radius:18px;text-align:center}.fallback-controls button{display:inline-block;border:1px solid #7ba9aa;padding:10px;border-radius:12px;margin:8px;color:var(--cyan)}.no-webgl .fallback-controls{display:block}.fallback-controls p{font-size:11px;line-height:1.5}.fallback-controls h3{font-size:18px;margin-bottom:12px}
/* Lobby, menus, and the end-of-game sequence */
#home{position:relative;background:#020508 url('assets/images/bg.webp') center/cover;overflow:auto;isolation:isolate}#home:before{content:'';position:fixed;inset:0;background:linear-gradient(0deg,#0006,transparent 20%,#000a 76%),url('assets/images/bg_planet.webp') center 70%/auto 100% no-repeat;z-index:-1}.lobby{min-height:100%;display:flex;align-items:center;flex-direction:column;padding:6vh 20px 30px}.lobby-heading{text-align:center;color:var(--cyan);font:700 15px var(--ui);margin-bottom:22px}.lobby-heading .alien{display:block;font-size:7px;margin-bottom:7px}.lobby-logo{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;width:230px;height:280px;border:2px solid #83cdcd;border-radius:34px;background:#090c0dd4;box-shadow:0 8px 40px #0008;margin:0 0 18px}.logo-cards{display:flex;justify-content:center;align-items:center;position:relative;height:154px;width:145px}.logo-cards img{position:absolute;width:74px;height:112px;object-fit:contain;filter:drop-shadow(2px 3px 2px #0008)}.logo-cards img:first-child{left:10px;top:9px;transform:rotate(-13deg)}.logo-cards img:nth-child(2){left:60px;top:9px;transform:rotate(13deg)}.logo-cards .logo-token{width:61px;height:113px;left:44px;top:48px;filter:brightness(1.3)}.lobby-logo h1{position:absolute;top:97px;font-size:31px;color:#f0f1e4;text-shadow:-2px 0 #111,2px 0 #111,0 3px #111;z-index:3}.lobby-logo .alien{font-size:8px;position:absolute;bottom:27px;color:#96d0cd}.lobby-logo .caption{font:700 15px var(--ui);position:absolute;bottom:13px}.lobby .how{margin-bottom:29px}.lobby .how b{font-size:13px}.game-settings{width:360px;max-width:90vw;border:2px solid #94cfca;border-radius:23px;background:#080f0eae;display:flex;align-items:center;justify-content:space-between;padding:12px 21px;text-align:left;color:var(--cyan);margin-bottom:29px}.game-settings small{display:block;font-size:8px;margin-bottom:3px}.game-settings strong{font:700 19px var(--ui);display:block}.game-settings p{font:700 11px var(--ui);color:#d5dccb;margin-top:5px}.game-settings .settings-symbol{font-size:25px}.lobby-actions{display:flex;align-items:center;flex-direction:column;gap:14px}.lobby-actions .capsule{min-width:175px}.lobby-footer{font:700 10px var(--ui);color:#7aa9a9;display:flex;gap:24px;justify-content:center;margin-top:35px}.lobby-footer button,.lobby-footer a{text-decoration:none;color:inherit;padding:8px}.lobby-footer button:hover,.lobby-footer a:hover{color:#d1f0e1}.lobby-footer img{height:24px;width:28px;object-fit:contain;margin:0 auto 8px}.local-note{font-size:9px;color:#567c83;margin-top:24px;letter-spacing:.06em}.lobby-brand{display:flex;gap:10px;align-items:center;justify-content:center;margin-bottom:20px;font:700 11px var(--ui);color:#b4ccbf}.lobby-brand img{width:20px;height:30px}.lobby-music{position:fixed;bottom:25px;right:25px;color:var(--cyan);font-size:22px;border-radius:14px;padding:10px;background:#11303990}dialog{width:min(560px,calc(100% - 28px));max-height:88svh;border:2px solid #85c8c5;border-radius:27px;background:#09151bee;color:var(--cream);padding:0;box-shadow:0 10px 80px #000a}dialog::backdrop{background:#020a0d8c;backdrop-filter:blur(5px)}.dialog-header{position:relative;padding:25px 28px 19px;border-bottom:1px solid #37676d55;text-align:center}.dialog-header .alien{color:var(--cyan);font-size:9px;margin-bottom:7px}.dialog-header h2{font-size:25px;color:var(--cyan);line-height:1.25}.dialog-close{position:absolute;top:17px;right:19px;font-size:23px;line-height:1;color:#82b6b8}.dialog-body{padding:23px 28px}.dialog-body>p{font-size:14px;color:#b2cbcb;line-height:1.6;margin-bottom:18px}.dialog-footer{border-top:1px solid #37676d55;padding:18px 25px;display:flex;justify-content:center;gap:13px;flex-wrap:wrap}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #304d554d}.setting-row label{font:700 13px var(--ui);color:#c6dcda;line-height:1.4}.setting-row small{display:block;font:11px Bricolage;color:#76999e;margin-top:4px}.setting-row input[type=text],.setting-row select{border:1px solid #436c71;background:#162c36;border-radius:9px;padding:10px 12px;max-width:185px;font-size:13px}.setting-row input[type=range]{width:155px;accent-color:#82d7d2}.setting-row input[type=checkbox]{height:20px;width:20px;accent-color:var(--cyan)}.setting-title{font:700 13px var(--ui);color:var(--cyan);margin:25px 0 5px}.settings-note{color:#678e95;font-size:10px;line-height:1.6;margin-top:17px}.token-select{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:16px}.token-option{padding:8px 5px;border:1px solid #395d66;border-radius:7px;min-height:96px;font-size:9px;color:#a2b8b7}.token-option img{height:54px;width:31px;object-fit:contain;margin:0 auto 7px}.token-option.selected{border-color:var(--cyan);background:#36787555;color:var(--cyan)}.rules-list{padding-left:22px;margin:0;font-size:14px;line-height:1.7;color:#a6cccd}.rules-list li{padding:0 0 18px 7px}.rules-list li::marker{color:var(--cyan);font-family:var(--ui)}.rules-list strong{color:#e5e8d9}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu-grid button,.menu-grid a{border:1px solid #447178;border-radius:13px;background:#1c3f4670;padding:17px;text-align:center;color:#bed8d3;text-decoration:none;font:700 13px var(--ui)}.menu-grid button:hover,.menu-grid a:hover{border-color:var(--cyan);background:#2c606977}.table-history{max-height:50vh;overflow:auto;font-size:12px;color:#9cc5c6;line-height:1.6}.table-history p{padding:9px 0;border-bottom:1px solid #2d4f5550}.stats-line{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid #315057;color:#a0c5c3;font-size:14px}.stats-line strong{font:700 20px var(--ui);color:var(--cyan)}#toast{position:fixed;left:50%;bottom:31vh;transform:translate(-50%,15px);width:max-content;max-width:85vw;opacity:0;pointer-events:none;background:#102c35ed;border:1px solid #81ccc6;padding:11px 20px;z-index:100;border-radius:25px;color:#c9eae0;font-size:12px;text-align:center;transition:transform .25s,opacity .25s;box-shadow:0 2px 15px #0005}#toast.show{opacity:1;transform:translate(-50%,0)}#game-over{position:relative;background:#0a1420;overflow:hidden;text-align:center;display:flex;align-items:center;justify-content:center;isolation:isolate}#game-over video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}#game-over:before{content:'';position:absolute;inset:0;background:linear-gradient(#02111875,#07172222,#010a14aa);z-index:-1}.ending-content{width:min(500px,85vw);padding:30px 15px;text-shadow:0 2px 5px #0008}.ending-title{color:#d35c39;font-size:42px;line-height:1.1;margin-bottom:28px}.ending-title.win{color:#8be4c4}.ending-title .alien{display:block;font-size:15px;margin-bottom:8px}.ending-content .logo-cards{margin:0 auto 30px;transform:scale(.8);height:150px}.ending-content h3{font-size:17px;color:#d3ebe1}.experience-track{margin:28px 0 32px;display:flex;align-items:center;gap:12px;font:700 13px var(--ui);color:#bdf5e8}.experience-track .track{position:relative;flex:1;height:13px;border:2px solid #82d9d5;border-radius:9px;background:#12384788}.experience-track .track span{position:absolute;top:0;bottom:0;left:0;background:linear-gradient(90deg,#80e0da,#c6f9e3);border-radius:5px;box-shadow:0 0 8px #81ffdb}.xp-line{font:700 12px var(--ui);color:#c8eae2;margin:16px 0;display:flex;gap:12px;justify-content:center;align-items:center}.xp-line .xp{border-radius:50%;background:#8ee2d5;color:#183a3d;width:33px;height:33px;display:grid;place-items:center;text-shadow:none}.ending-content .capsule{margin-top:26px}.ending-content .winner-note{color:#bcdfd7;font-size:12px;margin-bottom:18px}.danger-text{color:#d18e75!important}.hidden-access{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes announce{0%{opacity:0;transform:translate(-50%,-45%) scale(.88)}15%,68%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-53%) scale(1.06)}}@keyframes resultEnter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes flipCard{from{transform:rotateY(90deg)}to{transform:rotateY(0)}}@keyframes sheetUp{from{opacity:0;bottom:-50px}to{opacity:1;bottom:-2px}}@keyframes reaction{0%{opacity:0;transform:translate(-50%,20px) scale(.6)}12%,72%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-30px) scale(.85)}}@media(max-aspect-ratio:4/5){#opponents{top:8vh;gap:clamp(20px,6vw,60px)}.opponent{width:clamp(86px,21vw,126px);min-height:78px;padding:11px 12px 8px;border-radius:25px}.opponent-name{font-size:clamp(11px,2.8vw,15px);gap:6px}.opponent-money{font-size:15px;height:18px;gap:6px}.opponent .chip-stack img{width:16px;height:16px;margin-left:-11px}.opponent .chip-stack img:first-child{margin-left:0}.mini-tokens{left:calc(100% + 5px);top:6px;gap:3px}.mini-token{width:9px;height:17px}.desktop-mark{display:none}#player-bank{left:0;bottom:16vh}.bank-line{font-size:18px;padding:8px 18px 8px 10px;margin-top:17px}.bank-line .chip-stack img{width:26px;height:26px;margin-left:-17px}.bank-line .chip-stack img:first-child{margin-left:0}#tokens-dock{left:25px;bottom:-12px}#turn-action{bottom:20vh}.shift-card{width:48px;margin-right:-19px}.shift-card img{height:88px;width:48px}.system-buttons{right:9px;bottom:6.2vh;gap:24px}.system-buttons>button{width:61px;height:58px}.system-buttons img{width:43px}.tilt-hint{display:none}#active-tokens{right:13px;top:24vh}.active-title{font-size:11px;margin-bottom:8px}.active-token,.active-token img{width:31px}.active-token img{height:57px}.hand-score{right:15px;bottom:21vh}.results-inner{width:92vw;top:12vh}.results-heading{margin-bottom:4vh}.results-heading h2{font-size:29px}.results-heading .alien{font-size:16px}.result-name{font-size:23px;padding:8px 13px;border-radius:16px}.result-row{gap:10px;grid-template-columns:19px auto 1fr}.result-funds{font-size:27px;gap:11px;margin:8px 0 0 10px}.result-funds img{width:28px;height:28px}.result-subtitle{font-size:8px;margin-left:12px}.token-sheet{min-height:200px;padding:23px 24px}.token-sheet p{font-size:18px}.reaction-picker{right:15px;bottom:18vh}.lobby{padding-top:10vh}.lobby-brand{display:none}.lobby-logo{width:230px;height:270px}.lobby .how{margin-bottom:28px}.lobby-footer{margin-top:35px}.bank-line .invested-label{display:none}}@media(max-width:430px){.opponent{width:86px;min-height:66px;padding:9px 9px 7px;border-radius:21px}.opponent.middle{transform:translateY(-13px)}.opponent-name{font-size:11px;gap:4px}.opponent-name img{width:10px;height:10px}.opponent-money{font-size:13px;height:15px;margin-top:4px}.opponent .chip-stack img{width:13px;height:13px;margin-left:-9px}.opponent .chip-stack img:first-child{margin-left:0}.mini-token{width:8px;height:15px}.standing-label{font-size:7px}.bank-line{font-size:15px;min-height:30px;padding:7px 13px 7px 8px}.bank-line .chip-stack img{width:21px;height:21px;margin-left:-14px}.bank-line .chip-stack img:first-child{margin-left:0}.bank-line.invested .chip-stack img{width:21px;height:21px}.shift-card{width:38px;margin-right:-14px}.shift-card img{height:70px;width:38px}#tokens-dock{left:18px;bottom:-8px}.capsule{padding:7px 19px;min-height:41px;min-width:85px}.capsule b{font-size:15px}.capsule .alien{font-size:7px}.active-title{font-size:9px}.active-token,.active-token img{width:24px}.active-token img{height:45px}.system-buttons{right:5px;gap:20px}.system-buttons>button{width:49px;height:48px}.system-buttons img{width:35px;height:30px}.menu-button b{font-size:16px}.menu-button small{font-size:8px}.turn-message{font-size:10px}.turn-message small{font-size:9px}.pile-bubble{min-width:65px;padding:5px 8px}.pile-bubble b{font-size:12px}.pile-bubble .alien{font-size:6px}.pile-arrow{font-size:20px;bottom:-14px}.results-heading h2{font-size:24px}.results-heading .alien{font-size:13px;margin-top:9px}.result-name{font-size:19px;padding:7px 11px;border-radius:13px}.result-funds{font-size:22px;gap:8px;margin:7px 0 0 7px}.result-funds img{width:24px;height:24px}.result-rank{font-size:15px}.result-row{gap:7px;grid-template-columns:15px auto 1fr}.result-pair{gap:4px}.result-subtitle{font-size:7px;margin-left:9px}.results-footer{margin-top:20px}.results-footer button{font-size:10px}.result-card .die-value{font-size:12px}.token-sheet p{font-size:15px;line-height:1.6}.token-sheet h3{font-size:19px}.token-sheet{min-height:180px;padding:22px 21px}.token-actions img{height:125px;width:72px}.play-token{width:72px;height:125px}.token-actions{gap:65px;bottom:calc(100% + 20px)}.play-label b{font-size:23px}.play-label .alien{font-size:12px}.token-targets button{font-size:12px;padding:8px 12px}.lobby{padding:7vh 18px 20px}.lobby-heading{font-size:13px;margin-bottom:15px}.lobby-logo{width:190px;height:230px;border-radius:28px}.lobby-logo h1{font-size:28px;top:85px}.logo-cards{transform:scale(.9)}.game-settings{width:320px;margin-bottom:25px;padding:11px 19px}.game-settings strong{font-size:17px}.game-settings p{font-size:10px}.lobby .how{margin-bottom:24px}.lobby-footer{margin-top:25px;gap:18px;font-size:9px}.local-note{margin-top:17px;font-size:8px}.dialog-header{padding:23px 22px 18px}.dialog-header h2{font-size:22px}.dialog-body{padding:19px 22px}.dialog-body>p,.rules-list{font-size:12px}.setting-row label{font-size:11px}.setting-row select,.setting-row input[type=text]{max-width:151px;font-size:12px}.setting-row input[type=range]{width:130px}.token-option{font-size:8px;min-height:86px}.token-option img{height:46px;width:26px}.menu-grid{gap:9px}.menu-grid button,.menu-grid a{font-size:12px;padding:14px}.reveal-pair img{width:72px;height:104px}.reveal-center .player-name{font-size:19px}.reveal-center .hand-type{font-size:15px}.token-announcement img{height:105px;width:60px}.token-announcement h3{font-size:16px}.round-announcement h2{font-size:31px}.ending-title{font-size:36px}.xp-line{font-size:10px}.die-choice{width:64px;height:64px}.die-front img{width:36px;height:36px}.die-options{gap:47px}.dice-layout h2{font-size:23px}.dice-layout p{font-size:12px}.dice-layout .impostor-image{height:110px}.hand-card .hand-choice{padding:5px 10px;min-width:77px}.hand-choice strong{font-size:13px}.hand-choice .alien{font-size:7px}.resolved-value{font-size:16px}.starting-label{font-size:6px}.player-starting{font-size:8px}.player-starting .alien{font-size:6px}}@media(max-height:670px) and (min-aspect-ratio:1/1){:root{--card:125px}.lobby{padding-top:20px}.lobby-brand{display:none}.lobby-logo{width:170px;height:190px}.lobby-heading{margin-bottom:10px}.lobby-logo .logo-cards{transform:scale(.75)}.lobby-logo h1{font-size:24px;top:65px}.lobby .how{margin-bottom:16px}.game-settings{margin-bottom:16px;padding:9px 18px}.lobby-actions{gap:10px}.lobby-footer{margin-top:16px}.local-note{margin-top:12px}.desktop-mark{top:17px;left:20px}.opponent{width:105px;min-height:70px;padding:9px 11px}.opponent-name{font-size:12px}.opponent-money{font-size:13px;height:15px}.system-buttons{bottom:6vh}.system-buttons>button{width:49px;height:49px}#turn-action{bottom:25vh}.capsule{min-height:39px;padding:6px 19px}.capsule b{font-size:14px}.capsule .alien{font-size:7px}#player-bank{bottom:17vh}.bank-line{font-size:16px;margin-top:10px;padding:6px 13px}.shift-card img{height:83px;width:45px}.shift-card{width:45px;margin-right:-17px}.tilt-hint{display:none}.results-inner{top:8vh;width:510px}.results-heading{margin-bottom:3vh}.results-heading h2{font-size:25px}.results-heading .alien{font-size:13px}.result-card{width:52px;height:75px}.result-name{font-size:19px;padding:6px 12px}.result-funds{font-size:21px;margin-top:6px}.result-funds img{width:22px;height:22px}.result-row{min-height:13vh;margin-bottom:7px}.result-subtitle{font-size:8px}.results-footer{margin-top:12px}.token-sheet{min-height:160px;padding:18px 25px}.token-sheet p{font-size:15px}.token-sheet h3{font-size:18px}.token-actions img{height:105px;width:60px}.play-token{height:105px;width:60px}.play-label b{font-size:19px}.token-actions{gap:75px;bottom:calc(100% + 15px)}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Card wear is baked into both the DOM and GPU textures for an identical finish. */
.hand-card:after,.result-card:after{display:none}
/* Desktop leaves room between the far cards and the fixed player displays. */
@media(min-aspect-ratio:4/5){#opponents{top:2.7vh}}
.hand-card.sand{left:calc(50% - var(--card)*.70)}.hand-card.blood{left:calc(50% - var(--card)*.28)}.hand-card.new-card.sand{left:calc(50% - var(--card)*1.04)}.hand-card.new-card.blood{left:calc(50% - var(--card)*.05)}
/* Keep the application anchored while native focus moves between low hand cards. */
html,body{width:100%;height:100%}body{position:fixed;inset:0}#app{position:absolute;inset:0}

.logo-cards .logo-token{width:39px;height:74px;top:91px;filter:brightness(.9) drop-shadow(1px 2px 0 #111)}.logo-cards .mark-1{left:37px;transform:rotate(-10deg)}.logo-cards .mark-2{left:61px;transform:rotate(4deg)}.logo-cards .mark-3{left:84px;transform:rotate(13deg)}.logo-cards strong{position:absolute;top:66px;left:50%;transform:translateX(-50%);font:900 29px/1 Arial,sans-serif;letter-spacing:-1px;color:#f3f0e4;text-shadow:-3px -3px #181818,3px -3px #181818,-3px 3px #181818,3px 3px #181818;z-index:5;white-space:nowrap}

/* Both primary games keep independent saved tables. */
.mode-tabs{display:flex;justify-content:center;gap:0;margin:-3px 0 17px;border:1px solid #5aa3a6;border-radius:30px;overflow:hidden;font:700 12px var(--ui);flex-shrink:0}.mode-tabs a{padding:10px 19px;color:#67a9ad;text-decoration:none;white-space:nowrap}.mode-tabs a+a{border-left:1px solid #5aa3a6}.mode-tabs a[aria-current=page]{background:#407d8180;color:#9af1e8}.mode-tabs a:hover{background:#407d8155}
#home{overflow:auto}.lobby{min-height:100%;height:auto}
