@import url('/fonts.css');

/* Vintage stationery palette — parchment ground, dusty blue and oxblood ink,
   drawn from the reference board: paper dolls, betting slips, menu cards. */
:root {
  /* Sampled from CAKEGRAPHIC.png — the vintage frosted wedding cake.
     Its palette is warm, not candy: the icing is salmon-peach, the roses
     coral, the leaves olive, and the "something blue" flowers are a dusty
     grey-teal. Saturated tones name the type; their tints hold the fields. */
  --icing:      #f5ece1;   /* cream icing — the page ground */
  --cream:      #fdf9f3;   /* raised surfaces */
  --paper-3:    #f0e3d5;   /* recessed panels */

  --peach:      #e6b4a0;   /* (legacy) warm peach */
  --peach-tint: #f2d6da;   /* the stripe pink, as a field (from the ticking fabric) */
  --stripe-pink:#eacdd2;   /* the pink band of the stripe */
  --stripe-cream:#f0e2df;  /* the cream band of the stripe */
  --stripe-line:#e1cccc;   /* the fine dark line of the stripe */
  --coral:      #d26e5a;   /* the rose petals */
  --claret:     #141414;   /* was the cake's dark brown — now simply black */

  --butter:     #e0d2a0;   /* rose centres, piped sugar */
  --butter-tint:#f2e9cb;

  --olive:      #8ca050;   /* the leaves */
  --olive-tint: #cdd6b6;

  --teal:       #8caaaa;   /* the blue sugar flowers */
  --teal-tint:  #c6d4d4;

  --ink:        #141414;   /* black, for the logo and every word */
  --ink-soft:   #5f5a55;
  --rule:       #e0cdba;

  /* legacy aliases so every other screen keeps rendering */
  --ivory: var(--icing);
  --blush: var(--peach-tint);
  --ballet: var(--peach-tint);
  --rose: var(--coral);
  --lilac: var(--teal-tint);
  --sky: var(--teal-tint);
  --sage: var(--olive-tint);
  --oxblood: var(--claret);
  --bg: var(--icing);
  --paper: var(--icing);
  --paper-2: var(--cream);
  --card: var(--cream);
  --muted: var(--ink-soft);
  --line: var(--rule);
  --pink: var(--claret);
  --pink-soft: var(--peach-tint);
  --gold: var(--butter);
  --brass: #a8894f;
  --blue: var(--teal-tint);
  --blue-deep: #5f7f7f;
  --good: var(--olive);

  --radius: 0px;          /* nothing is rounded */
  --display: 'Bodoni Moda', Didot, 'Bodoni 72', serif;
  --serif:   'EB Garamond', Baskerville, Georgia, serif;
  --mono:    'Courier Prime', 'Courier New', monospace;
  --script:  'EB Garamond', Georgia, serif;   /* italic serif — body-level emphasis */
  /* The logo hand: drawn calligraphy, for the wordmark and the biggest title
     words only. Set it large, never in caps, never tracked. */
  --logo:    'Meddon', 'Snell Roundhand', 'Apple Chancery', cursive;
  --shadow: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { margin: 0 0 .5rem; font-weight: 650; font-family: var(--display); }
h1 { font-size: 1.9rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
.wrap.narrow { max-width: 520px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Buttons read as printed labels: ruled edges, letterspaced small caps. */
button, .btn {
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--oxblood);
  background: var(--oxblood);
  color: var(--paper-2);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
button:hover:not(:disabled), .btn:hover { background: #3a3a3a; border-color: #3a3a3a; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.ghost, .btn.ghost {
  background: transparent; color: var(--oxblood);
}
button.ghost:hover, .btn.ghost:hover { background: var(--rose); color: var(--oxblood); border-color: var(--oxblood); }
button.plain, .btn.plain {
  background: var(--paper-2); color: var(--ink); border-color: var(--rule);
}
button.plain:hover, .btn.plain:hover { background: var(--paper-3); border-color: var(--ink-soft); color: var(--ink); }
button.small { padding: 7px 12px; font-size: .68rem; letter-spacing: .12em; }
button.wide { width: 100%; }

/* Buttons that carry content rather than a command — game tiles, answer
   options, duel picks — opt back out of the small-caps label treatment. */
.game-tile, .option, .duel-pick, .big-choice button, .art, .swatch {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

input[type=text], input[type=number] {
  font-family: var(--serif);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  width: 100%;
}
input[type=text]:focus, input[type=number]:focus {
  outline: none; border-color: var(--blue-deep);
}

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
}
.tag.bride { background: var(--gold); color: #fff; }
.tag.ok { background: #e2f4ec; color: var(--good); }

/* ---- host layout ---- */
.host-top { display: flex; gap: 20px; align-items: flex-start; }
.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; display: block; border-radius: 10px; }
.code {
  font-family: var(--display);
  font-size: 4rem; font-weight: 400; letter-spacing: .22em;
  color: var(--oxblood); line-height: 1; text-indent: .22em;
}

.player-list { display: flex; flex-wrap: wrap; gap: 10px; }
.player-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 8px 8px 8px 14px; background: var(--paper-2);
}
.player-chip.is-bride { border-color: var(--brass); background: #f7f0df; }
.player-chip.is-mc { border-color: var(--oxblood); background: var(--pink-soft); }
.player-chip.off { opacity: .45; }
.mc-note { margin: 14px 0 0; font-size: .9rem; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.game-tile {
  text-align: center; background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--rule); padding: 24px 18px; border-radius: var(--radius);
  position: relative;
}
.game-tile::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--rule); pointer-events: none; opacity: .6;
}
.game-tile:hover:not(:disabled) { border-color: var(--oxblood); background: var(--paper-2); }
.game-tile strong {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-size: 1.2rem; font-weight: 400;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
}
.game-tile .muted { font-style: italic; font-size: .95rem; line-height: 1.5; }

.prompt {
  font-family: var(--display);
  font-size: 2.6rem; font-weight: 400; line-height: 1.25;
  text-align: center; margin: 16px 0 30px;
}
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.option {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 34px 20px; text-align: center;
  font-family: var(--display); font-size: 1.6rem; font-weight: 400;
  background: var(--paper-2); position: relative;
}
.option::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--rule); pointer-events: none; opacity: .6;
}
.option.win { border-color: var(--oxblood); background: var(--rose); }

