:root {
  color-scheme: dark;
  --ink: #080906;
  --ink-soft: #10120d;
  --panel: rgba(18, 19, 14, 0.88);
  --panel-solid: #151610;
  --line: rgba(236, 190, 89, 0.2);
  --line-strong: rgba(250, 208, 110, 0.54);
  --gold: #f0c768;
  --gold-bright: #ffe3a0;
  --gold-deep: #a96c19;
  --cream: #f7efd9;
  --muted: #9f9c8d;
  --danger: #e16457;
  --success: #88c47b;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -15%, rgba(193, 133, 36, 0.17), transparent 35%),
    linear-gradient(145deg, #060705 0%, #0e100b 50%, #070805 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  z-index: -1;
  background-image:
    repeating-linear-gradient(118deg, transparent 0 17px, rgba(255, 255, 255, 0.018) 17px 18px),
    repeating-linear-gradient(28deg, transparent 0 23px, rgba(236, 190, 89, 0.012) 23px 24px);
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(231, 181, 79, 0.08);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  z-index: -1;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(231, 181, 79, 0.07);
  border-radius: 50%;
}

.ambient::after {
  inset: 34%;
}

.ambient-one {
  left: -190px;
  top: 24%;
}

.ambient-two {
  right: -190px;
  bottom: 4%;
}

.app-shell {
  width: min(1540px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 22px 26px;
}

.topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  width: fit-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 197, 96, 0.18), rgba(10, 11, 7, 0.9));
  box-shadow: inset 0 0 16px rgba(235, 176, 63, 0.1), 0 0 24px rgba(206, 144, 31, 0.09);
}

.brand-mark b {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: -0.04em;
  color: var(--gold-bright);
}

.brand-mark i {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 1px;
  background: var(--line-strong);
  transform: rotate(45deg);
}

.brand-mark i:last-child {
  transform: rotate(-45deg);
}

.brand-copy {
  display: grid;
  text-align: left;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: 0.13em;
  color: var(--gold-bright);
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.main-nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 4, 0.7);
}

.nav-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 10px 18px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.nav-button.is-active {
  color: #18130a;
  background: linear-gradient(135deg, var(--gold-bright), #d89b38);
  box-shadow: 0 6px 20px rgba(221, 157, 48, 0.18);
}

.nav-icon {
  font-size: 10px;
}

.topbar-status {
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(136, 196, 123, 0.08);
}

#app {
  min-height: calc(100vh - 112px);
}

.page-enter {
  animation: page-in 0.35s ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.play-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding-top: 18px;
}

.game-stage,
.side-panel,
.admin-panel,
.stat-card,
.login-card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 226, 158, 0.025), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow);
}

.game-stage {
  min-height: 716px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.game-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(235, 189, 91, 0.11);
  border-radius: 20px;
  pointer-events: none;
}

.stage-heading {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 30px 24px 20px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.stage-heading h1,
.admin-title h1,
.login-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.stage-heading h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  background: linear-gradient(180deg, #fff3cf 0%, #d9a544 75%, #8a5516 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stage-heading p:last-child {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.vault-zone {
  position: relative;
  min-height: 576px;
  display: grid;
  place-items: center;
  padding: 24px 34px 46px;
  isolation: isolate;
}

.vault-rings {
  position: absolute;
  width: min(660px, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 192, 91, 0.18);
  border-radius: 50%;
  z-index: -1;
  box-shadow:
    0 0 80px rgba(220, 156, 48, 0.08),
    inset 0 0 90px rgba(220, 156, 48, 0.05);
}

.vault-rings::before,
.vault-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(239, 192, 91, 0.18);
}

.vault-rings::before {
  inset: 8%;
  animation: ring-spin 34s linear infinite;
}

.vault-rings::after {
  inset: 22%;
  border-style: solid;
  box-shadow: 0 0 60px rgba(224, 161, 48, 0.12);
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.ticket-gate {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(10, 11, 7, 0.94);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.62), inset 0 0 35px rgba(236, 178, 59, 0.035);
  text-align: center;
}

.gate-seal {
  width: 62px;
  height: 62px;
  margin: 0 auto 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 25px;
  background: radial-gradient(circle, rgba(231, 177, 68, 0.18), transparent 70%);
  box-shadow: 0 0 28px rgba(214, 153, 46, 0.1);
}

.ticket-gate h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.ticket-gate > p {
  margin: 9px auto 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.field-label {
  display: grid;
  gap: 8px;
  color: #c9c5b6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.text-input,
.select-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(231, 186, 88, 0.2);
  border-radius: 11px;
  color: var(--cream);
  background: rgba(3, 4, 2, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input::placeholder {
  color: #6d6d63;
}

.text-input:focus,
.select-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(239, 192, 91, 0.08);
}

.ticket-code-input {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 850;
}

.gold-button,
.ghost-button,
.danger-button,
.text-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.gold-button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 11px;
  color: #1d1608;
  background: linear-gradient(135deg, #ffe7a6, #d89c35 70%, #bd7720);
  box-shadow: 0 10px 30px rgba(209, 143, 35, 0.18), inset 0 1px rgba(255, 255, 255, 0.65);
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gold-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.gold-button:active { transform: translateY(1px); }
.gold-button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }

.wide-button {
  width: 100%;
  margin-top: 12px;
}

.ghost-button,
.danger-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.025);
}

