html, body, * { cursor: none !important; }

:root {
  --bg-1: rgb(9, 14, 23);
  --bg-2: rgb(15, 23, 36);
  --panel: rgba(13, 20, 33, 0.96);
  --panel-2: rgba(255,255,255,0.05);
  --panel-3: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.12);
  --text: rgb(247, 248, 250);
  --muted: rgb(194, 201, 214);
  --gold: rgb(237, 170, 35);
  --gold-2: rgb(255, 209, 102);
  --danger: rgb(239, 68, 68);
  --ok: rgb(34, 197, 94);
  --radius: 24px;
  --key-h: clamp(46px, 7.2vh, 72px);
  --alpha-h: clamp(34px, 4.9vh, 52px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(237,170,35,0.16), transparent 34%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
body.page-kiosk,
body.page-spin,
body.page-balance {
  height: 100dvh;
  overflow: hidden;
}
body.page-generic {
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(10px, 1.6vmin, 18px);
  display: grid;
  gap: clamp(10px, 1.4vmin, 14px);
}
.app-shell-kiosk,
.app-shell-spin,
.app-shell-balance {
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-size: clamp(28px, 2.9vw, 38px);
  font-weight: 900;
  line-height: 1;
}
.subbrand {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 16px);
}
.timer-pill {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(237,170,35,0.14);
  border: 1px solid rgba(237,170,35,0.28);
  color: rgb(255, 236, 186);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.main-card,
.notice-box,
.summary-box,
.offer-box,
.info-card,
.lookup-card,
.result-card,
.extras-card,
.slot-card,
.spin-form-card,
.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(0,0,0,0.26);
}
.main-card {
  min-height: 0;
  overflow: hidden;
  padding: clamp(14px, 1.8vmin, 20px);
}

.flow-shell,
.spin-shell,
.balance-shell {
  height: 100%;
}
.screen {
  display: none;
  height: 100%;
}
.screen.active {
  display: grid;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error-text { color: rgb(254, 202, 202); }
.success-text { color: rgb(187, 247, 208); }
.mono { font-family: Consolas, Monaco, monospace; }
.top-gap-sm { margin-top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(44px, 6vh, 56px);
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-1px); }
.btn-primary {
  color: rgb(24, 19, 11);
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  border-color: rgba(255, 209, 102, 0.55);
}
.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.btn-danger {
  color: white;
  background: rgba(239,68,68,0.22);
  border-color: rgba(239,68,68,0.44);
}
.btn-link {
  background: transparent;
  border: none;
  color: var(--gold-2);
  min-height: auto;
  padding: 0;
}
.btn-cta {
  min-width: min(100%, 340px);
  min-height: clamp(52px, 7vh, 70px);
  font-size: clamp(18px, 2.3vw, 28px);
}
.button-row {
  display: flex;
  gap: 12px;
}
.action-row { align-items: center; }
.action-row-center { justify-content: center; }
.action-row-spread { justify-content: space-between; }
.action-row-wrap { flex-wrap: wrap; }

.hero-stage {
  height: 100%;
  display: grid;
  place-items: center;
}
.hero-panel {
  width: min(920px, 100%);
  padding: clamp(22px, 3.2vmin, 34px);
  text-align: center;
  display: grid;
  gap: clamp(14px, 2vmin, 18px);
}
.hero-eyebrow,
.flow-kicker,
.card-label,
.offer-kicker {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
}
.hero-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
}
.hero-copy,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 22px);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.feature-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 700;
}
.hero-actions { justify-content: center; flex-wrap: wrap; }

.flow-card {
  height: 100%;
  display: grid;
  gap: clamp(12px, 1.6vmin, 16px);
}
.flow-card-phone,
.flow-card-info {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.flow-card-center {
  align-content: center;
}
.flow-card-final {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.flow-head {
  display: grid;
  gap: 6px;
}
.flow-head h1,
.slot-header h1,
.lookup-card h1,
.status-panel h1,
.card-title,
.offer-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.04;
}
.flow-head-center { text-align: center; }

.phone-display-wrap,
.active-field-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(10px, 1.4vmin, 14px);
}
.phone-display,
.active-field-input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
}
.phone-display {
  font-size: clamp(28px, 4.8vw, 54px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}
.active-field-input,
.field input,
.field select,
.field textarea {
  font-size: clamp(18px, 2.2vw, 24px);
  padding: 6px 0;
}
.phone-display::placeholder,
.active-field-input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(194,201,214,0.56);
}
.field-label,
.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-grid {
  display: grid;
  gap: 14px;
}
.field-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid .field.full { grid-column: 1 / -1; }
.field {
  display: grid;
  gap: 6px;
}

