/* ============================================================
   Singh Open 2026 — "Premium Light Editorial"
   Palette discipline: dark green ink + acid-lime jewel accent + white.
   Derived neutrals only (green-tinted). No gradients. Hairlines, not shadows.
   System fonts only (no web-font download) for speed.
   ============================================================ */

:root {
  --green:   #1c3d31;   /* ink + dark anchor surfaces */
  --green-2: #24483a;   /* raised green inside dark anchors */
  --lime:    #d4f05b;   /* jewel accent — CTAs, numerals, thin rules */
  --lime-dk: #bcd63f;   /* lime, slightly deeper (hover/borders on white) */
  --white:   #ffffff;
  --paper:   #f7f9f5;   /* barely-green off-white band */
  --ink:     #17271f;   /* long-form text on white */
  --muted:   #5d6b63;   /* secondary text */
  --line:    #e6ebe4;   /* hairline on white */
  --line-2:  #d7ded4;   /* slightly stronger hairline */
  --line-dk: rgba(255,255,255,.16);   /* hairline on dark */
  --muted-dk: rgba(255,255,255,.66);  /* secondary text on dark */
  --shadow:  0 18px 50px rgba(22,36,29,.08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 760px; }
.section { padding: 96px 0; position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--green); color: #fff; }

/* ---------- Editorial section header ---------- */
.shead { margin-bottom: 44px; max-width: 640px; }
.shead--center { margin-left: auto; margin-right: auto; text-align: center; }
.shead__index {
  display: inline-block;
  font-family: var(--serif);
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  color: var(--green);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--lime);
  margin-bottom: 18px;
}
.shead--light .shead__index { color: var(--lime); }
.shead__eyebrow {
  text-transform: uppercase; letter-spacing: .24em; font-size: .74rem; font-weight: 700;
  color: var(--muted); margin: 0 0 10px;
}
.shead--light .shead__eyebrow { color: var(--muted-dk); }
.shead__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}
.shead--light .shead__title { color: #fff; }
.shead__sub {
  margin: 16px 0 0; max-width: 540px;
  font-family: var(--serif); font-size: 1.14rem; line-height: 1.5; color: var(--muted);
}
.shead--center .shead__sub { margin-left: auto; margin-right: auto; }

.prose { max-width: 640px; font-size: 1.08rem; color: var(--muted); }
.prose--center { margin: 0 auto; text-align: center; }
.prose--sm { font-size: .97rem; margin-top: -24px; margin-bottom: 30px; }
.prose--light { color: rgba(255,255,255,.78); }
.prose strong { color: inherit; }

.placeholder-note { color: #8a968b; font-style: italic; }
.section--dark .placeholder-note { color: var(--muted-dk); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .14s ease, background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--lime { background: var(--lime); color: var(--green); border-color: var(--lime); }
.btn--lime:hover { background: var(--lime-dk); border-color: var(--lime-dk); }

.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }

.btn--dark { background: var(--green); color: #fff; border-color: var(--green); }
.btn--dark:hover { background: var(--green-2); }

/* ---------- Nav (overlays the hero, solidifies on scroll) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav--solid {
  background: rgba(21,42,33,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 28px;
}
.nav__brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.nav__mark { font-family: var(--serif); color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
.nav__est { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.66); font-weight: 600; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 6px; padding: 10px 18px; font-size: .88rem; }

/* ---------- Hero (photo background) ---------- */
.hero {
  position: relative;
  background: var(--green) url("assets/hero-golfer.jpg") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* legibility scrim — deep green on the left, clearing the golfer on the right */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(18,36,29,.94) 0%, rgba(20,42,33,.86) 28%,
    rgba(24,48,38,.5) 52%, rgba(28,61,49,.08) 72%, rgba(28,61,49,0) 86%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 11vh, 120px) 28px;
  min-height: clamp(540px, 80vh, 780px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  text-align: left;
}
.hero__inner > * { max-width: 620px; }
.hero__emblem { margin: 0 0 26px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .26em; font-size: .74rem; font-weight: 700;
  color: var(--lime); margin: 0 0 22px;
}
.hero__eyebrow sup { font-size: .7em; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 22px;
  text-shadow: 0 2px 30px rgba(10,22,17,.5);
}
.hero__title sup { font-size: .38em; top: -.85em; letter-spacing: 0; }
.hero__accent {
  color: var(--lime);
  text-shadow: 0 2px 30px rgba(10,22,17,.45);
}
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: rgba(255,255,255,.9); margin: 0 0 38px;
  text-shadow: 0 1px 18px rgba(10,22,17,.5);
}
.hero__meta {
  display: flex; align-items: stretch; flex-wrap: wrap;
  gap: 0; margin: 0 0 38px; width: 100%;
  border: 1px solid rgba(255,255,255,.24); border-radius: 4px; overflow: hidden;
  background: rgba(18,36,29,.28); backdrop-filter: blur(4px);
}
.hero__meta > span:not(.hero__sep) {
  display: flex; flex-direction: column-reverse; gap: 4px;
  padding: 16px 22px; flex: 1 1 170px;
}
.hero__meta strong { font-family: var(--serif); font-size: 1.04rem; color: #fff; font-weight: 700; }
.hero__meta em {
  font-style: normal; text-transform: uppercase; letter-spacing: .16em;
  font-size: .64rem; font-weight: 700; color: rgba(255,255,255,.66);
}
.hero__sep { width: 1px; background: rgba(255,255,255,.2); flex: 0 0 1px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.hero .btn--outline:hover { background: #fff; color: var(--green); border-color: #fff; }
.hero__note { margin-top: 24px; font-size: .86rem; color: rgba(255,255,255,.78); letter-spacing: .01em; }

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
}
.marquee__row {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 15px 0;
  animation: marquee 34s linear infinite;
}
.marquee__row span {
  text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700;
  color: var(--green);
}
.marquee__row i { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none; }
  .feature__track { scroll-behavior: auto; }
  .feature__bar { transition: none; }
}

/* ---------- About: heritage editorial ---------- */
.heritage {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: center;
}
.heritage__media {
  position: relative; margin: 0; aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line);
}
.heritage__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  /* subtle warmth so the heritage image reads as timeless, without muddying it */
  filter: saturate(.92) contrast(1.02) sepia(.04);
}
/* faint green wash to tie the heritage image to the brand ink */
.heritage__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(28, 61, 49, .16);
}
/* lime "Est. 1967" ribbon */
.heritage__badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--lime); color: var(--green);
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 3px;
}
.heritage__badge em { font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--sans); font-weight: 700; }
/* oversized watermark numeral bleeding off the frame */
.heritage__years {
  position: absolute; right: -10px; bottom: -34px; z-index: 1;
  font-family: var(--serif); font-weight: 700; font-size: 12rem; line-height: .7;
  color: #fff; opacity: .16; letter-spacing: -.04em; pointer-events: none;
}
.heritage__body .shead { margin-bottom: 26px; }
.heritage__lead {
  font-family: var(--serif); font-size: 1.42rem; line-height: 1.5; color: var(--green);
  margin: 0 0 1.1rem;
}
.dropcap {
  float: left; font-family: var(--serif); font-weight: 700; color: var(--green);
  font-size: 4.4rem; line-height: .72; margin: 8px 14px 0 0;
  padding: 0 4px 4px 0; border-bottom: 4px solid var(--lime);
}
.heritage__text { margin: 0 0 30px; color: var(--muted); font-size: 1.06rem; }
.heritage__lead strong, .heritage__text strong { color: var(--green); }
/* stat band: big serif numerals with hairline dividers */
.heritage__stats {
  display: flex; margin: 0 0 26px; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hstat { flex: 1; padding: 0 22px; border-right: 1px solid var(--line); }
.hstat:first-child { padding-left: 0; }
.hstat:last-child { border-right: none; }
.hstat__num { font-family: var(--serif); font-weight: 700; font-size: 2.3rem; color: var(--green); line-height: 1; }
.hstat__num sup { font-size: .42em; color: var(--lime-dk); top: -.9em; }
.hstat__label {
  display: block; margin: 8px 0 0; text-transform: uppercase; letter-spacing: .16em;
  font-size: .66rem; font-weight: 700; color: var(--muted);
}
.heritage__note { margin: 0; font-size: .92rem; }

/* ---------- Event details: a single, focused "Official Card" ---------- */
.event { display: block; }

/* ---------- Event "programme": details set directly on the deep-green field ---------- */
.section--dark .shead__sub { color: var(--muted-dk); }
.ledger { max-width: 1120px; margin: 0 auto; }

/* venue line, centred under the header with a small lime map-pin */
.ledger__venue {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin: 0 0 clamp(34px, 4.5vw, 56px);
  color: var(--muted-dk); font-size: .96rem; letter-spacing: .02em;
}
.ledger__pin {
  flex: 0 0 auto; width: 10px; height: 10px;
  background: var(--lime); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}

/* the four facts as big serif entries under a single lime rule.
   cells fill with the section green; the 1px grid gap draws faint
   hairlines between them, so it reflows cleanly at any width. */
.ledger__grid {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-dk);
  border-top: 2px solid var(--lime);
}
.ldg {
  background: var(--green);
  padding: clamp(24px, 3vw, 40px) clamp(6px, 1.6vw, 28px) clamp(24px, 3vw, 38px);
}
.ldg dt {
  text-transform: uppercase; letter-spacing: .2em; font-size: .66rem; font-weight: 800;
  color: var(--lime); margin-bottom: 16px;
}
.ldg dd {
  margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.04; color: #fff;
}
.ldg dd span {
  display: block; margin-top: 6px;
  font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0;
  font-size: .58em; color: var(--muted-dk);
}

