:root {
  --bg: transparent;
  --fg: #F100FF;
  --muted: #c44dcc;
  --accent: #F100FF;
  --reel: transparent;
  --reel-border: #F100FF;
  --win: #F100FF;
  --btn: transparent;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2.5rem;
  text-align: center;
  color: var(--accent);
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pt;
}

.points > li {
  counter-increment: pt;
  margin-bottom: 2.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #F100FF;
}

.points > li h2::before {
  content: counter(pt) ". ";
  color: var(--muted);
  font-weight: 400;
}

h2 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

p { margin: 0.4rem 0; color: var(--fg); }
.sub { color: var(--muted); font-size: 0.95rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.machine {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: transparent;
  border: 1px solid var(--reel-border);
  border-radius: 8px;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.reel {
  background: var(--reel);
  border: 2px solid var(--reel-border);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  min-height: 7.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reel.spinning {
  border-color: #F100FF;
  box-shadow: inset 0 0 20px rgba(241, 0, 255, 0.15);
}

.reel.hit {
  border-color: var(--win);
  box-shadow: 0 0 12px rgba(125, 206, 160, 0.35);
}

.reel-label {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.reel-value {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  margin: 0.55rem 0;
  word-break: break-all;
  min-height: 2.4em;
  color: #F100FF;
}

.reel-hash {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F100FF;
  word-break: break-all;
  line-height: 1.35;
}

.spin-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: #F100FF;
  background: var(--btn);
  border: 2px solid #F100FF;
  border-radius: 6px;
  cursor: pointer;
}

.spin-btn:hover { background: rgba(241, 0, 255, 0.12); }
.spin-btn:disabled { opacity: 0.55; cursor: wait; }

.stats {
  margin-top: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.stats strong { color: var(--fg); }

.status {
  min-height: 1.4em;
  color: var(--win);
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .reels { grid-template-columns: 1fr; }
}

.rule30 {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #F100FF;
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

.rule30-meta,
.rule30-blurb,
.rule30-status {
  max-width: 56rem;
  margin: 0.75rem auto;
  padding: 0 1.25rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
}

.rule30-blurb {
  font-weight: 700;
  color: var(--accent);
}

.rule30-hash {
  max-width: 56rem;
  margin: 0.35rem auto;
  padding: 0 1.25rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-all;
  white-space: pre-wrap;
  color: #F100FF;
}

.rule30-strip {
  width: 100%;
  margin: 0.5rem 0 1rem;
}

.rule30-viewport {
  position: relative;
  width: 100%;
  height: min(70vh, 720px);
  overflow: auto;
  background: #000;
  border-top: 1px solid #F100FF;
  border-bottom: 1px solid #F100FF;
}

.rule30-spacer {
  width: 1px;
  pointer-events: none;
}

.rule30-canvas {
  position: sticky;
  top: 0;
  left: 0;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  z-index: 1;
}
