* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-height: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-sans-serif, system-ui, Arial, sans-serif;
  color: #f5f5f5;
  background: radial-gradient(circle at top, var(--to) 0%, var(--from) 45%, #0b0b12 100%);
}

#slot {
  width: min(920px, 100%);
}

#title {
  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
}

#status {
  margin: 0.35rem 0 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

#reels {
  display: flex;
  width: 100%;
  height: calc((3 / 5) * 100vw);
  max-height: calc(90vh - 140px);
  max-width: calc((5 / 3) * (90vh - 140px));
  margin: 0 auto;
  border: 3px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b12;
}

.reel {
  overflow: hidden;
  width: 20%;
  height: 100%;
  position: relative;
  container-type: size;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 33.333%;
  height: 33.333%;
  border-top: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  pointer-events: none;
  z-index: 2;
}

.reel:last-child {
  border-right: 0;
}

.reel > .icons {
  position: relative;
  will-change: transform;
}

.reel > .icons > img {
  width: 100%;
  height: calc(100cqh / 3);
  object-fit: contain;
  display: block;
  margin: 0;
}

#controls {
  margin-top: 0.75rem;
  background-color: rgba(11, 11, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

#credits {
  margin: 0;
  font-weight: 700;
}

#credit-value {
  color: var(--accent);
}

#controls label {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 0.9rem;
}

#controls label input {
  margin-right: 6px;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

#spin {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0b12;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  cursor: pointer;
}

#spin:disabled {
  opacity: 0.6;
  cursor: default;
}
