/* Twenty Five Riga — shared styles */

@font-face {
  font-family: "Le Petit Cochon";
  src: url("../fonts/LePetitCochon.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Power Grotesk";
  src: url("../fonts/PowerGrotesk-Regular.woff2") format("woff2");
  font-display: block;
}

:root {
  --blue: #0251ad;
  --blue-deep: #013a7e;
  --blue-ink: #01306a;
  --orange: #ffa712;
  --cream: #fffdf5;
  --cream-2: #f6efd9;

  --display: "Le Petit Cochon", "Chewy", system-ui, sans-serif;
  --text: "Power Grotesk", "Space Grotesk", system-ui, sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3.5rem);
  --step-4: clamp(3rem, 2.2rem + 4vw, 5.5rem);
  --step-5: clamp(4rem, 2.5rem + 8vw, 10rem);

  --wrap: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* soft cross-fade between pages; header and footer stay put */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--blue-ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 12px;
}

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h3 {
  font-family: var(--text);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: var(--step-1); line-height: 1.4; max-width: 46ch; }

/* hand-lettered tilt: JS wraps each letter in .ch */
:is(h1, h2).wobble .ch {
  display: inline-block;
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .45s var(--bounce);
}
:is(h1, h2).wobble:hover .ch { transform: translateY(calc(var(--y, 0) * -1.6)) rotate(calc(var(--r, 0deg) * -1.8)); }
.wobble .wd { display: inline-block; white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  view-transition-name: site-header;
  position: sticky; top: 0; z-index: 50;
  padding-block: .8rem;
  transition: background .3s, box-shadow .3s;
}
.site-header.is-stuck { background: var(--blue); box-shadow: 0 2px 0 rgba(255,253,245,.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: .82;
  text-decoration: none;
  display: inline-block;
}
.brand span { display: block; }
.brand span:nth-child(2) { padding-left: .9em; }

.nav { display: flex; gap: .25rem; align-items: center; }
.nav a {
  text-decoration: none;
  padding: .55rem .9rem;
  border-radius: 999px;
  transition: background .25s, color .25s, transform .35s var(--bounce);
}
.nav a:hover { background: rgba(255,253,245,.14); transform: translateY(-2px) rotate(-2deg); }
.nav a[aria-current="page"] { background: var(--cream); color: var(--blue); }
.nav .btn { margin-left: .5rem; }

.menu-toggle {
  display: none;
  background: var(--cream); color: var(--blue);
  border: 0; border-radius: 999px;
  padding: .6rem 1.1rem;
  font-family: var(--text); font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 940px) {
  .menu-toggle { display: inline-block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: .4rem;
    background: var(--orange);
    clip-path: circle(0% at calc(100% - 3.5rem) 2.2rem);
    transition: clip-path .6s cubic-bezier(.7,0,.2,1);
    visibility: hidden;
  }
  .nav a { font-family: var(--text); font-size: var(--step-2); color: var(--blue-ink); padding: .3rem 1.2rem; }
  .nav a[aria-current="page"] { background: var(--blue); color: var(--cream); }
  .nav .btn { margin: 1rem 0 0; font-size: var(--step-1); background: var(--cream); color: var(--blue); }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 3.5rem) 2.2rem); visibility: visible; }
  .menu-open .menu-toggle { background: var(--blue); color: var(--cream); }
}

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  padding: .9em 1.4em;
  border-radius: 999px;
  border: 0;
  background: var(--orange);
  color: var(--blue-ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--blue-ink);
  transition: transform .35s var(--bounce), box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-2deg) scale(1.03); box-shadow: 0 8px 0 var(--blue-ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-ink); }
.btn--cream { background: var(--cream); color: var(--blue); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 2px solid currentColor;
  background: transparent;
  border-radius: 999px;
  padding: .4rem 1rem;
  cursor: pointer;
  transition: transform .3s var(--bounce), background .2s, color .2s;
}
.chip:hover { transform: rotate(-3deg) scale(1.05); }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.on-blue .chip[aria-pressed="true"] { background: var(--cream); color: var(--blue); border-color: var(--cream); }

.tag {
  display: inline-block;
  font-size: var(--step--1);
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--blue);
}
.tag--orange { background: var(--orange); color: var(--blue-ink); }
.tag--blue { background: var(--blue); color: var(--cream); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--cream { background: var(--cream); color: var(--blue); }
.section--orange { background: var(--orange); color: var(--blue-ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin: 0; }

/* wavy edges between colour bands */
.wave { display: block; width: 100%; height: clamp(28px, 4vw, 60px); margin-bottom: -2px; position: relative; z-index: 1; }
.wave--down { margin-top: -1px; margin-bottom: 0; }

/* page hero (inner pages) */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--step-5); line-height: .75; }
.page-hero .lead { margin-top: 2.2rem; }

