:root{color-scheme:dark;--bg:#0b1014;--panel:#131b20;--gold:#d8b775;--muted:#97a6ad;--line:#2f393e;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:#edf1f0}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 30% -20%,#5b492c45,transparent 55%),var(--bg)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;background:#1a252b;border:1px solid var(--line);border-radius:9px;cursor:pointer;min-height:44px;padding:10px 14px}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}.top{height:80px;max-width:1440px;margin:auto;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0c}.brand{font-size:25px;font-weight:900;letter-spacing:-1px}.brand span{color:var(--gold)}.brand small{font-size:8px;display:block;letter-spacing:5px;color:var(--muted);font-weight:500;margin-top:3px}.backlink{font-size:12px;color:var(--muted);padding:12px}.quiet{background:transparent;color:var(--muted);border-color:transparent;font-size:12px}.quiet:hover{color:var(--gold);border-color:#504633}main{max-width:1440px;margin:auto;padding:32px 36px}.intro{padding:32px 0 25px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--gold);font-weight:600}.intro h1{font-size:clamp(36px,6vw,68px);line-height:1.05;letter-spacing:-2px;font-weight:500;margin:20px 0}.intro em{font-family:Georgia,serif;color:var(--gold);font-weight:400}.intro p{color:var(--muted);font-size:14px}.disclosure{font-size:11px;color:#bec5c4;border-top:1px solid var(--line);padding:18px 0;margin:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{background:linear-gradient(145deg,#1a2329,#10171b);border:1px solid #3b3b32;border-radius:16px;overflow:hidden;transition:transform .2s,border-color .2s;position:relative}.card:hover{transform:translateY(-4px);border-color:var(--gold)}.card img{width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;display:block;background:#10191c}.card-info{padding:18px 20px 22px}.card-info small{font-size:8px;letter-spacing:2px;color:var(--gold)}.card-info h2{font-size:23px;margin:9px 0;font-weight:500}.card-info p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.card-info b{position:absolute;right:20px;bottom:22px;font-weight:400;color:var(--gold);font-size:20px}.gamehead{display:flex;align-items:center;gap:18px;margin-bottom:20px;flex-wrap:wrap}.gamehead h1{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:0;flex:1}.gamehead .eyebrow{display:none}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px}.visual{min-height:460px;height:min(65vh,650px);position:relative;border:1px solid #494431;border-radius:18px;overflow:hidden;background:radial-gradient(ellipse,#19312d,#070c10 80%)}#scene{position:absolute;inset:0}#scene canvas{width:100%;height:100%;display:block}.scene-top{position:absolute;top:18px;left:22px;right:22px;display:flex;justify-content:space-between;gap:12px;pointer-events:none;font-size:8px;letter-spacing:2px;color:var(--gold)}.free-tag{letter-spacing:1px;color:#a4b6b3}.scene-hud{position:absolute;left:12px;right:12px;bottom:22px;display:flex;align-items:center;flex-direction:column;gap:5px;pointer-events:none;text-align:center;text-shadow:0 3px 12px #000}.scene-hud>span:first-child{font-size:9px;letter-spacing:2px;color:#c3b48e}.scene-hud strong{font-family:Georgia,serif;font-weight:400;font-size:clamp(25px,4vw,44px);color:#f3ddb0}.scene-hud>span:last-child{font-size:12px;color:#c6d4d0;max-width:90%;line-height:1.5}#fallback{position:absolute;top:60px;left:18px;right:18px;padding:16px;border:1px solid #56503d;border-radius:10px;background:#131d23;font-size:12px}.controls{padding:20px;background:linear-gradient(150deg,#1a2227,#11191e);border:1px solid var(--line);border-radius:16px;min-width:0}.wallet{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.wallet span,.stake-label{font-size:11px;color:var(--muted)}.wallet b{font-size:25px;font-weight:500;color:#e5cf9b;font-variant-numeric:tabular-nums}.wallet small{font-size:10px;color:#7d9199}.stake{display:flex;gap:6px;margin:8px 0 17px}.stake input{width:100%;min-width:0;color:#eef2f0;background:#0b1419;border:1px solid var(--line);border-radius:9px;padding:10px;text-align:center;font-variant-numeric:tabular-nums;font-size:16px}.stake button{padding:8px 12px}.setting-label{display:block;font-size:11px;color:var(--muted);margin:12px 0 8px}.setting-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin:12px 0}.setting-row b{color:var(--gold)}input[type=range]{width:100%;accent-color:var(--gold);min-height:44px}.choices{display:flex;gap:7px;flex-wrap:wrap}.choices button{flex:1;font-size:12px;padding:10px 7px}.choices .selected{border-color:var(--gold);color:var(--gold);background:#5e4c2229}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.actions button{flex:1 1 42%;min-height:48px;font-size:13px;font-weight:650}.primary{background:linear-gradient(120deg,#ebd39a,#bd9850);color:#171b1c;border-color:#d5b66c}.collect{border-color:#77a494;background:#234a3e;color:#e2fff2}.message{font-size:12px;color:#dec793;line-height:1.55;min-height:18px;overflow-wrap:anywhere}.local-note{font-size:10px;line-height:1.65;color:#85969e;border-top:1px solid var(--line);padding-top:12px}.keno-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.keno-grid button{padding:0;min-height:44px;font-size:12px;background:#101b22}.keno-grid button.selected{color:#161b1d;background:var(--gold);border-color:var(--gold)}.keno-grid button.drawn{box-shadow:inset 0 0 0 2px #63b9a4}.keno-grid button.hit{background:#63b9a4;color:#071a17}.paytable{font-size:11px;line-height:1.8;color:var(--muted);margin-top:10px}.paytable summary{cursor:pointer;min-height:34px}.paytable ul{list-style:none;padding:0;margin:5px 0}.paytable li{display:flex;justify-content:space-between}.history{margin-top:24px;border:1px solid var(--line);border-radius:14px;padding:18px}.sectiontitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.sectiontitle h2{font-size:15px;font-weight:500}.history-row{display:grid;grid-template-columns:minmax(100px,1fr) 110px 110px;gap:10px;font-size:12px;border-top:1px solid #ffffff08;padding:12px 0;color:var(--muted)}.history-row b{text-align:right;color:#dfc890;font-weight:500}.history-row time{font-size:10px}.history-row.loss b{color:#8c9b9f}.history-row span{overflow-wrap:anywhere}.history-row small{display:block;margin-top:4px;font-size:9px;color:#7d8e96}footer{padding:35px 0 10px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:10px;color:#8e9c9f;letter-spacing:1px}dialog{color:#ebefed;background:#162127;border:1px solid #61523b;border-radius:18px;max-width:580px;width:calc(100% - 28px);padding:28px;max-height:85dvh;overflow:auto}dialog::backdrop{background:#000b}dialog h2{font-family:Georgia,serif;font-weight:400;padding-right:25px}dialog p,dialog li{font-size:13px;line-height:1.8;color:#bbc8cc}.close{position:absolute;top:10px;right:10px}#active-warning{font-size:12px;line-height:1.6;background:#56452744;border:1px solid #6b5837;border-radius:8px;padding:10px;margin-bottom:15px}#active-warning a{text-decoration:underline;color:var(--gold)}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.game-layout{grid-template-columns:minmax(0,1fr) 280px}.controls{padding:16px}}@media(max-width:700px){.top{height:66px;padding:0 16px}.brand{font-size:22px}.brand small{font-size:7px}.backlink{font-size:10px;padding:8px 0}main{padding:18px 12px calc(18px + env(safe-area-inset-bottom))}.intro{padding:20px 5px}.intro h1{font-size:43px}.intro p{font-size:12px;line-height:1.7}.eyebrow{font-size:8px;letter-spacing:1.8px}.cards{gap:10px}.card{border-radius:12px}.card-info{padding:13px 11px 18px}.card-info small{font-size:6px;letter-spacing:1px}.card-info h2{font-size:17px;margin:7px 0}.card-info p{font-size:10px;min-height:32px;padding-right:9px}.card-info b{right:9px;bottom:14px;font-size:16px}.disclosure{font-size:9px;line-height:1.7}.gamehead{gap:7px;margin-bottom:12px}.gamehead h1{font-size:20px;min-width:100px}.gamehead button{padding:8px;font-size:11px}.game-layout{grid-template-columns:1fr;gap:12px}.visual{min-height:0;height:clamp(260px,46svh,390px);border-radius:13px}.scene-top{top:13px;left:13px;right:13px;font-size:6px;letter-spacing:1px}.scene-hud{bottom:15px;gap:4px}.scene-hud strong{font-size:27px}.scene-hud>span:last-child{font-size:11px}.controls{padding:16px}.wallet{padding-bottom:12px;margin-bottom:12px}.wallet b{font-size:23px}.wallet small{font-size:9px}.stake{margin-bottom:10px}.history{padding:13px;margin-top:15px}.sectiontitle{align-items:flex-start}.sectiontitle h2{font-size:14px}.sectiontitle button{font-size:10px;padding:6px;max-width:130px}.history-row{grid-template-columns:minmax(80px,1fr) 75px 75px;font-size:11px;gap:5px}.keno-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.keno-grid button{min-height:40px}footer{font-size:8px;line-height:1.7}.local-note{font-size:10px}.choices button{min-height:44px}}@media(max-width:350px){.keno-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.card-info h2{font-size:15px}.gamehead h1{font-size:18px}.brand{font-size:20px}.visual{height:260px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Sapphire private room. Actual 3D objects render over the selected room plate. */
:root{--bg:#080d16;--panel:#101723;--gold:#e4bf78;--line:#444032}body{background:radial-gradient(ellipse at 50% 0%,#182442,#080d16 65%)}.visual{height:min(72vh,740px);min-height:540px;border-color:#9c783c;background:#101c35}.visual #scene{background-image:url('/static/originals-assets/sapphire-palace-v1.webp');background-size:cover;background-position:center}.scene-top{top:14px;left:14px;right:14px;padding:10px 12px;background:#080d18cf;border:1px solid #b28b4a77;border-radius:9px;font-size:9px;backdrop-filter:blur(6px)}.scene-hud{bottom:14px;border-radius:12px;padding:12px;background:linear-gradient(0deg,#07101de8,#091322b0);left:15%;right:15%;border:1px solid #b4934c44}.scene-hud strong{color:#f9d996;font-size:46px}.controls{border:1px solid #b28a46;background:linear-gradient(145deg,#171f2e,#0a101a);box-shadow:inset 0 0 0 4px #b28a4609,0 20px 55px #0005}.wallet b{font-family:Georgia,serif;font-size:30px}.primary{background:linear-gradient(160deg,#f9e2a7,#c5953c 60%,#e0ba69);box-shadow:inset 0 1px 3px #fff6,0 3px 12px #0004;border-color:#e7c580;font-size:15px}.gamehead h1{color:#ebca8c}.stake input{background:#060e1a}.keno-grid button{background:#0b1728}.keno-grid button.selected{background:#e2bf7d}.keno-grid button.hit{background:#68b8a3}.free-tag{color:#e3d5b4}.card{border-color:#77613b}.history{background:#0b1320}.brand{font-family:Georgia,serif;letter-spacing:.5px}
@media(max-width:700px){.visual{height:clamp(450px,65svh,590px);min-height:0}.scene-top{font-size:7px;padding:8px;gap:7px;top:10px;left:10px;right:10px}.scene-hud{left:8%;right:8%;bottom:12px;padding:10px}.scene-hud strong{font-size:38px}.controls{padding:18px}.primary{font-size:16px}.gamehead h1{font-size:23px}.wallet b{font-size:28px}.game-layout{gap:14px}}
@media(max-width:350px){.visual{height:450px}.scene-hud strong{font-size:34px}.gamehead h1{font-size:19px}}
/* Reserve a result strip, so labels never cover dice, cards or the wheel. */
.visual{background-image:url('/static/originals-assets/sapphire-palace-v1.webp');background-size:cover;background-position:center}.visual #scene{background:none;bottom:100px}.scene-hud{left:8%;right:8%;height:88px;bottom:6px;padding:8px;justify-content:center;background:#071020d9}.scene-hud strong{line-height:1.1}.scene-hud>span:last-child{font-size:11px}
@media(max-width:700px){.visual #scene{bottom:105px}.scene-hud{height:96px;left:6px;right:6px;bottom:4px}.scene-hud>span:last-child{font-size:10px}}
#roundProgress{width:80%;height:3px;appearance:none;border:0;border-radius:3px;background:#283248;margin-top:3px}#roundProgress::-webkit-progress-bar{background:#283248;border-radius:3px}#roundProgress::-webkit-progress-value{background:#dfbc75;border-radius:3px}#roundProgress::-moz-progress-bar{background:#dfbc75;border-radius:3px}
.visual #scene{bottom:116px}.scene-hud{height:104px;bottom:4px}
@media(max-width:700px){.visual #scene{bottom:116px}.scene-hud{height:104px}}
.royal-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:8px 0 12px}.royal-card{position:relative;min-width:0;min-height:94px;padding:8px 3px 22px!important;background:linear-gradient(145deg,#fffdf7,#d9d4c6)!important;color:#111927!important;border:1px solid #cbb47c!important;font-family:Georgia,serif;font-size:22px!important;font-weight:700;box-shadow:0 3px 9px #0005}.royal-card span{display:block;font-size:22px;line-height:1.1}.royal-card.red{color:#a31934!important}.royal-card small{position:absolute;left:1px;right:1px;bottom:5px;font:700 7px/1 system-ui,sans-serif;letter-spacing:.35px;color:#4b514e}.royal-card.held{outline:2px solid #65c3a1;transform:translateY(-4px);box-shadow:0 5px 14px #0007}.royal-card.held small{color:#167052}@media(max-width:700px){.royal-cards{gap:5px}.royal-card{min-height:89px;padding:6px 2px 21px!important;font-size:20px!important}.royal-card small{font-size:6px;letter-spacing:0}}@media(max-width:350px){.royal-cards{gap:3px}.royal-card{min-height:82px;font-size:18px!important}.royal-card span{font-size:18px}}