.ghost-button:hover { border-color: var(--line-strong); background: rgba(239, 192, 91, 0.06); }

.danger-button {
  border: 1px solid rgba(225, 100, 87, 0.3);
  color: #ffb9b1;
  background: rgba(225, 100, 87, 0.07);
}

.text-button {
  padding: 0;
  color: var(--gold);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.gate-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: #77786d;
  font-size: 11px;
}

.error-box {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(225, 100, 87, 0.28);
  border-radius: 9px;
  color: #ffb9b1;
  background: rgba(225, 100, 87, 0.07);
  font-size: 12px;
}

.player-ticket {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0 auto 26px;
  padding: 13px 15px 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 8, 5, 0.86);
}

.player-ticket p { margin: 0; color: var(--muted); font-size: 11px; }
.player-ticket strong { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.ticket-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; }

.play-zone {
  width: min(820px, 100%);
  text-align: center;
}

.play-zone h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 500;
}

.play-zone > p {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 14px;
  perspective: 1000px;
}

.vault-card {
  appearance: none;
  position: relative;
  aspect-ratio: 0.68;
  min-height: 214px;
  padding: 7px;
  border: 1px solid rgba(248, 211, 126, 0.55);
  border-radius: 15px;
  color: var(--gold-bright);
  background: linear-gradient(145deg, #3e2d13, #a87024 28%, #1d170d 29%, #090a07 70%, #654115 71%, #b87e2c);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.52), inset 0 0 15px rgba(251, 214, 133, 0.12);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.32s ease, filter 0.32s ease, box-shadow 0.32s ease;
}

.vault-card:hover:not(:disabled) {
  transform: translateY(-12px) rotateX(3deg);
  filter: brightness(1.12);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.62), 0 0 32px rgba(234, 181, 71, 0.12);
}

.vault-card:disabled { cursor: default; }

.card-face {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  padding: 12px 7px;
  border: 1px solid rgba(248, 211, 126, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(222, 160, 49, 0.2), transparent 35%),
    repeating-linear-gradient(45deg, transparent 0 13px, rgba(240, 196, 94, 0.025) 13px 14px),
    #0d0f0a;
}

.card-index,
.card-caption { color: #ad8a48; font-size: 9px; font-weight: 850; letter-spacing: 0.18em; }
.card-sigil { position: relative; display: grid; place-items: center; width: 70%; aspect-ratio: 1; border: 1px solid rgba(245, 204, 113, 0.36); border-radius: 50%; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 42px); }
.card-sigil::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(245, 204, 113, 0.2); transform: rotate(45deg); }

.card-row.is-shuffling .vault-card {
  animation: card-shuffle 0.72s ease-in-out infinite alternate;
}

.card-row.is-shuffling .vault-card:nth-child(2) { animation-delay: -0.18s; }
.card-row.is-shuffling .vault-card:nth-child(3) { animation-delay: -0.34s; }
.card-row.is-shuffling .vault-card:nth-child(4) { animation-delay: -0.12s; }
.card-row.is-shuffling .vault-card:nth-child(5) { animation-delay: -0.45s; }

@keyframes card-shuffle {
  from { transform: translateX(-6px) translateY(3px) rotate(-1deg); }
  to { transform: translateX(6px) translateY(-7px) rotate(1deg); }
}

.card-row.has-choice .vault-card:not(.is-picked) {
  opacity: 0.28;
  filter: grayscale(0.65);
  transform: scale(0.92);
}

.vault-card.is-picked {
  transform: translateY(-18px) rotateY(180deg);
  box-shadow: 0 30px 90px rgba(211, 152, 43, 0.28), 0 0 0 2px var(--gold);
}

.play-instruction {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 26px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(5, 6, 4, 0.76);
  font-size: 11px;
}

.side-panel {
  min-height: 716px;
  border-radius: var(--radius-lg);
  padding: 23px 20px;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.side-header h2 { margin: 0; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.side-header span { color: var(--muted); font-size: 10px; }

.jackpot-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(229, 172, 59, 0.13), transparent 65%);
}

