@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #0e1022;
  --white: #191c35;
  --fig: #f8efff;
  --ink: #fff3ed;
  --soft: #c6c4de;
  --plum: #a38db8;
  --leaf: #bde8d3;
  --vine: #fbb992;
  --rule: #4c4664;
  --light: #272643;
  --rose: #ff9aab;
  --accent: #ffbb94;
  --serif: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  isolation: isolate;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 92% 6%, #302048 0%, transparent 52%),
    radial-gradient(ellipse at 5% 49%, #182941 0%, transparent 46%),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 760;
  line-height: 1.02;
}
h1 {
  font-size: clamp(3.15rem, 8vw, 7.8rem);
  letter-spacing: -0.061em;
}
h2 {
  font-size: clamp(2.05rem, 4.7vw, 4.25rem);
  letter-spacing: -0.042em;
}
h3 {
  font-size: 1.7rem;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.mast {
  border-bottom: 1px solid var(--rule);
}
.mast .wrap {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font: 600 1.75rem/1 var(--serif);
  letter-spacing: -0.055em;
}
.brandmark {
  width: 30px;
  height: 34px;
  background:
    radial-gradient(circle at 29% 39%, var(--fig) 0 15%, transparent 17%),
    radial-gradient(circle at 64% 40%, var(--fig) 0 16%, transparent 18%),
    radial-gradient(circle at 42% 62%, var(--fig) 0 17%, transparent 19%),
    radial-gradient(circle at 49% 84%, var(--fig) 0 12%, transparent 14%),
    linear-gradient(
        125deg,
        transparent 0 38%,
        var(--leaf) 40% 47%,
        transparent 49%
      )
      65% 0/40% 26% no-repeat;
}
.mast nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lang {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.guideLink {
  font-size: 0.9rem;
}
.homeGrid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 83px);
  padding: clamp(36px, 6vw, 78px) 0;
}
.intro p {
  font-size: clamp(1rem, 1.65vw, 1.24rem);
  max-width: 32em;
  color: var(--soft);
  margin: 24px 0;
}
.intro em {
  color: var(--accent);
  font-style: normal;
  font-weight: 640;
}
.hero-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8d7ff66;
  border-radius: 34px;
  box-shadow: inset 0 1px 1px #ffe1fc55, 0 18px 42px #06081760;
  background:
    radial-gradient(ellipse at 50% 28%, #d693a328, transparent 62%),
    radial-gradient(ellipse at 45% 76%, #47698653, transparent 72%),
    #17182bd2;
}
.heroArt {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.25;
  overflow: hidden;
}
.hero-orbit {
  display: grid;
  place-items: center;
  position: relative;
  width: min(89%, 360px);
  aspect-ratio: 1;
  border: 1px solid #ffddbe66;
  border-radius: 50%;
  transform: rotate(-8deg);
  box-shadow: 0 0 32px #ecc8ff34, inset 0 0 28px #f9bfde1b;
}
.hero-orbit::before, .hero-orbit::after {
  content: "✦";
  position: absolute;
  color: #ffd4a3;
  line-height: 1;
  font-size: clamp(1.45rem, 4vw, 3rem);
}
.hero-orbit::before { inset: 10% auto auto 5%; }
.hero-orbit::after { inset: auto 4% 8% auto; }
.hero-grapes {
  position: relative;
  width: 82%;
  padding-top: 16%;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  transform: rotate(8deg);
  filter: drop-shadow(0 14px 15px #081024a0);
}
.hero-vine {
  position: absolute;
  left: 50%;
  top: -2%;
  z-index: 2;
  width: 79%;
  transform: translateX(-50%);
  filter: drop-shadow(1px 3px 2px #0c1828);
}
.hero-vine svg, .grape-stem svg { display: block; width: 100%; }
.hero-grapes i {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 1;
  border-radius: 48% 52% 49% 51%;
  background: radial-gradient(circle at 30% 23%, #ffb8ba 2%, #e87785 17%, #9b324e 52%, #521f4b 76%, #371c3e 100%);
  box-shadow: inset -2px -3px 3px #1e1b3655, inset 1px 1px 3px #ffddd17c;
}
.hero-grapes i:nth-of-type(n + 5) { margin-top: -15%; }
.hero-grapes i:nth-of-type(5), .hero-grapes i:nth-of-type(8) { grid-column: 2 / span 2; }
.hero-grapes i:nth-of-type(11) { grid-column: 3 / span 2; }
.hero-grapes i:nth-of-type(3n), .hero-grapes i:nth-of-type(3n + 4) {
  background: radial-gradient(circle at 29% 23%, #e6ffc4 2%, #b4e492 15%, #609875 51%, #326451 75%, #173b3c 100%);
}
.homeActions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.primary,
.secondary,
.textbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.25;
  font-weight: 650;
  text-decoration: none;
}
.primary,
.secondary {
  padding: 13px 22px;
  min-height: 46px;
  border-radius: 40px;
  border: 1px solid var(--plum);
}
.primary {
  border-color: var(--accent);
  background: linear-gradient(100deg,#ffd494,#ffa590 60%,#ff8db5);
  color: #24152f;
  box-shadow: 0 5px 22px #ff9a9a48, inset 0 1px 2px #fff5d8;
  font-weight: 800;
}
.primary:hover {
  background: #ffd7aa;
}
.homeActions .primary,
.flow .primary {
  width: 100%;
  min-height: 51px;
  border-radius: 15px;
}
.secondary {
  background: transparent;
}
.secondary:hover,
.pill:hover {
  background: var(--light);
}
.textbtn {
  border: 0;
  background: none;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.arrow {
  font-size: 1.2em;
}
.clockstrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 16px);
  padding: 12px clamp(12px, 3vw, 24px) 16px;
  border-top: 1px solid #f3daf548;
  background: #1a1834b5;
  color: var(--soft);
  font-weight: 650;
  font-size: clamp(.76rem, 1.85vw, .96rem);
}
.clockstrip time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 750;
}
.reading {
  max-width: 800px;
  margin: 72px auto;
}
.reading h2 {
  margin-bottom: 22px;
}
.reading h3 {
  margin: 28px 0 10px;
}
.reading p {
  color: var(--soft);
  margin: 0 0 12px;
  max-width: 66ch;
}
.reading details {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
}
.reading summary {
  cursor: pointer;
  font-weight: 650;
}
.reading details p {
  margin: 10px 0 0;
}
.reading a {
  color: var(--leaf);
}
footer {
  margin: 55px 0 25px;
  border-top: 1px solid var(--rule);
  padding: 19px 0;
  font-size: 0.83rem;
}
.site-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 4vw, 40px);
}
.footer-heading {
  color: var(--ink);
  font-weight: 750;
  margin-bottom: 8px;
}
.site-footer-columns ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.site-footer-columns a {
  color: var(--soft);
  overflow-wrap: anywhere;
}
.site-footer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 20px;
}
.reading [id] {
  scroll-margin-top: 24px;
}
[data-home-copy] > section + section {
  margin-top: clamp(44px, 7vw, 74px);
}
.reading li + li {
  margin-top: 9px;
}
.reading li,
.reading-links {
  color: var(--soft);
}
.information-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  margin-bottom: 24px;
}
.information-page,
.site-footer-columns {
  overflow-wrap: anywhere;
}
.flow {
  width: min(680px, 100%);
  margin: clamp(30px, 6vw, 72px) auto;
}
.flow h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
}
.flow h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.flow header {
  margin-bottom: 24px;
}
.flow header p,
.hint,
.muted {
  color: var(--soft);
}
.flow header p {
  margin-top: 12px;
  max-width: 52ch;
}
.back {
  color: var(--leaf);
  border: 0;
  background: transparent;
  padding: 0 0 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flow label.field {
  display: block;
  font-weight: 650;
  margin: 19px 0;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #a8a28e;
  background: var(--white);
  border-radius: 10px;
  padding: 12px;
}
.field textarea {
  min-height: 106px;
  resize: vertical;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row input {
  min-width: 0;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 17px 0;
}
.pill {
  border: 1px solid #aaa28e;
  background: #171729cc;
  border-radius: 25px;
  padding: 10px 16px;
}
.pill[aria-pressed="true"] {
  background: var(--vine);
  color: #29162f;
  border-color: var(--leaf);
  box-shadow: inset 0 0 0 1px var(--leaf);
}
.flow .actions {
  margin: 20px 0;
}
.status {
  min-height: 1.5em;
  display: block;
  color: #ffb2bf;
  margin-top: 10px;
}
.score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}
.score strong {
  font: 500 2.05rem var(--serif);
}
.grape-bunch {
  --grape-outline: #7f87ab;
  --grape-focus: #ffcf96;
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0 2px;
  width: min(100%, 23rem);
  margin: 11px auto 23px;
  padding-top: 3.05rem;
}
.grape-stem {
  position: absolute;
  z-index: 1;
  top: -13px;
  left: 50%;
  width: min(63%, 222px);
  transform: translateX(-50%);
  filter: drop-shadow(1px 3px 3px #0c1328);
  pointer-events: none;
}
.grape {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  aspect-ratio: 1.06;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--grape-outline);
  border-radius: 52% 47% 54% 46% / 47% 52% 48% 53%;
  background: radial-gradient(ellipse at 24% 16%, #fff8ff90, #c4ccfc52 14%, #6286b235 32%, #181e3561 69%,#837ca258 100%);
  box-shadow: inset 0 1px 1px #f3e7ff9b, inset -4px -5px 9px #101527c0, 0 7px 13px #0a102480;
  line-height: 1.08;
}
.grape:nth-child(2n) {
  border-radius: 46% 54% 44% 54% / 52% 45% 55% 46%;
}
.grape:nth-child(n + 6) { margin-top: -9px; }
.grape:nth-child(6), .grape:nth-child(9) { grid-column: 2 / span 2; }
.grape:nth-child(12) {
  grid-column: 3 / span 2;
}
.grape b {
  font: 700 clamp(.84rem, 3.45vw, 1.14rem)/1 var(--serif);
}
.grape::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 21%;
  width: 26%;
  height: 10%;
  border-radius: 50%;
  transform: rotate(-32deg);
  background: #fff4ed62;
  filter: blur(.65px);
  pointer-events: none;
}
.grape-byline {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.67rem, 2.48vw, 0.79rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grape-kind {
  position: absolute;
  top: 13%;
  right: 16%;
  font-size: 0.68rem;
}
.grape-luck,
.grape-love {
  color: #fff9ed;
  border-color: var(--berry-stroke);
  background: radial-gradient(ellipse at 30% 19%, var(--berry-shine), var(--berry-fill) 37%, var(--berry-shadow) 76%);
  box-shadow: inset 0 1px 0 #f8dbf082, inset -4px -6px 11px #1212289b, 0 9px 12px #080a1baa;
  text-shadow: 0 1px 3px #14151d;
}
.grape-luck {
  --berry-shine: #b5da92;
  --berry-fill: #5b9a65;
  --berry-shadow: #204333;
  --berry-stroke: #79a77c;
}
.grape-love {
  --berry-shine: #ffc8c4;
  --berry-fill: #be5b7d;
  --berry-shadow: #5d2548;
  --berry-stroke: #cf7d89;
}
.grape[aria-pressed="true"],
.grape-current {
  z-index: 1;
  outline: 2px solid var(--grape-focus);
  outline-offset: 2px;
}
.grape[aria-pressed="true"] {
  background: radial-gradient(ellipse at 40% 28%, #7b668e, #2d294a 73%);
}
button.grape:hover {
  border-color: var(--grape-focus);
}
.grape-bunch-chimes {
  width: min(100%, 15.5rem);
  margin-block: 10px 17px;
}
.grape-bunch-chimes .grape b {
  font-size: clamp(0.95rem, 3.8vw, 1.19rem);
}
.grape-current:disabled {
  cursor: default;
  opacity: 1;
}
.grape-revealed {
  outline-style: dashed;
}
.tile,
.portrait,
.reward,
.playcard {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 33px);
  margin: 20px 0;
}
.portrait {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--plum);
  color: white;
}
.portrait:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  width: 24%;
  height: 100%;
  opacity: 0.25;
  background: repeating-conic-gradient(
    from 15deg at 100% 0%,
    transparent 0 11deg,
    #efdc94 12deg 13deg,
    transparent 14deg 25deg
  );
}
.portrait p {
  max-width: 72%;
  margin-top: 9px;
}
.facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.facts li {
  font-size: 0.82rem;
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 20px;
}
.sharepreview {
  display: block;
  max-width: 100%;
  width: 250px;
  margin: 12px auto;
  border: 1px solid var(--rule);
  border-radius: 9px;
}
.reward {
  background: var(--light);
  text-align: center;
}
.scratch {
  position: relative;
  display: grid;
  place-content: center;
  max-width: 360px;
  height: 150px;
  background: #34213b;
  margin: 18px auto;
  border-radius: 12px;
  overflow: hidden;
}
.scratch strong {
  font: 2rem var(--serif);
}
.scratch canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.wishlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wishlist li {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.wishlist strong,
.wishlist blockquote {
  display: block;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.wishlist button {
  font-size: 0.85rem;
}
.playcard {
  text-align: center;
  background: var(--light);
}
.chime-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: -8px 0 4px;
}
.chime-tools .textbtn {
  min-height: 44px;
  font-size: 0.88rem;
}
.chime-count {
  color: var(--soft);
  font-size: 0.82rem;
}
#ringtext {
  max-width: 40ch;
  margin: 10px auto;
  overflow-wrap: anywhere;
}
#chime-sender {
  display: block;
  color: var(--soft);
}
.mast, main, .site-bottom { position: relative; z-index: 1; }
.celebration-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 7%, #eac8ff55 1px, transparent 2px),
    radial-gradient(circle at 36% 38%, #d5dfff58 1px, transparent 2px),
    radial-gradient(circle at 81% 12%, #ffc89b72 1px, transparent 2px),
    radial-gradient(circle at 69% 75%, #d4e9ff64 1px, transparent 2px),
    radial-gradient(circle at 94% 64%, #f4bbff65 1px, transparent 2px);
}
.celebration-sky canvas { display: block; width: 100%; height: 100%; }
.clockstrip time {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 2vw, 21px);
  text-align: center;
}
.clockstrip time span { display: grid; }
.clockstrip time strong {
  font: 720 clamp(1.42rem, 4.3vw, 2.8rem)/1 var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.clockstrip time small { color: var(--soft); margin-top: 3px; }
.live-counts { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 18px; color: var(--soft); font-size: .9rem; }
.live-counts strong { color: var(--ink); }
.live-label { color: var(--leaf); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.live-label::before { content: ""; display: inline-block; width: .45em; height: .45em; border-radius: 50%; background: currentColor; margin-right: .46em; vertical-align: .15em; }
.new-grapes { display: grid; gap: .25em; margin-block: 13px; padding: 12px 15px; background: #29483880; border: 1px solid #85bb9a88; border-radius: 12px; }
.new-grapes strong { color: var(--leaf); }
.new-grapes span { color: var(--soft); }
.beat-track { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 7px 0 11px; padding: 0; }
.beat-track li { min-height: 8px; border-radius: 5px; border: 1px solid #c9bdf86b; background: #413955; }
.beat-track [data-outcome="caught"] { background: #bce9ab; border-color: #bce9ab; }
.beat-track [data-outcome="missed"] { background: #f087a0; border-color: #f087a0; }
.beat-track [data-outcome="active"] { background: var(--accent); border-color: var(--accent); }
.beat-tally { display: flex; justify-content: space-between; color: var(--soft); font-variant-numeric: tabular-nums; }
.beat-tally span:first-child { color: #c1efa7; }
.beat-tally span:last-child { color: #ffb2c4; }
.beat-stage { display: grid; place-items: center; min-height: 246px; padding: 0; }
.beat-countdown { font: 800 clamp(7rem, 34vw, 11rem)/1 var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
body[data-scene="chimes"] .mast,
body[data-scene="chimes"] .site-bottom { display: none; }
body[data-scene="chimes"] main { min-height: 100svh; display: grid; align-items: center; }
body[data-scene="chimes"] .flow { width: min(100%, 570px); margin: 0 auto; padding-block: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-bottom)); }
body[data-scene="chimes"] .playcard {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: clamp(13px,4vw,28px);
  background: linear-gradient(147deg,#251d3ad1,#151c34c9);
  border: 1px solid #cdadf16b;
  border-radius: 21px;
  box-shadow: inset 0 1px 1px #f4d8fa3f, 0 19px 44px #0a0d2280;
}
.chime-tools { position: relative; gap: 8px; font-size: .88rem; color: #ebdafa; }
.chime-tools .textbtn { padding-block: 6px; }
.chime-count {
  margin: 2px 0 9px;
  font: 800 clamp(3.55rem, 15vw, 6.35rem)/.96 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
  color: #fff2e7;
  text-shadow: 0 0 30px #fca8ac70;
}
.chime-pulse {
  position: absolute;
  z-index: -1;
  inset: -40% -8%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 40%, #ffbb8e70, #f591be2e 24%, transparent 59%);
}
.wish-toast {
  margin: 14px 0 3px;
  min-height: 75px;
  display: grid;
  align-content: center;
  padding: 9px 12px;
  border: 1px solid #e9b7e14f;
  border-radius: 12px;
  background: #312944bd;
  color: #fcf1f7;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.wish-toast #chime-sender { color: #ffd1b8; font-size: .84rem; }
.grape-current { z-index: 2; box-shadow: 0 0 22px #ffcb967e, inset 0 1px 2px #fff5da; animation: grape-pulse 1s ease-in-out infinite alternate; }
.grape-current .grape-tap { color: #fff0be; font-weight: 800; text-transform: uppercase; line-height: 1; font-size: .68rem; }
.grape-current[aria-disabled="true"] { outline-color: #b8ebaa; animation: none; }
.grape-caught .grape-mark { color: #d9ffba; }
.grape-missed { border-style: dashed; filter: saturate(.5); }
.grape-missed .grape-mark { color: #ffb4ce; }
.grape-mark { display: block; font-size: .74rem; font-weight: 800; }
@keyframes grape-pulse { to { box-shadow: 0 0 28px 5px #ffd4a3af, inset 0 1px 3px #fff7de; } }
body[data-scene="results"] .portrait {
  padding: clamp(13px, 4vw, 26px) 0;
  background: none;
  border: none;
}
body[data-scene="results"] .portrait::after { display: none; }
body[data-scene="results"] .portrait h2 {
  font-size: clamp(3rem, 12vw, 6.8rem);
  font-weight: 800;
  line-height: .99;
  background: linear-gradient(105deg, #ffdf9b 12%, #ff9ab5 57%, #bea2ff 92%);
  background-clip: text;
  color: transparent;
}
body[data-scene="results"] .portrait p { color: #f7dfed; max-width: 38ch; }
.game-result { display: flex; align-items: baseline; gap: 10px; padding: 1px 0 12px; color: var(--soft); }
.game-result strong { font: 760 2.6rem/1 var(--serif); color: var(--accent); }
.result-actions { margin-block: 10px 28px; }
.wish-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.wish-kind { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wish-kind.love { color: #ffabc0; }
.wish-kind.luck { color: #c1efa7; }
.quiet {
  font-size: 0.84rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
dialog {
  width: min(450px, calc(100% - 32px));
  max-height: 86dvh;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper);
  padding: 24px;
  color: var(--ink);
}
dialog::backdrop {
  background: #21182588;
}
dialog h2 {
  font-size: 2.2rem;
}
dialog .actions {
  margin-top: 16px;
}
dialog input {
  max-width: 100%;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.danger {
  color: #ffb2bf;
}
.site-bottom {
  margin-top: 36px;
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .mast .wrap {
    height: 58px;
  }
  .mast nav {
    gap: 10px;
  }
  .brand {
    font-size: 1.45rem;
    gap: 5px;
  }
  .brandmark {
    width: 25px;
    height: 29px;
  }
  .guideLink {
    display: none;
  }
  .homeGrid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0 25px;
  }
  .intro p {
    margin: 14px 0 17px;
  }
  .intro h1 {
    font-size: clamp(3.2rem, 12vw, 4.9rem);
    line-height: 0.97;
  }
  .hero-card { border-radius: 24px; }
  .heroArt { height: clamp(186px, 54vw, 280px); aspect-ratio: auto; }
  .hero-orbit { width: min(69%, 207px); }
  .homeActions {
    gap: 14px;
  }
  .homeActions .primary {
    padding-inline: 16px;
  }
  .reading {
    margin: 42px auto;
  }
  .flow {
    margin: 28px auto;
  }
  .flow .actions {
    gap: 8px;
  }
  .midnight .flow h1 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }
  .midnight .flow [data-action="play"],
  .midnight .flow [data-action="results"] {
    padding-inline: 12px;
  }
  .portrait p {
    max-width: 85%;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .actions .primary,
  .actions .secondary {
    padding: 12px 15px;
  }
  .site-bottom {
    margin-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .grape-current { animation: none; }
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
}

/* Optional checkout and paid bunch accents */
.purchase-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; margin-block: 1.5rem; }
.purchase-items article, .purchase-offers > div {
  border: 1px solid #a393715a; border-radius: 1rem; padding: 1rem; background: #18172adb;
}
.purchase-items h2 { margin: 0 0 .35rem; font-size: 1.23rem; }
.purchase-items strong, .upgrade-choice b { color: #ffdf99; white-space: nowrap; }
.purchase-items p { margin: .5rem 0 0; }
.upgrade-details { border: 1px solid #a3937170; border-radius: 1rem; background: #19172a; padding: .8rem; margin-block: .8rem; }
.upgrade-details .upgrade-title { color: #ffdf99; padding: .1rem .2rem; margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; }
.upgrade-details [hidden] { display: none; }
.upgrade-choices { border: 0; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; min-width: 0; }
.upgrade-choice {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: .45rem;
  border: 1px solid #a393715a; border-radius: .75rem; padding: .64rem; cursor: pointer;
}
.upgrade-choice:has(input:checked) { border-color: #ffcf8b; background: #34263b; }
.upgrade-choice input { margin: .18rem 0 0; accent-color: #ffcf8b; }
.upgrade-choice small, .purchase-offers small { display: block; margin-block-start: .24rem; color: #ded0eb; line-height: 1.45; }
.upgrade-choice b { font-size: .86rem; }
.purchase-offers { display: grid; gap: .6rem; margin-block: 1.1rem; }
.purchase-offers p { margin: 0 0 .55rem; }
.purchase-offers button { white-space: normal; }
.split-bunch h2 { text-align: center; margin: .65rem 0 .85rem; font-size: 1.07rem; color: #e0d4ed; }
.split-bunch + .split-bunch { margin-block-start: 1.55rem; }
.golden-bunch #flow { box-shadow: 0 0 32px #d69b393c, inset 0 0 20px #c0843026; }
.golden-bunch .score strong, .golden-bunch #flow h1 { color: #ffdf99; }
.golden-bunch .grape, .grape-upgrade-gold, .grape-upgrade-champagne {
  color: #fff8df;
  border-color: #ffdf97;
  background: radial-gradient(ellipse at 29% 18%, #fff7bc, #bd8128 37%, #4c2b21 77%);
  box-shadow: inset 0 1px 1px #fff1b6, inset -3px -4px 7px #4d261da0, 0 0 14px #f7c3668c;
  text-shadow: 0 1px 4px #251419;
}
.grape-upgrade-fireworks { border-color: #ffd9a1; box-shadow: 0 0 16px #fca4dda0, inset 0 0 9px #feeac38c; }
.grape-upgrade-champagne::after {
  content: "◌"; position: absolute; left: 12%; bottom: 13%; color: #fff2b8; pointer-events: none;
}
.premium-moment {
  position: fixed; inset: 0; z-index: 12; display: grid; place-content: center; gap: .2em;
  text-align: center; pointer-events: none; color: #fff4cc;
  font: 700 clamp(2.15rem,9vw,6.5rem)/1.1 var(--serif); padding: 1rem;
  text-shadow: 0 0 .32em #8b3b19, 0 0 1em #ffbd6a;
  background: radial-gradient(circle at center, #d59a4b42, transparent 68%);
  animation: midnight-glow 1.25s ease-out both;
}
.premium-moment-fireworks, .premium-moment-finale {
  background:
    repeating-conic-gradient(from 25deg at 19% 30%, #ffc97280 0deg 1deg, transparent 1deg 13deg),
    repeating-conic-gradient(from 6deg at 84% 27%, #eca4f285 0deg 1deg, transparent 1deg 17deg),
    repeating-conic-gradient(from 44deg at 71% 78%, #8ef3db85 0deg 1deg, transparent 1deg 20deg),
    radial-gradient(ellipse at center, #3d234dbf, #100d26ee 75%);
  animation-duration: 2.15s;
}
.premium-moment-fireworks strong { overflow-wrap: anywhere; }
.premium-spark { display: block; }
.premium-moment-champagne .premium-spark { animation: champagne-rise 1.25s ease-out both; }
.premium-moment-finale { animation-duration: 1.25s; }
@keyframes midnight-glow { 0% { opacity: 0; } 18%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes champagne-rise { from { transform: translateY(1.1em) scale(.7); } to { transform: translateY(-.75em) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  .premium-moment, .premium-moment-champagne .premium-spark { animation: none; }
}
