@font-face {
  font-family: Noto;
  src: url("/assets/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Noto;
  src: url("/assets/NotoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Marck;
  src: url("/assets/MarckScript-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #192e56;
  --ink-strong: #142648;
  --muted: #49607f;
  --paper: #f3eee2;
  --paper-sheet: #faf7ee;
  --line: #b1ad9d;
  --rust: #a64c2b;
  --marker: #ffdf77;
  --focus: #8b4124;
  --square: 17px;
  --graph: linear-gradient(to right, #526a8c18 1px, transparent 1px), linear-gradient(to bottom, #526a8c18 1px, transparent 1px);
  --notebook: var(--graph), radial-gradient(ellipse at 40% 2%, #fffcf4, #f8f2e5 68%, #f2eadb);
  --graph-size: var(--square) var(--square), var(--square) var(--square), auto;
  --pad: clamp(18px, 3.5vw, 55px);
  --body: Noto, Arial, sans-serif;
  --pen: Marck, Georgia, serif;
  --serif: Georgia, "Times New Roman", serif;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 30% 50%, #fcf8ee 0, #f3ede0 70%);
  line-height: 1.48;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page-width { width: min(100% - 2 * var(--pad), 1210px); margin-inline: auto; }

.site-header { background: var(--notebook); background-size: var(--graph-size); border-bottom: 1px solid #34476b26; }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; column-gap: 28px; }
.academy-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: clamp(13px, 1.6vw, 20px); line-height: 1.2; font-style: italic; }
.academy-symbol { position: relative; width: 59px; min-width: 38px; }
.academy-symbol img { display: block; width: 100%; height: auto; object-fit: contain; transform: rotate(-5deg); }
.academy-symbol::after { content: ""; display: block; height: 3px; width: 76%; border-radius: 100% 30% 40% 12%; background: #b3623e; position: absolute; left: 3%; bottom: 4%; transform: rotate(-10deg); }
.site-nav { display: flex; align-items: center; align-self: stretch; gap: clamp(14px, 3vw, 39px); white-space: nowrap; }
.dates-button, .academy-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; border: 0; background: transparent; padding: 5px 3px; font-size: clamp(12px, 1.4vw, 15px); }
.dates-button:hover, .academy-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.dates-button .icon { width: 21px; height: 21px; }
.academy-link span { color: var(--rust); }
.date-alert { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background-color: #ac2c22; color: #fff; font-size: 13px; font-weight: 700; animation: dates-pulse 1.8s ease-in-out infinite alternate; }
@keyframes dates-pulse { from { opacity: 1; transform: translateY(0); } to { opacity: .46; transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .date-alert { animation: none; } }

.cover { position: relative; background-image: var(--notebook); background-size: var(--graph-size); box-shadow: 0 5px 13px #513c1715; padding-bottom: 34px; }
.cover::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -16px;
  height: 19px;
  pointer-events: none;
  background-color: #f5eddf;
  clip-path: polygon(0 0,100% 0,100% 45%,98% 58%,96% 47%,94% 69%,92% 51%,90% 61%,88% 52%,86% 74%,84% 63%,82% 72%,80% 66%,78% 85%,76% 66%,74% 77%,72% 61%,70% 75%,68% 63%,66% 74%,64% 58%,62% 70%,60% 52%,58% 62%,56% 48%,54% 62%,52% 52%,50% 58%,48% 67%,46% 61%,44% 79%,42% 69%,40% 84%,38% 72%,36% 80%,34% 70%,32% 76%,30% 63%,28% 71%,26% 52%,24% 61%,22% 49%,20% 62%,18% 55%,16% 71%,14% 57%,12% 71%,10% 60%,8% 72%,6% 57%,4% 68%,2% 56%,0 65%);
}
.hero { position: relative; isolation: isolate; display: grid; align-items: center; grid-template-columns: minmax(63px, .75fr) minmax(0, 4.2fr) minmax(145px, 1.75fr); min-height: 280px; column-gap: 10px; padding-block: 22px 24px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; text-align: left; }
.hero h1 { position: relative; display: inline-block; margin: 0 0 8px; font: 400 clamp(52px, 7.8vw, 114px)/.98 var(--pen); text-transform: uppercase; letter-spacing: -.035em; transform: rotate(-2.7deg); color: var(--ink-strong); -webkit-text-stroke: .42px; }
.hero h1::after { content: ""; position: absolute; left: 20%; bottom: .05em; width: 79%; height: .078em; background: #658eb7; opacity: .72; clip-path: polygon(0 54%,16% 24%,58% 11%,86% 8%,99% 35%,100% 63%,77% 66%,45% 88%,10% 83%); transform: rotate(.5deg); z-index: -1; }
.hero-subtitle { font-weight: 700; font-size: clamp(17px, 2.35vw, 29px); letter-spacing: -.029em; margin-left: .36em; }
.hero-note { display: flex; align-items: center; gap: 23px; margin: 12px 0 0 .52em; width: max-content; max-width: 100%; }
.location { display: inline-flex; align-items: center; gap: 1px; padding: 6px 14px 4px 8px; position: relative; transform: rotate(-5deg); font: 400 clamp(21px, 2.45vw, 31px)/1 var(--pen); white-space: nowrap; }
.location::before { content: ""; position: absolute; inset: 0 -2px -2px; border: 2px solid #ad6044; border-radius: 51% 53% 44% 49%; opacity: .74; transform: rotate(-2deg); }
.location .icon { width: 21px; height: 21px; color: var(--rust); align-self: start; }
.slogan { display: block; position: relative; isolation: isolate; padding: .1em .44em .15em; font: 400 clamp(21px, 2.48vw, 32px)/.83 var(--pen); transform: rotate(-4deg); white-space: nowrap; }
.slogan::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #ffdd70b3; clip-path: polygon(3% 4%,99% 1%,95% 11%,100% 12%,96% 26%,99% 31%,96% 46%,98% 62%,95% 70%,98% 80%,94% 93%,0 100%,3% 89%,0 80%,4% 66%,1% 48%,4% 36%,1% 24%); }
.slogan::after { content: ""; position: absolute; width: 54%; right: 6%; bottom: -4px; border-bottom: 2px solid #b45e3f; border-radius: 40%; transform: rotate(-2deg); opacity: .83; }
.hero-shuttle { width: clamp(79px, 13.7vw, 186px); max-width: 165%; height: auto; align-self: end; justify-self: end; margin: 0 .25vw 12px 0; transform: rotate(-3deg); pointer-events: none; mix-blend-mode: multiply; }
.hero-art { position: relative; height: 100%; min-height: 180px; z-index: 0; pointer-events: none; }
.hero-court { color: #395d80; position: absolute; bottom: -6%; right: 4%; width: clamp(137px, 24vw, 318px); transform: rotate(-9deg); opacity: .76; }
.hero-rackets { position: absolute; top: -9%; right: -4%; width: clamp(114px, 18.3vw, 232px); height: auto; transform: rotate(3deg); z-index: 1; mix-blend-mode: multiply; }

.controls-bar { display: flex; column-gap: clamp(18px, 3.3vw, 47px); row-gap: 14px; align-items: center; flex-wrap: wrap; }
.season-tools { display: flex; gap: 11px; align-items: center; padding-right: clamp(18px, 3.3vw, 47px); border-right: 1px solid #49607f5e; }
.paper-button, .season-picker, .category-button {
  min-height: 42px;
  border: 1px solid #405475;
  border-radius: 6px 7px 5px 6px;
  background-color: #faf7ed;
  color: var(--ink);
  padding: 7px 15px;
}
.paper-button:hover, .category-button:hover { background-color: #f7edcc; }
.select-season { position: relative; display: block; }
.select-season::after { content: "⌄"; position: absolute; right: 11px; top: 45%; transform: translateY(-54%); pointer-events: none; color: #fff6e7; font-size: 21px; }
.season-picker { max-width: min(100vw - 63px, 240px); background-color: var(--ink); color: #fff9ec; padding-left: 17px; padding-right: 36px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.season-picker:hover:not(:disabled) { background-color: #30476d; }
.season-picker:disabled { opacity: .8; cursor: default; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; }
.category-button { max-width: 100%; overflow-wrap: anywhere; padding-inline: 17px; }
.category-button[aria-pressed="true"] { color: #fffaf0; background: var(--ink); }
.season-status { display: flex; align-items: center; column-gap: 23px; row-gap: 9px; flex-wrap: wrap; margin-top: 13px; font-size: 14px; }
.status-item { display: flex; align-items: center; gap: 7px; }
.status-item + .status-item { border-left: 1px solid #49607f5e; padding-left: 22px; }
.status-item .icon { width: 23px; height: 23px; }
.status-item:first-child { font-weight: 700; }
.status-item:first-child .icon { color: var(--rust); }
.status-item:last-child .status-copy { text-decoration: underline #eacd63 3px; text-underline-offset: 3px; }

.content { position: relative; margin-top: 43px; }
.loading { margin: 0 0 12px; color: var(--muted); }
.loading .paper-button { margin-left: 8px; }
.season-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 54px); align-items: start; }
.tournament-section, .race-sheet { min-width: 0; }
.tournament-section h2 { font: 700 italic clamp(28px, 3.3vw, 44px)/1.16 var(--serif); margin: 0 0 18px 4px; }
.marker { position: relative; isolation: isolate; padding: 1px .27em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.marker::before { content: ""; position: absolute; z-index: -1; inset: .2em -.05em -.02em; background: #ffdf79b6; clip-path: polygon(5% 0,100% 7%,97% 17%,100% 28%,97% 41%,100% 52%,96% 67%,100% 78%,94% 90%,96% 100%,0 97%,3% 84%,0 70%,3% 57%,0 47%,4% 33%,0 24%,4% 16%); transform: rotate(-.9deg); }
.tournament-list { display: grid; gap: 14px; }
.tournament-card {
  min-width: 0;
  background: linear-gradient(130deg, #fdfaf3, #f8f4ea);
  border: 1px solid #a59b8566;
  border-radius: 10px 7px 11px 8px;
  box-shadow: 0 2px 6px #2a251a1a;
  padding: 15px 19px 13px;
}
.tournament-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; padding-bottom: 9px; border-bottom: 1px solid #b6ad9859; }
.tournament-heading h3 { font: 700 clamp(19px, 2.35vw, 28px)/1.2 var(--serif); overflow-wrap: anywhere; }
.tournament-date { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.tournament-date .icon { width: 18px; height: 18px; }
.event-status { border-radius: 4px 11px 5px 7px; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: #355131; background: #dfe9cd; font-size: 11px; font-weight: 700; white-space: nowrap; }
.event-status.cancelled { color: #804335; background: #f2ded2; }
.event-status.planned { color: #374e74; background: #e1e8f3; }
.podiums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 17px; }
.podium { padding-block: 9px 4px; min-width: 0; }
.podium + .podium { border-left: 1px solid #857f6a57; padding-left: 17px; margin-top: 9px; padding-top: 0; }
.podium h4, .gender-title { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 22px); margin: 0 0 5px; }
.podium h4 .marker, .gender-title .marker { padding-inline: .25em .43em; }
.podium ol { list-style: none; padding: 0; margin: 0; }
.podium li { min-height: 42px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; border-top: 1px solid #8e82673a; padding: 4px 0; }
.podium .participant { overflow-wrap: anywhere; }
.participant-name, .participant-city { display: block; line-height: 1.24; }
.participant-name { font-weight: 700; }
.participant-city { color: var(--muted); font-size: .83em; margin-top: 3px; }
.points { font-variant-numeric: tabular-nums; font-weight: 700; }
.podium .points { font-size: clamp(14px, 1.56vw, 19px); }
.medal { display: inline-grid; place-items: center; align-content: center; width: 23px; height: 23px; color: #5b3a18; font-size: 12px; font-weight: 700; border: 1px solid #af8c42; border-radius: 50%; background: #f4d57e; box-shadow: inset 0 0 0 2px #fff6ce85; }
.medal.place-2 { color: #434a54; border-color: #969ba3; background: #dce0e3; box-shadow: inset 0 0 0 2px #ffffff75; }
.medal.place-3 { color: #663a20; border-color: #af795c; background: #e7bc98; box-shadow: inset 0 0 0 2px #fff1d680; }
.all-results, .schedule-link { display: inline-flex; align-items: center; gap: 8px; color: #1f4c80; font-weight: 700; text-decoration: underline; text-underline-offset: .19em; }
.all-results { border: 0; background: transparent; margin: 6px auto 0; min-height: 36px; padding: 2px 8px; }
.card-actions { display: flex; justify-content: center; }
.empty-card { border: 1px dashed #857e6d76; border-radius: 8px 10px 7px 9px; background: #fffdf45b; padding: 17px 15px; }
.muted, .empty-line { color: var(--muted); }
.empty-line { font-size: 13px; padding: 8px 1px; }

.race-sheet {
  position: relative;
  isolation: isolate;
  border: 1px solid #a69c885c;
  border-radius: 10px 12px 8px 9px;
  background: var(--graph), radial-gradient(ellipse at 60% 15%, #fffaf0, #f6f0e2);
  background-size: var(--graph-size);
  box-shadow: 3px 5px 9px #4a352b24;
  padding: 22px 21px 21px 34px;
}
.race-sheet::before { content: ""; position: absolute; top: 18px; bottom: 14px; left: 9px; width: 12px; background: radial-gradient(circle at 50% 11px, #c7beaa 0, #e0dacc 3px, #faf7ee 5px, transparent 5.5px) repeat-y; background-size: 12px 32px; pointer-events: none; }
.binder { position: absolute; width: 48px; height: 16px; top: -6px; right: 21px; background: linear-gradient(110deg, #394d6d, #1c2d50 58%, #4e5f78); border: 1px solid #1d2b45; border-radius: 4px 4px 3px 2px; box-shadow: 2px 4px 6px #271e1863; transform: rotate(9deg); z-index: 2; }
.binder::before { content: ""; position: absolute; width: 23px; height: 39px; top: -27px; left: 11px; border: 2px solid #46494d; border-bottom-color: #d6d5cb; border-radius: 63% 55% 25% 23%; transform: perspective(50px) rotateX(-28deg); box-shadow: inset 1px 0 #fff8db9c, 1px 1px #fff8db9c; }
.race-doodle { color: #aa6346; width: 79px; position: absolute; right: calc(100% + 5px); top: 26px; opacity: .86; transform: rotate(4deg); }
.race-sheet > h2 { font: 400 clamp(31px, 3vw, 40px)/.99 var(--pen); text-wrap: pretty; margin: 1px 2px 14px; padding-bottom: 8px; position: relative; }
.race-sheet > h2::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 9%; height: 7px; border-radius: 55% 34% 41% 39%; background: #f1ca54a6; clip-path: polygon(0 71%,7% 48%,28% 36%,59% 16%,91% 32%,100% 19%,99% 91%,67% 93%,34% 85%,5% 90%); transform: rotate(-1deg); }
.race-intro { font-size: 13px; padding-top: 1px; }
.score-example { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #77755655; margin-bottom: 10px; padding-block: 4px 9px; }
.score-example span { background: #ffe5809f; transform: rotate(-2deg); font: 20px/1 var(--pen); padding-inline: 6px; }
.score-example em { font: 26px/1 var(--pen); white-space: nowrap; }
.score-example b { position: relative; font-weight: 400; }
.score-example b::after { content: ""; position: absolute; inset: -2px -5px -1px; border: 1px solid #ad634a; transform: rotate(-11deg); border-radius: 50%; }
.gender-table + .gender-table { margin-top: 12px; }
.table-scroll { width: 100%; overflow: auto; }
.results-table { width: 100%; border-collapse: collapse; line-height: 1.3; font-size: clamp(12px, 1.19vw, 14px); }
.results-table th { text-align: left; font-size: .83em; padding-block: 5px; font-weight: 700; }
.results-table td { padding-block: 6px; border-top: 1px solid #857b6039; overflow-wrap: anywhere; }
.results-table th, .results-table td { padding-inline: 5px; }
.results-table th:first-child, .results-table td:first-child { width: 1%; white-space: nowrap; }
.results-table th.numeric, .results-table td.numeric { text-align: right; }
.results-table tbody tr:first-child { background: #ffdf7c83; }
.results-table tbody tr:first-child td:first-child { border-radius: 2px 0 0 2px; }
.results-table tbody tr:first-child td:last-child { border-radius: 0 2px 2px 0; }
.stats-note { margin: 4px 0; font-size: 12px; }
.final-note { margin-top: 17px; padding-top: 13px; border-top: 1px solid #756b525c; }
.final-title { margin-bottom: 7px; font: clamp(26px, 3.2vw, 36px)/1.03 var(--pen); }
.final-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 7px; font-size: 13px; }
.finalists { padding-left: 19px; margin: 4px 0 9px; font-size: 13px; }
.finalists li + li { margin-top: 3px; }
.finalists small { color: var(--muted); }

.how { display: grid; grid-template-columns: 1.07fr repeat(3, 1fr); margin-top: 35px; align-items: center; padding: 15px 6px; border-block: 1px solid #69748860; background-image: var(--graph); background-size: var(--graph-size); }
.how h2 { font: 400 clamp(29px, 3.55vw, 49px)/.76 var(--pen); transform: rotate(-4deg); padding: 6px 14px; }
.how h2::after { content: ""; display: block; height: 2px; margin: 6px 7% 0 6%; width: 77%; background: #b96042; transform: rotate(-2deg); border-radius: 55%; }
.how > div { min-height: 83px; text-align: center; border-left: 1px solid #65728b73; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 3px 8px; }
.how p { font-size: 14px; font-weight: 700; }
.how p span { display: block; font-size: 12px; font-weight: 400; }
.how p span b { font: 21px/1 var(--pen); }
.how .icon { width: 31px; height: 31px; }

.site-footer { margin-top: 22px; padding: 22px 0 30px; background: #efe5d24f; border-top: 1px solid #9f8f6952; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 14px 22px; flex-wrap: wrap; }
.site-footer h2 { font: 700 italic 23px/1.14 var(--serif); margin: 0 0 9px; }
.contacts { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 8px; }
.contact { display: grid; min-width: 0; }
.contact strong { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.contact-value { font-size: 13px; overflow-wrap: anywhere; }
.footer-actions { display: grid; gap: 7px; justify-items: end; margin-left: auto; }
.footer-actions .paper-button { font-weight: 700; }
.footer-actions .paper-button span { color: var(--rust); padding-left: 5px; }
.admin-link { font-size: 11px; color: var(--muted); text-underline-offset: 2px; }

dialog {
  width: min(710px, calc(100% - 25px));
  max-height: min(86dvh, 760px);
  border: 1px solid #504b3b63;
  border-radius: 8px 11px 8px 10px;
  padding: clamp(16px, 3vw, 28px);
  color: var(--ink);
  background-image: var(--notebook);
  background-size: var(--graph-size);
  background-color: var(--paper-sheet);
  box-shadow: 5px 12px 41px #2c2d2f55;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #17243c92; backdrop-filter: blur(2px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 10px; border-bottom: 1px solid #52618456; padding-bottom: 11px; margin-bottom: 13px; }
.dialog-header h2 { font: 400 clamp(29px, 5.6vw, 44px)/1.02 var(--pen); overflow-wrap: anywhere; }
.dialog-close { display: grid; place-items: center; width: 39px; min-height: 39px; border: 1px solid #405475; color: var(--ink); background: #fbf6e8; border-radius: 6px; font-size: 22px; line-height: 1; padding: 0; }
.dialog-close:hover { background: #fae9aa; }
.dialog-content { min-width: 0; }
.dialog-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.dialog-section + .dialog-section { margin-top: 14px; }
.dialog-section-title { font: 700 italic 22px/1.2 var(--serif); margin: 4px 0 8px; }
.dialog-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.dialog-list li { min-width: 0; padding: 7px 8px; border-bottom: 1px solid #77785755; }
.schedule-item { display: flex; flex-wrap: wrap; gap: 3px 11px; align-items: baseline; }
.schedule-item .event-status { margin: 0; }
.schedule-when, .dialog-subtitle { display: block; color: var(--muted); font-size: 13px; }
.schedule-item .schedule-link { margin-left: auto; font-size: 13px; }
.season-choice { border: 0; padding: 4px; background: transparent; color: #1f4c80; font-weight: 700; text-underline-offset: 3px; text-decoration: underline; }

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(39px, .65fr) minmax(0, 4.3fr) minmax(108px, 1.65fr); min-height: 235px; }
  .hero-shuttle { margin-bottom: 17px; }
  .hero-court { bottom: .1em; right: -6%; }
  .hero-rackets { top: -1%; }
  .season-layout { gap: 24px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .tournament-card { padding: 11px 12px; }
  .podiums { gap: 11px; }
  .podium + .podium { padding-left: 11px; }
  .podium li { gap: 5px; font-size: 12px; }
  .race-sheet { padding-left: 25px; padding-right: 12px; }
  .race-sheet::before { left: 6px; }
  .race-doodle { display: none; }
}

@media (max-width: 700px) {
  :root { --pad: 17px; }
  .header-inner { min-height: 61px; gap: 7px; }
  .academy-symbol { width: 41px; }
  .academy-brand { gap: 7px; }
  .hero { min-height: 202px; grid-template-columns: minmax(44px, .54fr) minmax(0, 4fr) minmax(69px, 1fr); padding-block: 23px 14px; gap: 3px; }
  .hero h1 { font-size: clamp(45px, 9.4vw, 66px); }
  .hero-subtitle { font-size: clamp(14px, 3vw, 22px); margin-left: 0; }
  .hero-note { gap: 14px; margin-left: 0; }
  .hero-art { min-height: 155px; }
  .hero-court { right: -3%; bottom: -2%; width: clamp(98px, 23vw, 175px); }
  .hero-rackets { height: auto; width: clamp(77px, 19vw, 144px); top: 1%; }
  .hero-shuttle { width: clamp(58px, 14vw, 113px); margin-right: 2px; }
  .controls-bar { column-gap: 12px; row-gap: 9px; }
  .season-tools { padding-right: 14px; }
  .cover { padding-bottom: 22px; }
  .content { margin-top: 37px; }
  .season-layout { grid-template-columns: minmax(0, 1fr); gap: 31px; }
  .tournament-section h2 { margin-bottom: 12px; }
  .race-sheet { padding-left: 28px; padding-right: 16px; }
  .race-sheet > h2 { text-wrap: initial; }
  .how { margin-top: 22px; }
}

@media (max-width: 460px) {
  :root { --pad: 13px; }
  .header-inner { min-height: 68px; }
  .academy-symbol { width: 33px; min-width: 31px; }
  .academy-brand { font-size: 11px; line-height: 1.15; max-width: 157px; }
  .site-nav { gap: 6px; }
  .site-nav a, .site-nav button { font-size: 11px; gap: 4px; padding-inline: 1px; }
  .dates-button .icon { display: none; }
  .date-alert { width: 15px; height: 15px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; align-items: start; min-height: 169px; gap: 0; padding-top: 18px; padding-bottom: 12px; }
  .hero-copy { padding-left: 2px; }
  .hero h1 { font-size: clamp(35px, 12.5vw, 57px); margin-bottom: 5px; }
  .hero-subtitle { max-width: 91%; font-size: 14px; }
  .hero-note { gap: 10px; margin-top: 10px; }
  .location { padding: 5px 8px 4px; font-size: 20px; }
  .location .icon { width: 15px; height: 15px; }
  .slogan { font-size: 20px; }
  .hero-shuttle { display: none; }
  .hero-art { position: absolute; inset: 41% 0 8% auto; width: 82px; height: auto; min-height: 0; opacity: .72; }
  .hero-rackets { height: auto; width: 48px; top: -8%; right: 0; }
  .hero-court { width: 77px; bottom: 3%; right: -2%; }
  .season-tools { border: 0; padding-right: 0; }
  .season-picker { max-width: min(46vw, 225px); }
  .category-tabs { width: 100%; }
  .category-button { flex: 1 1 40%; min-width: 0; }
  .paper-button, .category-button, .season-picker { min-height: 39px; font-size: 12px; padding-block: 5px; }
  .season-status { column-gap: 11px; row-gap: 7px; font-size: 11px; }
  .status-item + .status-item { padding-left: 8px; }
  .status-item .icon { width: 17px; height: 17px; }
  .tournament-heading { gap: 5px 8px; }
  .tournament-date { font-size: 11px; gap: 3px; }
  .tournament-date .icon { width: 15px; height: 15px; }
  .event-status { font-size: 10px; padding-inline: 5px; }
  .podiums { column-gap: 8px; }
  .podium + .podium { padding-left: 8px; }
  .medal { width: 18px; height: 18px; font-size: 10px; box-shadow: inset 0 0 0 1px #fff6ce85; }
  .podium .points { font-size: 14px; }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 0; padding: 10px 0; }
  .how h2 { grid-column: 1 / -1; padding: 3px 5px 3px 3px; transform: rotate(-2deg); font-size: 29px; width: max-content; }
  .how h2 br { display: none; }
  .how h2::after { margin-top: 3px; }
  .how div:nth-of-type(1) { border-left: 0; }
  .how .icon { width: 24px; height: 24px; }
  .how p { font-size: 11px; line-height: 1.25; }
  .how p span { font-size: 10px; }
  .how p span b { font-size: 14px; }
}

@media (max-width: 340px) {
  .academy-brand { max-width: 123px; }
  .hero-note { gap: 6px; }
  .location, .slogan { font-size: clamp(15px, 5.2vw, 18px); }
  .hero-art { display: none; }
  .podiums { grid-template-columns: 1fr; }
  .podium + .podium { border-left: 0; padding-left: 0; margin-top: 5px; }
}