.jackpot-card p { margin: 0; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.jackpot-card strong { display: block; margin-top: 7px; color: var(--gold-bright); font-family: Georgia, serif; font-size: 27px; font-weight: 500; }

.reward-list { display: grid; gap: 8px; }
.reward-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(236, 190, 89, 0.11); border-radius: 11px; background: rgba(255,255,255,0.015); }
.reward-medallion { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); background: rgba(230, 173, 57, 0.05); font-family: Georgia, serif; }
.reward-item strong { display: block; font-size: 12px; }
.reward-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.reward-value { color: var(--gold); font-size: 11px; font-weight: 850; }
.side-footnote { margin: 18px 2px 0; color: #6f7066; font-size: 10px; line-height: 1.55; }

.admin-page {
  padding: 28px 0 0;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.admin-title h1 { margin-top: 5px; font-size: clamp(28px, 4vw, 42px); }
.admin-title p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; gap: 9px; }

.login-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.login-card {
  width: min(430px, 100%);
  padding: 34px;
  border-radius: 24px;
  text-align: center;
}

.login-card .gate-seal { margin-bottom: 22px; }
.login-card h1 { font-size: 29px; }
.login-card > p { margin: 9px auto 23px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pin-input { text-align: center; letter-spacing: 0.35em; font-size: 18px; font-weight: 850; }
.demo-hint { margin-top: 16px !important; color: #74766a !important; font-size: 10px !important; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 15px;
}

.stat-card {
  padding: 19px;
  border-radius: 16px;
  box-shadow: none;
}

.stat-card p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 9px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.stat-card small { display: block; margin-top: 5px; color: #77786d; font-size: 10px; }

.admin-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.65fr);
  gap: 15px;
  align-items: start;
}

.admin-panel {
  border-radius: 19px;
  box-shadow: none;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel-count { min-width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 11px; font-weight: 850; }

.ticket-form { display: grid; gap: 15px; padding: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-divider { height: 1px; background: var(--line); margin: 1px 0; }
.field-help { margin: -7px 0 0; color: #6e7064; font-size: 10px; line-height: 1.5; }
.preview-prize { display: flex; justify-content: space-between; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(233, 177, 64, 0.04); }
.preview-prize span { color: var(--muted); font-size: 11px; }
.preview-prize strong { color: var(--gold-bright); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }

.table-toolbar {
  display: flex;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.table-toolbar .text-input { height: 40px; }
.filter-select { width: 150px; height: 40px; }

.ticket-table-wrap { overflow: auto; max-height: 505px; }
.ticket-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ticket-table th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; color: #727468; background: #11130e; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.ticket-table td { padding: 13px 14px; border-bottom: 1px solid rgba(236,190,89,0.09); font-size: 11px; vertical-align: middle; }
.ticket-table tr:hover td { background: rgba(239, 192, 91, 0.025); }
.player-cell strong { display: block; font-size: 12px; }
.player-cell small { display: block; margin-top: 3px; color: #707267; font-size: 9px; }
.code-cell { color: var(--gold); font-weight: 800; letter-spacing: 0.04em; }
.prize-cell { font-weight: 750; }
.status-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.status-ready { color: #c9ebb7; background: rgba(136,196,123,0.1); }
.status-used { color: #c8b070; background: rgba(235,190,89,0.1); }
.status-void { color: #ffaaa1; background: rgba(225,100,87,0.1); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-button { min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #b7b3a4; font-size: 10px; font-weight: 800; }
.icon-button:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.empty-state { padding: 54px 24px !important; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--cream); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.empty-state span { display: block; margin-top: 7px; font-size: 10px; }

.audit-panel { margin-top: 15px; }
.audit-list { display: grid; max-height: 220px; overflow: auto; }
.audit-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid rgba(236,190,89,0.08); font-size: 10px; }
.audit-time { color: #77786d; }
.audit-item strong { color: var(--cream); font-weight: 700; }
.audit-tag { color: var(--gold); font-weight: 850; text-transform: uppercase; }

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 9px;
  width: min(340px, calc(100vw - 44px));
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--cream);
  background: #171910;
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 0.25s ease both;
}

.toast.is-error { border-color: rgba(225,100,87,0.5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 3, 1, 0.84);
  backdrop-filter: blur(10px);
  animation: fade-in 0.25s ease both;
}

@keyframes fade-in { from { opacity: 0; } }

.result-modal,
.control-modal,
.print-modal {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(145deg, #181a12, #0a0b07);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.8), inset 0 0 55px rgba(231,177,68,0.035);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.result-halo {
  width: 100px;
  height: 100px;
  margin: 4px auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(235,178,64,0.22), transparent 68%);
  box-shadow: 0 0 60px rgba(229,168,54,0.18);
  font-family: Georgia, serif;
  font-size: 34px;
}

.result-modal h2,
.control-modal h2,
.print-modal h2 { margin: 0; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.result-modal > p,
.control-modal > p,
.print-modal > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.result-prize { margin: 22px 0; padding: 20px; border-block: 1px solid var(--line); }
.result-prize small { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.result-prize strong { display: block; margin-top: 7px; color: var(--gold-bright); font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.modal-actions { display: flex; gap: 9px; justify-content: center; margin-top: 20px; }

.control-form { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.modal-ticket { padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.modal-ticket small { color: var(--muted); }
.modal-ticket strong { display: block; margin-top: 4px; color: var(--gold); }

.print-ticket {
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 108px;
  min-height: 205px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  overflow: hidden;
  text-align: left;
  background: #0c0e09;
}

.print-ticket-main { position: relative; padding: 22px; }
.print-ticket-main::after { content: ""; position: absolute; right: -7px; top: 0; bottom: 0; width: 14px; background: radial-gradient(circle at 7px 7px, transparent 0 5px, #0c0e09 5.5px) 0 0/14px 14px; }
.print-brand { color: var(--gold); font-family: Georgia, serif; font-size: 18px; letter-spacing: 0.08em; }
.print-kicker { margin-top: 20px; color: var(--muted); font-size: 8px; letter-spacing: 0.13em; text-transform: uppercase; }
.print-name { margin-top: 4px; font-family: Georgia, serif; font-size: 21px; }
.print-code { margin-top: 20px; color: var(--gold-bright); font-weight: 900; letter-spacing: 0.1em; }
.print-ticket-stub { display: grid; align-content: center; justify-items: center; gap: 10px; padding: 14px; border-left: 1px dashed var(--line-strong); background: rgba(229,172,59,0.06); }
.print-ticket-stub span { color: var(--muted); font-size: 8px; letter-spacing: 0.12em; writing-mode: vertical-rl; }
.print-ticket-stub strong { color: var(--gold); font-family: Georgia, serif; font-size: 17px; }

@media (max-width: 1050px) {
  .play-page { grid-template-columns: 1fr; }
  .side-panel { min-height: 0; }
  .reward-list { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .ticket-table-wrap { max-height: none; }
}

@media (max-width: 760px) {
  .app-shell { padding: 10px 12px 20px; }
  .topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 5px 2px 12px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .nav-button { flex: 1; justify-content: center; }
  .topbar-status { display: none; }
  .brand-copy strong { font-size: 16px; }
  .game-stage { min-height: 680px; }
  .vault-zone { padding: 18px 17px 36px; }
  .vault-rings { width: 105vw; }
  .ticket-gate { padding: 24px 18px; }
  .card-row { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .card-row .vault-card:nth-child(n+4) { display: none; }
  .vault-card { min-height: 190px; }
  .reward-list { grid-template-columns: 1fr 1fr; }
  .admin-title { align-items: start; flex-direction: column; }
  .admin-actions { width: 100%; }
  .admin-actions button { flex: 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .audit-item { grid-template-columns: 1fr auto; gap: 7px; }
  .audit-time { grid-column: 1 / -1; }
}

@media (max-width: 440px) {
  .brand-mark { width: 43px; height: 43px; }
  .brand-copy small { letter-spacing: 0.18em; }
  .stage-heading { padding-inline: 16px; }
  .stage-heading p:last-child { max-width: 280px; line-height: 1.45; }
  .card-row { grid-template-columns: repeat(3, 1fr); }
  .vault-card { min-height: 158px; }
  .card-caption { display: none; }
  .reward-list { grid-template-columns: 1fr; }
  .player-ticket { grid-template-columns: 1fr; text-align: center; }
  .ticket-chip { justify-self: center; }
  .stat-card { padding: 15px; }
  .stat-card strong { font-size: 23px; }
  .table-toolbar { flex-direction: column; }
  .filter-select { width: 100%; }
  .modal-actions { flex-direction: column; }
  .modal-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body * { visibility: hidden !important; }
  #modal-root,
  #modal-root * { visibility: visible !important; }
  .modal-backdrop { position: absolute; inset: 0; padding: 0; background: white; }
  .print-modal { width: 100%; max-width: none; color: #111; background: white; border: 0; box-shadow: none; }
  .print-modal > p,
  .modal-close,
  .modal-actions { display: none !important; }
  .print-modal h2 { color: #111; }
  .print-ticket { color: #f5e7bd; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Player table v2 -------------------------------------------------------- */
.game-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -15%, rgba(232, 174, 61, 0.17), transparent 34%),
    radial-gradient(circle at 20% 60%, rgba(104, 78, 29, 0.08), transparent 30%),
    linear-gradient(145deg, #050604 0%, #0c0e09 54%, #050604 100%);
}

.game-app-shell {
  width: min(1560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 20px 24px;
}

.game-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 8px 12px 14px;
  border-bottom: 1px solid var(--line);
}

.game-header .brand { text-decoration: none; }

.table-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(237, 191, 91, 0.14);
  border-radius: 999px;
  color: #969386;
  background: rgba(5, 6, 4, 0.58);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.operator-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #a7a394;
  background: rgba(255, 255, 255, 0.018);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.operator-link:hover { color: var(--gold-bright); border-color: var(--line-strong); }

.casino-page { padding-top: 16px; }

.casino-banner {
  min-height: 106px;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 26px;
  padding: 12px 38px;
  text-align: center;
}

.casino-banner h1 {
  margin: 4px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff4d1, #e2b052 64%, #98601b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.casino-banner p:last-child { margin: 0; color: #7f7f73; font-size: 11px; }

.banner-wing {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 190, 91, 0.44));
}

.banner-wing::before,
.banner-wing::after {
  content: "";
  position: absolute;
  right: 0;
  width: 66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 190, 91, 0.2));
  transform-origin: right;
}

.banner-wing::before { transform: rotate(5deg); }
.banner-wing::after { transform: rotate(-5deg); }
.banner-wing.right { transform: scaleX(-1); }

.casino-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 16px;
}

.casino-stage {
  position: relative;
  min-height: 765px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 194, 96, 0.34);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(137, 96, 27, 0.12), transparent 38%),
    radial-gradient(ellipse at 50% 52%, #13170f 0%, #0a0c08 64%, #050604 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), inset 0 0 90px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

.casino-stage::before,
.casino-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.casino-stage::before {
  inset: 9px;
  border: 1px solid rgba(247, 209, 127, 0.11);
}

.casino-stage::after {
  inset: 18% 12%;
  border: 1px solid rgba(237, 189, 91, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(222, 160, 46, 0.05);
  z-index: -1;
}

.table-rim {
  position: absolute;
  width: min(650px, 74%);
  aspect-ratio: 1;
  border: 1px dashed rgba(235, 186, 86, 0.1);
  border-radius: 50%;
  animation: ring-spin 50s linear infinite;
  z-index: -1;
}

.table-rim::before,
.table-rim::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(235, 186, 86, 0.06);
}

.table-rim::before { inset: 10%; }
.table-rim::after { inset: 25%; box-shadow: 0 0 55px rgba(230, 170, 56, 0.08); }

.table-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(circle at 18% 24%, #f5d58b 0 1px, transparent 2px),
    radial-gradient(circle at 84% 34%, #f5d58b 0 1px, transparent 2px),
    radial-gradient(circle at 23% 77%, #f5d58b 0 1px, transparent 2px),
    radial-gradient(circle at 78% 82%, #f5d58b 0 1px, transparent 2px),
    radial-gradient(circle at 55% 13%, #f5d58b 0 1px, transparent 2px);
}

.entry-gate {
  width: min(470px, calc(100% - 42px));
  padding: 30px 34px 27px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(8, 9, 6, 0.94);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), inset 0 0 45px rgba(235, 177, 60, 0.035);
  text-align: center;
}

.entry-seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 181, 67, 0.2), transparent 67%);
  box-shadow: 0 0 34px rgba(225, 160, 47, 0.12), inset 0 0 24px rgba(225, 160, 47, 0.08);
}

.entry-seal span { color: var(--gold-bright); font-family: Georgia, serif; font-size: 20px; letter-spacing: 0.04em; }
.entry-gate h2, .ready-table h2, .shuffle-table h2, .table-instruction h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.entry-gate h2 { font-size: 28px; }
.entry-copy { max-width: 360px; margin: 10px auto 21px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.entry-form { display: grid; gap: 10px; }
.demo-code { margin: 17px 0 0; color: #6f7165; font-size: 10px; }

.ready-table,
.shuffle-table {
  width: min(700px, calc(100% - 42px));
  display: grid;
  justify-items: center;
  text-align: center;
}

.player-pass {
  width: min(630px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 13px;
  margin-bottom: 28px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 5, 3, 0.68);
  text-align: left;
}

.player-pass span { padding: 0 11px; border-right: 1px solid rgba(239, 192, 91, 0.1); }
.player-pass span:last-child { border-right: 0; }
.player-pass small { display: block; color: #6f7066; font-size: 8px; font-weight: 850; letter-spacing: 0.13em; }
.player-pass strong { display: block; margin-top: 3px; color: #dfd7c0; font-size: 11px; }
.player-pass.is-minimal { grid-template-columns: 1fr 1fr; margin-bottom: 42px; }

.ready-deck {
  position: relative;
  width: 210px;
  height: 246px;
  margin-bottom: 18px;
}

.deck-card,
.shuffle-card {
  position: absolute;
  width: 138px;
  height: 194px;
  left: 36px;
  top: 20px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(245, 205, 114, 0.66);
  border-radius: 13px;
  background:
    radial-gradient(circle, rgba(221, 160, 45, 0.14), transparent 34%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(244, 204, 113, 0.035) 10px 11px),
    #0b0d08;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55), inset 0 0 0 5px #11130d, inset 0 0 0 6px rgba(240, 195, 98, 0.2);
}

.deck-card::before,
.shuffle-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(242, 199, 105, 0.24);
  transform: rotate(45deg);
}

.deck-card b,
.shuffle-card b { color: var(--gold-bright); font-family: Georgia, serif; font-size: 18px; font-weight: 500; z-index: 1; }
.deck-card-left { transform: rotate(-11deg) translateX(-28px); }
.deck-card-right { transform: rotate(11deg) translateX(28px); }
.deck-card-center { z-index: 2; box-shadow: 0 28px 55px rgba(0, 0, 0, 0.68), 0 0 35px rgba(221, 160, 45, 0.09), inset 0 0 0 5px #11130d, inset 0 0 0 6px rgba(240, 195, 98, 0.2); }

.ready-table h2, .shuffle-table h2 { font-size: clamp(27px, 4vw, 39px); }
.ready-table > p:not(.eyebrow) { max-width: 450px; margin: 10px 0 21px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.shuffle-button { min-width: 280px; }
.change-ticket { margin-top: 18px; color: #75766c; }

.shuffle-deck {
  position: relative;
  width: 310px;
  height: 235px;
  margin-bottom: 24px;
  perspective: 900px;
}

.shuffle-card {
  left: 86px;
  top: 10px;
  transform-origin: 50% 110%;
}

.shuffle-card.to-left { animation: riffle-left 1.05s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.08s); }
.shuffle-card.to-right { animation: riffle-right 1.05s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.08s); }

@keyframes riffle-left {
  0% { transform: translateX(-70px) rotate(-9deg) translateY(calc(var(--i) * -1px)); }
  52% { transform: translateX(-13px) rotate(-2deg) translateY(calc(var(--i) * -2px)); }
  100% { transform: translateX(8px) rotate(1deg) translateY(calc(var(--i) * -1px)); }
}

@keyframes riffle-right {
  0% { transform: translateX(70px) rotate(9deg) translateY(calc(var(--i) * -1px)); }
  52% { transform: translateX(13px) rotate(2deg) translateY(calc(var(--i) * -2px)); }
  100% { transform: translateX(-8px) rotate(-1deg) translateY(calc(var(--i) * -1px)); }
}

.shuffle-progress {
  width: min(300px, 80%);
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
}
.shuffle-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: progress-sweep 1.2s ease-in-out infinite; }
@keyframes progress-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.card-table {
  width: min(760px, calc(100% - 34px));
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: center;
  padding: 20px 0 18px;
}

.table-player-chip {
  justify-self: center;
  min-width: min(640px, 100%);
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 5, 3, 0.7);
}
.table-player-chip > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #211708; background: linear-gradient(135deg, #ffe3a1, #bd7924); font-family: Georgia, serif; font-weight: 800; }
.table-player-chip p { margin: 0; text-align: left; }
.table-player-chip small { display: block; color: #6d6f63; font-size: 7px; font-weight: 850; letter-spacing: 0.14em; }
.table-player-chip strong { display: block; margin-top: 2px; font-size: 11px; }
.table-player-chip > b { color: var(--gold); font-size: 9px; letter-spacing: 0.12em; }

.table-instruction { padding: 14px 0 10px; text-align: center; }
.table-instruction h2 { font-size: clamp(23px, 3vw, 32px); }
.table-instruction > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.casino-grid {
  align-self: center;
  justify-self: center;
  width: min(425px, 80vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  perspective: 1200px;
}

.casino-card {
  appearance: none;
  position: relative;
  aspect-ratio: 0.7;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}

.casino-card:hover:not(:disabled) { transform: translateY(-7px) scale(1.025); }
.casino-card:disabled { cursor: default; }
.casino-card-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform 0.72s cubic-bezier(0.2, 0.75, 0.25, 1.18); }
.casino-card.is-revealed .casino-card-inner { transform: rotateY(180deg); }

.card-back,
.card-front {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(247, 208, 120, 0.68);
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 15px 26px rgba(0, 0, 0, 0.48), inset 0 0 0 4px #17140c, inset 0 0 0 5px rgba(243, 200, 103, 0.22);
}

.card-back {
  grid-template-rows: auto 1fr auto;
  padding: 10px;
  background:
    radial-gradient(circle, rgba(216, 154, 42, 0.16), transparent 34%),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(240, 197, 99, 0.035) 8px 9px),
    linear-gradient(145deg, #10120c, #070805);
}

.back-corner { justify-self: start; color: #876d3a; font-size: 7px; font-weight: 850; letter-spacing: 0.12em; }
.back-label { color: #8f7541; font-size: 6px; font-weight: 850; letter-spacing: 0.18em; }
.back-emblem { position: relative; width: 58%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(244, 202, 110, 0.35); border-radius: 50%; }
.back-emblem i { position: absolute; width: 70%; height: 1px; background: rgba(244, 202, 110, 0.28); transform: rotate(45deg); }
.back-emblem i:last-child { transform: rotate(-45deg); }
.back-emblem b { color: var(--gold-bright); font-family: Georgia, serif; font-size: 13px; font-weight: 500; }

.card-front {
  grid-template-rows: auto 1fr auto;
  padding: 9px;
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #15160f, #070805);
}
.front-corner { justify-self: start; color: var(--gold); font-family: Georgia, serif; font-size: 9px; }
.front-copy { width: 100%; padding: 7px 3px 3px; border-top: 1px solid rgba(239, 191, 92, 0.14); text-align: center; }
.front-copy small { display: block; color: #8f8b7d; font-size: 6px; font-weight: 850; letter-spacing: 0.16em; }
.front-copy strong { display: block; margin-top: 3px; color: var(--gold-bright); font-family: Georgia, serif; font-size: clamp(9px, 1.2vw, 13px); font-weight: 500; }

.casino-grid.is-dealing .casino-card {
  animation: deal-card 0.62s cubic-bezier(0.16, 0.86, 0.32, 1.12) both;
  animation-delay: var(--deal-delay);
}
@keyframes deal-card {
  0% { opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(0.64) rotate(-5deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
}

.casino-card.is-picked { z-index: 5; filter: drop-shadow(0 0 18px rgba(245, 194, 82, 0.28)); }
.casino-card.is-picked .card-front { border-color: var(--gold-bright); box-shadow: 0 18px 40px rgba(0,0,0,.58), 0 0 0 2px var(--gold), 0 0 35px rgba(236, 179, 57, 0.22), inset 0 0 0 4px #17140c; }
.casino-grid.show-all .casino-card.is-decoy { opacity: 0.42; filter: grayscale(0.45); }
.casino-grid.show-all .casino-card.is-decoy .casino-card-inner { transition-delay: var(--reveal-delay); }

.table-status {
  align-self: end;
  display: flex;
  justify-content: space-between;
  padding: 13px 3px 0;
  color: #77786e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.table-status span { display: inline-flex; align-items: center; gap: 8px; }
.table-status .pulse-dot { display: inline-block; width: 6px; height: 6px; }

.payout-board {
  min-height: 765px;
  padding: 20px 17px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 226, 158, 0.025), transparent 32%), rgba(15, 17, 12, 0.9);
  box-shadow: 0 28px 70px rgba(0,0,0,.48);
}
.payout-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 4px 3px 16px; border-bottom: 1px solid var(--line); }
.payout-heading h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.payout-heading > span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); font-size: 8px; font-weight: 850; }
.payout-list { display: grid; gap: 6px; margin-top: 13px; }
.payout-item { min-height: 58px; display: grid; grid-template-columns: 43px 1fr; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid rgba(236, 189, 89, 0.09); border-radius: 10px; background: rgba(255,255,255,.012); }
.payout-item.is-jackpot { border-color: rgba(242, 199, 101, 0.34); background: radial-gradient(circle at left, rgba(224, 160, 43, 0.12), transparent 70%); }
.payout-item small { display: block; color: #77776e; font-size: 7px; font-weight: 850; letter-spacing: 0.13em; }
.payout-item strong { display: block; margin-top: 3px; color: #d5c8a7; font-family: Georgia, serif; font-size: 12px; font-weight: 500; }
.payout-note { display: flex; gap: 8px; margin: 14px 3px 0; color: #6e7065; font-size: 9px; line-height: 1.5; }

.reward-art {
  --reward-accent: #d4a34b;
  --reward-glow: rgba(212, 163, 75, 0.2);
  position: relative;
  width: 82%;
  max-width: 86px;
  aspect-ratio: 0.86;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  padding: 9px 5px 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 58%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, var(--reward-glow), transparent 42%),
    linear-gradient(150deg, rgba(255,255,255,.05), transparent 35%),
    #0c0e09;
  box-shadow: inset 0 0 22px var(--reward-glow), 0 8px 20px rgba(0,0,0,.34);
}
.reward-orbit { position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--reward-accent) 40%, transparent); border-radius: 50%; }
.reward-orbit::before { content: ""; position: absolute; inset: 16%; border: 1px solid color-mix(in srgb, var(--reward-accent) 28%, transparent); transform: rotate(45deg); }
.reward-crown { color: var(--reward-accent); font-size: 12px; }
.reward-roman { z-index: 1; color: #fff0c4; font-family: Georgia, serif; font-size: clamp(16px, 2vw, 24px); text-shadow: 0 0 14px var(--reward-glow); }
.reward-tier { color: var(--reward-accent); font-size: 5px; font-weight: 900; letter-spacing: 0.14em; }
.reward-art.is-compact { width: 40px; height: 40px; padding: 5px 3px; border-radius: 9px; }
.reward-art.is-compact .reward-crown { font-size: 7px; }
.reward-art.is-compact .reward-roman { font-size: 11px; }
.reward-art.is-compact .reward-tier { display: none; }
.reward-obsidian { --reward-accent: #8d8a81; --reward-glow: rgba(110,110,103,.16); }
.reward-bronze { --reward-accent: #c7834a; --reward-glow: rgba(199,131,74,.2); }
.reward-silver { --reward-accent: #bac5c8; --reward-glow: rgba(186,197,200,.17); }
.reward-sapphire { --reward-accent: #5e91c5; --reward-glow: rgba(72,125,182,.22); }
.reward-emerald { --reward-accent: #5ca47c; --reward-glow: rgba(62,143,96,.2); }
.reward-gold { --reward-accent: #e8b94f; --reward-glow: rgba(232,185,79,.24); }
.reward-platinum { --reward-accent: #d8d2bd; --reward-glow: rgba(216,210,189,.2); }
.reward-royal { --reward-accent: #b47bd6; --reward-glow: rgba(158,96,194,.22); }
.reward-legend { --reward-accent: #ffd477; --reward-glow: rgba(255,196,66,.3); }
.reward-special { --reward-accent: #f4c85c; --reward-glow: rgba(244,200,92,.25); }

.casino-result { overflow: hidden; }
.casino-result > .reward-art { width: 96px; margin: 0 auto 19px; }
.casino-result .reward-roman { font-size: 29px; }
.result-rays { position: absolute; width: 370px; aspect-ratio: 1; left: 50%; top: -120px; transform: translateX(-50%); opacity: .18; background: repeating-conic-gradient(from 0deg, var(--gold) 0 2deg, transparent 2deg 16deg); border-radius: 50%; animation: ring-spin 24s linear infinite; pointer-events: none; }

@media (max-width: 1060px) {
  .casino-layout { grid-template-columns: 1fr; }
  .payout-board { min-height: 0; }
  .payout-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .game-app-shell { padding: 10px 11px 20px; }
  .game-header { grid-template-columns: 1fr auto; padding-inline: 2px; }
  .table-live { display: none; }
  .operator-link { padding: 9px; font-size: 0; }
  .operator-link span { font-size: 14px; }
  .casino-page { padding-top: 5px; }
  .casino-banner { min-height: 90px; grid-template-columns: 32px 1fr 32px; gap: 10px; padding: 8px; }
  .casino-banner h1 { font-size: clamp(27px, 9vw, 40px); }
  .casino-stage { min-height: 700px; border-radius: 22px; }
  .entry-gate { padding: 25px 20px; }
  .player-pass { grid-template-columns: 1fr 1fr; }
  .player-pass span:nth-child(3) { display: none; }
  .card-table { width: calc(100% - 22px); padding-top: 12px; }
  .table-player-chip { min-width: 100%; }
  .casino-grid { width: min(390px, 86vw); gap: 7px; }
  .card-back, .card-front { border-radius: 9px; }
  .reward-art { border-radius: 8px; }
  .payout-board { border-radius: 22px; }
  .payout-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .game-header .brand-copy strong { font-size: 15px; }
  .game-header .brand-copy small { display: none; }
  .casino-banner .eyebrow { letter-spacing: .15em; }
  .casino-stage { min-height: 650px; }
  .ready-deck { transform: scale(.85); margin-block: -12px 0; }
  .ready-table h2, .shuffle-table h2 { font-size: 27px; }
  .shuffle-deck { transform: scale(.8); margin-block: -16px -2px; }
  .table-instruction { padding: 10px 0 7px; }
  .table-instruction > p:last-child { max-width: 300px; margin-inline: auto; }
  .casino-grid { width: min(350px, 89vw); gap: 6px; }
  .back-label { display: none; }
  .front-copy { padding-top: 4px; }
  .front-copy strong { font-size: 8px; }
  .reward-art { padding: 5px 3px; }
  .reward-crown { font-size: 8px; }
  .reward-tier { display: none; }
  .payout-list { grid-template-columns: 1fr; }
}

/* Standalone operator page ---------------------------------------------- */
.admin-body {
  background:
    radial-gradient(circle at 20% -10%, rgba(223, 164, 49, 0.12), transparent 32%),
    linear-gradient(145deg, #070805, #10120d 55%, #070805);
}

.admin-app-shell { width: min(1480px, 100%); }

.admin-topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 9px 14px 17px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar .brand { text-decoration: none; }

.admin-page-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8e8d81;
  background: rgba(5, 6, 4, 0.58);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.player-table-link { justify-self: end; }
.operator-login .entry-seal { margin-bottom: 20px; }
.ticket-issuer { overflow: hidden; }
.prize-cell { white-space: nowrap; }

.prize-dot {
  --reward-accent: #d4a34b;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--reward-accent);
  box-shadow: 0 0 9px var(--reward-accent);
}

@media (max-width: 720px) {
  .admin-topbar { grid-template-columns: 1fr auto; padding-inline: 2px; }
  .admin-page-label { display: none; }
  .player-table-link { padding: 9px; font-size: 0; }
  .player-table-link span { font-size: 13px; }
}
