/* Magic Gaze, variant D: the things that float.
   The app's own stage is the page: midnight, a violet glow, lavender tiles with a
   gold edge. One type family, the one the app prints its prediction sheet in. */
@font-face { font-family: "EB Garamond"; src: url("../../media-mg/fonts/EBGaramond-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../../media-mg/fonts/EBGaramond-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --midnight: #0b0918;
  --ink: #12101f;
  --violet: #3a1b5c;
  --tile: #ddd6ec;
  --gold: #e3c374;
  --gold-deep: #d8b45a;
  --paper: #f3ecd8;
  --quiet: #bdb4d2;
  --serif: "EB Garamond", Garamond, "Hoefler Text", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }
body { background: var(--midnight); color: var(--paper); font: 400 1.22rem/1.5 var(--serif); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
h1, h2, h3 { font-weight: 500; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }

/* Hero: words left, stage right; on a phone the stage sits straight under the headline. */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 64px); min-height: min(100svh, 920px); padding: 0 0 0 clamp(20px, 5vw, 72px); }
.hero__head { grid-column: 1; grid-row: 1; align-self: end; padding-top: clamp(24px, 6vh, 72px); }
.hero__body { grid-column: 1; grid-row: 2; padding-bottom: clamp(24px, 5vh, 56px); }
.stage { grid-column: 2; grid-row: 1 / span 2; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 500; font-size: 1.25rem; }
.brand img { width: 44px; border-radius: 10px; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); margin-top: clamp(18px, 4vh, 44px); }
.lede { font-size: clamp(1.2rem, 1.7vw, 1.42rem); max-width: 34ch; margin-top: 20px; }
.hero__note { color: var(--quiet); max-width: 38ch; margin-top: 12px; font-size: 1.08rem; }
.hero__soon { color: var(--gold); margin-top: 20px; font-size: 1.08rem; }
.rounds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: 1.08rem; }
.rounds div { display: flex; gap: 6px; }
.rounds button { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #e3c37488; background: transparent; cursor: pointer; }
.rounds button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 500; }
.rounds button:hover { border-color: var(--gold); }
.rounds__deal { text-decoration: underline; text-underline-offset: 3px; border-color: transparent !important; }

