:root {
  --paper: #f3ecdf;
  --card: #fffdf8;
  --ink: #1a2332;
  --muted: #4a5568;
  --cobalt: #1e3a8a;
  --cobalt-2: #2747a8;
  --ticket: #ffe56a;
  --line: #e4d8c4;
  --clay: #9a3412;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Figtree", "Segoe UI", sans-serif;
  --header: 76px;
  --shadow: 0 18px 40px rgba(26, 35, 50, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 229, 106, 0.45), transparent 32%),
    var(--paper);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); }
a:hover { color: var(--clay); }
:focus-visible {
  outline: 3px solid var(--ticket);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top-in, .wrap, .ticker-in {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}
.top-in {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--ui);
  font-size: 0.75rem;
  color: var(--muted);
}
.langs {
  display: flex;
  gap: 6px;
  font-family: var(--ui);
}
.langs a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  background: white;
}
.langs a[aria-current="page"] {
  background: var(--ink);
  color: var(--ticket);
  border-color: var(--ink);
}
.cta { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-fill { background: var(--cobalt); color: white; }
.btn-fill:hover { background: var(--ink); color: white; }
.btn-ticket { background: var(--ticket); color: var(--ink); border-color: #efd24a; }
.btn-ticket:hover { background: #fff3a8; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: white; color: var(--ink); }

.ticker {
  background: var(--ink);
  color: var(--ticket);
  overflow: hidden;
  border-bottom: 3px solid var(--ticket);
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 10px 0;
  animation: marquee 36s linear infinite;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 600;
}
.ticker-track span { white-space: nowrap; padding-left: 2.5rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  background:
    linear-gradient(115deg, rgba(255, 229, 106, 0.16) 0 18%, transparent 18%),
    radial-gradient(circle at 92% 0%, #3d5ad4, transparent 36%),
    var(--cobalt);
  color: white;
  padding: 34px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ticket);
}
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ticket);
  box-shadow: 0 0 0 0 rgba(255, 229, 106, 0.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 229, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 229, 106, 0); }
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); color: white; max-width: 16ch; }
.hero p.lead { margin: 0 0 18px; font-size: 1.18rem; max-width: 42ch; color: #f7f4ea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.address {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: rgba(8, 15, 40, 0.28);
  border: 1px solid rgba(255, 229, 106, 0.45);
  border-radius: 16px;
  padding: 10px 12px;
}
.address code {
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--ticket);
  word-break: break-all;
}
.address button, .copy {
  font-family: var(--ui);
  font-weight: 700;
  border: 0;
  background: var(--ticket);
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}

.ticket {
  background: var(--card);
  color: var(--ink);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 100%;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stub {
  background: var(--ticket);
  border-right: 2px dashed var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--ui);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.slide-body { padding: 18px 18px 16px; display: flex; flex-direction: column; }
.slides { display: grid; flex: 1; }
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
}
.slide.is-on { opacity: 1; visibility: visible; }
.slide em {
  font-family: var(--ui);
  font-style: normal;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.slide-title {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 8px 0 0.5rem;
}
.slide p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.slider-ui {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.slider-ui button {
  font-family: var(--ui);
  font-weight: 700;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
}
.dots { display: flex; gap: 6px; margin-left: auto; }
.dots button {
  width: 11px;
  height: 11px;
  min-height: 11px;
  padding: 0;
  border-radius: 50%;
  background: #ddd2c0;
}
.dots button[aria-current="true"] { background: var(--cobalt); }

.crumb-wrap { padding: 18px 0 0; }
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: var(--ui);
  font-size: 0.92rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--muted); }
.crumb a { text-decoration: none; }

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 22px 0 28px;
}
.toc {
  position: sticky;
  top: calc(var(--header) + 12px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.toc strong {
  display: block;
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.toc ol { margin: 0; padding-left: 18px; }
.toc a { text-decoration: none; font-family: var(--ui); font-size: 0.95rem; font-weight: 600; }

article { margin: 0 0 18px; }
.sheet { scroll-margin-top: 124px; }
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 8px;
  box-shadow: var(--shadow);
}
.sheet h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.sheet h3 { font-size: 1.28rem; margin-top: 1.2em; }
.byline {
  font-family: var(--ui);
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: -0.2rem;
}
.figure { margin: 8px 0 18px; }
.figure img { border-radius: 16px; border: 1px solid var(--line); width: 100%; }
.figure figcaption { font-family: var(--ui); font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.steps, .plain { padding-left: 1.15rem; }
.steps li, .plain li { margin: 0.35rem 0; }
.note {
  border-left: 4px solid var(--ticket);
  background: #fff8dc;
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  font-family: var(--ui);
  font-size: 1rem;
}
.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-family: var(--ui); font-size: 0.98rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

.score {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--ink);
  color: white;
  border-radius: 18px;
  padding: 14px;
  margin: 8px 0 14px;
}
.score b {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ticket);
}
.score span { font-family: var(--ui); display: block; }

.event {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.date-badge {
  background: var(--ticket);
  color: var(--ink);
  border-radius: 16px;
  text-align: center;
  padding: 12px 8px;
  font-family: var(--ui);
}
.date-badge b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1; }
details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--ui);
}
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
details p { margin: 8px 0 4px; font-family: var(--serif); font-size: 1.08rem; }

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--muted);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.lang-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.lang-row a { font-family: var(--ui); font-weight: 700; text-decoration: none; }
.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  color: var(--clay);
  font-weight: 800;
}

.dock {
  display: none;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    list-style: none;
    padding: 0 0 6px;
  }
  .toc li { flex: 0 0 auto; }
  .hero-grid, .event { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: none; }
  .langs { display: none; }
  .brand small { display: none; }
}

@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; padding: 8px 0 10px; }
  .brand { flex: 1 1 auto; }
  .cta { width: 100%; }
  .cta .btn { flex: 1; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .stub {
    min-height: 42px;
    border-right: 0;
    border-bottom: 2px dashed var(--ink);
  }
  .stub span { writing-mode: horizontal-tb; transform: none; letter-spacing: 0.12em; }
  .top-in { gap: 8px; }
  .cta .btn { padding: 0 10px; min-height: 42px; font-size: 0.92rem; }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    z-index: 40;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(26, 35, 50, 0.16);
  }
  body { padding-bottom: 84px; }
  .sheet { padding: 16px 14px 6px; }
}

@media (max-width: 390px) {
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 0.98rem; }
  .cta .btn { font-size: 0.82rem; padding: 0 9px; }
  .top-in, .wrap { width: min(1120px, calc(100% - 16px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .pulse { animation: none; }
  .slide { transition: none; }
}