/* entry fee: the conversion moment — an oversized figure paired with the CTA */
.ledger__fee {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 26px 48px; flex-wrap: wrap;
  padding-top: clamp(30px, 4vw, 50px);
}
.ledger__price { display: flex; flex-direction: column; }
.ledger__price-label {
  text-transform: uppercase; letter-spacing: .2em; font-size: .66rem; font-weight: 800;
  color: var(--lime); margin-bottom: 10px;
}
.ledger__price-main {
  font-family: var(--serif); font-weight: 700; line-height: 1; color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 3.7rem); letter-spacing: -.015em;
}
.ledger__price-main em {
  font-style: normal; font-family: var(--sans); font-weight: 800;
  font-size: .26em; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted-dk); margin-left: 12px;
}
.ledger__price-sub { margin-top: 10px; font-size: .92rem; color: var(--muted-dk); }
.ledger__act { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; }
.ledger__deadline { margin: 0; font-size: .85rem; color: var(--muted-dk); }
.ledger__deadline strong { color: #fff; font-weight: 700; }

/* ---------- Why Play — card carousel (three per view) ---------- */
.whyplay { position: relative; }
.whyplay__track {
  list-style: none; margin: 0 0 30px; padding: 4px 2px;
  display: flex; gap: var(--wgap, clamp(18px, 2vw, 30px));
  /* proximity (not mandatory): mandatory re-snaps to card 1 as lazy images load */
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.whyplay__track::-webkit-scrollbar { display: none; }
.wcard {
  scroll-snap-align: start;
  /* three per view: subtract the two gaps between three cards */
  flex: 0 0 calc((100% - 2 * var(--wgap, clamp(18px, 2vw, 30px))) / 3);
  display: flex; flex-direction: column;
}
.wcard__media {
  margin: 0 0 18px; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--line);
}
.wcard__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.wcard:hover .wcard__media img { transform: scale(1.05); }
.wcard__time {
  margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; font-weight: 800;
  color: var(--lime-dk);
}
.wcard__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.12; letter-spacing: -.01em;
  color: var(--green); margin: 0 0 9px;
}
.wcard__desc { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* controls: prev/next, progress, count — on the light section */
.whyplay__foot { display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); }
.whyplay__nav { display: flex; gap: 12px; }
.whyplay__arrow {
  width: 52px; height: 52px; flex: 0 0 52px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: var(--green); font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.whyplay__arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }
.whyplay__arrow:focus-visible { outline: 2px solid var(--lime-dk); outline-offset: 3px; }
.whyplay__arrow:disabled { opacity: .3; cursor: default; background: transparent; border-color: var(--line-2); color: var(--green); }
.whyplay__progress {
  flex: 1 1 auto; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden;
}
.whyplay__bar {
  display: block; height: 100%; width: 100%; background: var(--lime-dk);
  transform: scaleX(.6); transform-origin: left; transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.whyplay__count {
  margin: 0; flex: 0 0 auto;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--green);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.whyplay__count [data-carousel-current] { color: var(--lime-dk); }
.whyplay__count-sep { color: var(--muted); margin: 0 6px; }

/* ---------- Rules — sports-poster blocks ---------- */
.ruleposter {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(178px, auto);
  gap: clamp(12px, 1.4vw, 20px);
}
.rblock {
  position: relative; overflow: hidden; border-radius: 14px;
  padding: clamp(22px, 2.2vw, 32px);
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-2);
}
/* the first rule is the hero block — a 2x2 feature */
.rblock:first-child { grid-column: span 2; grid-row: span 2; }
.rblock__num {
  font-family: var(--serif); font-weight: 700; line-height: .82; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 3.6vw, 3.4rem); color: rgba(28,61,49,.22); margin-bottom: 14px;
}
.rblock:first-child .rblock__num { font-size: clamp(4.6rem, 8vw, 7rem); }
.rblock__title {
  font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--green);
  font-size: clamp(1.12rem, 1.4vw, 1.35rem); margin: 0 0 9px;
}
.rblock:first-child .rblock__title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 14px; }
.rblock__text {
  margin: 0 0 auto; color: var(--muted); font-size: .92rem; line-height: 1.55; max-width: 46ch;
}
.rblock__text strong { color: var(--green); font-weight: 700; }
.rblock:first-child .rblock__text { font-size: 1.06rem; line-height: 1.6; max-width: 40ch; }
.rblock__tag {
  align-self: flex-start; margin-top: 20px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .58rem; font-weight: 800;
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted);
}
/* confirmed = bold dark-green tile with a lime numeral */
.rblock--yes { background: var(--green); border-color: var(--green); color: #fff; }
.rblock--yes .rblock__num { color: var(--lime); }
.rblock--yes .rblock__title { color: #fff; }
.rblock--yes .rblock__text { color: rgba(255,255,255,.82); }
.rblock--yes .rblock__text strong { color: #fff; }
.rblock--yes .rblock__tag { background: var(--lime); border-color: var(--lime); color: var(--green); }


/* ---------- Forms ---------- */
.card {
  background: var(--white); color: var(--ink);
  border-radius: 6px; padding: 36px;
  box-shadow: var(--shadow); margin-top: 40px;
  border: 1px solid var(--line);
}
.fieldset { border: none; padding: 0; margin: 0 0 8px; }
.fieldset legend {
  font-family: var(--serif); font-size: 1.3rem; color: var(--green);
  font-weight: 700; padding: 0; margin-bottom: 16px;
  border-bottom: 1px solid var(--line); width: 100%; padding-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.golfers { display: flex; flex-direction: column; gap: 0; }
.golfer {
  border: 1px solid var(--line); border-radius: 5px;
  padding: 20px 20px 8px; margin-top: 16px; background: var(--paper);
  position: relative;
}
.golfer__title {
  font-family: var(--serif); font-weight: 700; color: var(--green); margin: 0 0 14px; font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px;
}
/* main.js emits <span class="golfer__badge">Golfer N</span> — flat lime tab */
.golfer__badge {
  background: var(--lime); color: var(--green);
  border-radius: 3px; font-family: var(--sans); font-size: .72rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.req { color: var(--lime-dk); }
.field input[type=text],
.field input[type=tel],
.field input[type=email] {
  width: 100%; padding: 13px 15px; font-size: 1rem;
  border: 1px solid var(--line-2); border-radius: 4px; background: var(--white);
  font-family: var(--sans); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(212,240,91,.5);
}
.field input.invalid { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,61,49,.16); }
.hint { font-size: .82rem; color: var(--muted); margin: 7px 0 0; }

/* Diet radios */
.diet { display: flex; gap: 12px; flex-wrap: wrap; }
.diet__opt { flex: 1 1 140px; position: relative; }
.diet__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.diet__opt span {
  display: block; text-align: center; padding: 12px; border: 1px solid var(--line-2);
  border-radius: 4px; font-weight: 600; color: var(--ink); background: var(--white);
  cursor: pointer; font-size: .95rem; transition: border-color .15s, background .15s, color .15s;
}
.diet__opt input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.diet__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212,240,91,.55); }

/* Fee */
.fee {
  margin: 26px 0 8px; text-align: center;
  background: var(--green-2); color: #fff; border-radius: 5px; padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.fee__calc { color: var(--muted-dk); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.fee__total { font-family: var(--serif); font-size: 1.35rem; display: flex; gap: 12px; justify-content: center; align-items: baseline; }
.fee__total strong { color: var(--lime); font-size: 1.9rem; }

.form__error {
  background: var(--paper); border: 1px solid var(--line-2); border-left: 3px solid var(--green);
  color: var(--green); font-weight: 600;
  padding: 13px 16px; border-radius: 4px; margin: 18px 0; font-size: .95rem;
}
.form__note { text-align: center; color: var(--muted); font-size: .84rem; margin: 16px 0 0; }
.form button[disabled] { opacity: .55; cursor: not-allowed; }

/* Confirmation */
.confirmation { text-align: center; border: 1px solid var(--lime); }
.confirmation__check {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--lime); color: var(--green);
  font-size: 1.9rem; font-weight: 800; display: grid; place-items: center;
}
.confirmation h3 { font-family: var(--serif); color: var(--green); font-size: 1.7rem; margin: 0 0 6px; }
.confirmation > p { color: var(--muted); }
.confirmation__grid {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 20px;
  max-width: 380px; margin: 24px auto; text-align: left;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0;
}
.confirmation__grid dt { font-weight: 600; color: var(--muted); font-size: .92rem; }
.confirmation__grid dd { margin: 0; font-weight: 700; color: var(--green); }
.confirmation__grid dd.pending { color: var(--lime-dk); }
#c-id { font-family: var(--serif); color: var(--green); font-weight: 800; background: var(--lime); padding: 1px 8px; border-radius: 3px; }
.confirmation__pay { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }

/* ---------- Payment ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.pay-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.pay-card h3 {
  font-family: var(--serif); color: var(--green); margin: 0; font-size: 1.4rem;
  padding-bottom: 12px; border-bottom: 2px solid var(--lime); width: 100%;
}
.pay-card__qr { width: 220px; height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.pay-card__handle { margin: 0; font-weight: 700; color: var(--green); }
.pay-card__memo { margin: 0; font-size: .84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--green); color: #fff; text-align: center; padding: 68px 28px; }
.footer__title { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 8px; letter-spacing: .01em; }
.footer__accent { color: var(--lime); }
.footer__tagline { font-family: var(--serif); font-style: italic; color: var(--muted-dk); margin: 0 0 18px; }
.footer__email { margin: 0 0 6px; }
.footer__email a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.footer__email a:hover { color: var(--lime); }
.footer__contacts { font-size: .86rem; margin: 18px 0; }
.footer__legal { font-size: .82rem; color: rgba(255,255,255,.5); margin: 20px 0 0; }
.footer__legal a { color: var(--lime); text-decoration: none; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 60;
  background: var(--lime); color: var(--green);
  text-align: center; text-decoration: none; font-weight: 800; letter-spacing: .01em;
  padding: 16px; border-radius: 4px;
  box-shadow: 0 12px 30px rgba(22,36,29,.22);
}

/* ---------- Artwork: emblem, photo frame ---------- */
.hero__emblem {
  width: 120px; height: 120px; margin: 0 0 22px;
  display: block;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .heritage { grid-template-columns: 1fr; gap: 34px; }
  .heritage__media { aspect-ratio: 16 / 10; max-height: 420px; }
  .heritage__years { font-size: 8rem; bottom: -22px; }
  /* poster reflows to 2 columns; hero becomes a full-width banner */
  .ruleposter { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(170px, auto); }
  .rblock:first-child { grid-column: 1 / -1; grid-row: auto; }
  /* carousel shows two cards per view on tablet */
  .wcard { flex-basis: calc((100% - var(--wgap, 24px)) / 2); }
  .whyplay__bar { transform: scaleX(.4); }
  /* event facts reflow to a 2-up grid */
  .ledger__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .section { padding: 62px 0; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  /* poster stacks to a single column on phones */
  .ruleposter { grid-template-columns: 1fr; }
  .hero { background-position: 72% center; }
  .hero::before {
    background: linear-gradient(150deg,
      rgba(18,36,29,.92) 0%, rgba(20,42,33,.82) 45%,
      rgba(24,48,38,.66) 72%, rgba(18,36,29,.72) 100%);
  }
  .hero__inner { padding-top: 84px; padding-bottom: 72px; min-height: clamp(500px, 88vh, 680px); }
  .hero__meta { flex-direction: column; }
  .hero__meta > span:not(.hero__sep) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .hero__meta > span:not(.hero__sep):last-of-type { border-bottom: none; }
  .hero__sep { display: none; }
  /* event facts stack; fee row goes full-width with a block CTA */
  .ledger__fee { flex-direction: column; align-items: stretch; }
  .ledger__act { align-items: stretch; }
  .ledger__act .btn { width: 100%; }
  .ledger__deadline { text-align: center; }
  .heritage__stats { padding: 18px 0; }
  .hstat { padding: 0 12px; }
  .hstat__num { font-size: 1.75rem; }
  .hstat__label { letter-spacing: .1em; font-size: .6rem; }
  .dropcap { font-size: 3.4rem; }
  /* carousel shows one card per view on phones */
  .wcard { flex-basis: 100%; }
  .whyplay__bar { transform: scaleX(.2); }
  .field-row { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .mobile-cta { display: block; }
  .footer { padding-bottom: 92px; }
  .hero__emblem { width: 104px; height: 104px; }
}

/* ============================================================
   Register — launch cover + full-screen conversational flow
   (one question at a time, Typeform-style, same green/lime ink)
   ============================================================ */

/* ---------- Cover card inside the dark register band ---------- */
.reg-cover { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.reg-cover__kicker {
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 800;
  color: var(--muted); margin: 0 0 14px;
}
.reg-cover__amount {
  font-family: var(--serif); font-weight: 700; color: var(--green);
  font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1; letter-spacing: -.02em; margin: 0;
}
.reg-cover__amount span { color: var(--lime-dk); }
.reg-cover__amount em {
  font-family: var(--sans); font-style: normal; font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-left: 8px;
}
.reg-cover__lead { color: var(--muted); max-width: 430px; margin: 18px auto 26px; }
.reg-cover__note { color: var(--muted); font-size: .8rem; margin: 16px 0 0; }

/* ---------- Full-screen overlay ---------- */
html.tf-open, body.tf-open { overflow: hidden; }

.tf {
  position: fixed; inset: 0; z-index: 200;
  background: var(--green); color: #fff;
  display: flex; flex-direction: column;
  font-family: var(--sans);
}
.tf[hidden] { display: none; }

/* Progress bar pinned to the very top edge */
.tf__progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.1); z-index: 2; }
.tf__bar { display: block; height: 100%; width: 0; background: var(--lime); transition: width .45s cubic-bezier(.4,0,.2,1); }

.tf__top {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 54px);
}
.tf__brand { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.tf__brand em { font-style: normal; color: var(--lime); }
.tf__meta { display: flex; align-items: center; gap: 18px; }
.tf__count {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--muted-dk); font-variant-numeric: tabular-nums;
}
.tf__close {
  background: none; border: 1px solid var(--line-dk); color: #fff; border-radius: 3px;
  padding: 7px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s;
}
.tf__close:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

/* Stage holds a single active panel, vertically centered */
.tf__stage { flex: 1 1 auto; position: relative; overflow-y: auto; display: flex; }

.tf-panel {
  margin: auto; width: 100%; max-width: 720px;
  padding: 24px clamp(20px, 5vw, 54px) 44px;
  animation: tfIn .5s cubic-bezier(.2,.7,.2,1) both;
}
.tf-panel.is-back { animation-name: tfInBack; }
@keyframes tfIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tfInBack { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }

/* Lime "step ticket" + section eyebrow */
.tf-panel__idx { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.tf-panel__idx b {
  background: var(--lime); color: var(--green); border-radius: 3px; padding: 3px 9px;
  font-family: var(--sans); font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums;
}
.tf-panel__sep { color: var(--lime); font-weight: 700; }
.tf-panel__grp { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; color: var(--muted-dk); }

.tf-panel__q {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 10px;
}
.tf-panel__help { color: var(--muted-dk); font-size: 1.02rem; margin: 0 0 28px; max-width: 520px; }

/* Underline scorecard-style text input */
.tf-input {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line-dk);
  color: #fff; font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 2rem);
  padding: 8px 2px; caret-color: var(--lime); transition: border-color .18s ease;
}
.tf-input::placeholder { color: rgba(255,255,255,.3); }
.tf-input:focus { outline: none; border-bottom-color: var(--lime); }
.tf-input.is-invalid { border-bottom-color: #ff9d9d; }

/* Choice pills (diet) */
.tf-choices { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.tf-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: rgba(255,255,255,.04); border: 1.5px solid var(--line-dk); border-radius: 6px;
  padding: 16px 18px; color: #fff; font-size: 1.05rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tf-choice:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.tf-choice__key {
  flex: none; width: 26px; height: 26px; border-radius: 4px; border: 1.5px solid var(--line-dk);
  display: grid; place-items: center; font-size: .76rem; font-weight: 800; color: var(--muted-dk);
}
.tf-choice.is-sel { border-color: var(--lime); background: var(--lime); color: var(--green); }
.tf-choice.is-sel .tf-choice__key { border-color: var(--green); color: var(--green); }

/* OK button + Enter hint */
.tf-panel__ok { margin-top: 32px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tf-ok-hint { font-size: .8rem; color: var(--muted-dk); }
.tf-ok-hint b { color: #fff; font-weight: 700; }

/* Footer: inline error + up/down arrows */
.tf__foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 5vw, 54px) 22px;
}
.tf__err { color: #ffcaca; font-size: .9rem; font-weight: 600; min-height: 1.2em; margin: 0; }
.tf__arrows { display: flex; gap: 8px; }
.tf-arrow {
  width: 46px; height: 40px; border-radius: 4px; border: 1px solid var(--line-dk);
  background: rgba(255,255,255,.04); color: #fff; font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center; transition: background .15s, border-color .15s, opacity .15s;
}
.tf-arrow:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.tf-arrow:disabled { opacity: .3; cursor: default; }

/* Review panel */
.tf-review { max-width: 640px; }
.tf-review__list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line-dk); }
.tf-review__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-dk);
}
.tf-review__k { color: var(--muted-dk); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.tf-review__v { font-family: var(--serif); font-size: 1.12rem; text-align: right; }
.tf-review__edit {
  background: none; border: none; color: var(--lime); font-weight: 700; font-size: .74rem;
  cursor: pointer; padding: 0; margin-left: 12px; text-transform: uppercase; letter-spacing: .06em;
}
.tf-review__edit:hover { text-decoration: underline; }
.tf-review__fee {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px;
}
.tf-review__fee span { color: var(--muted-dk); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.tf-review__fee strong { font-family: var(--serif); color: var(--lime); font-size: 1.9rem; }

@media (prefers-reduced-motion: reduce) {
  .tf-panel { animation: none; }
  .tf__bar { transition: none; }
}
@media (max-width: 680px) {
  .tf__top { padding: 16px 20px; }
  .tf-panel { padding: 14px 20px 32px; }
  .tf__foot { padding: 12px 20px 18px; }
  .tf-ok-hint { display: none; }
}
