@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#100e1a;--panel:#1a1729;--border:#51445f;--muted:#cbc3d9;--purple:#c5a4ff;--gold:#ffe1a3;--white:#fcf9ff;font-family:'DM Sans',system-ui,sans-serif;color:var(--white);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 46% 15%,#2c203d55,transparent 48%),var(--bg);min-height:100vh}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(1.12)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:1;cursor:not-allowed;filter:none;color:#e5ddec;box-shadow:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d7b7ff;outline-offset:3px}button{font-weight:600}a{color:inherit;text-decoration:none}input{min-width:0;border:1px solid var(--border);border-radius:9px;background:#110f1d;color:var(--white);padding:12px 13px}input::placeholder{color:#bfb2cd}.topbar{height:91px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 4.2%;background:#12101ddb}.brand{display:flex;align-items:center;gap:12px;font-family:Outfit,system-ui;font-weight:600;font-size:17px}.brand>span:last-child{display:flex;flex-direction:column;gap:2px}.brand-light{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:.35px}.brand-symbol{display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:700;width:47px;height:47px;border-radius:13px;background:#b491ed;color:#211832;letter-spacing:-2px}.brand-symbol span{font-size:17px;margin:0 2px}.header-right{display:flex;align-items:center;gap:23px}.local-badge{font-size:10px;letter-spacing:1.6px;color:var(--muted);display:flex;align-items:center;gap:8px}.dot{display:inline-block;width:6px;height:6px;background:#a588d9;border-radius:50%;box-shadow:0 0 10px #ae8af540}.outline{padding:11px 15px;border:1px solid #8f7aa5;border-radius:8px;background:transparent;font-size:12px}main{max-width:1530px;margin:0 auto;padding:39px 4.2% 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:#e2c9ff;font-weight:700}h1,h2,h3,p{margin:0}h1{font-family:Outfit,system-ui;font-size:44px;letter-spacing:-1.6px;font-weight:600;line-height:1.2;margin:8px 0}.title-or{color:#d4c6df;font-weight:400}.title-dot{color:var(--purple)}.page-heading p{color:var(--muted);font-size:13px}nav{display:flex;border:1px solid var(--border);padding:5px;border-radius:10px;background:#181522;gap:4px}nav button{padding:11px 17px;font-size:12px;border-radius:6px;background:transparent;color:var(--muted)}nav button.active{background:#332840;color:#e4d1ff}.layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:25px;align-items:start}.main-column{min-width:0}.panel{background:linear-gradient(125deg,#1d192d,#191625);border:1px solid var(--border);border-radius:15px}.stats{display:grid;grid-template-columns:1fr 1fr 1.17fr;margin-bottom:22px;border:1px solid var(--border);border-radius:12px;background:#191524}.stat{padding:20px 23px;position:relative}.stat+.stat:before{content:'';position:absolute;left:0;top:22px;bottom:22px;width:1px;background:var(--border)}.stat>span{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:700}.stat>strong{font-family:Outfit,system-ui;display:block;font-size:31px;font-weight:500;margin:5px 0}.gold{color:var(--gold)}small{display:block}.stat small{color:var(--muted);font-size:10px;line-height:1.4}.muted{color:var(--muted)}.round{display:inline-block;vertical-align:middle;font:500 10px 'DM Sans',system-ui;background:#33293f;border:1px solid #4c3b60;color:#eddaff;border-radius:5px;padding:5px 8px;margin-left:8px}.game-table{padding:24px 28px 23px;overflow:hidden;background:radial-gradient(ellipse at 50% 46%,#3f2e4b3b,transparent 67%),linear-gradient(130deg,#201a2d,#191624)}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.tag{font-size:8px;letter-spacing:1.6px;border:1px solid #a98ac3;color:#efddff;background:#3a294b;padding:6px 8px;border-radius:4px}.tiny{font-size:10px}.separator{margin:0 7px;color:#baa5ce}.game-message{text-align:center;font:500 23px Outfit,system-ui;margin:28px 0 6px;letter-spacing:-.4px}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#89caaa;margin-right:5px}.game-subtitle{text-align:center;color:var(--muted);font-size:11px;line-height:1.5;min-height:17px}.card-path{margin:29px auto 24px;max-width:670px}.card-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.card-slot{min-width:0}.card-number{display:block;text-align:center;font:500 9px 'DM Sans',system-ui;color:#e4d7f5;letter-spacing:1px;margin-bottom:7px;height:12px}.card{aspect-ratio:.71;border-radius:10px;position:relative;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px #0002}.back{border:2px solid #dfc3ff;background:repeating-linear-gradient(45deg,transparent 0,transparent 6px,#dfc5ff24 6px,#dfc5ff24 7px),repeating-linear-gradient(-45deg,transparent 0,transparent 6px,#dfc5ff1a 6px,#dfc5ff1a 7px),linear-gradient(145deg,#593b7d,#402855)}.back:after{content:'';position:absolute;inset:6px;border:1px solid #d8baf4;border-radius:6px}.back-mark{display:flex;align-items:center;gap:2px;justify-content:center;width:52px;height:52px;border:1px solid #ddc4f4;transform:rotate(-8deg);border-radius:50%;font:600 24px Outfit,system-ui;color:#f8efff}.back-mark span{font-size:16px}.face{background:#fbf8f1;color:#272237;border:1px solid white;animation:reveal .35s ease-out}.face.red{color:#b52f4c}.corner{position:absolute;left:10px;top:8px;font:600 21px Outfit,system-ui;line-height:1}.corner small{font:16px Outfit;line-height:1.1}.corner.bottom{left:auto;top:auto;right:10px;bottom:8px;transform:rotate(180deg)}.suit{font-size:46px}.current{outline:2px solid #cfb478;outline-offset:4px;box-shadow:0 0 25px #e7c68420}.missed{outline-color:#e5879b}.bridge .card{opacity:1}.bridge .card-number{font-size:7px;letter-spacing:.3px}.path-connector{display:flex;justify-content:space-between;align-items:center;height:37px;padding:0 9%;color:#d9b7ff;font-size:19px}.path-connector span:nth-child(2){font-size:7px;letter-spacing:2.6px;color:#d9c4ee}.game-controls{min-height:86px;display:flex;justify-content:center;align-items:center;gap:17px;flex-wrap:wrap;max-width:670px;margin:0 auto}.primary{display:flex;align-items:center;justify-content:center;gap:24px;background:#c5a4ff;color:#21152f;border:1px solid #d1acf6;padding:14px 23px;border-radius:8px;font-size:13px;min-height:46px}.primary>span{margin-left:10px}.spin-open{min-width:330px}.control-note{font-size:10px;color:var(--muted);text-align:center;width:100%;line-height:1.6}.game-controls .control-note{margin-top:-4px}.call{flex:1;max-width:230px;display:flex;justify-content:center;align-items:center;gap:13px;padding:16px 22px;border-radius:9px;font:600 20px Outfit,system-ui}.call span{font-size:25px}.higher{background:#c5a4ff;color:#21152f}.lower{border:1px solid #c5a4ec;background:#38264c;color:#f4e5ff}.call-divider{font-size:8px;letter-spacing:1.5px;text-align:center;color:#dfcfef;line-height:1.7}.turn-result{display:flex;flex-direction:column;align-items:center;gap:15px;color:var(--muted);font-size:12px}.turn-result b{color:var(--gold)}.tie-note{text-align:center;font-size:11px;color:var(--gold);margin-top:12px}.bottom-notes{display:flex;align-items:center;justify-content:space-between;padding:21px 4px;gap:14px}.bottom-notes>div{display:flex;gap:12px;align-items:center}.bottom-notes>div>span{font-size:23px;color:var(--gold)}.bottom-notes p{font-size:10px;line-height:1.7;color:var(--muted)}.bottom-notes strong{font-weight:500;color:#f0e5fc}.text-button{background:transparent;color:#e3c5ff;font-size:11px;padding:5px 0}.roster{padding:23px 20px 0;min-height:570px;display:flex;flex-direction:column}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.section-heading .eyebrow{font-size:8px}.section-heading h2{font:500 21px Outfit,system-ui;margin-top:7px}.count{font:500 10px 'DM Sans',system-ui;background:#383043;color:#f2e5ff;border-radius:5px;padding:3px 6px;margin-left:4px;vertical-align:middle}.add-player{display:flex;gap:8px;margin-bottom:19px}.add-player input{width:100%;font-size:11px;padding:11px}.square{font-size:22px;font-weight:400;width:38px;flex-shrink:0;background:#342641;color:#cdaaf1;border:1px solid #59426e;border-radius:8px}.player-list{flex:1;min-height:300px;max-height:570px;overflow:auto}.player-row{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #30283a}.player-row.selected{background:#b48cef10}.avatar{height:31px;width:31px;flex-shrink:0;border:1px solid color-mix(in srgb,var(--avatar),transparent 65%);background:color-mix(in srgb,var(--avatar),transparent 85%);color:var(--avatar);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px}.player-name{flex:1;min-width:0}.player-name strong{display:block;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-name small{font-size:8px;color:var(--muted);margin-top:4px}.paid{font-size:8px;background:#4b2f39;border:1px solid #d89aa9;color:#ffe4eb;border-radius:5px;padding:5px 7px}.paid.yes{background:#1c4636;border-color:#74bc97;color:#d6ffe8}.paid.yes:disabled{opacity:1;color:#d6ffe8}.remove{padding:4px 0 4px 4px;background:transparent;font-size:18px;color:#e8cfee}.roster-footer{font-size:9px;color:#d5c8e4;padding:18px 0;border-top:1px solid var(--border);margin-top:15px;display:flex;align-items:center;gap:7px}.empty-roster{text-align:center;padding:56px 0 30px}.empty-roster>span{display:block;color:#cba7f3;font-size:40px;margin-bottom:15px}.empty-roster strong{font:500 20px Outfit,system-ui;line-height:1.4}.empty-roster p{font-size:10px;color:var(--muted);line-height:1.8;margin:12px 0 18px}footer{border-top:1px solid #2a2336;padding:22px 0;margin-top:18px;display:flex;justify-content:space-between;gap:20px;font-size:8px;letter-spacing:1px;color:#c3b4d3}footer b{font-weight:400;margin-left:8px;color:#d5c7e5}footer span:last-child{letter-spacing:0}.settings,.intro,.history{padding:30px}.settings h2,.intro h2,.history h2{font:500 28px Outfit,system-ui;margin:9px 0 12px}.settings>p,.intro p,.history>p{font-size:13px;line-height:1.7}.intro .primary{margin-top:25px}form label{display:block;font-size:13px;font-weight:500;margin:24px 0}form label small{font-size:11px;line-height:1.6;color:var(--muted);margin-top:8px;font-weight:400}.money-input{display:flex;align-items:center;gap:10px;margin-top:10px;border:1px solid var(--border);background:#110f1d;padding-left:14px;border-radius:9px;max-width:280px}.money-input input{border:0;max-width:230px;width:100%}.presets{display:flex;gap:8px;margin-top:12px}.presets button{padding:9px 18px;background:#241d31;border:1px solid var(--border);border-radius:7px;font-size:12px}.presets button.active{background:#3d2b52;border-color:#a47bcc;color:#dab7ff}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}input[type=checkbox]{width:21px;height:21px;accent-color:#b48cef}.info-box{font-size:11px;color:var(--muted);padding:17px;border:1px solid var(--border);border-radius:8px;margin-top:25px;line-height:1.6}.history{margin-top:10px}.history-row{display:flex;align-items:center;gap:25px;padding:16px 0;border-bottom:1px solid var(--border);font-size:12px}.history-row>span{color:var(--muted)}.history-row strong{flex:1}.modal-backdrop{position:fixed;inset:0;background:#080610cd;backdrop-filter:blur(10px);z-index:10;display:flex;align-items:center;justify-content:center;padding:20px}.modal{position:relative;max-width:510px;width:100%;background:linear-gradient(135deg,#292037,#191525);border:1px solid #5b426d;border-radius:20px;padding:35px;box-shadow:0 20px 100px #0007;max-height:95dvh;overflow:auto}.modal h2{font:500 30px Outfit,system-ui;margin:10px 0 13px;letter-spacing:-.5px}.modal>p{font-size:12px;line-height:1.7}.modal .primary{width:100%;margin-top:20px}.close{position:absolute;right:15px;top:10px;font-size:26px;background:transparent;color:var(--muted);padding:6px}.rules ol{padding-left:20px;color:#d0c3dd;font-size:13px;line-height:1.8}.rules li{padding:5px}.wheel-modal{text-align:center;max-width:520px}.wheel-wrap{position:relative;width:320px;height:320px;margin:30px auto 10px}.wheel{position:relative;width:100%;height:100%;border:8px solid #e3c38d;border-radius:50%;box-shadow:0 0 0 6px #493453,0 0 60px #ad7cbd22;transition:transform 4.2s cubic-bezier(.12,.74,.12,1)}.pointer{position:absolute;top:-18px;left:50%;transform:translateX(-50%);z-index:2;font-size:35px;color:#ffe0a4;filter:drop-shadow(0 4px 2px #0005)}.wheel-name{position:absolute;left:50%;top:50%;width:110px;margin-left:-55px;margin-top:-8px;font-size:12px;font-weight:700;text-shadow:0 1px 3px #0004;white-space:nowrap}.wheel-hub{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;border:4px solid #e3c38d;background:#251a32;color:#e6c8ff;font:600 24px Outfit;box-shadow:0 3px 15px #0005}.wheel-hub span{font-size:17px}.audience .layout{display:block;max-width:1230px;margin:auto}.audience main{max-width:1430px}.audience .page-heading{margin-bottom:20px}.audience .card-path{max-width:800px}.audience .game-message{font-size:31px}.audience .card{max-height:190px}.audience .game-subtitle{font-size:15px}.audience-status{text-align:center}.audience-status strong{display:block;font:500 26px Outfit;margin-top:10px}.audience .game-controls{min-height:60px}.audience .bottom-notes .text-button{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#d8c0f6;color:#251632;box-shadow:0 5px 30px #0008;border:1px solid #f4e6ff;padding:14px 22px;border-radius:10px;font-size:12px;z-index:30;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90%;text-align:center;line-height:1.5}#toast.show{opacity:1;transform:translate(-50%,0)}.storage-warning{background:#5d3d28;color:#ffdfb6;border-radius:8px;padding:12px;margin-bottom:15px;font-size:12px}@keyframes reveal{from{transform:rotateY(70deg);opacity:.2}to{transform:rotateY(0);opacity:1}}@media(min-width:1600px){main{padding-top:45px}.card{max-height:180px}.game-message{margin-top:33px}}@media(max-width:1100px){.layout{grid-template-columns:minmax(0,1fr) 275px;gap:18px}main{padding:30px 25px 0}.topbar{padding:0 25px}.card-row{gap:12px}.game-table{padding:20px}.stat{padding:18px 15px}.stat>span{font-size:8px}.stat small{font-size:9px}.roster{padding:20px 15px 0}.card .suit{font-size:36px}.corner{font-size:17px;left:7px;top:6px}.corner.bottom{right:7px;bottom:6px}.corner small{font-size:12px}.local-badge{display:none}.game-message{font-size:20px}}@media(max-width:850px){.layout{grid-template-columns:1fr}.roster{min-height:260px}.player-list{min-height:100px;max-height:400px}.empty-roster{padding:25px 0}.page-heading{align-items:flex-start;flex-direction:column;gap:22px}.page-heading nav{align-self:stretch;justify-content:space-between}.page-heading nav button{flex:1}.card-path{max-width:630px}.roster .player-name strong{font-size:13px}.roster .player-name small{font-size:10px}.paid{font-size:11px}.remove{padding:8px}.secondary .roster{order:-1}.stat>span{font-size:9px}.stat small{font-size:10px}.audience .page-heading{display:none}}@media(max-width:520px){.topbar{height:75px;padding:0 16px}.brand{font-size:14px}.brand-symbol{width:38px;height:38px;font-size:23px}.brand-light{font-size:9px}.header-right{gap:0}.outline{font-size:10px;padding:9px}.header-right .outline{max-width:125px}main{padding:25px 14px 0}h1{font-size:37px}.eyebrow{font-size:8px}.stats{gap:0;margin-bottom:15px}.stat{padding:15px 10px}.stat>span{font-size:7px;letter-spacing:1px}.stat>strong{font-size:25px}.stat small{font-size:8px}.round{font-size:8px;padding:3px 4px;margin-left:0}.game-table{padding:17px 13px}.table-heading .tiny{font-size:8px}.tag{font-size:7px;letter-spacing:.8px}.separator{margin:0 3px}.game-message{font-size:19px;line-height:1.3;margin-top:23px}.game-subtitle{font-size:10px}.card-row{gap:9px}.card{border-radius:6px}.back:after{inset:4px;border-radius:3px}.back-mark{width:31px;height:31px;font-size:17px;gap:0}.back-mark span{font-size:10px}.card .suit{font-size:28px}.corner{font-size:13px;left:5px;top:5px}.corner small{font-size:9px}.corner.bottom{right:5px;bottom:5px}.current{outline-offset:2px;outline-width:1px}.card-number{font-size:8px}.bridge .card-number{font-size:5px}.path-connector{height:31px}.card-path{margin:24px auto 18px}.game-controls{gap:9px}.spin-open{min-width:0;width:100%;font-size:11px;gap:5px}.call{font-size:18px;padding:12px 10px;gap:8px}.call-divider{font-size:6px;letter-spacing:1px}.control-note{font-size:9px}.bottom-notes{padding:17px 0}.bottom-notes p{font-size:9px}.bottom-notes .text-button{font-size:9px}.modal{padding:29px 22px}.modal h2{font-size:26px}.wheel-wrap{width:280px;height:280px}.wheel-name{font-size:10px}.settings,.intro,.history{padding:24px}.audience .game-message{font-size:23px}.audience .game-subtitle{font-size:11px}.audience-status strong{font-size:20px}footer{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition-duration:.01ms!important}}
@media(min-width:851px) and (max-height:850px){.audience .topbar{height:65px}.audience main{padding-top:15px}.audience .stats{margin-bottom:12px}.audience .stat{padding:12px 22px}.audience .stat>strong{font-size:27px;margin:3px 0}.audience .game-table{padding:15px 28px}.audience .game-message{font-size:25px;margin-top:13px}.audience .game-subtitle{font-size:12px}.audience .card-path{max-width:640px;margin:16px auto 9px}.audience .card{height:clamp(80px,17vh,135px);aspect-ratio:auto}.audience .path-connector{height:25px}.audience .game-controls{min-height:52px}.audience .audience-status strong{font-size:22px;margin-top:4px}.audience .bottom-notes,.audience footer{display:none}}
.audience .page-heading{display:none}.audience main{padding-top:18px}.audience .game-table{padding-top:17px}.audience .game-message{margin-top:16px}.audience .bottom-notes,.audience footer{display:none}
.bridge-active .card{opacity:1}.checkpoint-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;width:100%}.checkpoint-controls .keep-card{min-height:46px;min-width:155px;font-size:13px}.checkpoint-controls .primary{min-width:170px}.checkpoint-controls .control-note{margin-top:0}.checkpoint-note{color:var(--gold);text-align:center;font-size:11px;line-height:1.5;margin-top:10px}.audience .checkpoint-note{font-size:13px;margin-top:4px}.audience .checkpoint-controls{min-height:60px}@media(max-width:520px){.checkpoint-controls{gap:8px}.checkpoint-controls .keep-card,.checkpoint-controls .primary{min-width:0;flex:1;padding:12px 10px;font-size:12px}.checkpoint-note{font-size:10px}}

/* Inactive controls keep readable labels; their darker fill signals state. */
.primary:disabled,
.host-view .primary:disabled,
.call:disabled,
.square:disabled {
  background: #49385c;
  border: 1px solid #a18ab9;
  color: #f2e9fa;
}
.outline:disabled { color: #ddd1eb; border-color: #8c789f; }
.card-number { font-weight: 700; }
.bridge:not(.bridge-active) .back {
  background: linear-gradient(145deg, #493c5b, #31273f);
  border-color: #bda6d2;
  border-style: dashed;
}
.path-connector span:nth-child(2) { font-weight: 600; }
.wheel-name {
  background: #24172f;
  color: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  text-shadow: none;
}
input:not([type=checkbox]) { border-color: #8f7aa5; }
