:root {
  --slot-bg: #05070c;
  --slot-bg-2: #0b1018;
  --slot-panel: rgba(12, 18, 28, 0.94);
  --slot-panel-2: rgba(14, 21, 34, 0.98);
  --slot-line: rgba(120, 148, 191, 0.18);
  --slot-line-strong: rgba(120, 148, 191, 0.30);
  --slot-brass: #d8bb78;
  --slot-brass-2: #8c6a30;
  --slot-cyan: #45d8ff;
  --slot-mint: #7fffb8;
  --slot-cream: #eef4ff;
  --slot-muted: #9aabc9;
  --slot-ink: #101722;
  --slot-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body.slot-body {
  margin: 0;
  color: var(--slot-cream);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(69, 216, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 82% 12%, rgba(127, 255, 184, 0.08), transparent 18rem),
    radial-gradient(circle at 50% 120%, rgba(216, 187, 120, 0.08), transparent 24rem),
    linear-gradient(180deg, #030509 0%, var(--slot-bg) 46%, var(--slot-bg-2) 100%);
}

.slot-wrap {
  width: min(1320px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 14px 8px 44px;
}

.slot-hero,
.slot-panel,
.slot-machine {
  margin-top: 12px;
  border-radius: 28px;
  box-shadow: var(--slot-shadow);
}

.slot-hero,
.slot-panel {
  border: 1px solid var(--slot-line);
  background:
    linear-gradient(180deg, var(--slot-panel), var(--slot-panel-2)),
    radial-gradient(circle at top left, rgba(69, 216, 255, 0.06), transparent 20rem);
}

.slot-hero {
  padding: 28px;
}

.slot-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(14, 21, 34, 0.96);
  border: 1px solid rgba(120, 148, 191, 0.22);
  color: var(--slot-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slot-title {
  margin: 18px 0 10px;
  max-width: 13ch;
  font-family: "Cormorant Garamond", "Oxanium", serif;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.slot-copy {
  margin: 0;
  max-width: 58rem;
  color: #c5d2e9;
  line-height: 1.65;
}

.slot-toolbar,
.slot-meta,
.slot-actions,
.slot-manager-grid,
.slot-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.slot-chip,
.slot-btn,
.slot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 148, 191, 0.22);
  background: rgba(14, 21, 34, 0.92);
  color: var(--slot-cream);
  text-decoration: none;
  font-weight: 700;
}

.slot-btn.primary {
  background: linear-gradient(135deg, rgba(216, 187, 120, 0.95), rgba(255, 238, 193, 0.92));
  color: #241709;
  border-color: rgba(216, 187, 120, 0.28);
}

.slot-btn:disabled {
  opacity: 0.55;
}

.slot-meta {
  margin-top: 18px;
}

.slot-chip strong {
  color: var(--slot-cyan);
}

.slot-machine {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 28px;
  border: 1px solid rgba(216, 187, 120, 0.32);
  background:
    linear-gradient(180deg, rgba(14, 21, 34, 0.98), rgba(10, 15, 24, 0.98)),
    radial-gradient(circle at top left, rgba(216, 187, 120, 0.10), transparent 16rem),
    radial-gradient(circle at top right, rgba(69, 216, 255, 0.06), transparent 14rem);
}

.slot-machine::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(216, 187, 120, 0.18);
  border-radius: 22px;
  pointer-events: none;
}

.slot-machine-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.slot-jackpot {
  display: grid;
  gap: 6px;
}

.slot-jackpot span {
  color: var(--slot-muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slot-jackpot strong {
  font-family: "Cormorant Garamond", "Oxanium", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--slot-brass);
  font-weight: 700;
}

.slot-status {
  max-width: 32rem;
  color: #d1dced;
  text-align: right;
}

.slot-machine-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 18px;
  align-items: center;
}

.slot-reels-frame {
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(216, 187, 120, 0.34);
  background:
    linear-gradient(180deg, rgba(24, 33, 49, 0.98), rgba(15, 22, 34, 0.98));
  box-shadow: inset 0 0 0 1px rgba(216, 187, 120, 0.10);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.slot-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.2;
  border-radius: 22px;
  border: 1px solid rgba(216, 187, 120, 0.22);
  background:
    linear-gradient(180deg, #f4efe1, #d8c6a0);
}

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

.slot-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.24), transparent);
}

.slot-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(16, 23, 34, 0.24), transparent);
}

.slot-strip {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-rows: 100%;
  transition: transform 1700ms cubic-bezier(0.18, 0.8, 0.18, 1);
}

.slot-symbol {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 18px;
}

.slot-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.slot-symbol-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 30%, #fff6dc, #e2be7c 72%);
  box-shadow: inset 0 0 0 1px rgba(62, 46, 19, 0.18);
}

.slot-symbol-fallback span {
  display: block;
  text-align: center;
  color: #2c1e0f;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.slot-symbol-fallback .slot-emoji {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
}

.slot-symbol-fallback .slot-label {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-lever {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.slot-lever-bar {
  width: 14px;
  height: 160px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1db9e, #a78542);
  position: relative;
}

.slot-lever-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff0ca, #b48a42 68%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.slot-lever-bar.is-pulled {
  animation: leverPull 900ms ease;
}

@keyframes leverPull {
  0% { transform: translateY(0); }
  35% { transform: translateY(36px); }
  100% { transform: translateY(0); }
}

.slot-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.slot-panel {
  padding: 20px;
}

.slot-panel h2 {
  margin: 0 0 8px;
  font-family: "Oxanium", sans-serif;
  font-size: 1.45rem;
}

.slot-panel p {
  margin: 0;
  color: #c5d2e9;
}

.slot-symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.slot-symbol-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(120, 148, 191, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 21, 34, 0.94), rgba(10, 15, 24, 0.98)),
    radial-gradient(circle at top left, rgba(69, 216, 255, 0.05), transparent 12rem);
}

.slot-symbol-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.slot-symbol-card p {
  margin: 0 0 14px;
  min-height: 44px;
}

.slot-symbol-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(120, 148, 191, 0.16);
  background: rgba(243, 239, 228, 0.95);
  overflow: hidden;
}

.slot-symbol-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slot-symbol-preview .slot-symbol-fallback {
  border-radius: 0;
  height: 100%;
}

.slot-file {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 148, 191, 0.18);
  background: rgba(10, 15, 24, 0.94);
  color: var(--slot-cream);
  font: inherit;
}

.slot-paytable {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.slot-paytable-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(14, 21, 34, 0.84);
  border: 1px solid rgba(120, 148, 191, 0.12);
}

.slot-small {
  font-size: 0.9rem;
  color: #c8d4eb;
}

@media (max-width: 900px) {
  .slot-machine-body {
    grid-template-columns: 1fr;
  }

  .slot-lever {
    order: -1;
    justify-items: start;
  }

  .slot-lever-bar {
    height: 90px;
  }
}

@media (max-width: 640px) {
  .slot-wrap {
    width: calc(100vw - 12px);
    padding: 10px 6px 32px;
  }

  .slot-hero,
  .slot-panel,
  .slot-machine {
    border-radius: 22px;
    padding: 16px;
  }

  .slot-controls,
  .slot-machine-top {
    flex-direction: column;
    align-items: start;
  }
}
