:root {
  --brand: #ff5e00;
  --brand-rgb: 255, 94, 0;
  --soft-white: #f2f2f7;
  --surface: #111318;
  --surface-elevated: #1a1d24;
  --border: rgba(var(--brand-rgb), 0.35);
  --text-muted: #9aa3b2;
  --win: #2ecc71;
  --lose: #e74c3c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(var(--brand-rgb), 0.12), transparent 42%),
    linear-gradient(180deg, #0a0b0f 0%, var(--surface) 100%);
  color: var(--soft-white);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}

h1 {
  margin: 0;
  padding: 0 1rem 1.5rem;
  text-align: center;
  font-family: "Play", "Rajdhani", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-shadow: 0 0 24px rgba(var(--brand-rgb), 0.35);
}

.carousel {
  max-width: 920px;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
}

.carousel .drum {
  position: relative;
  width: min(28vw, 220px);
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface-elevated);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(var(--brand-rgb), 0.08);
}

.carousel .drum .drum-wrap {
  position: relative;
  top: 0;
  transition: top 0s ease-in-out;
  display: flex;
  flex-direction: column;
  background: #0f1116;
}

.carousel .drum .drum-wrap .field {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
  color: var(--soft-white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%, rgba(0, 0, 0, 0.18)),
    #12151c;
}

.carousel .drum .drum-wrap .field i {
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.play {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.play h4 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.play button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 220px;
  padding: 1rem 2.5rem;
  background: var(--brand);
  color: #111;
  font-family: "Play", "Rajdhani", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  box-shadow: 0 10px 28px rgba(var(--brand-rgb), 0.28);
}

.play button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(var(--brand-rgb), 0.36);
}

.play button:active {
  transform: translateY(0);
}

.play button.is-win {
  background: var(--win);
  box-shadow: 0 10px 28px rgba(46, 204, 113, 0.28);
}

.play button.is-lose {
  background: var(--lose);
  color: #fff;
  box-shadow: 0 10px 28px rgba(231, 76, 60, 0.28);
}

.play button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.play button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.game-summary {
  min-height: 2.5rem;
  padding: 0.75rem 1.25rem 0;
}

.game-summary p {
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-white);
}

.game-summary p.result:empty {
  display: none;
}

span {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 720px) {
  .carousel {
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .carousel .drum,
  .carousel .drum .drum-wrap .field {
    height: 150px;
  }
}