.selector-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.selector-btn {
  min-height: clamp(58px, 8vh, 78px);
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 4px;
}
.selector-btn.active {
  border-color: rgba(255, 209, 102, 0.52);
  background: rgba(237,170,35,0.12);
}
.selector-title {
  font-weight: 800;
  font-size: clamp(14px, 1.4vw, 16px);
}
.selector-value {
  color: var(--muted);
  font-size: clamp(12px, 1.2vw, 14px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.keypad {
  display: grid;
  gap: 10px;
  align-content: start;
}
.keypad-numeric {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.keypad-alpha {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}
.keypad-rows { display:grid; gap:10px; }
.key-row { display:grid; gap:10px; align-items:stretch; grid-column:1 / -1; width:100%; }
.keypad-rows .key { min-width:0; }
.keypad-compact .key { min-height: clamp(40px, 5.5vh, 56px); }
.key {
  min-height: var(--key-h);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(18px, 2.3vw, 28px);
}
.key:hover,
.key:focus-visible {
  background: rgba(255,255,255,0.12);
}
.keypad-alpha .key {
  min-height: var(--alpha-h);
  font-size: clamp(13px, 1.6vw, 18px);
  border-radius: 14px;
}
.key.wide { grid-column: span 2; }
.key.xwide { grid-column: span 3; }
.key-row .key.wide, .key-row .key.xwide { grid-column: auto; }

.status-panel,
.result-card,
.lookup-card,
.info-card,
.notice-box,
.summary-box,
.offer-box,
.stat-card,
.logo-card {
  padding: clamp(16px, 2vmin, 20px);
}
.status-panel {
  display: grid;
  gap: 10px;
  text-align: center;
}
.status-line {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}
.status-detail {
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 20px);
}
.summary-pair {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
}
.summary-pair strong { color: var(--text); }
.final-grid,
.balance-grid,
.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}
.balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card {
  display: grid;
  gap: 8px;
  min-height: 0;
}
.info-card-accent {
  background: linear-gradient(180deg, rgba(237,170,35,0.13), rgba(13,20,33,0.96));
  border-color: rgba(255, 209, 102, 0.38);
}
.info-card-center {
  align-content: center;
  text-align: center;
}
.big-code {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.big-code-small { font-size: clamp(24px, 3.6vw, 36px); }
.card-label-top { margin-top: 8px; }
.card-title { font-weight: 800; }

.spin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}
.slot-card,
.spin-form-card {
  padding: clamp(16px, 2vmin, 20px);
  display: grid;
  gap: 14px;
  min-height: 0;
}
.slot-header { display: grid; gap: 6px; text-align: center; }
.slot-machine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}
.slot-window {
  position: relative;
  overflow: hidden;
  min-height: clamp(150px, 26vh, 260px);
  border-radius: 22px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
}
.slot-window::before,
.slot-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20%;
  z-index: 1;
  pointer-events: none;
}
.slot-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(13,20,33,0.92), rgba(13,20,33,0));
}
.slot-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(13,20,33,0.92), rgba(13,20,33,0));
}
.reel-track {
  transition: transform 2.6s cubic-bezier(.12,.76,.12,1);
}
.reel-item {
  height: clamp(150px, 26vh, 260px);
  display: grid;
  place-items: center;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255, 241, 210);
}
.result-card { text-align: center; }
.result-card .card-title { font-size: clamp(22px, 2.8vw, 34px); }
.extras-card { padding: 14px; }

.balance-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}
.lookup-form { display: grid; gap: 12px; }
.balance-left,
.balance-right { min-height: 0; }
.mini-list {
  display: grid;
  gap: 10px;
}
.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mini-row:first-child { border-top: none; padding-top: 0; }
.mini-right {
  text-align: right;
  font-size: 14px;
  color: var(--muted);
}

.single-main,
.stacked-main,
.kiosk-main {
  display: grid;
  gap: 16px;
}
.narrow-shell { width: min(860px, 100%); }
.wide-shell { width: min(1280px, 100%); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 10px;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.data-table thead th {
  color: var(--gold-2);
  border-top: none;
}
.table-wrap { overflow: auto; }
.stat-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.stat-label { color: var(--muted); font-weight: 700; }
.stat-value { font-size: clamp(26px, 3vw, 38px); font-weight: 900; }
.promo-list { display: grid; gap: 10px; }
.promo-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.compact-box { padding: 14px; }
.compact-grid { gap: 12px; }
.compact-stack { gap: 12px; }
.entry-stack,
.content-stack { display: grid; gap: 16px; }
.lookup-key { all: unset; }

@media (max-width: 1100px) {
  .spin-shell,
  .balance-shell,
  .field-grid-two,
  .final-grid,
  .balance-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .selector-row { grid-template-columns: 1fr; }
  .keypad-alpha { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { padding: 10px; gap: 10px; }
  .topbar-compact { align-items: flex-start; }
  .timer-pill { font-size: 12px; padding: 8px 12px; }
  .hero-panel { padding: 18px; }
  .hero-title { font-size: clamp(34px, 11vw, 58px); }
  .btn { padding: 0 14px; font-size: 15px; }
  .button-row { gap: 10px; flex-wrap: wrap; }
  .keypad-alpha { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .keypad-alpha .key { min-height: clamp(30px, 4.7vh, 42px); }
  .phone-display { font-size: clamp(24px, 7vw, 40px); }
  .slot-machine { gap: 8px; }
  .slot-window,
  .reel-item { min-height: clamp(108px, 19vh, 168px); height: clamp(108px, 19vh, 168px); }
}

@media (max-height: 820px) {
  :root {
    --key-h: clamp(42px, 6.2vh, 58px);
    --alpha-h: clamp(30px, 4.2vh, 42px);
  }
  .hero-panel { gap: 12px; }
  .feature-pill { padding: 8px 12px; }
  .flow-card { gap: 10px; }
  .phone-display-wrap,
  .active-field-card,
  .status-panel,
  .info-card,
  .lookup-card,
  .slot-card,
  .spin-form-card,
  .result-card { padding: 14px; }
}

@media (max-height: 720px) {
  .subbrand { display: none; }
  .timer-pill { display: none; }
  .hero-copy { font-size: clamp(15px, 2vw, 18px); }
  .pill-row { gap: 8px; }
  .feature-pill { font-size: 12px; }
  .flow-head h1,
  .slot-header h1,
  .lookup-card h1,
  .status-panel h1,
  .card-title,
  .offer-title { font-size: clamp(20px, 2.4vw, 28px); }
  .big-code { font-size: clamp(28px, 4vw, 44px); }
}

.keypad.keypad-rows { display:flex !important; flex-direction:column; gap:10px; }
.keypad.keypad-rows .key-row { display:grid; gap:10px; width:100%; }
