:root {
  --slot-border: 1px solid rgba(232, 244, 255, 0.12);
  --slot-panel: linear-gradient(
    180deg,
    rgba(15, 30, 53, 0.96),
    rgba(10, 18, 31, 0.96)
  );
  --slot-panel-soft: rgba(15, 30, 53, 0.9);
  --slot-shadow: 0 24px 64px rgba(3, 9, 19, 0.45);
  --slot-shadow-soft: 0 18px 40px rgba(3, 9, 19, 0.28);
}

body[data-page-key^="play-"] .page-content {
  padding-bottom: 156px;
}

.slot-page-shell {
  display: grid;
  gap: 20px;
}

.slot-topbar,
.slot-hero-card,
.slot-stage-card,
.slot-controls-card,
.slot-results-card,
.slot-info-card {
  background: var(--slot-panel);
  border: var(--slot-border);
  border-radius: 24px;
  box-shadow: var(--slot-shadow-soft);
}

.slot-topbar {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.slot-topbar-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(232, 244, 255, 0.04);
  border: 1px solid rgba(232, 244, 255, 0.08);
}

.slot-topbar-label,
.slot-control-label,
.slot-summary-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.slot-topbar-value,
.slot-result-total {
  font-family: "Space Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.slot-grid-layout {
  display: grid;
  gap: 20px;
}

.slot-main-column,
.slot-side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slot-hero-card,
.slot-stage-card,
.slot-controls-card,
.slot-results-card,
.slot-info-card {
  padding: 22px;
}

.slot-hero-header,
.slot-stage-header,
.slot-results-header,
.slot-summary-row,
.slot-action-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.slot-hero-card h1,
.slot-stage-card h2,
.slot-results-card h2,
.slot-info-card h2 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  line-height: 1.02;
}

.slot-hero-copy {
  margin: 0 0 10px;
  color: rgba(232, 244, 255, 0.9);
}

.slot-hero-copy.is-muted,
.slot-info-footnote {
  color: rgba(232, 244, 255, 0.72);
}

.slot-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.slot-meta-row span,
.slot-summary-pill,
.slot-result-item,
.slot-result-empty {
  border-radius: 16px;
  background: rgba(232, 244, 255, 0.04);
  border: 1px solid rgba(232, 244, 255, 0.08);
}

.slot-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.slot-stage-status {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.slot-free-spins {
  color: var(--color-sweden-yellow);
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
}

.slot-canvas-shell {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 24px;
  border: 1px solid rgba(0, 91, 187, 0.32);
  background:
    radial-gradient(
      circle at top left,
      rgba(74, 170, 245, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(254, 203, 2, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, rgba(16, 35, 64, 0.96), rgba(8, 18, 31, 0.98));
}

.slot-canvas {
  position: relative;
  width: 100%;
  min-height: 340px;
  aspect-ratio: 41 / 28;
}

.slot-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.slot-loading-state {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 340px;
  padding: 24px;
  font-size: 1rem;
  color: rgba(232, 244, 255, 0.86);
  text-align: center;
}

.slot-loading-state.is-error {
  color: #ffb3ae;
}

.slot-summary-row {
  margin-top: 16px;
}

.slot-summary-pill {
  flex: 1 1 240px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.slot-controls-grid {
  display: grid;
  gap: 18px;
}

.slot-control-block {
  display: grid;
  gap: 10px;
}

.slot-chip-row,
.slot-autoplay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-chip,
.slot-secondary-button,
.slot-spin-button,
.slot-number-input {
  border-radius: 12px;
  border: 1px solid rgba(232, 244, 255, 0.16);
  background: rgba(232, 244, 255, 0.04);
  color: var(--color-ice-white);
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    opacity var(--transition-base);
}

.slot-chip,
.slot-secondary-button,
.slot-spin-button {
  min-height: 48px;
  padding: 0 16px;
  font-weight: 600;
}

.slot-chip.is-active,
.slot-secondary-button.is-active {
  background: rgba(0, 91, 187, 0.32);
  border-color: rgba(0, 91, 187, 0.85);
  color: #fff;
}

.slot-chip.is-dimmed {
  opacity: 0.48;
}

.slot-secondary-button.is-danger {
  border-color: rgba(200, 40, 28, 0.4);
  color: #ffb3ae;
}

.slot-spin-button {
  min-width: 160px;
  background: linear-gradient(135deg, var(--color-sweden-yellow), #ffd94a);
  color: var(--color-ice-rink-dark);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(254, 203, 2, 0.28);
}

.slot-chip:hover:not(:disabled),
.slot-secondary-button:hover:not(:disabled),
.slot-spin-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.slot-chip:disabled,
.slot-secondary-button:disabled,
.slot-spin-button:disabled,
.slot-number-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.slot-number-input {
  width: 94px;
  min-height: 48px;
  padding: 0 14px;
}

.slot-action-row {
  margin-top: 18px;
  align-items: center;
}

.slot-action-copy {
  margin: 0;
  color: rgba(232, 244, 255, 0.72);
}

.slot-results-list,
.slot-symbol-list,
.slot-paytable-list,
.slot-line-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slot-result-item,
.slot-result-empty,
.slot-symbol-item,
.slot-paytable-item,
.slot-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.slot-result-item.is-highlight {
  border-color: rgba(254, 203, 2, 0.28);
  background: rgba(254, 203, 2, 0.08);
}

.slot-symbol-item,
.slot-paytable-item {
  align-items: flex-start;
}

.slot-symbol-emoji,
.slot-paytable-symbol {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.slot-symbol-copy,
.slot-paytable-copy {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.slot-symbol-copy span,
.slot-paytable-copy span {
  color: rgba(232, 244, 255, 0.7);
  font-size: 0.92rem;
}

.slot-line-item {
  align-items: center;
}

.slot-line-label {
  min-width: 60px;
  font-weight: 600;
}

.slot-payline-grid {
  display: grid;
  grid-template-columns: repeat(4, 14px);
  grid-template-rows: repeat(3, 14px);
  gap: 5px;
}

.slot-payline-cell {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(232, 244, 255, 0.12);
  border: 1px solid rgba(232, 244, 255, 0.16);
}

.slot-payline-cell.is-active {
  background: var(--color-sweden-yellow);
  border-color: var(--color-sweden-yellow);
  box-shadow: 0 0 14px rgba(254, 203, 2, 0.45);
}

.play-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  margin-top: 0;
  background: rgba(10, 18, 31, 0.9);
  border-top: 1px solid rgba(0, 91, 187, 0.65);
  backdrop-filter: blur(16px);
}

.banner-inner {
  width: 100%;
  max-width: none;
  padding: 10px 16px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

@media (min-width: 900px) {
  .slot-topbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slot-grid-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
  }

  .slot-controls-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .slot-stage-status {
    justify-items: start;
    text-align: left;
  }

  .slot-canvas,
  .slot-loading-state {
    min-height: 280px;
  }
}

@media (max-width: 639px) {
  body[data-page-key^="play-"] .page-content {
    padding-bottom: 174px;
  }

  .slot-topbar,
  .slot-hero-card,
  .slot-stage-card,
  .slot-controls-card,
  .slot-results-card,
  .slot-info-card {
    padding: 18px;
    border-radius: 20px;
  }

  .slot-action-row {
    align-items: stretch;
  }

  .slot-spin-button {
    width: 100%;
  }

  .slot-autoplay-row > * {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot-chip,
  .slot-secondary-button,
  .slot-spin-button,
  .slot-number-input {
    transition-duration: 0.01ms !important;
  }
}
