@font-face {
  font-family: Manrope;
  src: url(assets/manrope-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(assets/manrope-cyrillic.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(assets/manrope-cyrillic-ext.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0460-052F;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url(assets/condensed-latin.woff2) format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url(assets/condensed-cyrillic.woff2) format("woff2");
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+2116;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url(assets/condensed-cyrillic-ext.woff2) format("woff2");
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0460-052F;
}

:root {
  --purple: #66247c;
  --dark: #32143f;
  --night: #21112e;
  --ink: #211725;
  --muted: #63586b;
  --paper: #fdfbf8;
  --white: #fff;
  --lavender: #f0e7f6;
  --line: #ded2e4;
  --gold: #f7d66f;
  --teal: #18595a;
  --mint: #e1f1ee;
  --heading: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: Manrope, system-ui, sans-serif;
  --gutter: clamp(20px, 5.5vw, 96px);
  --content: 1312px;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 10px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.6 var(--body); }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, summary, input, select, textarea { transition: background-color .18s, border-color .18s, color .18s; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, video:focus-visible {
  outline: 3px solid #984fb4;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
figure, dl, dd { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 850; line-height: 1.03; }
h2 { font-size: clamp(1.95rem, 4.15vw, 3.8rem); letter-spacing: -.028em; text-wrap: balance; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.018em; }
p { color: var(--muted); }

.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--content)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 108px); }
.eyebrow { color: var(--purple); font-size: .72rem; font-weight: 800; letter-spacing: .145em; text-transform: uppercase; }
.eyebrow + :is(h1, h2, h3) { margin-top: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { max-width: 35ch; padding-bottom: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 10px; left: 12px; background: var(--white); color: var(--dark); padding: 10px 16px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 18px;
  font: 800 .8rem/1.25 var(--body);
  text-align: center;
}
.button span { line-height: 1; font-size: 1.05rem; }
.primary { background: var(--purple); color: var(--white); }
.primary:hover { background: var(--dark); }
.gold { background: var(--gold); color: var(--night); }
.gold:hover { background: #ffe590; color: var(--night); }
.light { background: var(--lavender); color: var(--dark); }
.light:hover { background: var(--white); }
.outline { background: transparent; border-color: var(--line); color: var(--purple); }
.outline:hover { background: var(--lavender); border-color: var(--purple); }

.header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid #21182712; }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: clamp(14px, 2vw, 32px); }
.brand { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img, .footer img { width: auto; max-width: 138px; height: auto; }
.nav, .header-actions, .language { display: flex; align-items: center; }
.nav { justify-content: center; gap: clamp(10px, 1.6vw, 28px); flex: 1; }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.nav .nav-register { display: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { gap: 13px; }
.header-actions .button { white-space: nowrap; }
.language { gap: 0; padding: 2px; border: 1px solid var(--line); border-radius: 5px; }
.language button { min-height: 42px; min-width: 42px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 800; }
.language button[aria-pressed="true"] { background: var(--lavender); color: var(--dark); }
.language button:hover { color: var(--purple); }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; color: var(--white); background: #1d1029 url(assets/home-poster.webp) 58% center / cover; }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-video { object-fit: cover; object-position: 58% center; }
.hero-shade {
  background:
    linear-gradient(0deg, #180c21f7 0%, #180c2140 33%, transparent 67%),
    linear-gradient(90deg, #1b0e27 0%, #271133ef 29%, #2a153cc4 46%, #2b163359 66%, #1a0d2119 100%);
}
.hero-inner { min-height: min(695px, 85svh); padding-top: clamp(50px, 6vw, 100px); padding-bottom: 25px; display: flex; flex-direction: column; justify-content: space-between; gap: 38px; }
.hero-copy { width: min(100%, 810px); }
.hero-location { color: #e8dbf6; display: flex; align-items: center; gap: 10px; }
.hero-location span { height: 6px; width: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(3rem, 5.6vw, 5.55rem); font-weight: 900; line-height: .97; letter-spacing: -.037em; text-transform: uppercase; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 .hero-brand { color: #eedaf9; font-size: .38em; letter-spacing: .07em; margin-bottom: .34em; line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--gold); margin-top: .08em; }
:lang(mn) .hero h1 { font-size: clamp(2.45rem, 4.65vw, 4.75rem); line-height: 1.01; }
.hero-slogan { color: #efebf4; margin-top: 22px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero .outline { color: var(--white); border-color: #e1d5ee78; background: #1b0e2766; }
.hero .outline:hover { background: #4d2a60; }
.hero-lower { border-top: 1px solid #f4e9ff46; padding-top: 17px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.hero-date { color: var(--gold); letter-spacing: .08em; }
.countdown-caption { color: #ebdff2; margin-top: 3px; font-size: .73rem; }
.countdown { display: flex; gap: clamp(15px, 2.5vw, 32px); align-items: center; margin-top: 7px; }
.countdown div { display: grid; justify-items: start; min-width: 42px; }
.countdown b { font: 800 1.85rem/1 var(--heading); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .63rem; color: #eadfed; }
.video-toggle {
  width: 46px; height: 46px; flex: 0 0 46px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #fff8; background: #180c218c; color: var(--white); font-size: .9rem;
}
.video-toggle:hover { background: var(--purple); }

.stats { background: var(--lavender); border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line); }
.stats-caption { padding-bottom: 10px; font-size: .73rem; font-weight: 730; }
.stats-inner, .milestones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-inner > div, .milestones > div { display: flex; flex-direction: column-reverse; align-items: start; gap: 4px; padding: 20px 0 23px 24px; border-left: 1px solid var(--line); }
.stats-inner > div:first-child, .milestones > div:first-child { border-left: 0; padding-left: 0; }
.stats-inner dt, .milestones dt { color: var(--muted); font-size: .78rem; font-weight: 750; }
.stats-inner dd, .milestones dd { color: var(--purple); font: 850 clamp(2.3rem, 4vw, 3.1rem)/1 var(--heading); }

.event-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--event-accent, var(--purple));
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.event-card:hover { background: var(--lavender); border-color: var(--event-accent, var(--purple)); }
.event-five { --event-accent: #267c76; }
.event-seven { --event-accent: #6d3887; }
.event-nine { --event-accent: #a43a60; }
.event-blindfold { --event-accent: #a07023; }
.event-relay { --event-accent: #346b68; }
.event-media { width: 100%; aspect-ratio: 1.5; background: var(--lavender); overflow: hidden; }
.event-media img { height: 100%; width: 100%; object-fit: cover; transition: transform .25s; }
.event-card:hover img { transform: scale(1.04); }
.event-copy { flex: 1; width: 100%; display: grid; align-content: start; gap: 5px; padding: 14px 35px 16px 14px; position: relative; }
.event-type, .event-limit { color: var(--muted); font-size: .7rem; font-weight: 750; }
.event-copy strong { font: 850 clamp(1.12rem, 1.9vw, 1.58rem)/1.08 var(--heading); }
.event-arrow { position: absolute; right: 14px; bottom: 16px; color: var(--purple); font-size: 1.15rem; }
.nominations summary, .faq-list summary { min-height: 52px; padding-block: 13px; font-weight: 800; color: var(--purple); }
.text-link { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--purple); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--dark); }

.page-hero {
  background: linear-gradient(110deg, #21112e 6%, #492258 62%, #632981 100%);
  color: var(--white);
  padding: clamp(26px, 3.4vw, 48px) 0 clamp(38px, 5.4vw, 75px);
  border-bottom: 3px solid var(--gold);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { max-width: 24ch; font-size: clamp(2.35rem, 5vw, 4.7rem); letter-spacing: -.038em; text-wrap: balance; }
.page-hero .page-description { color: #eee2f4; font-size: clamp(1rem, 1.6vw, 1.16rem); margin-top: 16px; max-width: 58ch; }
.page-hero-lilac { background: linear-gradient(115deg, var(--lavender), #e1ccec); color: var(--dark); border-color: #bf93d2; }
.page-hero-lilac :is(.eyebrow, .page-description) { color: #522465; }
.page-hero-teal { background: linear-gradient(115deg, #113f42, #1d6667); border-color: #81c5b3; }
.page-hero-teal .eyebrow { color: #d1f4e7; }
.page-hero-teal .page-description { color: #def0e9; }
.page-hero-featured .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(25px, 5vw, 75px); }
.page-hero-featured h1 { font-size: clamp(2.35rem, 4.7vw, 4.45rem); }
.page-hero-image { width: 100%; aspect-ratio: 1.5; object-fit: cover; border: 1px solid #ffffff62; border-radius: 7px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: inherit; font-size: .78rem; margin-bottom: 14px; }
.breadcrumb a { min-height: 44px; display: flex; align-items: center; text-decoration: underline transparent; text-underline-offset: 4px; }
.breadcrumb a:hover { text-decoration-color: currentColor; }
.breadcrumb span { opacity: .67; }
.page-hero + .section, .section-nav + .section { padding-block: clamp(42px, 5.6vw, 78px); }
.section-nav { border-bottom: 1px solid var(--line); background: var(--white); }
.section-nav .wrap { display: flex; gap: 9px clamp(16px, 3vw, 38px); flex-wrap: wrap; }
.section-nav a { display: flex; align-items: center; min-height: 55px; border-bottom: 3px solid transparent; font-size: .86rem; font-weight: 800; padding-block: 5px; }
.section-nav a:hover, .section-nav a[aria-current="page"] { color: var(--purple); border-bottom-color: var(--purple); }
.section-heading > .button { flex: 0 0 auto; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 23px; }

.home-story { background: #321547; color: var(--white); }
.home-story-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); width: min(100%, 1510px); }
.home-story-inner img { width: 100%; height: 100%; aspect-ratio: 1.75; object-fit: cover; }
.home-story-inner > div { display: grid; align-content: center; justify-items: start; padding: clamp(27px, 5.6vw, 80px); }
.home-story .eyebrow { color: var(--gold); }
.home-story p:not(.eyebrow) { color: #eee2f4; margin-block: 16px 22px; max-width: 55ch; }
.home-story h2 { text-wrap: pretty; }
.home-planning { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(20px, 4vw, 48px); align-items: stretch; }
.home-program { padding: clamp(20px, 3vw, 38px); border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.home-program h2 { font-size: clamp(2.25rem, 4vw, 3.9rem); }
.home-program ul { margin: 19px 0 15px; list-style: none; padding: 0; }
.home-program li { display: grid; grid-template-columns: 63px minmax(0, 1fr); align-items: start; gap: 14px; padding-block: 12px; border-top: 1px solid var(--line); font-weight: 800; }
.home-program time { color: var(--purple); font-variant-numeric: tabular-nums; }
.home-program small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.home-program p:not(.eyebrow) { font-size: .77rem; }
.home-program .button { margin-top: 17px; }
.home-resources { display: grid; gap: 15px; grid-template-rows: 1fr 1fr; }
.resource-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--lavender); border: 1px solid #d8c9e1; border-radius: 8px; overflow: hidden; }
.resource-card:hover { background: #e4d1ee; }
.resource-card img { width: 100%; height: 100%; min-height: 136px; object-fit: cover; }
.resource-card > div { display: grid; gap: 9px; align-content: center; padding: clamp(15px, 2.5vw, 30px); }
.resource-card strong { font: 850 clamp(1.6rem, 3vw, 2.7rem)/1.03 var(--heading); }
.resource-card > div > span { color: var(--purple); font-size: .8rem; font-weight: 800; }
.resource-training { background: var(--teal); color: var(--white); border-color: var(--teal); }
.resource-training:hover { background: #12494c; }
.resource-training > div > span { color: #e7fff5; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); gap: clamp(24px, 5vw, 66px); align-items: start; }
.feature-image img, .packaging img { width: 100%; aspect-ratio: 1.48; object-fit: cover; border-radius: 8px; }
.feature-body h2, .reading h2, .schedule-aside h2, .contact-card h2, .related h2 { font-size: clamp(1.9rem, 3.5vw, 3.3rem); }
.feature-body p, .reading p, .contact-card p:not(.eyebrow) { margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.facts > div { padding: 13px 15px; background: var(--lavender); display: flex; flex-direction: column-reverse; gap: 3px; }
.facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; }
.facts dd { color: var(--purple); font: 850 clamp(1.4rem, 2.7vw, 2.05rem)/1.05 var(--heading); }
.related { margin-top: 52px; }
.related h2 { margin-bottom: 21px; }
.related .event-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reading { max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 27px; justify-items: start; }
.reading .button { margin-top: 12px; }
.status-panel { display: flex; gap: 14px; width: 100%; padding: clamp(18px, 3vw, 34px); background: var(--lavender); border-radius: 7px; border: 1px solid var(--line); }
.status-mark { width: 10px; height: 10px; border: 2px solid var(--purple); border-radius: 50%; margin-top: 12px; flex: 0 0 10px; }
.status-panel h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.bracket-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.bracket-table caption { text-align: left; font: 850 1.55rem/1.2 var(--heading); margin-bottom: 9px; }
.bracket-table th, .bracket-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.bracket-table th { background: var(--mint); color: var(--teal); }
.faq-list { gap: 0; }
.faq-list details { width: 100%; border-bottom: 1px solid var(--line); }
.faq-list details div { padding-bottom: 10px; }
.faq-list .button { margin-top: 24px; }

.schedule { background: #f1f7f5; }
.schedule-layout, .story-layout, .registration-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.schedule-aside { position: sticky; top: calc(var(--header) + 28px); }
.schedule-aside .eyebrow { color: var(--teal); }
.schedule-aside h2 { color: var(--teal); }
.schedule-aside h2 + p, .story-copy h2, .registration-copy h2 + p { margin-top: 16px; }
.schedule-note { max-width: 30ch; font-size: .82rem; margin-top: 22px; }
.schedule-panel { background: var(--white); border-radius: 6px; border: 1px solid var(--line); padding: clamp(12px, 2.3vw, 28px); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.filters button { min-height: 44px; background: var(--paper); color: var(--purple); padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; font-size: .75rem; font-weight: 800; }
.filters button:hover { background: var(--lavender); }
.filters button[aria-pressed="true"] { background: var(--teal); color: var(--white); border-color: var(--teal); }
.schedule-list { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 11px 9px; align-items: center; border-top: 1px solid var(--line); }
.slot-times, .slot-detail { display: grid; }
.slot-times time:first-child { color: var(--purple); font-weight: 850; font-variant-numeric: tabular-nums; }
.slot-times time:last-child, .slot-detail span { color: var(--muted); font-size: .75rem; }
.slot-detail { border-left: 3px solid #aca0b3; padding-left: 13px; }
.slot-individual .slot-detail { border-color: #9570b5; }
.slot-team .slot-detail { border-color: var(--purple); }
.slot-ceremony .slot-detail { border-color: #a9782a; }
.slot-final { background: #f5ead8; border-radius: 3px; }

.story-layout { grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); align-items: center; }
.story-copy p:not(.eyebrow), .profiles p:not(.eyebrow), .wipo p:not(.eyebrow) { margin-top: 10px; }
.chapter-links { display: flex; flex-wrap: wrap; column-gap: 16px; margin-top: 12px; }
.story-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; border-radius: 6px; overflow: hidden; }
.story-media img { width: 100%; aspect-ratio: 1.65; object-fit: cover; background: var(--lavender); }
.story-media img:first-child { grid-column: 1 / -1; aspect-ratio: 1.72; }
.brand-transition { display: flex; align-items: center; gap: 18px; color: var(--purple); margin-top: 22px; }
.brand-transition img { width: 112px; height: 54px; object-fit: contain; }
.milestones { border-block: 1px solid var(--line); margin-block: 30px; }
.wipo { background: var(--lavender); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(20px, 4vw, 44px); border-radius: 6px; }
.wipo .button { flex-shrink: 0; border-color: var(--purple); }
.wipo .button:hover { background: var(--white); }
.sport-feature { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--dark); color: var(--white); border-radius: 6px; overflow: hidden; }
.sport-feature img { width: 100%; height: 100%; aspect-ratio: 1.9; object-fit: cover; }
.sport-feature > div { padding: clamp(20px, 4vw, 46px); }
.sport-feature .eyebrow { color: var(--gold); }
.sport-feature p:not(.eyebrow) { color: #ebdff2; margin-block: 12px 17px; }
.profiles-title { margin-block: 45px 16px; }
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.profiles article { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.profiles article > img { width: 100%; aspect-ratio: 2.05; object-fit: cover; object-position: center 35%; }
.profiles article > div { padding: 24px; }
.profiles .academy-logo { width: 150px; margin-top: 16px; }

.lesson-grid, .catalog-grid, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-card { border-radius: 8px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.media-card:hover { border-color: var(--purple); background: var(--lavender); }
.media-card img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.lesson-poster { position: relative; }
.lesson-poster img { aspect-ratio: 16 / 9; }
.lesson-poster span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--white); background: var(--teal); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.media-card-copy { padding: 16px 19px; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.media-card-copy strong { font: 850 clamp(1.4rem, 2.4vw, 2rem)/1.04 var(--heading); }
.media-card-copy > span { color: var(--purple); font-size: .76rem; font-weight: 800; }
.lesson video { width: 100%; max-width: 980px; aspect-ratio: 16 / 9; background: #12101c; border-radius: 8px; }
.packaging { width: min(460px, 100%); margin-top: 32px; }
.packaging figcaption { color: var(--muted); font-size: .78rem; margin-top: 5px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3vw, 37px); }
.contact-card > img { width: min(150px, 100%); margin-bottom: 16px; }
.contact-card address { display: grid; margin-top: 12px; font-style: normal; color: var(--purple); }
.contact-card address a { display: flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 800; }
.contact-card address a:hover { text-decoration: underline; }
.registration { background: var(--lavender); }
.registration-copy img { margin-top: 26px; width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 6px; }
.registration form { padding: clamp(16px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { display: grid; align-content: start; gap: 5px; font-size: .82rem; font-weight: 800; }
input:not([type="checkbox"]), .form-grid select, .draft-text {
  min-width: 0; width: 100%; min-height: 45px; background: var(--paper); color: var(--ink);
  border: 1px solid #b4a9bc; border-radius: 4px; padding: 8px 10px; font-size: 1rem; font-weight: 500;
}
.registration fieldset { padding: 0; margin: 18px 0 0; min-width: 0; border: 0; }
.registration legend { padding: 0; margin-bottom: 9px; font-weight: 800; }
.nominations { margin-top: 16px; border-block: 1px solid var(--line); }
.nominations p { font-size: .8rem; }
.nominations .form-grid { margin-block: 12px; }
.confirm { margin-block: 16px; min-height: 44px; display: flex; align-items: start; gap: 9px; font-size: .8rem; }
.confirm input { width: 17px; height: 17px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--purple); }
.draft { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.draft p { font-size: .85rem; margin-bottom: 10px; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.footer { background: var(--night); color: var(--white); }
.footer-ribbon { border-top: 3px solid var(--gold); background: linear-gradient(112deg, #472154, #632881 66%, #54266c); }
.footer-ribbon-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: clamp(23px, 3.7vw, 44px); }
.footer-ribbon-inner .eyebrow { color: var(--gold); margin-bottom: 6px; }
.footer-ribbon-inner strong { font: 850 clamp(1.4rem, 3vw, 2.55rem)/1.08 var(--heading); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, .95fr)) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 38px); padding-block: 40px 25px; }
.footer-brand a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand img { max-width: 164px; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 8px; max-width: 27ch; color: #dfd0e7; font-size: .85rem; }
.footer nav, .footer address { display: grid; align-content: start; font-style: normal; }
.footer-inner h2 { color: #f6d976; font: 800 .74rem/1.38 var(--body); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 5px; }
.footer-inner nav a, .footer address a, .footer-bottom a { display: flex; align-items: center; gap: 6px; min-height: 44px; color: #f1e6f3; font-size: .82rem; overflow-wrap: anywhere; }
.footer-inner a:hover, .footer-inner a[aria-current="page"], .footer-bottom a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; border-top: 1px solid #ffffff34; color: #d8c8e2; font-size: .78rem; }
:is(.footer, .hero, .home-story, .page-hero):not(.page-hero-lilac) :focus-visible { outline-color: var(--gold); }

@media (max-width: 1160px) {
  .header-inner { gap: 14px; }
  .nav { gap: 13px; }
  .nav a { font-size: .72rem; }
  .header-actions { gap: 8px; }
  .header-actions .button { gap: 8px; padding-inline: 11px; }
  :lang(mn) .header-inner { width: min(calc(100% - 28px), var(--content)); }
}

@media (max-width: 1000px) {
  :root { --header: 64px; }
  .header-inner, :lang(mn) .header-inner { width: min(calc(100% - 2 * var(--gutter)), var(--content)); gap: 9px; }
  .brand { margin-right: auto; }
  .menu-toggle { order: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--purple); background: var(--white); }
  .menu-icon, .menu-icon::before, .menu-icon::after { width: 17px; height: 2px; background: currentColor; display: block; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; }
  .menu-icon::before { transform: translateY(-5px); }
  .menu-icon::after { transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 8px var(--gutter) 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] + .nav { display: block; }
  .nav a { font-size: .86rem; }
  .nav a + a { border-top: 1px solid var(--line); }
  .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-layout { gap: 25px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  h2 { text-wrap: auto; }
  .page-hero-featured .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero-image { max-height: 270px; }
  .section-heading, .wipo { align-items: start; flex-direction: column; gap: 13px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading p:not(.eyebrow) { max-width: 55ch; }
  .hero-shade {
    background:
      linear-gradient(0deg, #170c20 0%, #24113348 39%, #29143425 80%, #1a0d2294 100%),
      linear-gradient(90deg, #1b0e27ee, #21112fc2 62%, #1a0d2159);
  }
  .hero, .hero-video { background-position: 67% center; object-position: 67% center; }
  .hero-inner { min-height: 0; padding-top: 52px; gap: 31px; }
  .hero h1 { font-size: clamp(2.35rem, 10.1vw, 3.6rem); overflow-wrap: anywhere; }
  :lang(mn) .hero h1 { font-size: clamp(2rem, 7.6vw, 3.1rem); }
  .schedule-layout, .story-layout, .registration-inner, .home-story-inner, .home-planning, .feature-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .home-story-inner img { height: auto; }
  .home-story-inner > div { padding-inline: var(--gutter); }
  .schedule-aside { position: static; }
  .schedule-note { max-width: none; margin-top: 12px; }
  .story-layout { gap: 24px; }
  .milestones dd { font-size: 2rem; }
  .profiles { gap: 14px; }
  .profiles article > div { padding: 16px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-card-copy { flex-direction: column; align-items: start; gap: 8px; }
  .section-nav .wrap { gap: 0 18px; }
  .section-nav a { font-size: .78rem; }
}

@media (max-width: 500px) {
  .header-actions .button { display: none; }
  .nav .nav-register { display: flex; gap: 7px; color: var(--purple); }
  .brand img { max-width: 122px; }
  .hero-inner { padding-block: 43px 19px; }
  .hero-slogan { margin-top: 17px; }
  .hero-actions { margin-top: 16px; gap: 8px; }
  .hero-actions .button { padding-inline: 12px; gap: 8px; }
  .hero-date { font-size: .68rem; }
  .stats-inner, .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-inner > div, .milestones > div { padding: 13px 8px 15px 16px; }
  .stats-inner > div:nth-child(odd), .milestones > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats-inner > div:nth-child(n+3), .milestones > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .event-grid, .related .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .event-copy { padding-left: 10px; }
  .lesson-grid, .profiles, .sport-feature { grid-template-columns: minmax(0, 1fr); }
  .footer-brand, .footer-inner address { grid-column: 1 / -1; }
  .footer-inner { padding-top: 24px; }
  .footer-ribbon-inner { align-items: start; flex-direction: column; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 0; padding-top: 12px; }
  .footer-inner h2 { font-size: .69rem; }
  .bracket-table { font-size: .82rem; }
  .slot { grid-template-columns: 56px minmax(0, 1fr); gap: 7px; padding-inline: 3px; }
  .slot-detail { padding-left: 9px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.prize-section { background: var(--lavender); }
.prize-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 23px; }
.prize-card { padding: clamp(17px, 2.8vw, 31px); border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.prize-card h3 { font-size: clamp(1.35rem,2.1vw,1.9rem); }
.prize-card ol { margin: 16px 0 0; padding: 0; list-style: none; }
.prize-card li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 9px; border-top: 1px solid var(--line); }
.prize-place { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e6e3f0; font-size: .85rem; font-weight: 800; }
.prize-card li:first-child .prize-place { background: #ffda69; }
.prize-card li:last-child .prize-place { background: #f3decd; }
.participation-card { color: white; background: var(--dark); border-color: var(--dark); }
.participation-card p { color: #f0e5f5; margin-top: 13px; }
.home-teams { padding-block: clamp(40px,6vw,75px); }
.team-strip { min-width: 0; width: 100%; }
.team-strip > p { padding: 19px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.team-flags { display: flex; min-width: 0; gap: 12px; overflow-x: auto; padding: 6px 3px 14px; scroll-snap-type: x mandatory; }
.team-flags a, .team-flags article { flex: 0 0 auto; display: grid; justify-items: start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); scroll-snap-align: start; }
.team-flags img { width: 58px; max-height: 42px; object-fit: contain; }
.gallery-section { background: var(--mint); }
.gallery-section .section-heading p { margin-top: 6px; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-track { display: flex; gap: 13px; overflow: auto; padding: 4px 3px 15px; scroll-snap-type: x mandatory; }
.gallery-thumbnail { flex: 0 0 calc((100% - 39px) / 4); padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--lavender); scroll-snap-align: start; }
.gallery-thumbnail img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.gallery-dialog { width: min(1050px, calc(100vw - 28px)); max-height: calc(100vh - 28px); border: 0; border-radius: 8px; padding: 12px; background: var(--dark); }
.gallery-dialog::backdrop { background: #21112edd; }
.gallery-dialog form { display: flex; justify-content: end; margin-bottom: 8px; }
.gallery-dialog img { width: 100%; max-height: 78vh; object-fit: contain; }
.partners > p { margin-top: 10px; }
.wipo-facts dd { font-size: clamp(1.05rem,2.4vw,2rem); }
@media (max-width: 720px) {
  .prize-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .participation-card { grid-column: 1 / -1; }
  .gallery-thumbnail { flex-basis: calc((100% - 13px) / 2); }
}
@media (max-width: 430px) {
  .prize-grid { grid-template-columns: minmax(0,1fr); }
  .gallery-thumbnail { flex-basis: 84%; }
}

.registration-shell { display: grid; gap: clamp(18px,3vw,34px); }
.registration-form { padding-block: clamp(28px,5vw,64px); background: var(--paper); }
.reg-form-header { display: grid; gap: 10px; }
.reg-form-header > a { justify-self: start; color: #64247b; font-size: .9rem; font-weight: 720; }
.reg-form-header h1 { font-size: clamp(2rem,4vw,3.55rem); line-height: 1.06; }
.reg-form-header p { max-width: 62ch; color: var(--muted); }
.registration-lead { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.45fr); gap: 20px; align-items: start; }
.registration-lead p + p { margin-top: 9px; }
.reg-deadline { position: relative; isolation: isolate; display: grid; gap: 7px; padding: 18px; border-radius: 8px; color: var(--white); background: #64247b; border-top: 4px solid #ffbc00; }
.reg-deadline::after { content: ""; position: absolute; inset: 5px 10px 5px auto; width: min(96px,25%); background: url(assets/icon.png) center / contain no-repeat; filter: brightness(0) invert(1); opacity: .14; z-index: -1; }
.reg-deadline .eyebrow { color: #ffe181; }
.reg-deadline p:not(.eyebrow) { color: #f7ebfb; font-size: .86rem; font-variant-numeric: tabular-nums; }
.reg-facts { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; }
.reg-facts > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.reg-facts dd { font: 850 clamp(1.3rem,2.4vw,2rem)/1.12 var(--heading); color: #64247b; }
.reg-facts dt { color: var(--muted); font-size: .76rem; }
.reg-workspace { display: grid; grid-template-columns: minmax(180px,.32fr) minmax(0,1fr); gap: 18px; align-items: start; }
#team-application, .reg-panel h2 { scroll-margin-top: 85px; }
.reg-steps { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.reg-steps li { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .85rem; font-weight: 720; line-height: 1.25; }
.reg-steps .reg-step-number { flex: 0 0 26px; display: grid; place-items: center; height: 26px; border-radius: 50%; color: #64247b; background: #e6e3f0; }
.reg-steps li[aria-current="step"] { border-color: #782b99; background: #64247b; color: white; }
.reg-steps li.step-complete .reg-step-number { color: #113f42; background: #c1eae3; }
.reg-panel { min-width: 0; padding: clamp(15px,3vw,36px); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.reg-panel h2 { font-size: clamp(1.65rem,3vw,2.5rem); margin-bottom: 10px; }
.reg-step-count { font-size: .82rem; font-weight: 750; color: #64247b; margin-bottom: 4px; }
.reg-panel form { border: 0; padding: 0; margin-top: 16px; }
.reg-panel fieldset { margin: 0; min-width: 0; }
.reg-grid, .reg-athletes, .reg-event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.reg-field { display: grid; min-width: 0; gap: 4px; font-size: .82rem; font-weight: 720; }
.reg-field input:not([type="checkbox"]), .reg-field select { display: block; min-width: 0; width: 100%; padding: 8px; min-height: 44px; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.reg-field input[type="file"] { font-size: .8rem; }
.reg-phone { display: grid; grid-template-columns: minmax(80px,.45fr) minmax(0,1fr); gap: 7px; }
.reg-phone .reg-field:last-child:nth-child(3) { grid-column: 1 / -1; }
.reg-country { display: grid; gap: 6px; }
.reg-country-result { color: #82304e; font-size: .82rem; }
.reg-country [data-country-flag]:empty { display: none; }
.country-flag { width: 33px; height: 22px; object-fit: contain; }
.reg-panel .reg-athlete, .reg-event, .reg-summary { min-width: 0; padding: 13px; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.reg-athlete .reg-grid { grid-template-columns: minmax(0,1fr); }
.reg-athlete .reg-upload, .reg-panel .reg-legal, .reg-athletes, .reg-event-grid { margin-top: 12px; }
.reg-upload p { font-size: .79rem; margin-block: 4px; }
.reg-upload progress { width: 100%; accent-color: #782b99; }
.reg-legal, .reg-account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-legal a { color: #64247b; text-decoration: underline; }
.reg-check { display: flex; align-items: start; gap: 8px; padding-block: 7px; font-size: .84rem; }
.reg-check input { flex-shrink: 0; margin-top: 4px; accent-color: #64247b; }
.reg-event { border-top: 4px solid var(--event-accent,#64247b); }
.reg-event img { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.reg-event p { margin: 5px 0 7px; }
.reg-relay { padding: 11px; border-radius: 5px; background: var(--mint); }
.reg-status:not(:empty) { margin-top: 13px; font-weight: 720; }
.reg-reference { display: grid; gap: 8px; margin-block: 12px; }
.reg-reference dd { overflow-wrap: anywhere; }
.reg-reference dt { color: var(--muted); font-size: .78rem; }
.reg-summary ul { padding-left: 18px; }
.reg-summary p { overflow-wrap: anywhere; }
.reg-panel .reg-payment { margin-top: 12px; }
.reg-payment img { display: block; max-width: 100%; height: auto; margin-block: 12px; }
.reg-summary h3, .reg-admin-country h3 { display: flex; gap: 8px; align-items: center; }
.reg-admin-country { padding-block: 12px; border-bottom: 1px solid var(--line); }
.reg-admin-country button { display: flex; margin-top: 5px; }
.reg-warning { color: #82304e; }
.reg-document-dialog { width: min(720px,94vw); max-height: 88vh; border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.reg-document-dialog img { max-height: 76vh; margin-inline: auto; object-fit: contain; }
.reg-document-dialog iframe { width: 100%; height: 63vh; border: 0; }
.reg-document-dialog::backdrop { background: #21112edd; }
.discipline-rules { margin-block: 35px; }
.discipline-rules > details { padding-inline: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.discipline-rules ol { display: grid; gap: 7px; padding: 0 0 16px 21px; }
.schedule-group + .schedule-group { margin-top: 24px; }
.schedule-group h2 { font-size: clamp(1.3rem,2.1vw,1.9rem); padding-block: 8px; }
.sponsor-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 108px; margin-top: 18px; padding: 20px 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.sponsor-logo img { width: min(185px,100%); height: auto; }
.about-chapter { display: grid; gap: clamp(28px,5vw,62px); scroll-margin-top: 100px; }
.about-puzzles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.about-puzzles img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 6px; }
.about-puzzles img:first-child { grid-column: 1 / -1; aspect-ratio: 2; }
.about-hero .about-puzzles img { object-fit: contain; background: var(--white); }
.about-hero .about-puzzles img:first-child { grid-column: auto; aspect-ratio: 1.55; }
.about-hero .about-puzzles img:last-child { grid-column: 1 / -1; aspect-ratio: 2; }
.about-figure { margin: 0; border-radius: 8px; background: var(--lavender); overflow: hidden; }
.about-figure img { width: 100%; height: auto; }
.about-portrait { width: min(100%,390px); }
.about-portrait img { aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; }
.about-wipo { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: start; gap: clamp(15px,4vw,48px); }
.about-wipo .button { margin-top: 18px; }
.about-registration { display: grid; gap: 8px; }
.about-registration > div { background: var(--white); border-radius: 5px; padding: 7px 10px; }
.about-registration dt { color: var(--muted); font-size: .75rem; }
.about-registration dd { font-weight: 750; }
.about-academy-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
.about-invitation { background: var(--dark); color: var(--white); }
.about-invitation .eyebrow { color: var(--gold); }
.about-invitation p + p { margin-top: 8px; }
.teams-hero .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.teams-hero .page-hero::after { content: ""; position: absolute; z-index: -1; inset: auto var(--gutter) -22% auto; width: min(42vw,360px); aspect-ratio: 1; background: url(assets/icon.png) center/contain no-repeat; filter: brightness(0) invert(1); opacity: .07; }
.dashboard { display: grid; gap: 22px; min-width: 0; }
.dashboard h2 { font-size: clamp(1.65rem,3.8vw,2.8rem); }
.dashboard h3 { font-size: clamp(1.2rem,2.5vw,1.65rem); }
.dash-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-switch button { min-height: 44px; }
.dash-switch button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.dash-notice { padding: 14px 18px; border-inline-start: 4px solid var(--purple); border-radius: 5px; background: var(--lavender); }
.dash-notice p,.dash-muted { color: var(--muted); }
.dash-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.dash-stats > div,.dash-card { min-width: 0; padding: clamp(12px,2.3vw,20px); border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow-wrap: anywhere; }
.dash-stats > div { display: flex; flex-direction: column-reverse; gap: 3px; align-items: center; text-align: center; }
.dash-stats dd { color: var(--purple); font: 850 clamp(1.45rem,3vw,2.35rem)/1.07 var(--heading); }
.dash-stats dt,.dash-card small { color: var(--muted); font-size: .8rem; }
.dash-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.dash-group { padding: 0; overflow: hidden; }
.dash-group h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 16px; padding: 13px 15px; background: var(--teal); color: var(--white); }
.dash-group h3 small { color: #d9f4ed; font-size: .78rem; }
.dash-group > details { margin: 0 12px 12px; }
.dash-group summary { display: list-item; padding: 12px 0; color: var(--purple); font-weight: 750; cursor: pointer; }
.dash-table-wrap { max-width: 100%; overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; text-align: left; }
.dash-table th,.dash-table td { padding: 9px clamp(5px,1vw,14px); border-bottom: 1px solid var(--line); vertical-align: middle; }
.dash-table th { background: #f5f0f7; color: var(--dark); font-size: .79rem; }
.dash-table td { font-size: .88rem; font-variant-numeric: tabular-nums; }
.dashboard .country-flag { display: inline-block; vertical-align: middle; width: 26px; height: 18px; margin-inline-end: 6px; }
.dash-match-list,.dash-round ol,.dash-progress,.dash-podium,.dash-final ol { padding: 0; list-style: none; }
.dash-match-list li { padding: 9px; border-block-start: 1px solid var(--line); }
.dash-match-list li div { display: grid; grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr); gap: 8px; align-items: center; }
.dash-match-list strong { color: var(--purple); }
.dash-bracket { display: flex; align-items: stretch; gap: 18px; overflow-x: auto; padding: 3px 4px 14px; scroll-snap-type: x proximity; }
.dash-round { display: grid; grid-template-rows: auto 1fr; min-width: 185px; flex: 1 0 185px; scroll-snap-align: start; }
.dash-round h4 { padding-bottom: 10px; color: var(--muted); }
.dash-round ol { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.dash-game { position: relative; display: grid; gap: 6px; padding: 12px; min-height: 112px; border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 6px; background: var(--lavender); }
.dash-round:not(:last-child) .dash-game::after { content: ""; position: absolute; top: 50%; left: 100%; width: 18px; border-top: 2px solid #aa89b4; }
.dash-game p { padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: .83rem; }
.dash-gold { border-left-color: var(--gold); background: var(--dark); color: white; }
.dash-bronze { border-left-color: #ad652f; background: #f3e5da; }
.dash-progress { display: grid; padding: 14px; gap: 10px; }
.dash-progress li { display: grid; gap: 4px; padding: 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; text-align: center; }
.dash-progress li:last-child { background: var(--mint); }
.dash-progress li span { color: var(--muted); font-size: .8rem; }
.dash-final { background: var(--purple); color: white; border-radius: 8px; padding: 18px; }
.dash-final ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.dash-final li { background: white; color: var(--dark); border-radius: 6px; padding: 8px; display: grid; text-align: center; }
.dash-final li span { font-size: .77rem; }
.dash-medals { grid-template-columns: repeat(3,minmax(0,1fr)); text-align: center; }
.dash-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: end; }
.dash-podium li { text-align: center; overflow-wrap: anywhere; }
.dash-podium li div { padding: 10px 0; font-size: .88rem; }
.dash-podium small { display: block; color: var(--muted); }
.dash-podium li p { display: grid; align-content: center; gap: 3px; border-radius: 8px; background: #d7dce5; color: var(--dark); min-height: 112px; }
.dash-podium li strong { font: 850 clamp(1.7rem,4vw,3rem)/1 var(--heading); }
.dash-podium .dash-podium-1 p { min-height: 144px; background: #f5d875; }
.dash-podium .dash-podium-3 p { min-height: 88px; background: #dca885; }
.dash-records { display: grid; gap: 10px; }
.dash-record { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 5px solid var(--event-accent,var(--purple)); }
.dash-record > strong { color: var(--purple); white-space: nowrap; font-size: clamp(1.25rem,3vw,2rem); }
.dash-chart { width: 100%; max-height: 260px; color: var(--teal); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.dash-capacity label { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.dash-capacity progress { width: 100%; accent-color: var(--teal); }
.dash-directory-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.dash-directory-controls label { flex: 1 1 175px; }
.dash-directory,.dash-roster { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(205px,100%),1fr)); gap: 14px; }
.dash-directory-list { grid-template-columns: minmax(0,1fr); }
.dash-team { padding: 0; overflow: hidden; }
.dash-team header { padding: 14px; text-align: center; background: var(--lavender); }
.dash-team header .country-flag { margin: 0; width: 40px; height: 27px; }
.dash-team-body { padding: 13px; text-align: center; }
.dash-directory-list .dash-team { display: flex; flex-wrap: wrap; align-items: center; }
.dash-directory-list .dash-team header { flex: 0 1 175px; }
.dash-directory-list .dash-team-body { flex: 1 1 170px; }
.dash-avatar-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.dash-avatar { display: inline-grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; font-weight: 750; color: var(--purple); background: var(--lavender); }
.dash-profile { display: grid; gap: 14px; }
.dash-profile > header { padding: 20px; border-top: 3px solid var(--gold); border-radius: 8px; background: var(--dark); color: white; }
.dash-roster article { display: grid; gap: 5px; justify-items: start; }
.dash-roster .dash-avatar { width: 58px; height: 58px; }
.competition-admin { margin-top: 20px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.competition-admin summary { min-height: 44px; padding-block: 9px; font-weight: 750; color: var(--purple); cursor: pointer; }
.competition-admin textarea { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); }
.competition-admin pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 400px; overflow: auto; }
@media(max-width: 680px) {
  .about-wipo,.dash-grid { grid-template-columns: minmax(0,1fr); }
  .dash-medals { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dash-final ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dash-stats > div,.dash-card { padding: 10px; }
  .dash-group,.dash-team { padding: 0; }
}
@media(max-width: 850px) {
  .reg-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reg-workspace, .registration-lead { grid-template-columns: minmax(0,1fr); }
  .reg-steps { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .reg-steps li { align-content: start; flex-wrap: wrap; }
}
@media(max-width: 610px) {
  .reg-grid, .reg-athletes { grid-template-columns: minmax(0,1fr); }
  .reg-steps { grid-template-columns: minmax(0,1fr); }
  .reg-steps li { padding: 6px 9px; }
  .registration-form .reg-steps { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .registration-form .reg-steps li { justify-content: center; }
  .registration-form .reg-step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media(max-width: 420px) {
  .reg-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reg-event-grid { grid-template-columns: minmax(0,1fr); }
}
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.sponsor-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface, var(--white)); color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.sponsor-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.sponsor-card img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.sponsor-card strong { display: block; font-size: .95rem; line-height: 1.25; }
.sponsor-tier { display: block; margin-top: 2px; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