.answer-list { display: grid; gap: 8px; }
.answer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff;
}
.answer-row.correct { border-color: var(--good); background: #f1fbf6; }
.answer-row .who { font-weight: 650; min-width: 120px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.art { border: 2px solid var(--line); border-radius: var(--radius); padding: 8px; background: #fff; text-align: center; }
.art.win { border-color: var(--gold); background: #fffaf0; }
.art img { width: 100%; border-radius: 8px; display: block; background: #fff; }

/* ---- head-to-head tournament (host screen) ---- */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.duel .vs { font-size: 1.6rem; font-weight: 800; color: var(--pink); }
.duel-art { transition: opacity .2s, border-color .2s; }
.duel-art.out { opacity: .45; }
.duel-art.bye { display: flex; align-items: center; justify-content: center; }

.bracket-map { display: flex; gap: 18px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.bracket-col { display: grid; gap: 8px; align-content: start; }
.bracket-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.bracket-match { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; font-size: .9rem; min-width: 130px; }
.bracket-match.current { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(217,83,139,.15); }
.bracket-match .won { font-weight: 750; color: var(--pink); }

.champion { display: flex; justify-content: center; }
.champion-art { max-width: 340px; }
.champion-name { font-size: 1.6rem; font-weight: 800; margin: 10px 0 4px; }

/* ---- head-to-head tournament (phone) ---- */
.duel-vote { display: grid; gap: 14px; margin-top: 14px; }
.duel-pick { display: grid; gap: 8px; padding: 10px; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); }
.duel-pick img { width: 100%; border-radius: 8px; display: block; background: #fff; }
.duel-pick span { font-weight: 650; }
.duel-pick.chosen { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(217,83,139,.18); }
.duel-pick.win { border-color: var(--gold); background: #fffaf0; }
.duel-pick:disabled { opacity: .8; }

/* A ruled tally sheet rather than a stack of cards. */
.scoreboard { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.score-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 6px; background: transparent;
  border: none; border-bottom: 1px solid var(--rule); border-radius: 0;
  font-size: 1.05rem;
}
.score-row:first-child { font-family: var(--display); font-size: 1.3rem; }
.score-row .pts {
  font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--oxblood);
}

.bar { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; display: flex; gap: 12px; justify-content: center; }

/* ---- player layout ---- */
.phone { max-width: 520px; margin: 0 auto; padding: 18px; min-height: 100vh; display: flex; flex-direction: column; }
.big-choice { display: grid; gap: 14px; margin-top: 10px; }
.big-choice button { padding: 30px 16px; font-size: 1.25rem; }
.big-choice button.chosen { background: var(--good); border-color: var(--good); }
.status { text-align: center; padding: 30px 10px; }
.wait-dot { font-size: 3rem; }

/* ---- organizer's control panel (phone) ---- */
.tag.mc { background: var(--pink); color: #fff; }
.mc-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.mc-tabs .tab { flex: 1; padding: 9px 6px; font-size: .82rem; }
.mc-row { margin-top: 8px; gap: 8px; }
.mc-row .grow { font-weight: 650; }
.mc-game { display: grid; gap: 4px; text-align: left; margin-top: 10px; }
.mc-game strong { color: var(--pink); font-size: 1.05rem; }
.mc-game .muted { font-size: .88rem; font-weight: 400; }
.mc-game .custom-tag { justify-self: start; }
.mc-quit { margin-top: 12px; color: var(--muted); }
#panel > div > button.wide { margin-top: 14px; }

#pad { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; touch-action: none; display: block; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--pink); }

/* ---- brand marks (shared) ---- */
.mark { font-size: 2.4rem; line-height: 1; }
.mark-sm { font-size: 1.1rem; }

/* The small red "the" that opens the wordmark. Both wordmarks are set in the
   logo hand now, so this only needs to step down in size and change colour. */
.brand-the-inline {
  font-size: .74em;
  text-transform: none;
  letter-spacing: 0;
  color: var(--oxblood);
  margin-right: .06em;
}

/* Phone join screen wordmark. */
.wordmark {
  font-family: var(--logo);
  font-size: clamp(2.1rem, 9.5vw, 2.9rem);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-indent: 0;
  line-height: 1.05;
  margin: 2px 0 0;
}
/* Host header wordmark — sits inline in a toolbar, so it stays restrained. */
.host-brand {
  font-family: var(--logo);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.host-brand:hover { color: var(--oxblood); }
.custom-tag { margin-top: 10px; background: #f3ecdc; color: var(--gold); }

/* ═══════════════════════════════════════════════════ editorial landing
   No pictures at all. Colour does the work photographs used to: every
   section is a flat bridal block, and the type is the only ornament.   */

body.ed { background: var(--ivory); color: var(--ink); overflow-x: hidden; }

/* tiny uppercase typewriter utility text — labels, captions, metadata */
.meta {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------------------------------------------------------- masthead */
.masthead {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.masthead .meta { color: var(--ink); }
.meta-c { text-align: center; }
.meta-link { color: var(--ink); text-decoration: none; }
.meta-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------------------------------------- hero
   A blush field. The wordmark is the whole image.                     */
.hero-ed {
  position: relative;
  background: var(--peach-tint);
  padding: clamp(48px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(52px, 8vw, 104px);
  text-align: center;
}
.hero-type { max-width: 54rem; margin: 0 auto; }

.ed-wordmark {
  font-family: var(--logo);
  font-weight: 400;
  font-size: clamp(2.5rem, 11vw, 9.5rem);
  line-height: .96;
  letter-spacing: normal;
  text-transform: none;
  margin: 0;
  padding-top: .12em;
  color: var(--ink);
}
.ed-wordmark > span { display: block; }
.ed-wordmark-2 { margin-left: .16em; }

.hero-line {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  font-style: normal;
  letter-spacing: .02em;
  /* The script capital-S and the y-swash of "Society" are drawn well below
     the font's line box, so the tagline needs real clearance, scaled with
     the wordmark's size. */
  margin: clamp(30px, 5.5vw, 72px) 0 0;
  color: var(--ink);
}
.hero-sub {
  max-width: 30rem;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.hero-ed .btn.big { margin-top: 30px; }
.hero-meta { display: block; margin-top: 18px; color: var(--ink-soft); }


/* ----------------------------------------------------------- sections */
.ed-section { padding: clamp(50px, 7vw, 100px) clamp(20px, 5vw, 64px); }
.rule-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--oxblood);
  margin-bottom: clamp(34px, 5vw, 60px);
}
.rule-head .meta { color: var(--oxblood); }

/* ---- three steps, side by side under one rule ---- */
.sec-experience { background: var(--ivory); }
.steps-cols {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.step-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1; margin-bottom: 14px;
  color: var(--oxblood);
}
.step-body h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 400; margin: 0 0 10px;
}
.step-body p { margin: 0; line-height: 1.7; }

/* ---- pull quote, on butter ---- */

/* ---- game index, menu style ---- */
.sec-games {
  background: var(--stripe-cream) url("img/stripe-tile.png") repeat;
  background-size: 58px 60px;
}
.sec-games .game-group { background: rgba(253,249,243,.88); padding: clamp(20px,3vw,36px) clamp(16px,2.5vw,32px) 0; }
.sec-games .game-group + .game-group { margin-top: clamp(28px, 4vw, 48px); }
.group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 6px; }
.group-gem { width: 44px; height: auto; flex: none; margin-top: 2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); transform: none; }
.group-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; margin: 0 0 6px; }
.group-note strong { color: var(--ink); font-weight: 600; }
.group-note { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; max-width: 46rem; }
.sec-games .game-index { margin-top: 18px; }
.sec-games .game-row:hover { background: rgba(253,249,243,.6); }
.game-index { border-bottom: 1px solid rgba(20,20,20,.18); }
.game-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 34%) 1fr auto;
  gap: 0 clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 3vw, 32px) 0;
  border-top: 1px solid rgba(20,20,20,.18);
  transition: background .2s;
}
.game-row:hover { background: var(--cream); }
.g-num {
  font-family: var(--display);
  font-size: 1.6rem; line-height: 1.1;
  color: var(--oxblood);
}
.g-title {
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400; line-height: 1.05; margin: 0;
}
.g-desc { margin: 0; line-height: 1.6; max-width: 36rem; }
.g-meta { color: var(--oxblood); text-align: right; padding-top: .4em; max-width: 11rem; line-height: 1.8; }
.soon {
  display: inline-block; margin-top: 8px;
  font-family: inherit; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--oxblood); border: 1px solid currentColor; padding: 4px 8px 3px;
}
.is-soon .g-desc { color: var(--ink-soft); }

/* ---- colophon, the deep note to close on ---- */
.colophon {
  text-align: center;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(70px, 11vw, 150px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
/* vintage rose overlay: multiply drops the pale paper into the cream */
.colophon-flower {
  position: absolute;
  right: clamp(-40px, 1vw, 40px);
  top: 56%;
  transform: translateY(-50%) rotate(-22deg);
  width: clamp(220px, 24vw, 380px);
  max-width: none;
  mix-blend-mode: multiply;
  opacity: .85;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.colophon > :not(.colophon-flower):not(.colophon-gems) { position: relative; z-index: 1; }
.colophon-gems { z-index: 0; }
@media (max-width: 700px) {
  .colophon-flower { width: 260px; right: -70px; top: auto; bottom: -30px; transform: rotate(8deg); opacity: .7; }
}
.colophon .meta { color: var(--ink-soft); }
.colophon h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.02;
  margin: 20px 0 0;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
/* the second line drops into the logo hand, uncapped */
.colophon h2 em {
  font-family: var(--logo);
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.25em;
  color: var(--ink);
  display: inline-block;
  padding-top: .1em;
}
.colophon-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.colophon .btn.big.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.colophon .btn.big.ghost:hover { background: var(--ink); color: var(--cream); }
.colophon-note { display: block; margin-top: 24px; }

.ed-foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px clamp(20px, 5vw, 64px) 40px;
  background: var(--ivory);
}

.btn.big { padding: 15px 30px; font-size: .8rem; letter-spacing: .18em; }

/* ------------------------------------------------------------ narrow */
@media (max-width: 860px) {
  .steps-cols { grid-template-columns: 1fr; }
  .game-row { grid-template-columns: 48px 1fr; }
  .g-desc, .g-meta { grid-column: 2; text-align: left; max-width: none; margin-top: 8px; }
}
@media (max-width: 520px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 6px; }
  .meta-c { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
}


/* ─────────────────────────────────────────── conversion + SEO furniture */

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

.brandmark { font-weight: 700; }

/* ---- join-from-the-front-page form ---- */
.join { margin: 30px auto 0; max-width: 25rem; }
.join-label { display: block; margin-bottom: 8px; color: var(--ink); }
.join-row { display: flex; gap: 8px; }
.join-row input {
  flex: 1;
  font-family: var(--display);
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  padding: 12px 10px;
  border: 1px solid var(--ink);
  background: var(--cream);
}
.join-row input::placeholder { color: #b9aa9c; }
.join-row button { flex: none; padding-inline: 26px; }
.hero-or {
  display: block; margin: 22px 0 0;
  color: var(--ink-soft); font-style: normal;
}

/* ---- at-a-glance numbers ---- */
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}
.stats li {
  padding: 26px 14px; text-align: center;
  border-right: 1px solid var(--rule);
}
.stats li:last-child { border-right: none; }
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 400; line-height: 1;
  margin-bottom: 8px;
}

/* ---- occasions ----
   Three columns, two rows: six items always fill the grid, so there is
   never a leftover blank cell. Numbered like the steps section.         */
.sec-occasions { background: var(--icing); }
.occasions {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(28px, 4vw, 56px); row-gap: 0;
  counter-reset: occ;
}
.occasions li {
  counter-increment: occ;
  padding: clamp(22px, 3vw, 32px) 0;
  border-top: 1px solid rgba(20,20,20,.18);
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
}
.occasions li::before {
  content: counter(occ, decimal-leading-zero);
  font-family: var(--display); font-size: 1.4rem; line-height: 1.25; color: var(--ink);
  grid-row: 1 / span 2;
}
.occasions strong {
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 400; line-height: 1.2;
  text-wrap: balance;
}
.occasions span { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); grid-column: 2; }
@media (max-width: 900px) { .occasions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .occasions { grid-template-columns: 1fr; } .occasions li { padding: 18px 0; } }

/* ---- FAQ: <details> so it works with no JavaScript ---- */
.sec-faq { background: var(--peach-tint); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--display); font-size: 1.5rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0; padding: 0 clamp(0px, 6vw, 90px) 24px 0;
  max-width: 46rem; line-height: 1.75; color: #4b423b;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: none; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ============================================================== customize */

.wrap.narrow-ish { max-width: 720px; }
.page-top { margin-bottom: 28px; }
.crumb { color: var(--muted); text-decoration: none; font-size: .92rem; }
.crumb:hover { color: var(--pink); }
.page-title { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.lede-sm { line-height: 1.55; margin-bottom: 22px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  background: #fff; color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: .9rem; font-weight: 600;
}
.tab.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.tab-count { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

.q-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.q-n {
  flex: none; width: 26px; height: 26px; margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--pink-soft); color: var(--pink);
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.q-fields { flex: 1; display: grid; gap: 10px; }
.q-fields.multi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.q-field { display: grid; gap: 4px; }
.q-label { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.q-del { flex: none; margin-top: 20px; color: var(--muted); }
.q-del:hover { color: var(--pink); border-color: var(--pink); }
.add-row { margin-top: 6px; border-style: dashed; }
.sticky-bar { justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 20px; }

/* ---- phone join ---- */
.join-note { margin-top: 10px; font-style: italic; font-size: .95rem; }
.code-input {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 1.4rem;
  text-align: center;
  margin: 8px 0 16px;
}

@media (max-width: 780px) {
  .host-top { flex-direction: column; }
  .prompt { font-size: 1.5rem; }
  .hero { padding: 24px 0 40px; }
  .cta-row .btn.big { width: 100%; }
}

/* ---- tiers ---- */
.tag.premium-tag { background: var(--oxblood, #5a1a1f); color: #fff; }
.game-tile.locked { opacity: .55; }
.tab.locked { opacity: .7; }
.tab .lock { font-size: .8em; margin-left: 4px; }
.unlock-box { margin-bottom: 18px; }
.unlock-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.unlock-form input { flex: 1 1 180px; max-width: 260px; text-transform: uppercase; }
.locked-note { margin-bottom: 12px; }
.q-row.readonly input { opacity: .8; }
.tier {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--oxblood); color: #fff; padding: 4px 8px 3px;
}
.tier.free { background: transparent; color: var(--oxblood); border: 1px solid currentColor; }

/* ------------------------------------------------------- gem stickers
   Real acrylic craft gems (cut out of the reference photo) scattered
   around the hero wordmark.                                            */
.gem-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-type { position: relative; }
.gem {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: auto;
  transform: translate(-50%, -50%) rotate(var(--r));
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.22));
}
@media (max-width: 640px) {
  .gem { width: calc(var(--s) * .6); }
}


/* ---- theme picker (customize page) ---- */
.theme-box { margin-top: 1rem; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin-top: .8rem; }
.theme-card { border: 1px solid var(--rule); background: var(--cream); padding: .8rem; cursor: pointer; }
.theme-card.on { outline: 2px solid var(--ink); }
.theme-card.locked { cursor: default; }
.theme-name { font-weight: 600; margin: .5rem 0 .2rem; }
.theme-swatch { display: flex; height: 44px; border: 1px solid var(--rule); overflow: hidden; }
.theme-swatch i { flex: 1; }
/* Swatches paint their own theme regardless of the page's current one. */
.theme-swatch[data-theme="classic"] i:nth-child(1) { background: #f5ece1; }
.theme-swatch[data-theme="classic"] i:nth-child(2) { background: #d26e5a; }
.theme-swatch[data-theme="classic"] i:nth-child(3) { background: #8caaaa; }
.theme-swatch i:nth-child(1) { background: var(--icing); }
.theme-swatch i:nth-child(2) { background: var(--coral); }
.theme-swatch i:nth-child(3) { background: var(--teal); }
.theme-unlock { margin-top: .6rem; }
.theme-unlock input { width: 100%; box-sizing: border-box; margin-bottom: .4rem; }

/* ---- premium price card ----
   Sits at the end of the games list. One number, one line, one button. */
.price-card {
  position: relative; overflow: hidden;
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px);
  background: var(--cream); border: 1px solid var(--ink);
  text-align: center;
}
.price-kicker { margin: 0 0 14px; }
.price-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.1;
  margin: 0 auto 18px; max-width: 22ch; text-wrap: balance;
}
.price-title em { font-style: italic; }
.price-amount { margin: 0 0 14px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.price-num { font-family: var(--display); font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; color: var(--ink); }
.price-once { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ink-soft); }
.price-line { margin: 0 auto 24px; max-width: 38rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.price-card .btn.big { background: var(--ink); color: #fff; }
.price-foot { margin: 16px 0 0; color: var(--ink-soft); }
.price-gem { position: absolute; width: 46px; height: auto; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.price-gem-a { left: 6%; top: 18%; transform: rotate(-15deg); }
.price-gem-b { right: 7%; bottom: 16%; transform: rotate(12deg); }
@media (max-width: 640px) { .price-gem { width: 32px; } .price-gem-a { left: 4%; top: 8%; } .price-gem-b { right: 4%; bottom: 6%; } }

/* ---- contact ---- */
.colophon-contact { margin-top: 10px; }
.colophon-contact a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.small-note { font-size: .85rem; margin: 10px 0 0; }
.small-note a { color: inherit; }

/* thank-you page */
.unlock-code-big { font-size: 2rem; font-weight: 700; letter-spacing: .08em; font-family: ui-monospace, Menlo, monospace; margin: .4rem 0; user-select: all; }
.unlock-next { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
