:root {
  --bg: #0f0f0f;
  --fg: #fff;
  --muted: #9a9a9a;
  --card: #161611;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 12px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

h1 {
  margin: 0;
  width: min(70%, 320px);
}

h1 img {
  display: block;
  width: 100%;
  height: auto;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cap the width so the slots' height (3 slots of 5:8, so width = 15/8 of height)
   leaves room for logo, button and footer within the viewport. */
.slots {
  display: flex;
  width: min(100%, max(240px, calc((100dvh - 400px) * 15 / 8)));
  gap: 4px;
}

.slot {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 5 / 8;
  padding: 0;
  border: 0;
  background: var(--card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* no double-tap zoom when tapping rapidly (pinch zoom still works) */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.slot:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pitch {
  margin: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap; /* always one line: the font shrinks with the viewport width */
  font-size: clamp(0.6rem, 3.2vw, 1.05rem);
  line-height: 1.3;
}

.buy {
  padding: 14px 28px;
  border: 2px solid var(--fg);
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.buy:hover, .buy:focus-visible { background: var(--fg); color: var(--bg); }

footer {
  padding: 8px 12px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: var(--muted); }
footer a:hover, footer a:focus-visible { color: var(--fg); }