/* blob shapes — radius varies so nothing looks stamped */
.blob-a { border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%; }
.blob-b { border-radius: 40% 60% 62% 38% / 55% 40% 60% 45%; }
.blob-c { border-radius: 2.2rem 3.4rem 2rem 3rem / 3rem 2rem 3.4rem 2.2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h3 { font-size: var(--step-1); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-grid a { text-decoration: none; opacity: .85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-big { font-family: var(--display); font-size: clamp(3rem, 12vw, 9rem); line-height: .85; margin-top: 3rem; color: var(--blue); -webkit-text-stroke: 2px rgba(255,253,245,.25); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: var(--step--1); opacity: .7; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- home hero ---------- */
.hero { position: relative; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: center; }
.hero-title { font-size: clamp(5.4rem, 2rem + 10vw, 11.5rem); line-height: .7; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line:nth-child(2) { padding-left: .55em; }
.hero-title .line:nth-child(3) { padding-left: .15em; }
.hero-copy { margin-top: 3.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero-card {
  background: var(--cream); color: var(--blue);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  position: relative;
  transform: rotate(2deg);
}
.hero-card h2 { font-family: var(--text); font-size: var(--step-1); line-height: 1.2; margin-bottom: .6rem; }
.hero-card .when { font-size: var(--step-2); line-height: 1.1; }
.hero-card dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0 1.4rem; }
.hero-card dt { opacity: .65; }
.hero-card dd { margin: 0; }

/* bouncing ball — the one orchestrated moment */
.ball {
  position: absolute;
  width: clamp(70px, 9vw, 120px);
  aspect-ratio: 1;
  right: 8%; top: -140px;
  z-index: 2;
  pointer-events: none;
}
.ball.is-dropping { animation: ball-drop 2.1s cubic-bezier(.3,0,.7,1) forwards; }
.ball svg { width: 100%; height: 100%; }
.ball.is-dropping svg { animation: spin 2.1s linear forwards; }
.ball.is-landed { transform: translateY(var(--floor)); }
.ball.is-landed svg { transform: rotate(320deg); }
@keyframes ball-drop {
  0%   { transform: translateY(0) scale(1, 1); }
  30%  { transform: translateY(var(--floor)) scale(1.18, .82); animation-timing-function: cubic-bezier(.2,.6,.4,1); }
  52%  { transform: translateY(calc(var(--floor) * .55)) scale(.95, 1.05); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  70%  { transform: translateY(var(--floor)) scale(1.1, .9); animation-timing-function: cubic-bezier(.2,.6,.4,1); }
  82%  { transform: translateY(calc(var(--floor) * .84)) scale(1, 1); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  92%  { transform: translateY(var(--floor)) scale(1.04, .96); }
  100% { transform: translateY(var(--floor)) scale(1, 1); }
}
@keyframes spin { to { transform: rotate(320deg); } }

.hero-title.is-landing .ch { animation: letter-in .9s var(--bounce) both; animation-delay: calc(var(--i) * 35ms + 150ms); }
@keyframes letter-in {
  0% { opacity: 0; transform: translateY(-80%) rotate(calc(var(--r) * 4)) scale(.6); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: rotate(-1.5deg); margin-top: 1rem; }
  .ball { right: 4%; }
}

/* ---------- home: format split ---------- */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.format {
  padding: clamp(1.8rem, 4vw, 3rem);
  min-height: 22rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.format--sand { background: var(--orange); color: var(--blue-ink); }
.format--court { background: var(--blue); color: var(--cream); }
.format h3 { font-family: var(--display); font-size: var(--step-3); line-height: .95; margin-bottom: 1rem; }
.format .season { font-size: var(--step--1); opacity: .8; margin-bottom: .4rem; }
.format ul { margin: 1rem 0 0; padding-left: 1.1rem; }
.format li { margin-bottom: .3rem; }
.format .deco { position: absolute; right: -2rem; bottom: -2rem; width: 11rem; opacity: .9; }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } .format { min-height: 0; } }

/* stats band — real numbers about the community */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: var(--step-4); line-height: 1; }
.stat span { display: block; max-width: 18ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- mini leaderboard (home) ---------- */
.mini-board { display: grid; gap: .6rem; }
.mini-row {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem;
  background: rgba(255,253,245,.08);
  padding: .8rem 1.2rem;
  border-radius: 999px;
}
.mini-row .pos { font-size: var(--step-1); line-height: 1; }
.mini-row .elo { font-size: var(--step-1); color: var(--orange); }

/* ---------- cards: posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.post-card { text-decoration: none; display: flex; flex-direction: column; gap: .9rem; }
.post-card .cover { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; transition: transform .45s var(--bounce), border-radius .6s; }
.post-card:nth-child(3n+1) .cover { border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%; }
.post-card:nth-child(3n+2) .cover { border-radius: 2.2rem 4rem 2rem 3.4rem; }
.post-card:nth-child(3n+3) .cover { border-radius: 40% 60% 62% 38% / 55% 40% 60% 45%; }
.post-card:hover .cover { transform: rotate(-2.5deg) scale(1.03); border-radius: 30% 70% 50% 50% / 50% 40% 60% 50%; }
.post-card .cover svg { width: 55%; }
.post-card h3 { font-size: var(--step-1); }
.post-card .meta { display: flex; gap: .6rem; align-items: center; font-size: var(--step--1); }
.post-card p { margin: 0; opacity: .85; }
.post-card--feature { grid-column: span 2; }
.post-card--feature .cover { aspect-ratio: 16 / 9; }
.post-card--feature h3 { font-size: var(--step-2); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } .post-card--feature { grid-column: auto; } .post-card--feature .cover { aspect-ratio: 4/3; } }

.cover--blue { background: var(--blue); color: var(--cream); }
.cover--orange { background: var(--orange); color: var(--blue); }
.cover--deep { background: var(--blue-deep); color: var(--orange); }
.cover--sand { background: var(--cream-2); color: var(--blue); }

/* article */
.article { max-width: 44rem; margin-inline: auto; }
.article .cover { aspect-ratio: 16/9; display: grid; place-items: center; margin-block: 2rem 2.5rem; }
.article .cover svg { width: 38%; }
.article p { font-size: var(--step-1); line-height: 1.5; max-width: none; }
.article h2 { font-family: var(--text); font-size: var(--step-2); line-height: 1.2; margin: 2.2rem 0 1rem; }
.article blockquote { margin: 2rem 0; padding: 1.5rem 2rem; background: var(--orange); color: var(--blue-ink); font-size: var(--step-1); line-height: 1.4; border-radius: 2rem 3rem 2.4rem 1.6rem; transform: rotate(-1deg); }
.back-link { display: inline-block; margin-bottom: 1.5rem; text-underline-offset: 4px; }

/* ---------- ratings ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: clamp(.6rem, 2vw, 1.5rem); margin-bottom: 3rem; }
.podium-step {
  text-align: center;
  padding: 1.6rem 1rem 1.4rem;
  background: var(--cream); color: var(--blue);
}
.podium-step:nth-child(1) { order: 2; background: var(--orange); color: var(--blue-ink); padding-block: 2.6rem 2rem; border-radius: 3rem 3rem 1.5rem 1.5rem; }
.podium-step:nth-child(2) { order: 1; border-radius: 2.6rem 1.6rem 1.5rem 1.5rem; transform: rotate(-2deg); }
.podium-step:nth-child(3) { order: 3; border-radius: 1.6rem 2.6rem 1.5rem 1.5rem; transform: rotate(2deg); }
.podium-step .place { font-family: var(--display); font-size: var(--step-4); line-height: .9; }
.podium-step .name { font-size: var(--step-0); line-height: 1.25; margin: .4rem 0; }
.podium-step .elo { font-size: var(--step-1); }
.avatar {
  width: 3.4rem; height: 3.4rem; margin: 0 auto .6rem;
  display: grid; place-items: center;
  font-size: 1.1rem;
  background: var(--blue); color: var(--cream);
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
}
.podium-step:nth-child(1) .avatar { width: 4.4rem; height: 4.4rem; font-size: 1.7rem; }
@media (max-width: 560px) {
  .podium-step { padding-inline: .4rem; }
  .podium-step .name { font-size: 1rem; }
  .podium-step .elo { font-size: .95rem; }
}

.board-tools { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.board-tools .group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.seg { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: .3rem; }
.seg button { border: 0; background: transparent; padding: .7rem 1.5rem; border-radius: 999px; cursor: pointer; color: var(--blue); font-size: 1rem; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
.search {
  border: 2px solid var(--blue); background: var(--cream); color: var(--blue);
  border-radius: 999px; padding: .6rem 1.2rem; font: inherit; min-width: 16rem;
}
.search::placeholder { color: var(--blue); opacity: .55; }

.board { width: 100%; border-collapse: separate; border-spacing: 0 .45rem; }
.board th { text-align: left; font-weight: 400; font-size: var(--step--1); opacity: .7; padding: 0 1rem .2rem; }
.board th button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 4px; }
.board th[aria-sort] button { text-decoration: underline; }
.board td { background: var(--cream-2); padding: .75rem 1rem; vertical-align: middle; }
.board tr td:first-child { border-radius: 999px 0 0 999px; padding-left: 1.4rem; }
.board tr td:last-child { border-radius: 0 999px 999px 0; padding-right: 1.4rem; }
.board tbody tr { transition: transform .3s var(--bounce); }
.board tbody tr:hover { transform: translateX(6px) rotate(-.4deg); }
.board .rank { font-size: var(--step-0); width: 3.5rem; }
.board .player { display: flex; align-items: center; gap: .8rem; }
.board .player .avatar { width: 2.4rem; height: 2.4rem; font-size: 1rem; margin: 0; flex: none; }
.board .player small { display: block; opacity: .65; }
.board .elo-val { font-size: var(--step-1); }
.num { font-variant-numeric: tabular-nums; }
.delta-up { color: #0a7a3c; }
.delta-down { color: #c4321c; }
.form { display: flex; gap: .25rem; }
.form i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--blue); }
.form i.l { background: transparent; box-shadow: inset 0 0 0 2px var(--blue); }
.board-empty { text-align: center; padding: 3rem 1rem; }
@media (max-width: 760px) {
  .board .hide-sm { display: none; }
  .board td { padding: .65rem .6rem; }
  .board tr td:first-child { padding-left: 1rem; }
  .search { min-width: 0; width: 100%; }
  .board .player .avatar, .board .player small { display: none; }
  .board .rank { width: 2.4rem; }
  .board-tools .group { width: 100%; }
}

.elo-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: start; }
.formula {
  font-size: var(--step-1); line-height: 1.4;
  background: var(--blue); color: var(--cream);
  padding: 1.6rem 2rem; border-radius: 2.4rem 1.6rem 2.8rem 2rem;
  transform: rotate(-1.5deg);
}
.formula small { display: block; font-family: var(--text); font-size: var(--step--1); opacity: .8; margin-top: .6rem; line-height: 1.5; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1.2rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(s); font-size: 1.1rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--orange); color: var(--blue-ink); border-radius: 50% 45% 55% 50%; }
.steps li p { margin: 0; }
.section--orange .steps li::before { background: var(--blue); color: var(--cream); }
@media (max-width: 760px) { .elo-explain { grid-template-columns: 1fr; } }

/* ---------- tournaments ---------- */
.t-list { display: grid; gap: 1.1rem; }
.t-item {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--cream); color: var(--blue);
  padding: 1.3rem 1.6rem;
  border-radius: 2.4rem 3rem 2.2rem 2.8rem;
  transition: transform .4s var(--bounce);
}
.t-item:nth-child(even) { border-radius: 3rem 2.2rem 2.8rem 2.4rem; }
.t-item:hover { transform: rotate(-.6deg) scale(1.01); }
.t-date { text-align: center; line-height: 1; }
.t-date b { display: block; font-family: var(--display); font-weight: 400; font-size: var(--step-4); }
.t-date span { font-size: var(--step-0); }
.t-item h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.t-info { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: var(--step--1); }
.t-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.t-side { display: grid; justify-items: end; gap: .7rem; }
.spots { width: 12rem; font-size: var(--step--1); text-align: right; }
.spots .bar { height: .55rem; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-top: .3rem; }
.spots .bar i { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
@media (max-width: 760px) {
  .t-item { grid-template-columns: 4.6rem 1fr; gap: 1rem; padding: 1.2rem; }
  .t-side { grid-column: 1 / -1; justify-items: stretch; grid-template-columns: 1fr auto; align-items: center; }
  .spots { text-align: left; width: auto; }
}

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.2rem; }
.result { background: rgba(255,253,245,.08); padding: 1.4rem 1.6rem; border-radius: 2rem; }
.result h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.result .date { font-size: var(--step--1); opacity: .7; }
.result ol { margin: 1rem 0 0; padding-left: 1.4rem; }
.result li::marker { color: var(--orange); }

/* dialog */
dialog {
  border: 0; padding: 0; max-width: min(34rem, 92vw); width: 100%;
  background: var(--cream); color: var(--blue);
  border-radius: 2.6rem 2rem 2.8rem 2.2rem;
}
dialog::backdrop { background: rgba(1, 48, 106, .7); }
dialog[open] { animation: pop .5s var(--bounce); }
@keyframes pop { from { transform: scale(.85) rotate(-3deg); opacity: 0; } }
.dialog-body { padding: 2rem; }
.dialog-body h2 { font-size: var(--step-2); margin-bottom: .4rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field input, .field select {
  font: inherit; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 999px;
  padding: .6rem 1.1rem; background: #fff;
}
.dialog-actions { display: flex; gap: .8rem; justify-content: flex-end; margin-top: 1.4rem; flex-wrap: wrap; }
.note { font-size: var(--step--1); opacity: .7; }

/* ---------- sponsors ---------- */
.sponsor-main {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center;
  background: var(--cream); color: var(--blue);
  padding: clamp(1.8rem, 5vw, 3.5rem);
  border-radius: 3.4rem 2.4rem 3.8rem 2.6rem;
}
.sponsor-logo {
  aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  line-height: 1.15;
  padding: 1rem;
}
.sponsor-main .sponsor-logo { font-family: var(--display); line-height: .95; background: var(--blue); color: var(--cream); font-size: var(--step-3); border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.sponsor-grid a { text-decoration: none; display: grid; gap: .6rem; justify-items: center; text-align: center; }
.sponsor-grid .sponsor-logo { width: 100%; max-width: 12rem; font-size: var(--step-1); transition: transform .45s var(--bounce); }
.sponsor-grid a:hover .sponsor-logo { transform: rotate(-6deg) scale(1.06); }
.sponsor-grid a:nth-child(4n+1) .sponsor-logo { background: var(--orange); color: var(--blue-ink); border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%; }
.sponsor-grid a:nth-child(4n+2) .sponsor-logo { background: var(--cream); color: var(--blue); border-radius: 40% 60% 62% 38% / 55% 40% 60% 45%; }
.sponsor-grid a:nth-child(4n+3) .sponsor-logo { background: var(--blue-deep); color: var(--cream); border-radius: 50%; }
.sponsor-grid a:nth-child(4n+4) .sponsor-logo { background: var(--cream-2); color: var(--blue); border-radius: 2.4rem 3.4rem 2rem 3rem; }
.sponsor-grid small { opacity: .75; font-size: var(--step--1); }
@media (max-width: 860px) { .sponsor-main { grid-template-columns: 1fr; } .sponsor-main .sponsor-logo { max-width: 16rem; } .sponsor-grid { grid-template-columns: 1fr 1fr; } }

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.package { padding: 2rem; display: flex; flex-direction: column; gap: .8rem; background: rgba(1,48,106,.06); border-radius: 2.4rem 2rem 2.6rem 1.8rem; }
.package--pick { background: var(--blue); color: var(--cream); transform: rotate(-1.2deg) scale(1.02); }
.package h3 { font-size: var(--step-1); }
.package .price { font-size: var(--step-2); line-height: 1.1; }
.package ul { margin: 0; padding-left: 1.1rem; flex: 1; }
.package li { margin-bottom: .35rem; }
@media (max-width: 860px) { .packages { grid-template-columns: 1fr; } .package--pick { transform: none; } }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; border-left: 3px dashed var(--orange); padding-left: 1.6rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.6rem - 10px); top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--orange); }
.timeline b { font-family: var(--display); font-weight: 400; font-size: var(--step-2); display: block; line-height: 1; margin-bottom: .2rem; }
.timeline p { margin: 0; }

.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.slot { background: var(--cream-2); padding: 1.5rem; border-radius: 2rem 2.6rem 2.2rem 1.8rem; }
.slot .day { font-size: var(--step-1); line-height: 1.2; }
.slot .time { font-size: var(--step-1); margin: .3rem 0 .6rem; }
.slot p { margin: 0; font-size: var(--step--1); }
@media (max-width: 760px) { .schedule { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.member { text-align: center; }
.member .avatar { width: 7rem; height: 7rem; font-size: 2.4rem; background: var(--orange); color: var(--blue-ink); margin-bottom: 1rem; }
.member:nth-child(even) .avatar { background: var(--cream); color: var(--blue); border-radius: 40% 60% 62% 38% / 55% 40% 60% 45%; }
.member h3 { font-size: var(--step-1); }
.member p { margin: .2rem auto 0; font-size: var(--step--1); opacity: .8; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }

.faq details { border-bottom: 2px solid rgba(2,81,173,.18); padding-block: 1.1rem; }
.faq summary { cursor: pointer; font-size: var(--step-1); line-height: 1.3; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; transition: transform .4s var(--bounce); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: .8rem 0 0; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--step-4); margin-bottom: 1.2rem; }
.cta-band p { margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
