
/* layout: a temple-stone slot cabinet — canvas stage on top, brass HUD strip below, dev drawer underneath */
.bs-root { --bg:#1b1410; --panel:#2a1f16; --panel-2:#352619; --line:#8a6a3a; --fg:#f3e2b8; --muted:#bfa273; --accent:#e9b84d; --win:#d93a2f; --ok:#2f9e45; --red:#b8322b; --black:#15110f;
        --display:'Cinzel', Georgia, 'Times New Roman', serif; --body:'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color-scheme: dark }
.bs-root { background: var(--bg); color: var(--fg); font-family: var(--body); }
.bs-wrap { max-width: 1174px; margin: 0 auto; display: grid; gap: 12px; }
.bs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bs-head h1 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; margin: 0; color: var(--accent); text-wrap: balance; }
.bs-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.bs-root { display: grid; gap: 10px; }
.bs-stage { position: relative; width: 100%; max-width: 100%; aspect-ratio: 1920 / 1080; margin: 0 auto; background: #140d09; border-radius: 12px; overflow: hidden; }   /* the client sets width/height per viewport layout (1920×1080 landscape, 1080×1920 portrait) */
.bs-canvas, .bs-canvas canvas { display: block; width: 100%; height: 100%; }
.bs-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,6,3,.72); padding: 16px; }
.bs-root [hidden] { display: none !important; }   /* our display:flex/grid rules must not beat the hidden attribute (UA + WP theme rules have equal specificity) */
.bs-card { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 18px 22px; max-width: min(92%, 560px); max-height: 92%; overflow: auto; display: grid; gap: 10px; text-align: center; }
.bs-card h3 { font-family: var(--display); font-size: 2rem; margin: 0; color: var(--accent); }
.bs-card p { margin: 0; }
.bs-card a.bs-btn { text-decoration: none; display: inline-block; }   /* JOIN NOW / BUY COINS links styled as buttons */
.bs-join h3 { font-size: 2.4rem; }
.bs-es { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--muted); }
/* feature intro: big shuffle tile, the chosen symbol's name, and the row of all candidates */
.bs-es-stage { position: relative; justify-self: center; width: 226px; height: 200px; border-radius: 12px; background: #2a1210; border: 3px solid #1b1308; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bs-es-stage .bs-es-item { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; }
.bs-es-stage .bs-es-item.is-on { display: flex; }
.bs-es-stage img, .bs-es-pool img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.bs-es-stage.is-locked { border-color: var(--accent); box-shadow: 0 0 28px 6px rgba(233,184,77,.55); cursor: default; }
.bs-es-name { font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; color: var(--accent); min-height: 1.7rem; }
.bs-es-pool { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; max-width: 100%; }   /* wraps on the narrow portrait stage */
.bs-es-pool .bs-es-mini { width: 50px; height: 44px; flex: 0 0 auto; border-radius: 6px; background: #2a1210; border: 2px solid #4a3722; overflow: hidden; opacity: .5; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; transition: opacity .06s, border-color .06s, transform .06s; }
.bs-es-pool .bs-es-mini.is-on { opacity: 1; border-color: var(--fg); transform: scale(1.1); }
.bs-es-pool .bs-es-mini.is-final { opacity: 1; border-color: var(--accent); box-shadow: 0 0 10px rgba(233,184,77,.7); transform: scale(1.1); }
.bs-hud { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: linear-gradient(#3a2a1a, #241910); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.bs-meter, .bs-ctl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bs-lab { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--muted); }
.bs-val { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; min-width: 2ch; text-align: right; }
.bs-win { color: var(--accent); }
.bs-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bs-btn { font: inherit; font-weight: 700; color: var(--fg); background: var(--panel-2); border: 2px solid var(--line); border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.bs-btn:hover { filter: brightness(1.15); } .bs-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; } .bs-btn:disabled { opacity: .45; cursor: default; }
.bs-btn.bs-small { padding: 4px 10px; font-size: .85rem; }
.bs-btn.bs-toggle { border-color: #6b5230; color: var(--muted); } .bs-btn.bs-toggle.is-on { background: var(--accent); border-color: var(--accent); color: #1b1308; }
.bs-btn.bs-primary { background: var(--ok); border-color: #1d6b2e; color: #fff; padding: 10px 28px; font-size: 1.05rem; min-width: 120px; }
.bs-btn.bs-red { background: var(--red); color: #fff; } .bs-btn.bs-black { background: var(--black); color: #fff; }
.bs-devbar { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.bs-dev { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .88rem; }
.bs-dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.bs-dev section { min-width: 0; display: grid; gap: 8px; align-content: start; } .bs-dev .bs-wide { grid-column: 1 / -1; }
.bs-dev h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--accent); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bs-tbl { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; } .bs-tbl td, .bs-tbl th { padding: 3px 8px; border-bottom: 1px solid #4a3722; text-align: left; } .bs-tbl td:last-child { text-align: right; }
.bs-paytable .bs-tbl td:not(:first-child) { text-align: right; }
.bs-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .bs-row label { color: var(--muted); }
.bs-dev input, .bs-dev select { font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.bs-note { color: var(--muted); font-size: .8rem; }
.bs-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; } .bs-seg .bs-btn.is-on { background: var(--accent); color: #1b1308; border-color: var(--accent); }
pre#bs-payload, pre#bs-log { background: var(--bg); border: 1px solid #4a3722; border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; margin: 0; font-size: .75rem; white-space: pre-wrap; word-break: break-word; }
.bs-error { color: var(--win); }
details summary { cursor: pointer; color: var(--muted); }
@media (max-width: 640px) { .bs-val { font-size: 1.05rem; } .bs-btn.bs-primary { min-width: 0; padding: 8px 16px; } .bs-actions { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
