:root {
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #111;
  --final: #87a94b;
}

* {
  box-sizing: border-box
}

html,
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

header {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  border: none;
}

main {
  flex-grow: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
}

footer {
  max-width: 960px;
  margin: 0 auto;
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  margin-top: 18px;
  padding-top: 12px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  height: 72px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.title {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 58px;
  margin: 12px 0 8px;
  text-align: center;
  letter-spacing: .02em;
}


.reel-area {
  margin: 14px auto 0;
  max-width: 720px;
}

.controls {
  display: block;
  margin-top: auto;
  margin-bottom: 10px;
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: 140px;
}

button#spin-button {
  min-width: 300px;
  display: block;
  opacity: 1.0;
  transition-duration: 200ms;
}

button#spin-button.running {
  opacity: 0.3;
}

.reel-outer {
  position: relative;
  height: 220px;
  margin-top: 8px;
}

.reel-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 0;
  background: transparent;
}

.marker {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  border-top: 2px dashed #e5e7eb;
}

.marker::before,
.marker::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #f1f5f9;
}

.marker::before {
  top: -36px;
}

.marker::after {
  top: 36px;
}

.reel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-140px);
  transition: transform 1.6s cubic-bezier(.22, .61, .36, 1);
}

.cell {
  display: grid;
  place-items: center;
  height: 140px;
  font-size: 96px;
  font-weight: 900;
  color: #111;
  transition: color .12s linear;
}

.muted {
  opacity: .12;
}

.final {
  color: var(--final);
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
  flex-wrap: wrap;
}

.btn {
  font-size: 16px;
  padding: 12px 16px;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--final);
  color: #fff;
  border-color: var(--final);
}



@media (max-width:640px) {
  .logo {
    height: 56px;
  }

  .title {
    font-size: 44px;
  }

  .cell {
    height: 110px;
    font-size: 78px;
  }

  .reel {
    transform: translateY(-110px);
  }

  .reel-outer {
    height: 180px;
  }

  .marker::before {
    top: -28px;
  }

  .marker::after {
    top: 28px;
  }
}