* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
  color: #000;
  font-family: "Roboto Mono", monospace;
}

/* ---- slot machine ---- */

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.boxes { display: flex; gap: 0.75rem; }

.box {
  padding: 1.25rem;
  background: #000;
}

/* the square hole; height must equal .reel div height for one digit to show */
.window {
  width: 110px;
  height: 110px;
  overflow: hidden;
  background: #fff;
}

.reel div {
  height: 110px;
  font-size: 4.25rem;
  line-height: 110px;
  text-align: center;
}

.spin {
  padding: 0.9rem 1rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.spin:hover { background: #fff; color: #000; }
.spin:disabled { cursor: default; background: #fff; color: #000; opacity: 0.35; }

footer {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-align: center;
}

@media (max-width: 560px) {
  .boxes { gap: 0.4rem; }
  .box { padding: 0.7rem; }
  .window { width: 80px; height: 80px; }
  .reel div { height: 80px; font-size: 3rem; line-height: 80px; }
}

/* ---- oops ---- */

.oops { text-align: center; }
.oops .name { font-size: 4rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1; }
.oops .desc {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.oops a {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.oops a:hover { background: #fff; color: #000; }