/* The stage: the app's starfield, and tiles that rest in a grid until the script moves them. */
/* The fade into the page is a background layer, so it lies under the tiles and never dims one. */
.stage { position: relative; overflow: hidden; min-height: 420px; background: linear-gradient(90deg, var(--midnight) 0, transparent 14%), var(--midnight) url("../../media-mg/art/starfield.webp") center / cover no-repeat; }
.stage__tiles { position: absolute; inset: 14px 8px 8px; display: grid; grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 2), minmax(0, 1fr)); place-items: center; --tile-w: min(15vw, 132px); --tile-h: calc(var(--tile-w) / .5); }
.stage__tiles li { will-change: transform; }
.stage__tiles li[hidden] { display: none; }
.tile { display: grid; place-items: center; width: var(--tile-w); height: var(--tile-h); padding: 0; border-radius: 14px; background: var(--tile); border: 1.2px solid #d8b45a8c; box-shadow: 0 0 8px #00000073, 0 0 14px #d8b45a2e; cursor: pointer; }
.tile img { width: 100%; pointer-events: none; }
.tile.is-named { box-shadow: 0 0 0 2px var(--gold), 0 0 22px #e3c37488; }
/* Without the script, or before it runs: a loose scatter instead of a ruled grid. */
.stage__tiles:not(.is-live) li:nth-child(4n + 1) { transform: translate(8%, -9%); }
.stage__tiles:not(.is-live) li:nth-child(4n + 2) { transform: translate(-6%, 12%); }
.stage__tiles:not(.is-live) li:nth-child(4n + 3) { transform: translate(10%, 4%); }
.stage__tiles:not(.is-live) li:nth-child(4n + 4) { transform: translate(-9%, -6%); }
.stage__name { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center; font-size: 1.5rem; font-weight: 500; color: var(--gold); text-shadow: 0 1px 10px #000; pointer-events: none; min-height: 1.5em; }

/* What happens */
main > section { width: min(100% - 40px, 1040px); margin: 0 auto; padding: clamp(56px, 9vw, 110px) 0 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.6rem; color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 72px); margin-top: clamp(24px, 4vw, 40px); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 20px; align-items: start; counter-increment: step; }
.steps li > div { grid-column: 2; }
.steps .shot { grid-column: 1; border-radius: 14px; border: 1px solid #e3c37444; }
.steps h3::before { content: counter(step) ". "; }
.steps p { margin-top: 8px; max-width: 40ch; }
.steps .aside { color: var(--quiet); font-style: italic; }

/* Packs */
.packs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); margin-top: clamp(20px, 3vw, 32px); }
.pack p { margin-top: 8px; max-width: 40ch; }
.pack__things { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 18px; padding: 10px; border-radius: 14px; background: var(--tile); }
.pack__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.pack__cards img { border-radius: 8px; border: 1px solid #e3c37455; }
.packs__line { margin-top: clamp(28px, 4vw, 44px); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-style: italic; color: var(--gold); }

/* For the performer */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); margin-top: 24px; }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #e3c37433; }
.facts dt { color: var(--gold); }
.facts dd { margin: 0; }
.performer .lede { max-width: 56ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-block; min-height: 48px; padding: 11px 20px; border-radius: 10px; border: 1.5px dashed #e3c37488; color: var(--gold); text-decoration: none; }
.store.is-live { border-style: solid; background: var(--gold); color: var(--ink); font-weight: 500; }
.contact { margin-top: 16px; color: var(--quiet); }

/* Footer and generated pages */
.foot { margin-top: clamp(64px, 10vw, 120px); border-top: 1px solid #f3ecd822; padding: 36px 0 44px; font-size: 1.05rem; color: #cfc4ac; }
.foot__grid { width: min(100% - 40px, 1040px); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot__name { font-weight: 500; color: var(--paper); }
.foot nav ul { display: grid; gap: 6px; }
.foot nav a { display: inline-block; padding: 4px 0; }
.foot__small { width: min(100% - 40px, 1040px); margin: 24px auto 0; font-size: .95rem; color: #9d927b; }
.legal-head { width: min(100% - 40px, 760px); margin: 0 auto; padding: 24px 0 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.legal-head__home { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 500; text-decoration: none; }
.legal-head__home img { width: 40px; border-radius: 9px; }
.legal-head__home span { color: #cfc4ac; font-weight: 400; text-decoration: underline; }
.legal-head nav a[aria-current="page"] { text-decoration: none; }
.sheet.legal { width: min(100% - 32px, 760px); margin: 0 auto; padding: clamp(22px, 4.5vw, 40px); background: var(--paper); color: var(--ink); border-radius: 6px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3rem); margin: 0 0 16px; }
.legal h2 { font-size: 1.5rem; margin: 30px 0 8px; }
.legal p + p { margin-top: 12px; }
.legal a { color: #7b1220; overflow-wrap: anywhere; }
.legal dl { margin: 18px 0; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 20px; }
.legal dt { font-weight: 500; }
.legal dd { margin: 0; }
.legal .gap { background: #e9cf96; padding: 0 7px; border-radius: 3px; font-size: .95em; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; padding: 0; }
  .hero__head { grid-row: 1; }
  .stage { grid-column: 1; grid-row: 2; }
  .hero__body { grid-row: 3; }
  .hero__head, .hero__body { padding-inline: 20px; }
  .hero__head { padding-top: 18px; }
  h1 { margin-top: 12px; font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .stage { height: 54svh; min-height: 340px; margin-top: 16px; }
  .stage { background: linear-gradient(180deg, var(--midnight) 0, transparent 10%, transparent 90%, var(--midnight) 100%), var(--midnight) url("../../media-mg/art/starfield.webp") center / cover no-repeat; }
  .stage__tiles { --tile-w: 17vw; }
  .hero__body { padding-top: 4px; padding-bottom: 8px; }
  .steps, .packs__grid, .facts { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 2026-11-13: the company's logo above its name in the footer. */
.foot__logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.foot__logo img {
  display: block;
  width: auto;
  height: 1.875rem;
}
