:root {
  color-scheme: dark;
  --page: #050605;
  --surface: #0b0e0a;
  --surface-strong: #15180f;
  --surface-soft: #202611;
  --reel: #f5f8eb;
  --line: #3a442d;
  --line-strong: #8da852;
  --text: #fffdf0;
  --muted: #bdc8b0;
  --gold: #f3ba2f;
  --lime: #66ff8f;
  --aqua: #43d8ff;
  --rose: #ff5f7d;
  --shadow: rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(243, 186, 47, 0.09) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(0deg, rgba(67, 216, 255, 0.07) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(135deg, rgba(255, 95, 125, 0.14) 0 8%, transparent 8% 100%),
    linear-gradient(155deg, #050605 0%, #12160d 52%, #060806 100%);
  overflow-x: hidden;
}

body.game-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(243, 186, 47, 0.18) 46% 47%, transparent 47% 100%),
    repeating-linear-gradient(90deg, rgba(102, 255, 143, 0.1) 0 1px, transparent 1px 22px);
  opacity: 0.55;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #070907;
  cursor: pointer;
  font-weight: 900;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.game-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  align-items: stretch;
}

.machine,
.paytable,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(25, 30, 20, 0.95), rgba(8, 10, 8, 0.98)),
    var(--surface);
  box-shadow: 0 28px 80px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.machine {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  padding: 18px;
}

.machine::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--lime), var(--aqua), var(--rose));
}

.topbar,
.brand-lockup,
.wallet-dock,
.status-strip,
.controls,
.quick-actions,
.paytable-heading,
.preset-row,
.admin-actions,
.inline-form {
  display: flex;
  align-items: center;
}

.topbar {
  position: relative;
  z-index: 3;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  min-width: 0;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 10, 8, 0.82);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.social-link:hover {
  border-color: rgba(243, 186, 47, 0.42);
  color: var(--gold);
}

.social-link svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.social-link span {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-lockup img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(243, 186, 47, 0.22));
}

.brand-lockup span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-lockup strong {
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.wallet-dock {
  justify-content: flex-end;
  min-width: 220px;
}

.wallet-box {
  position: relative;
  z-index: 10;
  display: grid;
  justify-items: stretch;
  gap: 6px;
  width: min(240px, 100%);
  min-width: 200px;
}

.wallet-menu {
  position: relative;
}

.wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.wallet-button {
  color: #10120d;
  background: linear-gradient(180deg, #ffe58b, var(--gold));
  box-shadow: 0 10px 22px rgba(243, 186, 47, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.wallet-button-error {
  color: #ffffff;
  background: linear-gradient(180deg, #ff7e94, var(--rose));
}

.wallet-button-connected {
  color: #070907;
  background: linear-gradient(180deg, #8cffaa, var(--lime));
}

.wallet-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 10px;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 10, 8, 0.96);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.wallet-menu-meta {
  display: grid;
  gap: 4px;
}

.wallet-menu-meta strong {
  color: var(--text);
  font-size: 0.92rem;
}

.wallet-menu-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.wallet-menu-action {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-menu-action:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.wallet-meta {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.machine-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  gap: 18px;
  min-height: 0;
  border: 1px solid rgba(243, 186, 47, 0.62);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(243, 186, 47, 0.18), transparent 30%, rgba(67, 216, 255, 0.12)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(28, 33, 21, 0.97), rgba(7, 9, 7, 0.98));
}

.intro-strip {
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 100%;
  color: var(--text);
  font-size: 4.4rem;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.58), 0 0 22px rgba(102, 255, 143, 0.14);
}

h2 {
  color: var(--text);
  font-size: 1.45rem;
}

.lead {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.launch-copy {
  display: grid;
  gap: 10px;
  max-width: 52rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px 18px;
  background:
    linear-gradient(90deg, rgba(243, 186, 47, 0.12), rgba(102, 255, 143, 0.06) 52%, rgba(67, 216, 255, 0.08)),
    rgba(7, 9, 7, 0.76);
}

.launch-kicker,
.launch-title,
.launch-copy-text,
.launch-mechanics p,
.launch-points p {
  margin: 0;
}

.launch-kicker {
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
}

.launch-title {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}

.launch-copy-text {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.launch-mechanics,
.launch-points {
  display: grid;
  gap: 8px;
}

.launch-mechanics p,
.launch-points p {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 800;
}

.launch-mechanics strong {
  color: var(--gold);
}

.status-strip {
  gap: 10px;
  flex-wrap: wrap;
}

.status-strip span {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(8, 10, 8, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.status-strip strong {
  margin-left: 4px;
  color: var(--text);
}

.reel-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-height: 330px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(243, 186, 47, 0.96), rgba(255, 255, 255, 0.94) 7%, rgba(255, 255, 255, 0.94) 93%, rgba(243, 186, 47, 0.96)),
    linear-gradient(180deg, #fffdf0, #e8f0d7);
  box-shadow: inset 0 0 0 7px rgba(7, 9, 7, 0.82), 0 22px 50px rgba(0, 0, 0, 0.42);
}

.reel-stage::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--gold), var(--lime), transparent);
  box-shadow: 0 0 16px rgba(255, 95, 125, 0.44);
  transform: translateY(-50%);
  pointer-events: none;
}

.reel {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 300px;
  aspect-ratio: 0.76 / 1;
  border: 1px solid rgba(7, 9, 7, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(227, 235, 211, 0.98)),
    var(--reel);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.66), inset 0 18px 34px rgba(255, 255, 255, 0.62), inset 0 -20px 42px rgba(7, 9, 7, 0.16);
  overflow: hidden;
}

.reel::before,
.reel::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 26%;
  pointer-events: none;
}

.reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(7, 9, 7, 0.36), transparent);
}

.reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(7, 9, 7, 0.34), transparent);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.reel-strip.is-looping {
  animation: reel-loop 460ms linear infinite;
}

@keyframes reel-loop {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.symbol {
  display: grid;
  place-items: center;
  gap: 10px;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 20px 14px;
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.symbol img {
  display: block;
  width: min(82%, 178px);
  max-height: 68%;
  aspect-ratio: 1;
  border: 2px solid rgba(7, 9, 7, 0.18);
  border-radius: 8px;
  background: #070907;
  object-fit: cover;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.symbol span {
  max-width: 100%;
  color: #171b13;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.reel.spinning .symbol {
  opacity: 0.8;
  filter: blur(0.7px) saturate(1.08);
}

.reel.settling .symbol {
  filter: saturate(1.08);
}

.action-panel {
  display: grid;
  gap: 14px;
}

.bet-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(6, 8, 6, 0.5);
}

.bet-card.is-error {
  border-color: rgba(255, 92, 92, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 92, 0.12);
}

.bet-field,
.custom-percent-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bet-balance {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.bet-balance strong {
  color: var(--text);
}

.bet-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.bet-hint.is-error {
  color: #ff7a7a;
}

.bet-field b,
.custom-percent-label {
  color: var(--muted);
  font-weight: 800;
}

.bet-card input[type="number"] {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.25rem;
  font-weight: 900;
}

.bet-card input[type="number"].is-error {
  border-color: rgba(255, 92, 92, 0.65);
  color: #ffb3b3;
  background: rgba(140, 22, 22, 0.18);
}

.bet-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.bet-chip {
  min-height: 52px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
}

.bet-chip:last-child {
  border-right: 0;
}

.bet-chip.is-active {
  color: #070907;
  background: linear-gradient(180deg, #ffe58b, var(--gold));
}

.bet-chip-edit {
  font-size: 0.92rem;
}

.custom-percent {
  display: grid;
  gap: 10px;
}

.custom-percent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.result-line {
  min-height: 28px;
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.controls {
  justify-content: flex-end;
}

.history-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-heading h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.history-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.history-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 5, 0.55);
}

.history-item-top,
.history-item-meta,
.history-symbols {
  display: flex;
  align-items: center;
}

.history-item-top,
.history-item-meta {
  justify-content: space-between;
  gap: 12px;
}

.history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.history-status.is-win {
  color: #070907;
  background: linear-gradient(180deg, #8cffaa, var(--lime));
}

.history-status.is-lose {
  color: #fff6f6;
  background: rgba(255, 95, 125, 0.22);
  border: 1px solid rgba(255, 95, 125, 0.32);
}

.history-status.is-pending {
  color: #201400;
  background: linear-gradient(180deg, #ffe58b, var(--gold));
}

.history-item strong,
.history-item b {
  color: var(--text);
}

.history-item time,
.history-item a,
.history-item span {
  color: var(--muted);
  font-weight: 800;
}

.history-item a {
  text-decoration: none;
}

.history-item a:hover {
  color: var(--text);
}

.history-symbols {
  gap: 8px;
  flex-wrap: wrap;
}

.history-symbol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
}

.history-symbol img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.primary {
  color: #070907;
  background: linear-gradient(180deg, #8cffaa, var(--lime));
  box-shadow: 0 8px 18px rgba(102, 255, 143, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.secondary {
  width: 48px;
  padding: 0;
  color: #070907;
  background: #e7f1d8;
}

.preset-row .secondary,
.admin-actions .secondary {
  width: auto;
  padding: 0 16px;
}

.text-button,
.admin-link {
  min-height: 40px;
  border: 1px solid rgba(243, 186, 47, 0.48);
  border-radius: 8px;
  color: var(--text);
  background: rgba(243, 186, 47, 0.1);
  text-decoration: none;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 900;
}

#spin {
  min-width: 132px;
}

input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--lime);
}

.quick-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.paytable {
  display: grid;
  align-content: start;
  min-height: calc(100vh - 56px);
  padding: 22px;
  overflow: auto;
}

.paytable-heading {
  gap: 12px;
}

.paytable-heading img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.paytable-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.paytable-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.pay-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.pay-row img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #070907;
  object-fit: cover;
}

.pay-row strong,
.pay-row span {
  display: block;
}

.pay-row strong {
  color: var(--text);
}

.pay-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.pay-row b {
  min-width: 54px;
  border-radius: 8px;
  padding: 8px 9px;
  color: #070907;
  background: var(--gold);
  text-align: center;
}

.admin-shell {
  display: grid;
  align-items: center;
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.admin-panel {
  padding: 28px;
}

.login-form,
.config-form {
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b08;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--lime);
}

.inline-form {
  gap: 10px;
  margin-top: 8px;
}

.preset-row,
.admin-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.json-field {
  margin-top: 18px;
}

textarea {
  min-height: 300px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}

.admin-actions {
  margin-top: 18px;
}

.user-admin {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}

.user-admin .admin-actions {
  margin-top: 0;
}

.user-form {
  display: grid;
  gap: 14px;
}

.user-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.user-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}

.user-table th {
  color: var(--muted);
  font-size: 0.84rem;
}

.user-table td {
  color: var(--text);
  font-weight: 800;
}

.user-table tbody tr {
  cursor: pointer;
}

.user-table tbody tr:hover,
.user-table tbody tr.is-selected {
  background: rgba(243, 186, 47, 0.12);
}

.user-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--gold);
  font-weight: 900;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-modal.hidden {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 6, 0.82);
  backdrop-filter: blur(8px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(82vh, 920px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
  background: rgba(11, 14, 12, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.history-header {
  display: grid;
  gap: 6px;
  margin: 10px 0 18px;
}

.history-header strong {
  color: var(--text);
  font-size: 1.1rem;
}

.history-header span {
  color: var(--muted);
  font-weight: 800;
}

.admin-history-list {
  display: grid;
  gap: 14px;
}

.admin-history-item {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.admin-history-meta strong,
.admin-history-meta span,
.admin-history-meta a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.admin-history-meta a:hover {
  color: var(--text);
}

.admin-history-empty {
  color: var(--muted);
  font-weight: 800;
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .game-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .machine,
  .paytable {
    min-height: auto;
  }

  h1 {
    font-size: 3.2rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .game-shell,
  .admin-shell {
    width: min(100% - 20px, 1240px);
    padding: 10px 0 24px;
  }

  .machine,
  .paytable,
  .admin-panel {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wallet-dock {
    justify-content: stretch;
    width: 100%;
    min-width: 0;
  }

  .wallet-box {
    width: 100%;
    min-width: 0;
  }

  .social-link {
    width: 100%;
  }

  .wallet-meta {
    text-align: left;
  }

  .machine-board {
    grid-template-rows: auto auto minmax(180px, 1fr) auto;
    padding: 14px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .launch-copy {
    padding: 14px;
  }

  .launch-title {
    font-size: 1rem;
  }

  .launch-copy-text,
  .launch-mechanics p,
  .launch-points p {
    font-size: 0.93rem;
  }

  .status-strip span {
    width: 100%;
  }

  .reel-stage {
    gap: 8px;
    min-height: 220px;
    padding: 8px;
    box-shadow: inset 0 0 0 4px rgba(7, 9, 7, 0.78), 0 14px 24px rgba(0, 0, 0, 0.32);
  }

  .reel {
    min-height: 170px;
    aspect-ratio: auto;
  }

  .symbol {
    width: 100%;
    padding: 12px 7px;
  }

  .symbol img {
    width: min(88%, 110px);
    max-height: 64%;
  }

  .symbol span {
    font-size: 0.76rem;
  }

  .controls {
    display: block;
  }

  #spin {
    width: 100%;
  }

  .history-item-top,
  .history-item-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .bet-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bet-chip {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .bet-chip:nth-child(3n) {
    border-right: 0;
  }

  .bet-chip:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .custom-percent-row {
    grid-template-columns: 1fr;
  }

  .inline-form {
    display: grid;
  }
}
