:root {
  color-scheme: dark;
  --gold: #f5d28b;
  --gold-light: #ffecc3;
  --wine: #220b09;
  --ink: #331912;
  --serif: Cambria, "Times New Roman", serif;
  --cut: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  --corners: url("../assets/ui/corner-tl.webp"), url("../assets/ui/corner-tr.webp"),
             url("../assets/ui/corner-bl.webp"), url("../assets/ui/corner-br.webp");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gold-light);
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  background: radial-gradient(ellipse at 50% 31%, #511d14 0%, transparent 46%), #220b09;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ffe29c; outline-offset: 4px; }
.parchment :focus-visible { outline-color: #612214; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.topbar {
  position: relative; z-index: 2;
  background: linear-gradient(110deg, #200c0a, #321410 55%, #210c0a);
  border-bottom: 1px solid #a6784a78;
}
.bar { display: grid; grid-template-columns: 155px 1fr 155px; align-items: center; min-height: 70px; }
.brand { display: flex; align-items: center; justify-content: center; justify-self: start; width: 104px; height: 65px; }
.brand img { width: 100%; height: 58px; object-fit: contain; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 10px #23080792); }
.bar nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 44px); }
.bar nav a { padding: 10px 4px 7px; font-weight: 650; border-bottom: 2px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current] { border-color: #e6a954; color: #ffdc83; }
.header-download { justify-self: end; }
.menu-button { display: none !important; }

/* Button chrome is exported without the text. */
.skin {
  --edge: #c98e45; --inner: #935d31; --top: #56301c; --bottom: #26150f; --light: #ffe0a1;
  position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 7px 21px; border: 0; border-radius: 8px; background: transparent; color: var(--light);
  font-weight: 750; line-height: 1.1; white-space: nowrap; text-shadow: 0 2px 2px #190806;
  transition: filter .15s, transform .15s;
}
.skin::before, .skin::after { content: ""; position: absolute; clip-path: var(--cut); z-index: -1; pointer-events: none; }
.skin::before { inset: 0; background: linear-gradient(150deg, #fff0b1, var(--edge) 27%, var(--inner) 48%, #eed08c 70%, var(--edge)); }
.skin::after {
  inset: 2px;
  background: radial-gradient(ellipse at 50% -20%, #ffd49636, transparent 65%), linear-gradient(var(--top), var(--bottom));
  box-shadow: inset 0 0 0 1px var(--inner), inset 0 -3px 9px #0f06089c;
}
.skin.ornate::after {
  background: url("../assets/ui/corner-tl.webp") 3px 3px / 13px no-repeat,
              url("../assets/ui/corner-br.webp") calc(100% - 3px) calc(100% - 3px) / 13px no-repeat,
              radial-gradient(ellipse at 50% -20%, #ffd49636, transparent 65%),
              linear-gradient(var(--top), var(--bottom));
}
.skin.ornate:disabled::after { background: linear-gradient(var(--top), var(--bottom)); }
.primary { --edge: #ffce75; --inner: #c86b31; --top: #ac3e20; --bottom: #621710; --light: #fff0bb; filter: drop-shadow(0 0 7px #e861235e); }
.skin:is(:hover, [data-state="hover"]):not(:disabled) { --edge: #ffde95; --inner: #d28c43; --top: #794423; --bottom: #3b1a12; filter: drop-shadow(0 0 7px #e8964790); }
.primary:is(:hover, [data-state="hover"]):not(:disabled) { --top: #db602b; --bottom: #8d2113; }
.skin:is(:active, [data-state="pressed"]):not(:disabled) { --top: #361a13; --bottom: #68371d; --inner: #985d35; }
.primary:is(:active, [data-state="pressed"]):not(:disabled) { --top: #59130e; --bottom: #9b341c; }
.skin:active:not(:disabled) { transform: translateY(1px); }
.skin:is(:disabled, [data-state="disabled"]) { --edge: #8f6e51; --inner: #6e5346; --top: #433832; --bottom: #28211e; --light: #d0bca6; filter: none; }
.skin[data-state="focus"], .frame[data-state="focus"] { outline: 2px solid #ffe29c; outline-offset: 4px; }
.skin:is(:focus-visible, [data-state="focus"]) { filter: none; }

.hero {
  position: relative; isolation: isolate; min-height: clamp(525px, 44vw, 725px);
  padding-bottom: calc(var(--poster-overlap, 75px) + 20px);
}
.hero-art, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%;
  mask-image: linear-gradient(#000 58%, #000b 80%, transparent);
}
.hero::after { content: ""; background: linear-gradient(#200c0a75, transparent 20%); }
.hero-inner { display: grid; grid-template-columns: .92fr 1.08fr; }
.hero-content { grid-column: 2; width: min(100%, 560px); display: grid; justify-items: center; text-align: center; padding-top: clamp(32px, 4.1vw, 68px); }
.hero-logo { width: clamp(252px, 28vw, 438px); aspect-ratio: 1254 / 1019; margin: 0 0 -5px; line-height: 0; }
.hero-tagline { margin: 5px 0 14px; color: #ffdf99; font: bold clamp(14px, 1.55vw, 20px)/1.3 var(--serif); text-shadow: 0 2px 4px #1d0806; }
.hero-tagline span { margin-inline: 4px; font-size: .68em; color: #e6a854; }
.plaque {
  --plaque-cap: clamp(31px, 6vw, 65px);
  isolation: isolate; position: relative; display: inline-grid; place-items: center; max-width: 100%;
  min-height: clamp(45px, 5.3vw, 70px); padding: 4px calc(var(--plaque-cap) + 4px) 5px;
  color: #ffe6aa; text-shadow: 0 2px 2px #260807, 0 0 10px #d35f3180;
  font: italic 700 clamp(19px, 3vw, 37px)/1.08 var(--serif); text-align: center;
}
.plaque::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-image: url("../assets/ui/title-plaque.webp") 0 180 fill / 0 var(--plaque-cap) stretch;
  filter: drop-shadow(0 4px 6px #11030190);
}
.hero-plaque { margin: 0; filter: drop-shadow(0 0 7px #df57154d); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 16px; }
.hero-actions .skin { min-height: 46px; }
.hero-actions .skin span { font-size: 1.24em; }

main { --poster-overlap: 75px; }
.page-panels { position: relative; margin-top: calc(-1 * var(--poster-overlap)); padding-bottom: 44px; }
.frame {
  border: 1px solid #e8b86d; border-radius: 10px; box-shadow: inset 0 0 0 2px #b27744, 0 9px 22px #0f020357;
  position: relative; isolation: isolate;
}
.frame::after {
  --corner-size: clamp(24px, 4.4vw, 54px);
  content: ""; display: block; position: absolute; z-index: 1; inset: 4px; border: 1px solid #f3c87a95;
  border-radius: 5px; pointer-events: none; opacity: .8;
}
.frame::after, .feature::after, .event-tile::before {
  background-image: var(--corners);
  background-position: left top, right top, left bottom, right bottom;
  background-size: var(--corner-size);
  background-repeat: no-repeat;
}
.frame.parchment::after { opacity: .54; border-color: #b4814c80; }
.media::after { --corner-size: clamp(23px, 3.5vw, 40px); }
.trailer { width: min(760px, 76%); margin: 0 auto 35px; }
.media { display: grid; position: relative; width: 100%; padding: 4px; overflow: hidden; background: #3a1c13; color: var(--gold-light); aspect-ratio: 16 / 9; }
.media > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 6px; }
.media-play {
  display: grid; place-items: center; position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding-left: 4px;
  width: clamp(46px, 6.2vw, 72px); aspect-ratio: 1; border: 2px solid #ffe0a8; border-radius: 100%;
  background: #1d0e0ac2; color: #fff0c7; font-size: clamp(19px, 2.4vw, 28px); transition: background .17s, scale .17s;
}
.media:is(:hover, [data-state="hover"]) .media-play { background: #8f2617; scale: 1.07; }
.media:is(:active, [data-state="pressed"]) .media-play { scale: .93; }
.media-label {
  position: absolute; inset: auto 4px 4px; padding: 18px 13px 9px;
  text-align: left; font-size: 14px; font-weight: 700; background: linear-gradient(transparent, #200d0be8);
}
.landing-section + .landing-section { margin-top: 34px; }
.section-title { display: flex; align-items: center; margin: 0 0 15px; }
.section-title::before, .section-title::after {
  content: ""; flex: 1; height: 4px; opacity: .83;
  background-repeat: no-repeat;
}
.section-title::before { background-image: linear-gradient(90deg, transparent, #d7a35d), linear-gradient(90deg, transparent 40%, #744827); background-size: 100% 1px; background-position: top, bottom; }
.section-title::after { background-image: linear-gradient(270deg, transparent, #d7a35d), linear-gradient(270deg, transparent 40%, #744827); background-size: 100% 1px; background-position: top, bottom; }
.section-title .plaque { flex: 0 1 auto; text-align: center; }
.parchment { color: var(--ink); background: #f6dfa9 url("../assets/parchment.webp") center / cover; }
.server-grid { display: grid; grid-template-columns: minmax(0, 1fr) 1.25fr minmax(0, 1fr); gap: 16px; align-items: stretch; overflow: hidden; padding: 20px; }
.server-art { position: absolute; inset: 0; z-index: -1; height: 100%; width: 100%; object-fit: cover; object-position: 50% 47%; }
.server-grid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #260b08bc 0%, transparent 36% 64%, #260b08bc 100%); }
.feature-list { display: grid; gap: 8px; }
.feature-list.right { grid-column: 3; }
.feature { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 10px; min-height: 72px; border: 1px solid #a77640; border-radius: 7px; }
.feature::after { --corner-size: 15px; content: ""; position: absolute; inset: 2px; pointer-events: none; opacity: .55; }
.feature b { text-align: center; color: #86491a; font-size: 25px; }
.feature h3, .feature p { margin: 0; line-height: 1.26; }
.feature h3 { margin-bottom: 3px; font: bold 17px/1.1 var(--serif); }
.feature p { font-size: 13px; }

.event-list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; }
.event-tile {
  position: relative; min-width: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-align: center;
  border: 1px solid #aa713f; background: #3d1a12; color: #ffe4b5; padding: 3px; border-radius: 7px;
}
.event-tile::before { --corner-size: 17px; content: ""; position: absolute; inset: 2px; pointer-events: none; opacity: .59; }
.event-tile img { width: 100%; height: auto; aspect-ratio: 1.44; object-fit: cover; border-radius: 4px; }
.event-tile span { padding: 5px 2px 4px; font-weight: 650; font-size: 13px; line-height: 1.25; align-self: center; }
.event-tile:is(:hover, [data-state="hover"]) { border-color: #ffe1a4; background: #642718; }
.event-tile:is([aria-selected="true"], [data-state="selected"]) { border-color: #ffe1a4; background: #80351e; box-shadow: 0 0 10px #ffab4580, inset 0 0 0 1px #e2a056; color: #fff4d3; }
.event-panels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-top: 15px; }
/* Events | Activities side by side (one column when there are no activities) */
.ea-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.ea-split:has(> .ea-col[hidden]) { grid-template-columns: minmax(0, 1fr); }
.ea-col[hidden] { display: none; }
/* subgrid: both columns share the title / tiles / overview rows, so the two overview cards line up and match in height */
.ea-split { grid-template-rows: auto auto 1fr; row-gap: 12px; }
.ea-col { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 12px; min-width: 0; }
.ea-col .event-list { align-content: start; }
.ea-col .detail { align-self: stretch; }
/* every tile the same height: names always get room for two lines */
.ea-col .event-tile span { display: flex; align-items: center; justify-content: center; min-height: calc(2.5em + 12px); }
.ea-col .section-title { margin: 0 0 3px; }
.ea-split:not(:has(> .ea-col[hidden])) .event-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ea-col .detail { min-height: 190px; }
@media (min-width: 941px) { .ea-col .event-tile span { min-height: calc(2.5em + 16px); } }
#events > .reward-panel { margin-top: 15px; }
@media (max-width: 940px) {
  .ea-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 26px; }
  .ea-col { grid-row: auto; grid-template-rows: none; }
}
.detail, .reward-panel { padding: 17px; }
.detail { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; gap: 12px; }
.detail > img { width: 100%; height: auto; aspect-ratio: 1.22; object-fit: contain; padding: 3px; }
.detail > img.tile-detail { object-fit: cover; max-height: 166px; padding: 2px; background: #9a5828; border-radius: 7px; }
.kicker { color: #7a3c28; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 5px; }
.detail h3, .reward-panel h3 { font: 700 clamp(19px, 2.3vw, 28px)/1.08 var(--serif); margin: 0 0 8px; }
.detail p:last-child, .school-copy p:last-of-type { font-size: 14px; margin: 0; }
.reward-panel h3 { text-align: center; }
.rewards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 440px; margin-inline: auto; }
.reward { margin: 0; padding: 2px; background: #be814a; border-radius: 5px; overflow: hidden; }
.reward img { width: 100%; height: auto; aspect-ratio: 1.3; object-fit: contain; background: #240d10; border-radius: 4px; }
.reward { display: block; position: relative; color: inherit; text-decoration: none; }
.reward img { display: block; }
.reward-panel[hidden] { display: none; }
.reward-name { position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 3px 4px; border-radius: 0 0 4px 4px; background: linear-gradient(transparent, #120507e6 45%); color: #ffe2a6; font: 700 11px/1.2 var(--serif); text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.reward:hover .reward-name, .reward:focus-visible .reward-name { opacity: 1; }
.reward.has-article { cursor: pointer; }
.reward.has-article::after { content: "›"; position: absolute; top: 4px; right: 5px; width: 15px; height: 15px; border-radius: 50%; background: #be814a; color: #fff; font: 700 13px/14px sans-serif; text-align: center; }
.reward:focus-visible { outline: 2px solid #ffb54a; outline-offset: 2px; }

.school-list { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 0 0 14px; }
.school-tab { padding: 2px 0 5px; border: 0; background: transparent; display: grid; justify-items: center; align-content: start; gap: 5px; font-weight: 700; font-size: 13px; }
.medallion {
  isolation: isolate; position: relative; display: grid; place-items: center; aspect-ratio: 1;
}
.medallion::before, .medallion::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1; border-radius: 50%;
}
.medallion img {
  width: 82%; height: auto; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 1px 2px #160705);
}
.school-tab[aria-selected="true"] { color: #ffe9ac; }
.school-panel {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.36fr);
  align-items: center; gap: clamp(14px, 2vw, 27px); padding: clamp(16px, 2.2vw, 30px); min-height: 435px;
}
.school-figure { position: relative; align-self: stretch; min-height: 0; }
.school-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.school-copy h3 { color: #801d15; font: italic 700 clamp(29px, 4vw, 46px)/1 var(--serif); margin: 0 0 9px; }
.radar { display: block; width: min(100%, 198px); height: auto; margin-top: 4px; }

.preview-dialog { width: min(675px, calc(100% - 32px)); padding: 22px; text-align: center; margin: auto; }
.preview-dialog::backdrop { background: #150a0ad4; }
.preview-dialog h2 { margin: 0 0 8px; font: bold 30px/1.12 var(--serif); color: #6c1c14; }
.preview-dialog p { margin: 0 0 18px; }
.preview-dialog img { width: 100%; max-height: 55vh; object-fit: contain; margin: 0 auto 15px; }

.register-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 22px 26px; margin: auto; overflow-y: auto; }
.register-dialog::backdrop { background: #150a0ad4; }
.register-dialog h2 { margin: 0 0 14px; font: bold 30px/1.12 var(--serif); color: #6c1c14; text-align: center; }
.register-form { display: grid; gap: 10px; position: relative; z-index: 2; }
.register-form[hidden] { display: none; }
.register-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.register-form label { display: grid; align-content: start; gap: 4px; font-weight: 700; font-size: 14px; color: #4a2216; }
.register-form .optional { font-weight: 400; color: #7a5640; }
.register-form input {
  width: 100%; min-height: 40px; padding: 8px 11px; font: inherit; font-weight: 400; font-size: 15px; color: var(--ink);
  background: #fff7e3d9; border: 1px solid #a77640; border-radius: 6px; box-shadow: inset 0 1px 3px #6b3b1a33;
}
.register-form input:focus { outline: 2px solid #b0542a; outline-offset: 1px; border-color: #b0542a; }
.register-form input[aria-invalid="true"] { border-color: #b3261e; background: #fff0ea; }
.register-form small { color: #a3221a; font-weight: 600; font-size: 12.5px; }
.register-form small:empty { display: none; }
.captcha-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.captcha-row input { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.captcha-refresh { padding: 0; border: 1px solid #a77640; border-radius: 6px; background: none; cursor: pointer; line-height: 0; overflow: hidden; }
.captcha-refresh img { width: 120px; height: 40px; object-fit: cover; }
.register-message { margin: 0; text-align: center; font-weight: 600; color: #a3221a; }
.register-message.is-ok { color: #2f6b2a; }
.register-message:empty { display: none; }
.register-submit { justify-self: center; min-width: 190px; margin-top: 4px; }
.register-done { position: relative; z-index: 2; display: grid; gap: 16px; justify-items: center; text-align: center; }
.register-done p { margin: 0; font-size: 16px; }
/* Download dialog */
.download-dialog { width: min(520px, calc(100% - 32px)); padding: 24px 26px; margin: auto; }
.download-dialog::backdrop { background: #150a0ad4; }
.download-dialog > * { position: relative; z-index: 2; }
.download-dialog h2 { margin: 0 0 16px; font: bold 30px/1.12 var(--serif); color: #6c1c14; text-align: center; }
.download-list { display: grid; gap: 12px; }
.download-option { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 18px; text-align: left; text-decoration: none; }
.download-option img { width: 22px; height: 22px; flex: none; }
.download-option span { display: grid; gap: 2px; }
.download-option b { font-size: 17px; }
.download-option small { font-size: 12.5px; font-weight: 400; opacity: .85; }
.download-hint { margin: 16px 0 0; font-size: 13.5px; color: #5a3424; text-align: center; }

/* Article links + article page */
#event-description { font-size: 14px; margin: 0; }
.read-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; color: #8f2a18; text-decoration: underline; text-underline-offset: 3px; }
.read-more[hidden] { display: none; }
.feature.has-article h3 a { color: inherit; text-decoration: underline; text-decoration-color: #a7764090; text-underline-offset: 3px; }
.feature.has-article h3 a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.feature.has-article:hover { border-color: #6c1c14; }
.feature-peek { position: fixed; z-index: 60; width: 300px; padding: 12px 14px 13px; border: 1px solid #a77640; border-radius: 8px; box-shadow: 0 14px 34px #1d0806a8; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }
.feature-peek.is-on { opacity: 1; transform: none; }
.feature-peek img { display: block; width: 100%; max-height: 160px; margin-bottom: 10px; border-radius: 5px; object-fit: cover; }
.feature-peek img[hidden], .feature-peek p[hidden] { display: none; }
.feature-peek h4 { margin: 0 0 5px; font: bold 17px/1.15 var(--serif); color: #6c1c14; }
.feature-peek p { margin: 0; font-size: 13px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .feature-peek { transition: none; transform: none; } }
.article-card { width: min(820px, 100%); margin: 0 auto; padding: 28px 34px 34px; }
.article-card > * { position: relative; z-index: 2; }
.article-back { display: inline-block; margin-bottom: 10px; font-weight: 700; color: #8f2a18; }
.article-title { margin: 0 0 16px; font: bold clamp(26px, 4vw, 36px)/1.12 var(--serif); color: #6c1c14; }
.article-image { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; margin: 0 0 18px; border: 1px solid #a7764080; border-radius: 8px; background: #2a110d; }
.article-image[hidden] { display: none; }
.article-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: #331912; }
.article-body::after { content: ""; display: block; clear: both; }
.article-fig { margin: 6px auto 16px; max-width: 100%; }
.article-fig img { display: block; width: 100%; height: auto; border: 1px solid #a7764080; border-radius: 6px; }
.article-fig figcaption { margin-top: 6px; font-size: 13px; font-style: italic; text-align: center; color: #6b4a3a; }
.article-fig.left { float: left; margin: 4px 22px 12px 0; }
.article-fig.right { float: right; margin: 4px 0 12px 22px; }
.article-fig.full { width: 100%; }
.article-video .video-box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #a7764080; border-radius: 6px; background: #000; }
.article-video .video-box iframe, .article-video .video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.article-video.facebook .video-box { aspect-ratio: 16 / 10; }
@media (max-width: 560px) {
  .article-card { padding: 20px 16px 24px; }
  .article-fig.left, .article-fig.right { float: none; width: 100% !important; margin: 6px 0 16px; }
}

/* Account page */
.account-main { padding-block: 48px 64px; }
.account-card { width: min(620px, 100%); margin: 0 auto; padding: 28px 30px; }
.account-card > * { position: relative; z-index: 2; }
.account-card h1 { margin: 0 0 18px; font: bold 32px/1.12 var(--serif); color: #6c1c14; text-align: center; }
.account-card [hidden] { display: none !important; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid #a7764080; }
.account-tabs button { padding: 9px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: none; color: #6a4330; font: 700 14px/1.2 var(--serif); cursor: pointer; margin-bottom: -1px; }
.account-tabs button:hover { color: #6c1c14; }
.account-tabs button[aria-selected="true"] { border-color: #a7764080; background: #fff6df; color: #6c1c14; }
.account-hint { margin: 0; font-size: 14px; color: #5a3424; text-align: center; }
.account-hint a { color: #8f2a18; text-decoration: underline; }
.account-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 20px; }
.account-info div { padding: 10px 12px; border: 1px solid #a7764080; border-radius: 8px; background: #fff6df; }
.account-info dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #7a5640; }
.account-info dd { margin: 2px 0 0; font-weight: 700; color: #331912; overflow-wrap: anywhere; }
.account-logout { display: block; margin: 18px auto 0; }
.account-loading { margin: 0; text-align: center; color: #5a3424; }
@media (max-width: 560px) {
  .register-dialog { padding: 18px 16px; }
  .register-row { grid-template-columns: 1fr; gap: 10px; }
  .account-main { padding-block: 24px 40px; }
  .account-card { padding: 22px 16px; }
  .account-tabs button { flex: 1 1 auto; padding: 8px 10px; font-size: 13px; }
}


@media (max-width: 940px) {
  .wrap { width: calc(100% - 36px); }
  .bar { grid-template-columns: 100px 1fr 118px; }
  .bar nav { gap: 15px; }
  .bar nav a { font-size: 14px; }
  .header-download { padding-inline: 13px; }
  .hero-art img { object-position: 45% top; }
  .hero-content { padding-top: 44px; }
  .server-grid { grid-template-columns: minmax(0,1fr) .48fr minmax(0,1fr); }
  .event-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .bar { grid-template-columns: 1fr auto; min-height: 58px; }
  .brand { width: 77px; height: 57px; }
  .brand img { height: 46px; }
  .menu-button { display: inline-grid !important; min-height: 38px; }
  .header-download, .bar nav { display: none; }
  .bar nav.is-open { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; justify-items: center; padding: 0 0 12px; gap: 3px 8px; }
  .hero { min-height: 0; padding-bottom: 25px; }
  .hero-art img { object-position: center top; height: auto; }
  .hero-art img { mask-image: linear-gradient(#000 52%, #000a 76%, transparent); }
  .hero-inner { display: block; }
  .hero-content { padding-top: clamp(158px, 61vw, 370px); width: 100%; }
  .hero-logo { width: clamp(174px, 55vw, 273px); }
  .hero-tagline { margin-bottom: 10px; }
  .hero-actions { gap: 6px; margin-top: 12px; }
  .hero-actions .skin { min-height: 42px; padding: 5px 11px; gap: 5px; font-size: 14px; }
  .page-panels { margin-top: 0; padding-bottom: 28px; }
  .trailer { width: 100%; margin-bottom: 24px; }
  .landing-section + .landing-section { margin-top: 23px; }
  .section-title { margin-bottom: 11px; }
  .section-title .plaque { min-height: 50px; }
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: max(145px, 35vw) 9px 9px; }
  .server-art { height: clamp(170px, 46vw, 245px); object-position: 50% 55%; }
  .server-grid::before { background: linear-gradient(0deg, #401711 35%, transparent 82%); }
  .feature-list.right { grid-column: 2; }
  .feature { grid-template-columns: 20px 1fr; gap: 6px; min-height: 76px; padding: 6px; }
  .feature b { font-size: 17px; }
  .feature h3 { font-size: 14px; }
  .feature p { font-size: 11px; }
  .event-list { gap: 6px; }
  .event-tile span { font-size: 11px; }
  .event-panels { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }
  .detail { min-height: 137px; padding: 11px; }
  .reward-panel { padding: 14px 13px 13px; }
  .school-list { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 8px; }
  .school-tab { font-size: 12px; }
  .radar { width: min(100%, 151px); }
}
@media (max-width: 350px) {
  .hero-actions .skin { padding-inline: 8px; font-size: 12px; }
  .feature { grid-template-columns: 1fr; align-content: start; }
  .feature b { display: none; }
}

/* Keep the landscape visible beside the main content. */
body {
  background: #260e0b url("../assets/burgundy-landscape.webp") center bottom / max(100%, 1100px) auto repeat-y;
}
.section-title { gap: clamp(8px, 2.2vw, 30px); margin-bottom: 21px; }
.section-title .plaque {
  --plaque-cap: clamp(33px, 5vw, 68px);
  min-height: clamp(40px, 3.9vw, 57px); padding: 5px calc(var(--plaque-cap) + 4px);
  font: italic 700 clamp(21px, 2.5vw, 35px)/1.15 var(--serif);
  color: #ffe1a3; text-shadow: 0 2px 3px #210706;
}
.plaque::before { filter: saturate(1.45) brightness(1.3) drop-shadow(0 0 3px #de7a2890); }
.hero-plaque { min-height: clamp(44px, 4.5vw, 61px); font-style: normal; }
.hero-actions .skin { min-width: clamp(105px, 9vw, 150px); min-height: 51px; }
.skin.ornate::before {
  clip-path: none; border-image: url("../assets/ui/button-umber.webp") 0 86 fill / 0 23px stretch;
  background: none;
}
.skin.primary.ornate::before { border-image-source: url("../assets/ui/button-ruby.webp"); }
.skin.ornate::after { display: none; }
.skin.ornate { font-family: var(--serif); font-size: 18px; color: #ffe7aa; }
.skin.ornate:is(:hover,[data-state="hover"]):not(:disabled)::before { filter: brightness(1.24); }
.skin.ornate:is(:active,[data-state="pressed"]):not(:disabled)::before { filter: brightness(.78); }
.skin.ornate:disabled::before { filter: grayscale(.9) brightness(.62); }
.skin.ornate img { width: 20px; height: 20px; }
.header-download.ornate { padding-inline: 12px; min-height: 40px; font-size: 16px; }
.header-download.ornate img { width: 16px; height: 16px; }
.section-title::before, .section-title::after { height: 1px; opacity: .7; }
.landing-section + .landing-section { margin-top: clamp(35px, 4vw, 58px); }
.school-list { padding: 13px 4px 10px; margin-bottom: 19px; border-block: 1px solid; }
.school-tab { gap: 8px; color: #e3cbab; font-weight: 550; }
.medallion { width: clamp(44px, 5.5vw, 76px); }
.school-tab[aria-selected="true"] { text-decoration: underline; text-underline-offset: 5px; }
/* School seals: a stamped brass rim, an enamel center and four engraved studs. */
.school-list {
  background:
    linear-gradient(90deg, transparent, #4b1a1333 18% 82%, transparent),
    linear-gradient(#1d0909, #2d100d 53%, #1d0909);
  border-block-color: #bd8a4e60;
  box-shadow: inset 0 1px #1c0604, inset 0 -1px #1c0604;
}
.medallion {
  --rim-light: #eac88c;
  --rim-dark: #754521;
  --rim-inset: #b8874f;
  --enamel: #54231a;
  --stud: #edc184;
  border-radius: 50%;
  filter: drop-shadow(0 2px 3px #120403c7);
}
.medallion::before {
  inset: 0;
  background: conic-gradient(from 18deg, var(--rim-dark), var(--rim-light) 14%, var(--rim-dark) 31%, var(--rim-inset) 49%, var(--rim-dark) 65%, var(--rim-light) 86%, var(--rim-dark));
  box-shadow: inset 0 0 0 1px #e4b56a80;
}
.medallion::after {
  inset: 2px;
  background:
    radial-gradient(circle closest-side, transparent 83%, #210a07 84% 87%, var(--rim-inset) 88% 90%, transparent 91%),
    radial-gradient(ellipse at 47% 27%, var(--enamel), #29100d 85%);
  box-shadow: inset 0 0 0 1px #210a07;
}
.medallion-studs {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle closest-side, var(--stud) 55%, #76421e 65% 92%, transparent) center top 4% / 8% 8%,
    radial-gradient(circle closest-side, var(--stud) 55%, #76421e 65% 92%, transparent) right 4% center / 8% 8%,
    radial-gradient(circle closest-side, var(--stud) 55%, #76421e 65% 92%, transparent) center bottom 4% / 8% 8%,
    radial-gradient(circle closest-side, var(--stud) 55%, #76421e 65% 92%, transparent) left 4% center / 8% 8%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.school-tab:hover .medallion, .medallion[data-state="hover"] {
  --rim-light: #ffe1a2;
  --rim-inset: #d1a568;
  --enamel: #6b3022;
}
.school-tab[aria-selected="true"] .medallion, .medallion[data-state="selected"] {
  --rim-light: #ffedbe;
  --rim-dark: #9e582a;
  --rim-inset: #f3c473;
  --enamel: #8b2b21;
  --stud: #fff0bc;
  filter: drop-shadow(0 2px 3px #1b0605) drop-shadow(0 0 6px #d8843b66);
}

.school-tab:is(:hover,:focus-visible) { color: #ffedc5; }
.school-tab:is(:hover,:focus-visible) .medallion,
.medallion[data-state="hover"] {
  --stud: #fff2c6;
  filter: drop-shadow(0 2px 3px #1b0605) drop-shadow(0 0 7px #edac587a);
}
.school-tab:is(:hover,:focus-visible) .medallion::before,
.medallion[data-state="hover"]::before {
  box-shadow: inset 0 0 0 1px #ffe7a8b3;
}
.school-tab:is(:hover,:focus-visible) .medallion img,
.medallion[data-state="hover"] img {
  filter: drop-shadow(0 1px 2px #160705) drop-shadow(0 -1px 4px #ffd58e65);
}
@media all {
  .medallion, .medallion img { transition: filter .2s ease; }
}

.media-label { padding-left: 20px; color: #ffedcf; font-weight: 600; }
@media (min-width: 941px) {
  .hero-logo { width: clamp(255px, 24vw, 384px); }
  .hero-content { padding-top: clamp(42px, 4.5vw, 75px); }
  .event-tile span { padding-block: 8px; font-weight: 600; }
  .feature { min-height: 79px; padding: 10px 14px; }
  .detail, .reward-panel { padding: 23px; }
}
@media (max-width: 650px) {
  .section-title { margin-bottom: 14px; }
  body { background-size: 100% auto; }
  .hero-actions .skin { min-width: 0; min-height: 43px; font-size: clamp(13px,3.5vw,16px); }
  .skin.ornate img { width: 17px; height: 17px; }
  .school-list { row-gap: 12px; }
  .school-tab { gap: 4px; }
}
.school-media-backdrop, .school-cover #dialog-art { filter: sepia(.24) brightness(.55); }
.school-media > .school-media-crest, .preview-dialog .school-media-crest {
  position: absolute; inset: 13% auto auto 10%; width: 20%; height: auto; aspect-ratio: 1;
  object-fit: contain; filter: drop-shadow(0 2px 6px #190a08);
}
.school-cover { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #3a1c13; }
.school-cover #dialog-art { height: 100%; max-height: none; object-fit: cover; }
.dialog-media { position: relative; margin: 0 auto 15px; }
.preview-dialog .dialog-media img { margin: 0; }
.school-media .media-play { width: clamp(38px, 4.5vw, 58px); font-size: clamp(16px, 2vw, 24px); }
.role-chart { margin: 8px 0 0; text-align: center; }
.role-chart .radar { width: 100%; max-width: 224px; margin: auto; }
.role-chart figcaption, .emei-choice { font-size: 12px; color: #693d27; }
.emei-choice { display: grid; gap: 4px; margin-top: 8px; }
.emei-choice select { min-width: 0; max-width: 100%; background: #fff0ca; color: #431d12; border: 1px solid #ad763d; border-radius: 5px; padding: 7px; }
@media (max-width: 820px) {
  .school-panel { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); grid-template-rows: minmax(370px, auto) auto; }
  .school-media { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .school-panel { grid-template-columns: minmax(0, .77fr) minmax(0, 1fr); gap: 12px; padding: 13px; }
  .school-figure img { object-position: center 45%; }
  .school-copy h3 { font-size: clamp(24px, 6vw, 30px); }
  .role-chart .radar { max-width: 156px; }
}

/* Keep ambient motion behind the logo, copy and controls. */
.hero-atmosphere { display: none; }
@media all {
  .hero-atmosphere {
    display: block; position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; z-index: -1;
    mask-image: linear-gradient(transparent, black 12%, black 74%, transparent 95%);
  }
  .hero-atmosphere::before {
    content: ""; position: absolute; left: -6%; bottom: 8%; width: 64%; height: 23%;
    background: radial-gradient(ellipse, rgb(219 161 133 / 14%), transparent 68%);
    animation: valley-mist 14s ease-in-out infinite alternate;
  }
  .hero-atmosphere i {
    position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px;
    border-radius: 50%; background: #ffb568; box-shadow: 0 0 5px #e7783a;
    animation: drifting-ember var(--time) ease-in-out var(--delay) infinite;
  }
  .hero-atmosphere i:nth-child(1) { --x: 6%; --y: 72%; --time: 7s; --delay: -3s; }
  .hero-atmosphere i:nth-child(2) { --x: 22%; --y: 84%; --time: 9s; --delay: -7s; }
  .hero-atmosphere i:nth-child(3) { --x: 39%; --y: 62%; --time: 8s; --delay: -4s; }
  .hero-atmosphere i:nth-child(4) { --x: 84%; --y: 71%; --time: 10s; --delay: -8s; }
  .hero-atmosphere i:nth-child(5) { --x: 93%; --y: 50%; --time: 8s; --delay: -2s; }
}
@keyframes valley-mist {
  from { transform: translateX(0); opacity: .4; }
  to { transform: translateX(12%); opacity: 1; }
}
@keyframes drifting-ember {
  0% { transform: translate(0, 12px) scale(.55); opacity: 0; }
  36% { opacity: .84; }
  75% { opacity: .5; }
  100% { transform: translate(28px, -58px) scale(.65); opacity: 0; }
}

/* ===== Production additions ===== */
.topbar { position: sticky; top: 0; z-index: 20; transition: box-shadow .2s, background .2s; }
.topbar.is-scrolled { box-shadow: 0 6px 18px #0d0302a8; background: linear-gradient(110deg, #1c0a08f2, #2d110ef2 55%, #1c0a08f2); backdrop-filter: blur(6px); }
section[id], header[id] { scroll-margin-top: 78px; }

/* Video / info modal */
.preview-dialog .dialog-video { position: relative; aspect-ratio: 16 / 9; margin: 0 auto 15px; border-radius: 6px; overflow: hidden; background: #000; }
.preview-dialog .dialog-video :is(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview-dialog.is-video { width: min(980px, calc(100% - 24px)); }
.dialog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.dialog-close { position: absolute; top: 8px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 1px solid #a77640; border-radius: 50%; background: #fff3d6; color: #6c1c14; font-size: 20px; line-height: 1; }

/* Footer */
.site-footer { border-top: 1px solid #a46b3e; background: #1c0807; color: #e8c895; font-size: 14px; }
.site-footer .footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 32px; align-items: center; padding-block: 26px; }
.site-footer .footer-logo img { width: 92px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a:hover { color: #ffdc83; }
.site-footer .socials { display: flex; gap: 10px; }
.site-footer .socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #a77640; border-radius: 50%; background: #3a1712; font-weight: 700; }
.site-footer .socials a:hover { background: #80351e; border-color: #ffe1a4; }
.site-footer .copyright { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #a46b3e40; text-align: center; color: #b99872; font-size: 12px; }

/* Mobile floating CTA */
.mobile-cta { display: none; }
@media (max-width: 650px) {
  .mobile-cta {
    display: flex; position: fixed; inset: auto 0 0; z-index: 15; gap: 6px; justify-content: center;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #1a0706 35%);
    transform: translateY(110%); transition: transform .25s;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .skin { flex: 1; min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 14px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 64px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer nav { justify-content: center; }
}

/* Reveal on scroll */
@media all {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ===== Motion FX (After Effects style) ===== */
.hero-fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-glow { position: absolute; z-index: -1; pointer-events: none; right: 1%; top: 2%; width: 26vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #ffcf7a55, #ff8a3a22 40%, transparent 68%); mix-blend-mode: screen; opacity: 0; }
.hero-art img { will-change: transform; }

@media all {
  /* Intro sequence */
  .fx-ready .hero-art { animation: fx-hero-in 2.2s cubic-bezier(.2,.7,.2,1) both; }
  .fx-ready .hero-logo { animation: fx-logo-in 1.3s cubic-bezier(.16,1,.3,1) .35s both, fx-float 6s ease-in-out 2s infinite; }
  .fx-ready .hero-tagline { animation: fx-rise .8s ease-out .95s both; }
  .fx-ready .hero-plaque { animation: fx-plaque-in .9s cubic-bezier(.2,1.4,.4,1) 1.1s both; }
  .fx-ready .hero-actions .skin { animation: fx-rise .7s ease-out both; }
  .fx-ready .hero-actions .skin:nth-child(1) { animation-delay: 1.35s; }
  .fx-ready .hero-actions .skin:nth-child(2) { animation-delay: 1.47s; }
  .fx-ready .hero-actions .skin:nth-child(3) { animation-delay: 1.59s; }
  .fx-ready .trailer { animation: fx-rise 1s ease-out 1.6s both; }
  .fx-ready .hero-glow { animation: fx-glow 5s ease-in-out 1s infinite alternate; }

  /* Logo light sweep, masked to the logo shape */
  .hero-logo { position: relative; }
  .hero-logo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    -webkit-mask: url("../assets/logo-jx2.webp") center / contain no-repeat; mask: url("../assets/logo-jx2.webp") center / contain no-repeat;
    background: linear-gradient(115deg, transparent 38%, #fff6d8cc 48%, #ffd27a88 52%, transparent 62%) 0 0 / 300% 100% no-repeat;
    mix-blend-mode: screen; animation: fx-sweep 4.5s ease-in-out 2.2s infinite;
  }

  /* Plaque & primary button shine */
  .plaque { overflow: hidden; }
  .plaque::after {
    content: ""; position: absolute; z-index: 1; inset: 18% calc(var(--plaque-cap) * .55); pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, #ffe9b366 50%, transparent 65%) 0 0 / 300% 100% no-repeat;
    mix-blend-mode: screen; animation: fx-sweep 5s ease-in-out 3s infinite;
  }
  .skin.primary.ornate { overflow: hidden; }
  .skin.primary.ornate::after {
    display: block; inset: 4px 10px; z-index: 0; clip-path: none; box-shadow: none;
    background: linear-gradient(110deg, transparent 35%, #fff1c455 50%, transparent 65%) 0 0 / 300% 100% no-repeat;
    mix-blend-mode: screen; animation: fx-sweep 3.6s ease-in-out 2.5s infinite;
  }

  /* Play button ripple */
  .media-play::before, .media-play::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #ffd58f; pointer-events: none;
    animation: fx-ripple 2.4s ease-out infinite;
  }
  .media-play::after { animation-delay: 1.2s; }

  /* Section title: plaque pops, lines draw outward */
  .reveal .section-title .plaque { transform: scale(.7); opacity: 0; transition: transform .7s cubic-bezier(.2,1.5,.4,1) .1s, opacity .4s .1s; }
  .reveal .section-title::before { transform: scaleX(0); transform-origin: right; transition: transform .9s ease-out .3s; }
  .reveal .section-title::after { transform: scaleX(0); transform-origin: left; transition: transform .9s ease-out .3s; }
  .reveal.is-in .section-title .plaque { transform: none; opacity: 1; }
  .reveal.is-in .section-title::before, .reveal.is-in .section-title::after { transform: none; }
  .reveal .feature, .reveal .event-tile, .reveal .school-tab { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 60ms + .35s); }
  .reveal.is-in .feature, .reveal.is-in .event-tile, .reveal.is-in .school-tab { opacity: 1; transform: none; }

  /* Tab content swaps */
  .fx-swap-portrait { animation: fx-portrait .7s cubic-bezier(.16,1,.3,1) both; }
  .fx-swap-fade { animation: fx-fade .5s ease-out both; }
  .event-tile img, .reward img { transition: transform .4s ease; }
  .event-tile:hover img, .reward:hover img { transform: scale(1.08); }
  .reward { transition: box-shadow .3s; }
  .reward:hover { box-shadow: 0 0 12px #ffb54a99; }
}

@keyframes fx-hero-in { from { transform: scale(1.12); filter: brightness(.3) blur(6px); } to { transform: none; filter: none; } }
@keyframes fx-logo-in {
  0% { opacity: 0; transform: scale(1.6); filter: blur(14px) brightness(2.2); }
  60% { opacity: 1; filter: blur(0) brightness(1.6); }
  100% { transform: scale(1); filter: none; }
}
@keyframes fx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fx-plaque-in { from { opacity: 0; transform: scaleX(.2); filter: brightness(2); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fx-sweep { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }
@keyframes fx-ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes fx-glow { from { opacity: .45; transform: scale(.95); } to { opacity: 1; transform: scale(1.08); } }
@keyframes fx-portrait { from { opacity: 0; transform: translateX(-30px) scale(.96); filter: brightness(1.8) blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 650px) { .hero-glow { display: none; } }
/* Article rich text + admin preview banner */
.article-body h2 { margin: 22px 0 10px; font: bold 24px/1.2 var(--serif); color: #6c1c14; }
.article-body h3 { margin: 18px 0 8px; font: bold 19px/1.25 var(--serif); color: #7a2a18; }
.article-body ul { margin: 0 0 14px; padding-left: 22px; font-size: 16px; line-height: 1.65; color: #331912; }
.article-body li { margin: 2px 0; }
.article-body a { color: #8f2a18; text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: #4a170f; }
.preview-banner { margin: 0 0 12px; padding: 8px 12px; border: 1px dashed #8f2a18; border-radius: 6px; background: #fbeee6; color: #8f2a18; font-weight: 700; font-size: 14px; }

/* Events | Activities: each column in its own framed panel */
.ea-col.frame { padding: 16px 20px 22px; }
.ea-col.frame::after { --corner-size: 34px; }
.ea-col.frame > * { position: relative; z-index: 2; }
.ea-events { background: linear-gradient(180deg, #5a1a12d9, #2c0b08e6); }
.ea-activities { background: linear-gradient(180deg, #3d2a12d9, #1f1409e6); }
.ea-col .section-title { margin-bottom: 6px; }
@media (max-width: 940px) { .ea-col.frame { padding: 12px 12px 16px; } .ea-col.frame::after { --corner-size: 24px; } }

/* Event / activity tile pages (8 per page) */
.event-tile[hidden] { display: none; }
.ea-split { grid-template-rows: auto auto auto 1fr; }
.ea-col { grid-row: span 4; }
.ea-col > .tile-pager { grid-row: 3; }
.ea-col > .detail { grid-row: 4; }
.tile-pager { display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 700; font-size: 14px; color: #f3d7a0; }
.pager-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 0 3px; border: 1px solid #a77640; border-radius: 50%; background: #3a1712; color: #ffe1a4; font: 700 22px/1 var(--serif); cursor: pointer; }
.pager-btn:hover:not(:disabled) { background: #80351e; border-color: #ffe1a4; }
.pager-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 940px) { .ea-split { grid-template-rows: none; } .ea-col { grid-row: auto; } .ea-col > .tile-pager, .ea-col > .detail { grid-row: auto; } }
/* article tables */
.article-table { overflow-x: auto; margin: 0 0 16px; clear: both; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; color: #331912; }
.article-table th, .article-table td { border: 1px solid #a77640; padding: 7px 10px; text-align: left; vertical-align: top; }
.article-table th { background: #e9cf9a; color: #6c1c14; font-weight: 700; }
.article-table tbody tr:nth-child(even) td { background: #f7ecd680; }

/* Account button in the hero (an <a>, not a <button>) */
a.skin { text-decoration: none; }
.skin.ornate svg.ico { width: 20px; height: 20px; color: #f2c977; filter: drop-shadow(0 1px 1px #190806); }
@media (max-width: 650px) {
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 380px); margin-inline: auto; }
  .skin.ornate svg.ico { width: 17px; height: 17px; }
}
@media (min-width: 651px) {
  .hero-actions { flex-wrap: nowrap; width: max-content; justify-self: center; }
}
/* School badges: the icon art carries its own rim and name, so the brass seal is dropped. */
.school-list .medallion { width: clamp(52px, 6.4vw, 88px); filter: drop-shadow(0 2px 3px #120403c7); }
.school-list .medallion::before, .school-list .medallion::after, .school-list .medallion-studs { display: none; }
.school-list .medallion img { width: 100%; filter: brightness(.82) saturate(.85); transition: filter .2s ease, transform .2s ease; }
.school-tab:is(:hover,:focus-visible) .medallion img { filter: brightness(1.05); transform: translateY(-2px); }
.school-tab[aria-selected="true"] .medallion img { filter: brightness(1.08) drop-shadow(0 0 7px #ffc96acc); transform: scale(1.06); }
.school-list .school-tab > :not(.medallion) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.school-tab { position: relative; }
/* 22 discipline badges: 11 per row on wide screens, 6 per row on phones. */
.school-list { grid-template-columns: repeat(11, minmax(0, 1fr)); row-gap: 10px; }
.school-list .medallion { width: clamp(48px, 6vw, 84px); }
@media (max-width: 650px) { .school-list { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 6px; } }
/* Larger Server Overview hover preview. */
.feature-peek { width: min(600px, calc(100vw - 16px)); padding: 14px 16px 16px; }
.feature-peek img { max-height: min(380px, 52vh); object-fit: contain; background: #1d0806; }
.feature-peek h4 { font-size: 21px; margin-bottom: 7px; }
.feature-peek p { font-size: 15px; line-height: 1.5; }
