/* Prime Xdniyan Hive Casino — global styles */
:root {
  --bg: #101715;
  --bg2: #17221e;
  --panel: #192520;
  --panel-solid: #192520;
  --line: rgba(231, 194, 120, 0.14);
  --line-strong: rgba(231, 194, 120, 0.34);
  --honey: #e8b953;
  --honey2: #f5d98f;
  --amber: #d58e42;
  --text: #f2eedf;
  --muted: #b3b9a7;
  --dim: #89958a;
  --win: #7dff6b;
  --lose: #ff5a4e;
  --pink: #ff6fb1;
  --purple: #9b6bff;
  --radius: 18px;
  --shadow: 0 5px 0 rgba(0, 0, 0, .35);
  --display: "Lilita One", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #806a42 #111714; }
html::-webkit-scrollbar { width: 9px; }
html::-webkit-scrollbar-track { background: #111714; }
html::-webkit-scrollbar-thumb { background: #806a42; border: 2px solid #111714; border-radius: 99px; }
html::-webkit-scrollbar-thumb:hover { background: #b3975b; }
::selection { color: #19170f; background: #e8b953; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--honey2); }
button { font: inherit; color: inherit; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: 0.01em; }

/* honeycomb texture */
.hexbg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23ffb800' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 56px 98px;
}
:focus-visible { outline: 2px solid #f5d98f; outline-offset: 3px; }
#swarm { position: fixed; inset: 0; z-index: -1; pointer-events: none; transition: opacity 0.8s; }
body:not(.in-game) #swarm { opacity: .04; }
body.in-game #swarm { opacity: 0.06; }
#fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px);
  padding: 12px clamp(16px, 3vw, 42px);
  background: #101715;
  border-bottom: 1px solid rgba(231, 194, 120, .19);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-hex { width: 40px; height: 40px; filter: saturate(.9); }
.brand-text { font-family: var(--display); font-size: 20px; line-height: 1; font-weight: 600; }
.brand-text b { color: var(--honey); font-weight: 700; }
.nav {
  display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: center;
  gap: 8px; margin: 0; overflow: visible;
}
.nav-primary { display: flex; align-items: center; gap: 4px; }
.nav a { flex-shrink: 0; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: 0.2s;
}
.nav a:hover { color: var(--text); background: #202b24; }
.nav a.active { color: #17201a; background: #d9a947; }
.nav-more { position: relative; flex-shrink: 0; }
.nav-more summary {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #19221e; color: var(--muted); cursor: pointer;
  font-size: 14px; font-weight: 600; list-style: none; white-space: nowrap; transition: .2s;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after {
  content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin: -3px 1px 0;
  border-right: 1.5px solid var(--honey2); border-bottom: 1.5px solid var(--honey2);
  transform: rotate(45deg); transition: transform .18s ease;
}
.nav-more summary:hover, .nav-more.has-active summary { border-color: var(--honey); color: var(--honey2); }
.nav-more[open] summary::after { transform: translateY(3px) rotate(225deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  display: none; width: min(228px, calc(100vw - 24px)); max-height: min(60vh, 420px);
  gap: 2px; overflow-y: auto; padding: 8px; border: 1px solid var(--line-strong);
  border-radius: 16px; background: #192520;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
.nav-more:not([open]) > .nav-menu { display: none; }
.nav-more[open] > .nav-menu { display: grid; }
.nav-menu a { padding: 10px 12px; border-radius: 10px; }
.nav-menu a:hover { background: rgba(232, 185, 83, .1); }
.nav-menu a.active { color: #17201a; }
.nav-menu .nav-practice { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #1a241e; color: var(--text); text-align: left; font: 700 14px var(--body); cursor: pointer; }
.nav-menu .nav-practice:hover, .nav-menu .nav-practice.is-active { border-color: var(--honey); color: var(--honey2); background: rgba(232, 185, 83, .1); }
.nav-more summary:focus-visible, .nav-menu a:focus-visible, .nav-menu .nav-practice:focus-visible { outline: 2px solid var(--honey2); outline-offset: 2px; }
.wallet { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance {
  display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px;
  background: #1a2822; border: 1px solid rgba(232, 185, 83, .32);
  font-family: var(--display); font-size: 18px; font-weight: 600; min-width: 140px;
  font-variant-numeric: tabular-nums;
}
.balance.bump { animation: bump 0.45s ease; }
.balance.drop { animation: dropShake 0.4s ease; }
.honey-ico { width: 28px; height: 28px; flex-shrink: 0; }
.btn-ghost, .icon-btn {
  border: 1px solid var(--line-strong); background: #19221e; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; transition: 0.2s; white-space: nowrap;
}
.btn-ghost:hover, .icon-btn:hover { background: #26332b; border-color: var(--honey); }
.btn-ghost.ready { border-color: var(--honey); color: var(--honey2); }
.icon-btn { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; font-size: 16px; }
#muteBtn .mute-label { display: inline; }
#muteBtn .sound-icon { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#muteBtn .sound-icon.is-muted .sound-waves, #muteBtn .sound-icon:not(.is-muted) .sound-slash { display: none; }
/* ---------- views ---------- */
main { position: relative; z-index: 1; min-height: calc(100vh - 140px); }
.view { display: none; padding: clamp(16px, 3vw, 36px); max-width: 1320px; margin: 0 auto; }
.view.active { display: block; animation: viewIn 0.5s cubic-bezier(.2, .8, .2, 1); }

/* ---------- lobby ---------- */
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 30px; align-items: center; min-height: 420px; padding: 20px 0 30px; }
.hero h1 { max-width: 760px; font-size: clamp(38px, 6.4vw, 84px); line-height: 0.98; margin: 18px 0; font-weight: 700; letter-spacing: -.035em; color: var(--honey2); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-art .comb-ring { position: absolute; inset: 0; animation: spinSlow 60s linear infinite; }
.hero-art .queen { position: absolute; inset: 22%; animation: hover 3.2s ease-in-out infinite; }
.homepage-hero {
  aspect-ratio: 1.12 / 1;
  max-width: 510px;
  overflow: visible;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23e8b953' stroke-opacity='.32' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 56px 98px;
}
.homepage-hero .homepage-bee { position: absolute; z-index: 2; display: block; }
.homepage-hero .homepage-bee svg { display: block; width: 100%; height: 100%; overflow: visible; }
.homepage-bee-queen { width: 58%; left: 21%; top: 19%; animation: hover 3.8s ease-in-out infinite; }
.homepage-bee-small { width: 20%; animation: hover 3.2s ease-in-out infinite; }
.homepage-bee-one { left: 2%; top: 31%; animation-delay: -.5s; }
.homepage-bee-two { right: 1%; top: 24%; animation-delay: -1.2s; }
.homepage-bee-three { right: 12%; bottom: 7%; width: 17%; animation-delay: -1.8s; }
.homepage-hero .glow { z-index: 0; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(232,185,83,.22), transparent 70%); filter: blur(18px); }
.homepage-hero:hover .homepage-bee-queen { animation: hero-bee-wiggle .42s ease-in-out; }

.btn-primary {
  position: relative; overflow: hidden; border: 1px solid #f1d38c; cursor: pointer; border-radius: 13px;
  padding: 14px 26px; font-family: var(--display); font-size: 18px; font-weight: 400; letter-spacing: 0;
  color: #241503; background: #e4b954;
  box-shadow: 0 4px 0 #815a29;
  transition: transform 0.1s, box-shadow 0.1s, filter 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: #f0c96f; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #815a29; }
.btn-primary:disabled { filter: grayscale(0.7) brightness(0.7); cursor: not-allowed; }
.btn-primary.big { width: 100%; min-width: 0; max-width: 100%; padding: 18px; font-size: 22px; }
.btn-primary.cash { background: #9dce75; border-color: #c0e89f; box-shadow: 0 4px 0 #446d2a; color: #10230d; }
.btn-secondary { border: 1px solid rgba(231, 194, 120, .32); background: #1b2520; border-radius: 13px; padding: 14px 22px; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s, transform .1s; box-shadow: 0 3px 0 rgba(0,0,0,.28); }
.btn-secondary:hover { background: #26332b; border-color: var(--honey); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible, .mini:focus-visible, .seg button:focus-visible { outline: 3px solid var(--honey2); outline-offset: 3px; }
.btn-secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.28); }
.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

.section-title { display: flex; align-items: end; justify-content: space-between; margin: 10px 0 18px; gap: 12px; }
.section-title h2 { font-size: 32px; margin: 0; }

.games-grid { display: grid; grid-auto-flow: row dense; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.game-card {
  --card-accent: #e8b953;
  position: relative; width: 100%; min-width: 0; overflow: hidden; border-radius: 18px; text-decoration: none; color: var(--text);
  min-height: 270px; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; padding: 16px;
  border: 1px solid #39443b; box-shadow: 0 4px 0 #080d0a;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  background: #19221e;
}
.game-card:active { transform: translateY(-1px) scale(.995); }
.game-card:focus-visible { outline: 2px solid #f5d98f; outline-offset: 4px; }
.game-card .card-art { position: relative; flex: 0 0 auto; width: 64%; max-width: 144px; aspect-ratio: 1; margin: 0 auto 12px; display: grid; place-items: center; transform: none; z-index: 1; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--card-accent) 42%, #26312b); background: color-mix(in srgb, var(--card-accent) 14%, #111714); box-shadow: 0 3px 0 rgba(0,0,0,.28); transition: transform .22s ease; }
.game-card .card-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.game-card:hover { transform: translateY(-3px); border-color: var(--card-accent); box-shadow: 0 6px 0 #080d0a; }
.game-card:hover .card-art { transform: translateY(-3px) scale(1.04); }
.game-card .tag { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 9px; border: 1px solid rgba(255,232,174,.24); border-radius: 999px; background: #e8b953; color: #241a0c; font-size: 10px; font-weight: 700; }
.game-card-exclusive { padding-top: 38px; }
.game-card-exclusive .card-art { margin-bottom: 16px; }
.game-card h3 { position: relative; z-index: 3; margin: 0; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.1; }
.game-card p { position: relative; z-index: 3; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; word-break: normal; }
.game-card .card-fact { position: relative; z-index: 3; margin-top: 10px; color: var(--card-accent); font-size: 12px; font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; }
.game-card.is-paused { border-style: dashed; }
.game-paused-badge { display: inline-flex; vertical-align: middle; margin-left: 5px; padding: 3px 7px; border: 1px solid #756247; border-radius: 999px; color: #f2d18b; font: 800 10px/1.2 var(--body); }
.game-pause-note { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #7a6340; border-radius: 10px; background: #29251d; color: #f4dca9; font-size: 13px; line-height: 1.4; }
.game-card[data-accent="gold"] { --card-accent: #e8bf67; }
.game-card[data-accent="pink"] { --card-accent: #ec91ac; }
.game-card[data-accent="violet"] { --card-accent: #b99af0; }
.game-card[data-accent="green"] { --card-accent: #9bd18d; }
.game-card[data-accent="blue"] { --card-accent: #8fc5e8; }
.game-card[data-accent="coral"] { --card-accent: #e98d79; }
.game-card[data-accent="orange"] { --card-accent: #eab06e; }
.game-card[data-accent="mint"] { --card-accent: #8fc9a3; }
.game-card[data-accent="amber"] { --card-accent: #e7c36a; }
.game-card[data-accent="honey"] { --card-accent: #e8b953; }
.game-card[data-accent="lavender"] { --card-accent: #b7a0da; }
.game-card[data-accent="jade"] { --card-accent: #8bc3a3; }
.game-card[data-accent="rose"] { --card-accent: #e993a1; }
.game-card[data-accent="sky"] { --card-accent: #90bfdd; }
.game-card[data-accent="forest"] { --card-accent: #8bc49a; }
.game-card[data-accent="plum"] { --card-accent: #c09ce0; }
.game-card-feature {
  grid-column: span 2; grid-row: span 2; min-height: 558px; padding: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; align-items: center; gap: 8px 24px;
}
.game-card-feature .card-art { grid-column: 2; grid-row: 1 / 4; width: 100%; max-width: 280px; margin: 0 auto; }
.game-card-feature h3 { grid-column: 1; grid-row: 1; align-self: end; font-size: clamp(26px, 3vw, 38px); }
.game-card-feature p { grid-column: 1; grid-row: 2; font-size: 15px; }
.game-card-feature .card-fact { grid-column: 1; grid-row: 3; align-self: start; font-size: 13px; }
.game-card-wide {
  grid-column: span 2; min-height: 270px; padding: 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .85fr); grid-template-rows: auto auto auto; align-content: center; gap: 7px 20px;
}
.game-card-wide .case-card-art { grid-column: 2; grid-row: 1 / 4; width: 100%; max-width: 245px; margin: 0 auto; }
.game-card-wide h3 { grid-column: 1; grid-row: 1; align-self: end; font-size: 28px; }
.game-card-wide p { grid-column: 1; grid-row: 2; font-size: 14px; }
.game-card-wide .card-fact { grid-column: 1; grid-row: 3; align-self: start; }

.hive-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; margin-top: 44px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(231, 194, 120, .22); box-shadow: 0 3px 0 rgba(0,0,0,.24); }
.card h3 { margin: 0 0 14px; font-size: 20px; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.kv b { color: var(--text); font-family: var(--display); font-size: 17px; font-variant-numeric: tabular-nums; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.history-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 12px; border-radius: 10px; background: #131b17; font-size: 14px; animation: slideIn 0.35s ease; font-variant-numeric: tabular-nums; }
.history-list .pos { color: var(--win); font-weight: 700; }
.history-list .neg { color: var(--lose); opacity: 0.85; }
.empty { color: var(--dim); font-size: 14px; padding: 12px 0; }

@media (max-width: 768px) {
  .wallet #muteBtn { flex: 0 0 38px; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
  .wallet #muteBtn .mute-label { display: none; }
  .wallet #muteBtn .sound-icon { display: block; }
}

/* ---------- game layout ---------- */
.game-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.game-head h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.game-head h1 span { color: inherit; }
.game-head p { margin: 4px 0 0; color: var(--muted); }
.game-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 18px; border-radius: var(--radius); background: #192520; border: 1px solid rgba(231, 194, 120, .22); box-shadow: 0 3px 0 rgba(0,0,0,.24); display: grid; gap: 16px; }
.panel > * { min-width: 0; max-width: 100%; }
.stage { position: relative; border-radius: 20px; background: #17211c; border: 1px solid var(--line-strong); box-shadow: 0 4px 0 rgba(0,0,0,.32); overflow: hidden; min-height: 520px; }
.field-label { min-width: 0; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.field-label > * { min-width: 0; }
.field-label em { min-width: 0; overflow-wrap: anywhere; text-align: right; font-style: normal; color: var(--honey2); letter-spacing: 0; text-transform: none; }

.bet-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, max-content); gap: 6px; width: 100%; min-width: 0; }
.bet-input { width: 100%; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: #111815; border: 1px solid var(--line-strong); }
.bet-input input, .input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font-family: var(--display); font-size: 20px; font-weight: 600; padding: 11px 0; font-variant-numeric: tabular-nums; }
.input { padding: 11px 12px; border-radius: 12px; background: #111815; border: 1px solid var(--line-strong); }
.bet-input:focus-within, .input:focus { border-color: var(--honey); box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.2); }
.bet-input .honey-ico { width: 22px; height: 22px; }
.mini { border: 1px solid var(--line-strong); background: #202a24; border-radius: 10px; padding: 0 12px; cursor: pointer; font-weight: 700; font-size: 13px; transition: 0.15s; box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.mini:hover { background: #2b382f; border-color: var(--honey); }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0; margin-top: 8px; }
.chips button { min-width: 0; padding: 7px 2px; border-radius: 10px; border: 1px dashed var(--line-strong); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); transition: 0.15s; white-space: nowrap; }
.chips button:hover { color: var(--text); border-style: solid; }
.seg { display: grid; width: 100%; min-width: 0; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #111815; border: 1px solid var(--line); }
.seg button { min-width: 0; border: 0; background: transparent; padding: 9px 0; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); transition: 0.2s; }
.seg button.on { background: #d9a947; color: #241503; box-shadow: 0 2px 0 #815a29; }
.seg button:disabled { cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--honey); width: 18px; height: 18px; }
.paytable { display: grid; gap: 6px; }
.paytable div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 4px 8px; border-radius: 10px; background: #131b17; }
.paytable svg { width: 30px; height: 30px; }
.paytable b { margin-left: auto; color: var(--honey2); font-family: var(--display); font-size: 15px; }
.note { font-size: 12px; color: var(--dim); line-height: 1.5; }

/* result banner */
.banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.6); opacity: 0; pointer-events: none; text-align: center; z-index: 10; transition: 0.4s cubic-bezier(.2, 1.4, .4, 1); }
.banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.banner .t { position: relative; display: inline-block; font-family: var(--display); font-size: clamp(26px, 4vw, 40px); font-weight: 400; color: var(--honey2); letter-spacing: 0; }
.banner .v { font-family: var(--display); font-size: clamp(40px, 7vw, 72px); font-weight: 400; color: #fff; font-variant-numeric: tabular-nums; }
.banner.big .t { color: #f4d16e; animation: wobble .55s ease-in-out 2 alternate; }
.banner.big .t::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 9px; height: 12px; border-radius: 2px 2px 8px 8px; background: #d9a947; transform: translateX(-50%) scaleY(0); transform-origin: top; animation: honey-drip .5s .15s ease-out forwards; }
.banner.lose .t { color: #ff8c7e; }

/* ---------- slots ---------- */
.slots-stage { display: grid; place-items: center; padding: 30px 20px; background: #161d18; }
.machine { --cell: clamp(78px, 12vw, 136px); position: relative; padding: 18px; border-radius: 20px; background: #d99c2e; border: 4px solid #5a3300; box-shadow: 0 5px 0 #3b260b; }
.machine::before { content: ""; position: absolute; inset: 6px; border-radius: 22px; border: 2px dashed rgba(90, 51, 0, 0.5); pointer-events: none; }
.machine-top { text-align: center; font-family: var(--display); font-weight: 400; color: #4a2a00; letter-spacing: 0; font-size: 14px; margin: -4px 0 10px; }
.lights { position: absolute; inset: -14px; pointer-events: none; }
.lights i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff3b0; border: 1px solid #905d0d; animation: bulb 1.2s infinite; }
.lights i:nth-child(even) { animation-delay: 0.5s; }
.machine.winning .lights i { animation-duration: 0.18s; }
.reels { position: relative; display: grid; grid-template-columns: repeat(3, var(--cell)); gap: 10px; padding: 10px; border: 1px solid #6e4b1c; border-radius: 18px; background: #1a1006; }
.reel { position: relative; height: calc(var(--cell) * 3); overflow: hidden; border: 1px solid #d6b87d; border-radius: 12px; background: #fff0c9; box-shadow: 0 2px 0 #5a3300; }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(40, 20, 0, 0.45), transparent 22%, transparent 78%, rgba(40, 20, 0, 0.45)); }
.strip { will-change: transform; }
.reel.spinning .cell svg { transform: scaleY(1.35); opacity: .8; }
.reel.land .strip { animation: land 0.32s ease; }
.cell { height: var(--cell); display: grid; place-items: center; position: relative; }
.cell svg { width: 78%; height: 78%; transition: transform 0.3s; }
.cell.win { animation: cellWin 0.7s ease infinite alternate; }
.cell.win::before { content: ""; position: absolute; inset: 6px; border: 3px solid #e8b953; border-radius: 14px; animation: cellWin 0.7s ease infinite alternate; }
.paylines { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; overflow: visible; }
.paylines polyline { fill: none; stroke: #ff3d8b; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawLine 0.7s ease forwards; vector-effect: non-scaling-stroke; }

/* ---------- crash ---------- */
.crash-stage canvas, .plinko-stage canvas, .wheel-stage canvas { display: block; width: 100%; height: 100%; }
.crash-stage { height: 560px; }
.pills { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; overflow: hidden; z-index: 5; }
.pill { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.1); animation: popIn 0.4s cubic-bezier(.2, 1.6, .4, 1); flex-shrink: 0; }
.pill.lo { color: #ff8a80; }
.pill.mid { color: var(--win); }
.pill.hi { color: var(--honey2); border-color: var(--honey); }

/* ---------- plinko ---------- */
.plinko-stage { height: 620px; background: #17140f; }

/* ---------- mines ---------- */
.mines-stage { padding: 26px; display: grid; place-items: center; background: #191c14; }
.mines-top { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 10px; z-index: 3; }
.mines-top .chip { padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; }
.mines-top .chip b { color: var(--honey2); font-family: var(--display); font-size: 18px; margin-left: 6px; }
.comb-grid { position: relative; width: min(100%, 560px); margin-top: 40px; }
.mines-hint { min-height: 2.8em; margin: 8px 0 0; }
.tile { position: absolute; border: 0; padding: 0; cursor: pointer; background: transparent; perspective: 600px; transition: transform 0.2s; }
.tile:not(.open):not(:disabled):hover { transform: translateY(-4px) scale(1.04); z-index: 2; }
.tile:disabled { cursor: default; }
.tile .face { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; transition: transform 0.45s cubic-bezier(.3, 1.4, .5, 1), filter 0.3s; backface-visibility: hidden; }
.tile .front { background: linear-gradient(160deg, #6b4510, #3d2606); box-shadow: inset 0 0 0 4px rgba(255, 184, 0, 0.3); }
.tile .front::before { content: ""; position: absolute; inset: 7%; clip-path: inherit; background: linear-gradient(160deg, #8a5a17, #4a2f08); }
.tile:not(:disabled):hover .front::before { background: linear-gradient(160deg, #b07420, #5e3c0a); }
.tile .back { transform: rotateY(180deg); }
.tile .back svg { width: 62%; height: 62%; position: relative; }
.tile.open .front { transform: rotateY(-180deg); }
.tile.open .back { transform: rotateY(0); }
.tile.safe .back { background: #e5af26; }
.tile.mine .back { background: #b73e31; }
.tile.mine.hit { animation: shake 0.5s ease; z-index: 3; }
.tile.ghost .back { filter: grayscale(0.4) brightness(0.55); }
.tile.pop { animation: tilePop 0.5s ease; }

/* ---------- wheel ---------- */
.wheel-stage { height: 600px; background: #17140f; }
.wheel-legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wheel-legend div { text-align: center; padding: 8px 0; border-radius: 10px; font-weight: 800; font-size: 13px; background: rgba(0, 0, 0, 0.3); border-bottom: 3px solid var(--c); }
.wheel-legend small { display: block; color: var(--dim); font-weight: 600; font-size: 10px; }

/* ---------- toasts / modal ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 14px; background: #2a1c0a; border: 1px solid var(--line-strong); box-shadow: 0 4px 0 rgba(0,0,0,.4); font-weight: 600; font-size: 14px; animation: toastIn 0.4s cubic-bezier(.2, 1.4, .4, 1); max-width: 320px; }
.toast.out { animation: toastOut 0.3s forwards; }
.toast.good { border-color: var(--win); }
.toast.bad { border-color: var(--lose); }
.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(8, 5, 2, 0.82); padding: 16px; }
.modal.open { display: grid; animation: viewIn 0.4s; }
.modal-box { width: min(520px, 100%); padding: 32px; border-radius: 20px; background: #192520; border: 1px solid var(--line-strong); box-shadow: 0 5px 0 rgba(0,0,0,.4); text-align: center; }
.modal-box .bee-wrap { width: 110px; margin: -80px auto 6px; animation: hover 3s ease-in-out infinite; }
.modal-box h2 { font-size: 30px; margin: 0 0 10px; }
.modal-box p { color: var(--muted); line-height: 1.6; }
.modal-box ul { text-align: left; color: var(--muted); line-height: 1.7; padding-left: 20px; font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

footer { padding: 42px clamp(16px, 3vw, 36px) 46px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; flex-direction: column; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; text-align: center; }
footer nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--honey2); }
.footer-legal-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); }
.footer-legal small { display: flex; align-items: center; justify-content: center; gap: 4px; }
.age-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--lose); color: var(--lose); font-weight: 800; font-size: 12px; margin-right: 8px; vertical-align: middle; }

/* ---------- SVG art animation ---------- */
.art .wing { transform-box: fill-box; }
.hero-art .wing, .modal-box .wing, .climber .wing, .game-card:hover .wing { animation: flap 0.09s ease-in-out infinite alternate; }
.art .wl { transform-origin: 100% 80%; }
.art .wr { transform-origin: 0% 80%; animation-delay: 0.045s; }
.art.still .wing { animation: none; }

/* ---------- keyframes ---------- */
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flap { from { transform: scaleY(1) rotate(0); } to { transform: scaleY(0.55) rotate(8deg); } }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes hero-bee-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg) translateY(-3px); } 70% { transform: rotate(6deg) translateY(2px); } }
@keyframes honey-drip { 0% { transform: translate(-50%, 0) scaleY(0); } 45% { transform: translate(-50%, 3px) scaleY(1); } 100% { transform: translate(-50%, 11px) scaleY(.55); opacity: 0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes glowPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes shine { 0% { transform: translateX(-150%) skewX(-20deg); } 35%, 100% { transform: translateX(330%) skewX(-20deg); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes dropShake { 0%, 100% { transform: none; } 30% { transform: translateY(2px); } 60% { transform: translateY(-1px); } }
@keyframes land { 0% { transform: translateY(0); } 40% { transform: translateY(10px); } 100% { transform: translateY(0); } }
@keyframes cellWin { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes wobble { from { transform: rotate(-3deg) scale(1); } to { transform: rotate(3deg) scale(1.08); } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) rotate(-4deg); } 40% { transform: translateX(8px) rotate(4deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes tilePop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes toastIn { from { transform: translateY(20px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(40px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { max-width: 320px; order: -1; }
  .game-layout { grid-template-columns: 1fr; }
  .game-layout .panel { order: 2; }
  .hive-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; max-width: 100%; }
  .nav { grid-column: 1 / -1; grid-row: 2; order: initial; flex: 0 0 auto; width: 100%; margin: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-more { position: relative; }
  .nav-menu { top: calc(100% + 8px); right: 0; left: auto; }
  .nav a, .nav-more summary { padding: 8px 10px; font-size: 13px; }
  .wallet { grid-column: 2; grid-row: 1; flex: 0 1 auto; width: auto; max-width: 100%; min-width: 0; margin-left: 0; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
  .balance { min-width: 0; padding-right: 9px; font-size: 15px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card { width: 100%; min-width: 0; height: 100%; min-height: 250px; padding: 13px; border-radius: 16px; }
  .game-card .card-art { width: 56%; max-width: 112px; margin-bottom: 10px; }
  .game-card-feature { grid-column: 1 / -1; grid-row: auto; min-height: 250px; padding: 22px; }
  .game-card-feature .card-art { width: 100%; max-width: 190px; margin: 0 auto; }
  .game-card-wide { grid-column: 1 / -1; min-height: 250px; padding: 18px; }
  .game-card-wide .case-card-art { width: 100%; max-width: 185px; }
  .game-card-exclusive { padding-top: 22px; }
  .game-card-exclusive .card-art { margin-bottom: 0; }
  .game-card .tag { top: 10px; left: 10px; font-size: 9px; padding: 4px 7px; }
  .game-card h3 { font-size: 17px; }
  .game-card p { font-size: 12px; line-height: 1.4; }
  .game-card .card-fact { font-size: 11px; }
  .homepage-hero { max-width: 420px; }
  .crash-stage { height: 420px; }
  .plinko-stage { height: 480px; }
  .wheel-stage { height: 420px; }
  .stage { min-height: 0; }
  .machine { --cell: clamp(64px, 21vw, 110px); padding: 10px; }
  .slots-stage { padding: 24px 10px; }
  .reels { gap: 6px; padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.crash-stage .banner { top: 72%; }
.wheel-stage .banner { top: 88%; }

/* Xdniyam Casino account, sign-in and administration surfaces */
.balance-unit { color: var(--muted); font: 600 11px var(--body); letter-spacing: 0; text-transform: none; }
.account-panel { margin: 0 0 36px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.play-gate { margin: 24px clamp(16px, 3vw, 36px); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-color: var(--line-strong); }
.play-gate[hidden] { display: none; }
.play-gate > div { display: grid; gap: 4px; }
.play-gate > div b { color: var(--honey2); }
.play-gate > div span { color: var(--muted); font-size: 13px; }
.play-gate .btn-primary { white-space: nowrap; }
.practice-notice { display: flex; gap: 8px; align-items: baseline; margin: 18px clamp(16px, 3vw, 36px) 22px; padding: 12px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--honey); border-radius: 10px; background: #18221c; color: var(--muted); font-size: 13px; line-height: 1.5; }
.practice-notice[hidden] { display: none; }
.practice-notice b { flex: 0 0 auto; color: var(--honey2); }
.practice-value-mark { display: grid; place-items: center; border-radius: 50%; background: #e8b953; color: #1b211b; font: 900 12px var(--body); }
body.practice-mode .view[data-view]:not([data-view="lobby"]) { scroll-margin-top: 20px; }
.account-panel[hidden], .account-content[hidden] { display: none; }
.account-head, .admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-head h2 { margin: 6px 0 0; font-size: 30px; }
.account-close { flex: 0 0 auto; font-size: 22px; }
.account-message, .admin-alert { border-radius: 12px; padding: 13px 15px; color: var(--muted); background: rgba(255, 184, 0, .07); border: 1px solid var(--line); line-height: 1.5; }
.account-message.is-error, .admin-alert.is-error { color: #ffd0cb; border-color: rgba(255, 90, 78, .55); background: rgba(110, 27, 21, .22); }
.account-login { margin-top: 10px; }
.profile-row { display: flex; align-items: center; gap: 14px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.profile-row img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--panel-solid); }
.profile-row img[hidden] { display: none; }
.profile-row > div { display: grid; gap: 3px; min-width: 0; }
.profile-row > div b { font: 600 20px var(--display); }
.profile-row > div span { color: var(--dim); font: 12px ui-monospace, monospace; overflow-wrap: anywhere; }
.profile-row > a { margin-left: auto; }
.account-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 48px); padding-top: 22px; }
.account-columns section { min-width: 0; }
.account-columns h3, .admin-card h2 { font: 600 22px var(--display); margin: 0 0 14px; }
.account-columns form, .admin-form { display: grid; gap: 9px; }
.account-columns label, .admin-card label { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 7px; }
.account-columns .input, .admin-card .input { font: 500 16px var(--body); }
.account-columns .note { max-width: 460px; }
.search-results { display: grid; gap: 5px; max-height: 180px; overflow: auto; color: var(--dim); font-size: 13px; }
.search-option { text-align: left; border: 1px solid var(--line); background: rgba(0, 0, 0, .24); color: var(--text); border-radius: 9px; padding: 10px 12px; cursor: pointer; }
.search-option:hover, .search-option:focus-visible { border-color: var(--honey); background: rgba(255, 184, 0, .12); }
.deposit-status { display: grid; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.deposit-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .23); border: 1px solid var(--line); }
.deposit-row small { grid-column: 1 / -1; color: var(--dim); }
.pending-label { text-transform: capitalize; color: var(--honey2); font-weight: 700; }
.auth-page {
  --hive-gold: #e8b953;
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
}
.auth-page .hexbg { z-index: 0; opacity: .10; }
.auth-page .topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  min-height: 86px;
  padding: 18px clamp(20px, 5vw, 76px);
  border: 0;
  background: #101715;
}
.auth-page .brand { gap: 13px; }
.auth-page .brand-hex { width: 43px; height: 43px; filter: none; }
.auth-page .brand-text { font-size: 18px; letter-spacing: 0; }
.auth-page .brand-text b { color: var(--honey2); }
.auth-page .auth-layout {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 108px clamp(24px, 7vw, 108px) 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.auth-page .auth-card {
  position: relative;
  width: min(100%, 454px);
  padding: clamp(28px, 4vw, 45px);
  overflow: hidden;
  border: 1px solid rgba(232,185,83,.34);
  border-radius: 20px;
  color: #f9f5e8;
  background: #192520;
  box-shadow: 0 5px 0 rgba(0,0,0,.38);
}
.auth-page .auth-card h1 {
  margin: 0 0 18px;
  color: #fff8e9;
  font-size: clamp(36px, 4.2vw, 53px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}
.auth-page .auth-card h1 span { color: var(--honey2); }
.auth-page .discord-button {
  min-height: 62px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: #5865f2;
  box-shadow: 0 4px 0 #313ba0;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s, background .18s;
}
.auth-page .discord-button:hover { background: #4752c4; transform: translateY(-1px); }
.auth-page .discord-button:active { transform: translateY(3px); box-shadow: 0 1px 0 #313ba0; }
.auth-page .discord-button:focus-visible { outline: 3px solid var(--hive-gold); outline-offset: 4px; }
.auth-page .discord-mark { display: block; flex: 0 0 30px; width: 30px; height: 25px; color: #fff; }
.discord-button-copy { display: block; text-align: left; }
.discord-button-copy b { font-size: 15px; }
.auth-details { margin: 14px 0; color: rgba(242,238,223,.78); font-size: 13px; line-height: 1.6; }
.auth-page .auth-card .auth-play-note { margin: 16px 0; color: rgba(242,238,223,.72); font-size: 12px; line-height: 1.55; }
.auth-play-note b { color: var(--honey2); }
.auth-page .auth-card .auth-error { min-height: 20px; margin: 10px 0 8px; color: #ffd27a; font-size: 12px; line-height: 1.5; }
.auth-page .auth-card .age-note { align-items: flex-start; gap: 10px; margin: 14px 0 0; color: rgba(242,238,223,.72); font-size: 11px; line-height: 1.55; }
.auth-page .age-note .age-badge { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 22px; border: 1px solid rgba(232,185,83,.55); border-radius: 6px; color: var(--hive-gold); font-size: 10px; font-weight: 800; }
.auth-page .age-note a { color: #f5d98f; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .auth-page .topbar { min-height: 72px; padding: 14px 19px; }
  .auth-page .brand-hex { width: 36px; height: 36px; }
  .auth-page .brand-text { font-size: 15px; }
  .auth-page .auth-layout { min-height: 100dvh; padding: 96px 17px 24px; }
  .auth-page .auth-card { width: min(100%, 440px); padding: 26px 23px 22px; border-radius: 22px; }
  .auth-page .auth-card h1 { font-size: clamp(36px, 10vw, 48px); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page .discord-button { transition: none; }
}
.admin-wrap { width: min(1180px, 100%); min-width: 0; margin: 0 auto; padding: clamp(18px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.admin-wrap > * { min-width: 0; }
.admin-heading h1 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 52px); }
.admin-heading h2 { margin: 0; }
.admin-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.admin-notice { margin: 0; padding: 14px 18px; border-radius: 13px; border: 1px solid var(--line-strong); background: rgba(255, 184, 0, .07); color: var(--muted); }
.admin-alert[hidden] { display: none; }
.admin-access-help { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255, 184, 0, .055); }
.admin-access-help[hidden] { display: none; }
.admin-access-help p { margin: 0; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.admin-access-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-access-actions .btn-primary { display: inline-flex; align-items: center; text-decoration: none; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-metric { display: grid; gap: 12px; }
.admin-metric span { color: var(--muted); font-size: 13px; }
.admin-metric b { font: 600 clamp(23px, 3vw, 34px) var(--display); color: var(--honey2); overflow-wrap: anywhere; }
.admin-columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; }
.admin-card { min-width: 0; }
.admin-list { display: grid; gap: 6px; margin-top: 12px; max-height: 450px; overflow: auto; }
.admin-user { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: rgba(0, 0, 0, .22); cursor: pointer; }
.admin-user[aria-pressed="true"], .admin-user:hover { border-color: var(--honey); background: rgba(255, 184, 0, .09); }
.admin-user b { font-size: 14px; }
.admin-user small { color: var(--dim); font: 11px ui-monospace, monospace; overflow-wrap: anywhere; }
.admin-user span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--honey2); font-weight: 700; font-size: 13px; }
.admin-selected { margin: 0 0 16px; color: var(--honey2); overflow-wrap: anywhere; }
.admin-form { padding: 14px 0; border-top: 1px solid var(--line); }
.admin-form .row2 { margin-top: 7px; }
.deposit-active-label { display: flex; align-items: center; gap: 9px; align-self: end; min-height: 42px; color: var(--muted); }
.deposit-active-label input { accent-color: var(--gold); }
.deposit-status ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 5px; }
.deposit-status a { display: inline-block; margin-top: 8px; }
.danger { color: #ffc0b9 !important; border-color: rgba(255, 90, 78, .55) !important; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { min-width: 650px; color: var(--muted); }
.admin-table-wrap td { overflow-wrap: anywhere; }
.admin-history-toolbar {
  display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr)) auto;
  gap: 10px; align-items: end; margin: 18px 0 12px;
}
.admin-history-field { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-history-field .input { width: 100%; min-width: 0; min-height: 42px; }
.admin-history-clear { min-height: 42px; white-space: nowrap; }
.admin-history-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }
.admin-history-stat {
  display: grid; gap: 6px; min-width: 0; padding: 11px 13px;
  border: 1px solid var(--line); border-left: 3px solid #846d42; border-radius: 11px; background: #141c18;
}
.admin-history-stat span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.admin-history-stat b { color: var(--text); font: 600 clamp(15px, 2vw, 20px)/1.2 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-history-stat.is-positive { border-left-color: #8ac46d; }
.admin-history-stat.is-negative { border-left-color: #bd655b; }
.admin-history-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #121916; }
.admin-history-table { width: 100%; min-width: 860px; border-collapse: collapse; color: var(--muted); }
.admin-history-table th {
  padding: 11px 13px; border-bottom: 1px solid var(--line-strong); color: var(--dim);
  background: #19221e; text-align: left; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.admin-history-table td { padding: 12px 13px; border-bottom: 1px solid rgba(231, 194, 120, .1); vertical-align: middle; }
.admin-history-table tbody tr:last-child td { border-bottom: 0; }
.admin-history-table tbody tr:not(:has(.admin-history-empty)):hover { background: rgba(232, 185, 83, .035); }
.admin-history-table td:first-child { min-width: 175px; }
.history-primary { display: block; color: var(--text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.history-secondary { display: block; margin-top: 3px; color: var(--dim); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.history-game { display: inline-block; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #1a241e; color: var(--honey2); font-size: 12px; font-weight: 700; }
.history-amount, .history-net { color: var(--text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-net.is-positive { color: #b6e39b; }
.history-net.is-negative { color: #ffaaa0; }
.history-status { display: inline-block; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: #202923; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.history-status.status-finished, .history-status.status-completed { border-color: rgba(138, 196, 109, .42); background: rgba(138, 196, 109, .09); color: #b6e39b; }
.history-status.status-active, .history-status.status-in-progress { border-color: rgba(232, 185, 83, .42); background: rgba(232, 185, 83, .09); color: var(--honey2); }
.history-status.status-failed, .history-status.status-cancelled, .history-status.status-canceled { border-color: rgba(189, 101, 91, .42); background: rgba(189, 101, 91, .09); color: #ffaaa0; }
.admin-history-table .admin-history-empty { padding: 25px 16px; color: var(--muted); text-align: center; }
.raffle-lobby { margin: 8px 0 34px; }
.raffle-note { margin: -6px 0 14px; }
.raffle-message { margin: 0 0 12px; color: var(--muted); }
.raffle-message.is-error { color: #ffc0b9; }
.raffle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.raffle-card, .raffle-admin-row {
  min-width: 0; padding: 18px; border: 1px solid rgba(231, 194, 120, .22);
  border-radius: 18px; background: linear-gradient(145deg, #1b2520, #131a17 92%);
}
.raffle-card h3 { margin: 0 0 7px; font: 600 22px var(--display); color: var(--honey2); overflow-wrap: anywhere; }
.raffle-description { margin: 0 0 12px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.raffle-stats { display: flex; gap: 12px 20px; flex-wrap: wrap; margin: 12px 0; }
.raffle-stats span { display: grid; gap: 2px; }
.raffle-stats b { color: var(--text); font-size: 14px; }
.raffle-stats small { color: var(--dim); font-size: 11px; }
.raffle-status { margin: 8px 0 12px; color: var(--honey2); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.raffle-status-closed { color: var(--muted); }
.raffle-status-drawn { color: var(--honey2); }
.raffle-progress { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.raffle-empty { grid-column: 1 / -1; margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.raffle-admin-list { display: grid; gap: 10px; }
.raffle-admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.raffle-admin-row h3 { margin: 0 0 4px; font: 600 18px var(--display); }
.raffle-admin-row p { margin: 4px 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.raffle-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.raffle-admin-actions .btn-primary, .raffle-admin-actions .btn-secondary { padding: 9px 12px; font-size: 13px; }
.affiliate-panel { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #151d19; }
.affiliate-panel h3 { margin: 0 0 8px; }
.affiliate-panel .note { margin: 8px 0 12px; }
.affiliate-apply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; max-width: 520px; }
.affiliate-apply label { grid-column: 1 / -1; }
.affiliate-apply .input { min-width: 0; }
.affiliate-message { margin: 10px 0 0; color: var(--muted); }
.affiliate-message.is-error { color: #ffc0b9; }
.affiliate-owner > p:first-child { margin: 0 0 10px; color: var(--muted); }
.affiliate-owner > p:first-child b { color: var(--honey2); }
.affiliate-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.affiliate-stats span { display: grid; gap: 3px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.affiliate-stats b { color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.affiliate-stats small { color: var(--dim); font-size: 11px; }
[hidden] { display: none !important; }
@media (max-width: 780px) {
  .homepage-hero { max-width: 480px; }
  .account-columns, .auth-layout, .admin-columns { grid-template-columns: 1fr; }
  .auth-layout { min-height: 0; }
  .auth-card { order: 1; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-history-toolbar { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
  .admin-history-search { grid-column: 1 / -1; }
  .admin-history-clear { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .admin-history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-history-table { min-width: 0; }
  .admin-history-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .admin-history-table tbody { display: grid; gap: 10px; padding: 10px; }
  .admin-history-table tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px;
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #161f1a;
  }
  .admin-history-table td {
    display: grid; gap: 3px; min-width: 0; padding: 9px 0; border: 0;
    border-bottom: 1px solid rgba(231, 194, 120, .09); overflow-wrap: anywhere;
  }
  .admin-history-table td::before { content: attr(data-label); color: var(--dim); font-size: 10px; font-weight: 700; }
  .admin-history-table td[data-label="When"],
  .admin-history-table td[data-label="Player"],
  .admin-history-table td[data-label="Net"] { grid-column: 1 / -1; }
  .admin-history-table td:last-child { border-bottom: 0; }
  .admin-history-table .admin-history-empty { display: block; grid-column: 1 / -1; border: 0; }
}
@media (max-width: 480px) {
  .admin-wrap > .admin-heading { flex-direction: column; align-items: stretch; }
  .admin-wrap > .admin-heading .row2 { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-gate { margin-inline: 16px; align-items: stretch; flex-direction: column; }
  .practice-notice { margin-inline: 16px; align-items: flex-start; flex-direction: column; gap: 2px; }
  .profile-row { flex-wrap: wrap; }
  .profile-row > a { width: 100%; justify-content: center; margin: 4px 0 0; }
  .admin-heading { align-items: flex-start; }
  .admin-heading > .btn-secondary { padding: 10px 12px; }
  .topbar { padding: 8px 12px; }
  .brand { gap: 8px; }
  .brand-hex { width: 30px; height: 30px; }
  .brand-text { font-size: 14px; }
  .wallet { gap: 4px; }
  .balance { gap: 4px; padding: 5px 7px 5px 5px; font-size: 14px; }
  .balance .honey-ico { width: 23px; height: 23px; }
  .balance-unit { display: none; }
  .wallet #accountToggle { padding: 7px 8px; font-size: 12px; }
  .wallet #muteBtn { padding: 0; font-size: 12px; }
  .nav-menu { width: min(228px, calc(100vw - 24px)); }
  .game-card-feature { grid-template-columns: minmax(0, 1fr) minmax(94px, .8fr); gap: 7px 10px; padding: 17px; }
  .game-card-feature .card-art { max-width: 146px; }
  .game-card-feature h3 { font-size: 24px; }
  .game-card-feature p { font-size: 12px; }
  .game-card-wide { grid-template-columns: minmax(0, 1fr) minmax(96px, .65fr); gap: 6px 10px; padding: 15px; }
  .game-card-wide .case-card-art { max-width: 136px; }
  .game-card-wide h3 { font-size: 22px; }
  .game-card-wide p { font-size: 12px; }
  .game-card .tag { top: 8px; left: 8px; }
  .raffle-list { grid-template-columns: 1fr; }
  .raffle-admin-row { grid-template-columns: 1fr; }
  .affiliate-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .affiliate-apply { grid-template-columns: 1fr; }
  .affiliate-apply .btn-secondary { width: 100%; }
}

/* Prime Xdniyan comeback identity: a nocturnal conservatory, burnished pollen and
   precise botanical details rather than a generic casino glow. */

/* ---------- dragon tower ---------- */
.tower-stage { padding: 24px; display: grid; place-items: center; background: #171c16; }
.tower-wrap { position: relative; width: min(100%, 560px); padding-left: 58px; }
.tower { display: flex; flex-direction: column-reverse; gap: 8px; padding: 14px; border-radius: 18px; background: #21180f; border: 2px solid rgba(255, 140, 40, .35); box-shadow: 0 4px 0 #0c0905; }
.trow { display: grid; grid-template-columns: 1fr 86px; gap: 10px; align-items: center; opacity: .5; transition: opacity .3s, transform .3s; }
.trow.current { opacity: 1; transform: scale(1.02); }
.trow.cleared { opacity: .85; }
.tcells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.tmult { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--muted); text-align: right; }
.trow.current .tmult { color: var(--honey2); }
.tcell { height: 46px; border: 0; border-radius: 12px; cursor: pointer; display: grid; place-items: center; background: linear-gradient(180deg, #6b4510, #3d2606); box-shadow: inset 0 0 0 2px rgba(255, 184, 0, .25), 0 3px 0 #1e1003; transition: transform .15s, background .2s; }
.trow.current .tcell { background: #a0661a; box-shadow: inset 0 0 0 2px rgba(255, 210, 90, .6), 0 3px 0 #1e1003; }
.trow.current .tcell:hover { transform: translateY(-3px); }
.tcell:disabled { cursor: default; }
.tcell span { width: 34px; height: 34px; display: block; }
.tcell span svg { width: 100%; height: 100%; }
.tcell.open { animation: tilePop .4s ease; }
.tcell.safe { background: #e5af26 !important; }
.tcell.hornet { background: #b73e31 !important; }
.tcell.ghost { filter: grayscale(.4) brightness(.55); animation: none; }
.tcell.hit { animation: shake .5s ease; }
.climber { position: absolute; left: 0; top: 0; width: 52px; height: 52px; opacity: 0; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.climber.show { opacity: 1; }
.seg5 button { font-size: 12px; padding: 9px 0; }

/* ---------- swarm split ---------- */
.swarm-stage { height: 640px; }
.swarm-stage canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
@media (max-width: 720px) {
  .swarm-stage { height: 520px; }
  .tower-stage { padding: 22px 12px; }
  .tower-wrap { width: 100%; padding: 44px 0 0; }
  .climber { top: 0; left: 6px; width: 36px; height: 36px; }
  .tower { gap: 6px; padding: 10px; }
  .trow { grid-template-columns: minmax(0, 1fr) 56px; gap: 6px; }
  .tcells { gap: 5px; }
  .tmult { font-size: 11px; }
  .tcell { height: 36px; border-radius: 9px; }
  .tcell span { width: 28px; height: 28px; }
}

.tw-chips { right: auto !important; gap: 8px; }

/* ================= CLASSICS ================= */
/* playing cards */
.pcard { width: 92px; height: 132px; perspective: 800px; flex-shrink: 0; }
.pcard.dealt { animation: dealIn .38s cubic-bezier(.2, .9, .3, 1.1) both; }
.pc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.2, .5, 1); }
.pcard.down .pc-inner { transform: rotateY(180deg); }
.pc-face { position: absolute; inset: 0; border-radius: 11px; backface-visibility: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.pc-front { background: linear-gradient(160deg, #fffaf0, #ffefc4); border: 2px solid #e2b04a; color: #1d1208; }
.pc-front.red { color: #c8282b; }
.pc-c { position: absolute; font: 700 20px/1 var(--display); text-align: center; }
.pc-c i { display: block; font-style: normal; font-size: 16px; }
.pc-c.tl { top: 7px; left: 8px; } .pc-c.br { bottom: 7px; right: 8px; transform: rotate(180deg); }
.pc-mid { position: absolute; inset: 26px 16px; display: grid; place-items: center; }
.pc-mid svg { width: 100%; height: 100%; }
.pc-suit { font-size: 46px; line-height: 1; }
.pc-back { transform: rotateY(180deg); border: 3px solid #fff3b0; background-color: #c46d00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23ffd54a' stroke-width='3'/%3E%3C/svg%3E"); }
.pcard.pack .pc-face { overflow: hidden; }
.pcard.pack .pc-front, .pcard.pack .pc-back { border: 0; background: transparent; }
.pcard.pack .pc-pack-image { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; pointer-events: none; }
.pcard.mini { width: 46px; height: 66px; }
.pcard.mini .pc-c { font-size: 12px; } .pcard.mini .pc-c i { font-size: 10px; } .pcard.mini .pc-mid { inset: 16px 8px; } .pcard.mini .pc-suit { font-size: 22px; } .pcard.mini .pc-c.br { display: none; }
.pcard.skipped { opacity: .45; }
@keyframes dealIn { from { transform: translate(260px, -180px) rotate(-25deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* blackjack */
.felt-stage { min-height: 600px; padding: 26px 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: #12482d; border-color: #c49a3a; }
.bj-shoe { position: absolute; top: 18px; right: 24px; width: 70px; height: 96px; border-radius: 10px; background: #5a3300; box-shadow: inset 0 0 0 4px #c49a3a, 6px 6px 0 #3a2105; }
.bj-zone, .bj-hand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bj-label { font: 700 16px var(--body); color: #d8f5df; }
.bj-label b, .bj-score { display: inline-block; min-width: 40px; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: #0b3020; color: #fff; font: 700 17px var(--display); text-align: center; font-variant-numeric: tabular-nums; }
.bj-cards { display: flex; min-height: 132px; }
.bj-cards .pcard + .pcard { margin-left: -42px; }
.bj-felt-text { font: 700 13px var(--body); letter-spacing: .04em; color: rgba(255, 230, 160, .72); border-top: 1px solid rgba(255, 230, 160, .25); border-bottom: 1px solid rgba(255, 230, 160, .25); padding: 8px 18px; text-align: center; }
.bj-hands { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.bj-hand { position: relative; padding: 10px 14px; border-radius: 16px; border: 2px solid transparent; transition: .2s; }
.bj-hand.active { border-color: #ffd54a; background: rgba(255, 213, 74, .08); }
.bj-meta { display: flex; align-items: center; gap: 10px; }
.bj-betwrap { display: flex; align-items: center; gap: 5px; font: 700 15px var(--display); color: #ffd54a; font-variant-numeric: tabular-nums; }
.honey-mini { width: 20px; height: 20px; }
.bj-result { position: absolute; top: 40px; left: 50%; transform: translateX(-50%) scale(.5); opacity: 0; padding: 6px 14px; border-radius: 10px; font: 700 20px var(--display); letter-spacing: 0; white-space: nowrap; transition: .3s cubic-bezier(.2, 1.5, .4, 1); }
.bj-result.show { opacity: 1; transform: translateX(-50%) scale(1); }
.bj-result.win { background: #9dce75; color: #0b2a05; }
.bj-result.lose { background: #e3352a; color: #fff; }
.bj-result.push { background: #ffd54a; color: #2a1503; }

/* coin flip */
.cf-stage { min-height: 520px; display: grid; place-items: center; background: #17140f; }
.cf-scene { position: relative; width: 240px; height: 240px; perspective: 900px; }
.cf-coin { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-face { position: absolute; inset: 0; backface-visibility: hidden; }
.cf-face svg { width: 100%; height: 100%; }
.cf-back { transform: rotateX(180deg); }
.cf-shadow { position: absolute; left: 50%; bottom: -48px; width: 160px; height: 10px; transform: translateX(-50%); border-radius: 50%; background: #0c100d; }
.cf-history { position: absolute; bottom: 18px; left: 18px; right: 18px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.cf-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); animation: popIn .35s; }
.cf-dot.queen { background: #ffc21a; color: #2a1503; } .cf-dot.hive { background: #5a3300; color: #ffd54a; border: 2px solid #ffc21a; }

/* dice */
.dc-stage { min-height: 520px; padding: 70px 40px 40px; display: flex; flex-direction: column; justify-content: center; gap: 30px; background: #17140f; }
.dc-result { text-align: center; font: 400 clamp(64px, 9vw, 110px)/1 var(--display); color: #fff6e0; font-variant-numeric: tabular-nums; }
.dc-result.win { color: #9ed783; }
.dc-result.lose { color: #ff7a6e; }
.dc-wrap { position: relative; padding: 20px 0 0; }
.dc-track { --t: 50%; position: relative; height: 18px; border: 1px solid #334137; border-radius: 999px; background: linear-gradient(90deg, #5a9e4c 0 var(--t), #a9443a var(--t) 100%); }
.dc-track.over { background: linear-gradient(90deg, #e3352a 0 var(--t), #5ee04a var(--t) 100%); }
.dc-wrap input[type=range] { position: absolute; left: 0; right: 0; top: 16px; width: 100%; margin: 0; height: 26px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dc-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 9px; background: #ffbf29; border: 3px solid #fff3b0; box-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.dc-wrap input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 9px; background: #ffb800; border: 3px solid #fff3b0; }
.dc-scale { display: flex; justify-content: space-between; margin-top: 16px; color: var(--dim); font-weight: 700; font-size: 13px; }
.dc-marker { position: absolute; top: -56px; transform: translateX(-50%) scale(0); transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), left .35s; }
.dc-marker.show { transform: translateX(-50%) scale(1); }
.dc-marker b { display: block; padding: 8px 12px; border-radius: 12px; font: 700 18px var(--display); color: #fff; background: #333; clip-path: polygon(0 0, 100% 0, 100% 80%, 60% 80%, 50% 100%, 40% 80%, 0 80%); padding-bottom: 16px; font-variant-numeric: tabular-nums; }
.dc-marker.win b { background: #2fb024; } .dc-marker.lose b { background: #c8282b; }
.dc-controls { display: flex; justify-content: center; gap: 12px; align-items: center; }
.dc-controls .chip { padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-strong); font-weight: 700; }
.dc-controls .chip b { color: var(--honey2); font-family: var(--display); font-size: 18px; margin-left: 6px; }
.dc-ro { color: var(--honey2); }

/* roulette */
.rl-stage { padding: 56px 18px 22px; display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: center; background: #12482d; border-color: #c49a3a; min-height: 520px; }
.rl-wheel { aspect-ratio: 1; width: 100%; }
.rl-wheel canvas { width: 100%; height: 100%; display: block; }
.rl-board { display: grid; grid-template-columns: 44px repeat(12, 1fr) 44px; grid-template-rows: repeat(3, 46px) 38px 38px; gap: 3px; }
.rl-cell { position: relative; border: 1px solid rgba(255, 230, 160, .35); border-radius: 6px; cursor: pointer; font: 700 15px var(--display); color: #fff; background: rgba(0, 0, 0, .15); transition: transform .1s, outline-color .2s; }
.rl-cell:hover { transform: translateY(-2px); outline: 2px solid #ffd54a; outline-offset: -2px; z-index: 2; }
.rl-cell.red { background: #c8282b; } .rl-cell.black { background: #1e140a; } .rl-cell.green { background: #1f9d55; }
.rl-cell.out { background: rgba(0, 0, 0, .25); font-size: 13px; }
.rl-cell.diamond.red, .rl-cell.diamond.black { background: rgba(0, 0, 0, .25); }
.rl-cell.diamond::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 3px; }
.rl-cell.diamond.red::before { background: #c8282b; } .rl-cell.diamond.black::before { background: #1e140a; border: 1px solid #888; }
.rl-cell.hit { outline: 3px solid #ffd54a; outline-offset: -3px; z-index: 2; }
.rl-chip { position: absolute; right: -6px; top: -8px; z-index: 3; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font: 700 11px var(--body); color: #2a1503; background: #f2c957; border: 2px dashed #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .4); animation: popIn .25s; }
.rl-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rl-chips button { aspect-ratio: 1; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .6); cursor: pointer; font: 700 13px var(--display); color: #2a1503; background: #e5b64d; transition: transform .15s; }
.rl-chips button.on { transform: translateY(-3px) scale(1.04); outline: 2px solid #fff; outline-offset: 2px; }
.pill.rl-red { color: #ff8a80; } .pill.rl-black { color: #ddd; } .pill.rl-green { color: #6dff9e; }

/* hi-lo */
.hl-stage { min-height: 560px; padding: 80px 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 24px; background: #121a2a; }
.hl-table { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hl-card .pcard { width: 150px; height: 214px; }
.hl-card .pc-c { font-size: 30px; } .hl-card .pc-c i { font-size: 24px; } .hl-card .pc-mid { inset: 40px 26px; } .hl-card .pc-suit { font-size: 80px; }
.hl-hint { color: var(--dim); font-size: 13px; } .hl-hint span { color: var(--honey2); font-weight: 800; }
.hl-trail { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.hl-btn { flex-direction: column; justify-content: center; gap: 2px; font-size: 16px; }
.hl-btn small { font-size: 12px; color: var(--muted); font-weight: 600; }
#hlHi:not(:disabled) { border-color: #5ee04a; } #hlLo:not(:disabled) { border-color: #ff7a6e; }

@media (max-width: 980px) { .rl-stage { grid-template-columns: 1fr; } .rl-wheel { max-width: 300px; margin: 0 auto; } }
@media (max-width: 720px) {
  .pcard { width: 70px; height: 100px; } .pc-c { font-size: 15px; } .pc-c i { font-size: 12px; } .pc-mid { inset: 20px 12px; } .pc-suit { font-size: 32px; }
  .bj-cards { min-height: 100px; } .bj-cards .pcard + .pcard { margin-left: -34px; } .bj-hands { gap: 14px; } .felt-stage { min-height: 520px; }
  .rl-board { grid-template-columns: 30px repeat(12, 1fr) 30px; grid-template-rows: repeat(3, 34px) 30px 30px; gap: 2px; }
  .rl-cell { font-size: 11px; } .rl-cell.out { font-size: 10px; }
  .dc-stage { padding: 70px 18px 30px; }
}

/* coin flip streak */
.cf-again { flex-direction: column; justify-content: center; gap: 3px; padding: 14px; border-color: #ff8a00; background: #312219; font-size: 16px; }
.cf-again small { font-size: 12px; color: #ffb3ad; font-weight: 600; }
.cf-again[hidden] { display: none; }
.cf-ladder { display: flex; width: 100%; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 2px; }
.cf-ladder::-webkit-scrollbar { display: none; }
.cf-step { flex: 0 0 auto; min-width: 62px; padding: 6px 8px; border-radius: 10px; text-align: center; font: 700 14px var(--display); color: var(--muted); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cf-step small { display: block; font: 700 10px var(--body); color: var(--dim); }
.cf-step.done { color: #7dff6b; border-color: rgba(125, 255, 107, .4); }
.cf-step.now { color: #241503; background: var(--honey); border-color: #fff3b0; }
.cf-step.now small { color: #5a3300; }
.cf-step.next { border-style: dashed; border-color: #ff8a00; color: #ffb066; }
