:root {
  color-scheme: light;
  --ink: #161d3c;
  --muted: #4e5874;
  --blue: #253eec;
  --blue-dark: #172ccc;
  --lime: #e7ff68;
  --paper: #f8f9ff;
  --line: #dce1f3;
  font: 100%/1.55 "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #7750db; outline-offset: 4px; }
.frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -.055em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark::before {
  content: "";
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, transparent 0 4px, var(--lime) 4px 6px) center / 13px 13px no-repeat, var(--blue);
}
nav { display: flex; gap: clamp(14px, 4vw, 34px); }
nav a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9rem; }
nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 470px;
  overflow: hidden;
  border-radius: 26px;
  background: #eef1ff;
  border: 1px solid var(--line);
}
.hero-copy { padding: clamp(32px, 5.2vw, 68px) clamp(24px, 4vw, 52px); align-self: center; }
.eyebrow { color: var(--blue-dark); font-size: .875rem; font-weight: 750; margin-bottom: 18px; }
h1 {
  font-size: clamp(2.4rem, 4.3vw, 3.8rem);
  line-height: .99;
  letter-spacing: -.075em;
  font-weight: 850;
}
h1 em { display: block; font-style: normal; color: var(--blue); }
.intro { max-width: 37ch; margin: 24px 0 23px; color: var(--muted); font-size: 1.04rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 720;
  text-decoration: none;
}
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: var(--ink); border-color: #b4bde4; }
.secondary:hover { background: white; }
.note { color: var(--muted); font-size: .82rem; margin-top: 12px; }

.promo {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 42px clamp(24px, 4vw, 52px);
  background: radial-gradient(ellipse at 84% 0, #6a77ff, transparent 64%), #263cec;
}
.promo::before, .audio-guide::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: -24%;
  transform: rotate(-24deg);
  background: repeating-linear-gradient(90deg, transparent 0 39px, #fff3 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, #fff3 39px 40px);
  mask-image: radial-gradient(ellipse, #000, transparent 80%);
}
.ticket {
  width: 100%;
  max-width: 375px;
  border-radius: 19px;
  background: var(--lime);
  color: #172043;
  transform: rotate(-5deg);
  box-shadow: 12px 18px 0 #131f9e99, 0 22px 44px #111f8370;
}
.ticket-main { padding: 25px 26px 23px; }
.ticket h2 { font-size: 1rem; font-weight: 700; }
.ticket strong {
  display: block;
  margin-top: 8px;
  font: 900 clamp(3.5rem, 7vw, 6.4rem)/.98 "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.075em;
}
.ticket-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 23px;
  border-top: 1px dashed #66732e;
  font-size: .875rem;
  font-weight: 630;
}
.ticket-footer button {
  flex: none;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  padding: 8px 13px;
  font-weight: 700;
}
.ticket-footer button:hover { background: var(--blue-dark); }
.copy-status { position: absolute; bottom: 14px; inset-inline: 12px; text-align: center; color: white; font-size: .875rem; font-weight: 650; }

.section { margin-top: clamp(48px, 6vw, 85px); scroll-margin-top: 20px; }
.audio-guide {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(26px, 4vw, 49px);
  background: radial-gradient(ellipse at 90% 0, #5467ff, transparent 72%), var(--blue-dark);
  color: white;
}
.audio-copy p { max-width: 43ch; margin-top: 13px; color: #f0f2ff; }
.audio-card {
  min-width: 0;
  border-radius: 14px;
  padding: clamp(16px, 2.6vw, 26px);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 7px 8px 0 #101d9b99;
}
.audio-card h3 { margin-bottom: 10px; }
.audio-card audio[controls] { display: block; width: 100%; }
.audio-controls:not([hidden]) { display: flex; align-items: center; gap: 15px; }
#audio-toggle {
  min-width: 6.1rem;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}
#audio-toggle:disabled { opacity: .55; cursor: default; }
#audio-toggle:hover:not(:disabled) { background: var(--blue-dark); }
.audio-track { min-width: 0; flex: 1; }
#audio-progress { display: block; width: 100%; margin: 0; accent-color: var(--blue-dark); cursor: pointer; }
.audio-times { display: flex; justify-content: space-between; gap: 5px; font-size: .875rem; font-variant-numeric: tabular-nums; }
#audio-status:not(:empty) { margin-top: 10px; font-weight: 650; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; letter-spacing: -.055em; }
.section-heading p { max-width: 35ch; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.guide-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.guide-content { padding: 24px 24px 18px; }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.guide-content p, .proof > p { color: var(--muted); margin-top: 5px; }
.tutorial {
  display: block;
  width: calc(100% - 48px);
  aspect-ratio: 4 / 3;
  margin-inline: 24px;
  border-radius: 11px;
  background: #151b39;
  object-fit: contain;
}
details { margin: 0 24px; }
summary { padding: 16px 0; font-weight: 700; color: var(--blue-dark); cursor: pointer; }
ol { padding-left: 1.35em; }
details ol { margin-top: 0; margin-bottom: 20px; }
li + li { margin-top: 8px; }

.access { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: clamp(22px, 4vw, 48px); border-radius: 22px; background: #e8ecff; }
.access-copy { align-self: center; }
.access h2 { max-width: 13ch; }
.access ol { margin: 22px 0 0; }
.proof { padding: 22px; min-width: 0; border-radius: 14px; background: white; }
.file-picker { position: relative; margin-top: 15px; }
#proof-file { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.file-label { border-color: #b4bde4; background: #eef1ff; cursor: pointer; }
.file-label:hover { background: #e4e9ff; }
#proof-file:focus-visible + .file-label { outline: 3px solid #7750db; outline-offset: 4px; }
#proof-name { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
#proof-submit { margin-top: 14px; }
#proof-status:not(:empty) { margin-top: 10px; color: var(--ink); font-weight: 650; }
.site-footer { display: flex; gap: 20px; align-items: baseline; padding: 32px 0; color: var(--muted); font-size: .85rem; }
.site-footer strong { color: var(--ink); }

@media (max-width: 800px) {
  .frame { width: calc(100% - 36px); }
  .hero { min-height: 0; }
  .ticket-main { padding: 20px; }
  .ticket-footer { padding-inline: 15px; }
}
@media (max-width: 660px) {
  .site-header { min-height: 61px; }
  .hero, .audio-guide, .guide-grid, .access { grid-template-columns: 1fr; }
  .hero-copy { padding-inline: 23px; }
  h1 { font-size: clamp(2.5rem, 9.8vw, 3.7rem); }
  .promo { min-height: 270px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .site-footer { display: block; }
  .site-footer p { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
