/* Xyra website. Tokens mirror the launcher (Launcher/GameLauncher.Avalonia/Styles/Tokens.axaml). */

@font-face { font-family: "Xiah Web Sans"; src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Xiah Web Sans"; src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Xiah Web Sans"; src: url("/assets/fonts/source-sans-3-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Xiah Web Display"; src: url("/assets/fonts/cinzel-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0C0B0A;
  --bg-2: #131210;
  --card: #1A1815;
  --card-hover: #211E1A;
  --elevated: #25221E;
  --control: #1F1C19;
  --control-hover: #2A2622;
  --border-subtle: #2A2621;
  --border: #3A342D;
  --border-strong: #4E463C;
  --metal-light: #8A7148;
  --metal-dark: #3B3020;
  --accent: #C9A35B;
  --accent-hover: #DDB86E;
  --accent-pressed: #A88540;
  --accent-deep: #8C6A2E;
  --accent-highlight: #F3DDA6;
  --accent-soft: rgba(201, 163, 91, .14);
  --crimson: #C22A33;
  --crimson-deep: #7E1118;
  --text: #F2ECE2;
  --text-2: #C9C0B2;
  --muted: #9A9183;
  --disabled: #6E665B;
  --inverse: #1B1408;
  --on-art: #FFF9EE;
  --category: #A89373;
  --success: #6CC58A;
  --warning: #EE8F3F;
  --error: #EC5B55;
  --info: #67AEDD;
  --font-body: "Xiah Web Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Xiah Web Display", "Trajan Pro", Georgia, "Times New Roman", serif;
  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 10px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.5rem;
  --metal-edge: linear-gradient(180deg, var(--metal-light), var(--metal-dark));
  --shadow: 0 1.25rem 2.5rem -1.5rem rgba(0, 0, 0, .85);
}

/* Big screens: scale the whole rem-based layout instead of stretching lines. */
@media (min-width: 2200px) { html { font-size: 118.75%; } }
@media (min-width: 3000px) { html { font-size: 137.5%; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 40rem at 50% -10rem, rgba(201, 163, 91, .07), transparent 70%), var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  font-feature-settings: "kern", "liga", "lnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent-highlight); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
kbd { font: 600 .85em var(--font-body); padding: .1em .45em; border-radius: var(--radius-s); border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--control); color: var(--text); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--accent); color: var(--inverse); font-weight: 700; border-radius: var(--radius-m); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(48rem + 2 * var(--gutter)); }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); color: var(--text); }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--text-2); max-width: 40rem; }
.eyebrow { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--category); }
.eyebrow time { letter-spacing: .08em; }
.eyebrow-strong { color: var(--accent); }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-ext { width: .8em; height: .8em; margin-left: .3em; vertical-align: -.02em; stroke-width: 1.8; }

/* ---------------------------------------------------------------- logo */
.logo { display: block; height: auto; overflow: visible; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .7)); }
.logo-header { width: 5rem; }
.logo-footer { width: 7rem; }
.logo-hero { width: clamp(7.5rem, 11vw, 10rem); margin: 0 0 1.25rem -.25rem; }
/* phones: the menu bar already shows the logo; a second one would push the art below the first screen (review L10) */
@media (max-width: 767px) { .logo-hero { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.875rem; padding: 0 1.25rem; border-radius: var(--radius-m);
  font: 700 .875rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary {
  color: var(--inverse);
  background: linear-gradient(180deg, #E4C47F 0%, var(--accent) 48%, var(--accent-pressed) 100%);
  border-color: #6F5426;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .55), 0 .5rem 1.5rem -.75rem rgba(201, 163, 91, .6);
}
.btn-primary:hover { color: var(--inverse); background: linear-gradient(180deg, #EFD495 0%, var(--accent-hover) 50%, var(--accent) 100%); }
.btn-primary:active { background: linear-gradient(180deg, var(--accent-pressed), var(--accent-deep)); }
.btn-secondary { color: var(--text); background: rgba(31, 28, 25, .7); border-color: var(--metal-light); }
.btn-secondary:hover { color: var(--accent-highlight); background: var(--control-hover); border-color: var(--accent); }
.btn-ghost { color: var(--text-2); background: transparent; border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-disabled { color: var(--muted); background: var(--control); border-color: var(--border); cursor: default; }
.btn-large { min-height: 3.25rem; padding: 0 1.75rem; font-size: .9375rem; }
.btn-small { min-height: 2.375rem; padding: 0 1rem; font-size: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0 0; }
.text-action { font-weight: 600; color: var(--text); text-decoration: none; }
a.text-action:hover, .row-link:hover .text-action, .feature-link:hover .text-action { color: var(--accent-hover); }

/* ---------------------------------------------------------------- frames */
.frame {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-l);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--metal-edge) border-box;
  box-shadow: inset 0 1px 0 rgba(243, 221, 166, .07), var(--shadow);
}
.frame > img, .frame > a > img { border-radius: calc(var(--radius-l) - 1px); }
.ornate .corner { position: absolute; width: 2.75rem; height: 2.75rem; background: url("/assets/art/ornament-corner.png") no-repeat center / contain; pointer-events: none; opacity: .9; }
.ornate .tl { top: -.5rem; left: -.5rem; }
.ornate .tr { top: -.5rem; right: -.5rem; transform: scaleX(-1); }
.ornate .bl { bottom: -.5rem; left: -.5rem; transform: scaleY(-1); }
.ornate .br { bottom: -.5rem; right: -.5rem; transform: scale(-1, -1); }

/* ---------------------------------------------------------------- header */
.preview-bar { background: repeating-linear-gradient(135deg, #3a250b 0 12px, #2c1c08 12px 24px); color: var(--accent-highlight); text-align: center; font-weight: 600; font-size: .875rem; padding: .4rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 11, 10, .86); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--border-subtle); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(138, 113, 72, .7), transparent); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; padding: .25rem 0; border-radius: var(--radius-s); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; align-items: center; }
.site-nav a { position: relative; display: block; padding: .6rem .8rem; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .9375rem; border-radius: var(--radius-m); }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 .75rem rgba(201, 163, 91, .6); }
.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; color: var(--text); background: var(--control); border: 1px solid var(--border); border-radius: var(--radius-m); cursor: pointer; }
.nav-toggle:hover { border-color: var(--metal-light); }

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: #0F0E0C; border-bottom: 1px solid var(--border); box-shadow: 0 1.5rem 2rem -1rem rgba(0, 0, 0, .8); }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .site-nav a { padding: .85rem .5rem; font-size: 1.0625rem; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: .85rem; bottom: .85rem; width: 2px; height: auto; }
}

.notice { border-bottom: 1px solid var(--border); padding: .65rem 0; font-size: .9375rem; background: rgba(103, 174, 221, .1); }
.notice-warning { background: rgba(238, 143, 63, .12); }
.notice-maintenance { background: rgba(236, 91, 85, .12); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.section-tight { padding-top: 1.5rem; }
.section-head { display: flex; align-items: center; gap: .85rem; margin: 0 0 1.5rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.seal { flex: none; width: .625rem; height: .625rem; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #D43B43, var(--crimson-deep)); box-shadow: 0 0 .5rem rgba(194, 42, 51, .5); }
.brush { flex: 1 1 auto; max-width: 11rem; height: .45rem; background: linear-gradient(90deg, rgba(194, 42, 51, 0), rgba(194, 42, 51, .8) 12%, rgba(168, 35, 43, .6) 55%, rgba(126, 17, 24, 0)); clip-path: polygon(0 55%, 18% 20%, 46% 8%, 100% 40%, 62% 72%, 30% 100%); }
.section-more { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--text); }
.section-more:hover { color: var(--accent-hover); }
.section-intro { color: var(--text-2); max-width: 44rem; margin-top: -.5rem; }
.empty { color: var(--text-2); padding: 1.25rem 1.5rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-l); background: rgba(26, 24, 21, .5); }

.page-head { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 18rem; z-index: -1; background: radial-gradient(ellipse 60% 100% at 20% 0%, rgba(194, 42, 51, .09), transparent 70%); }
.page-head .display { margin-bottom: .75rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--disabled); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb [aria-current] { color: var(--muted); max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid var(--border-subtle); }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: blur(26px) saturate(1.15) brightness(.5); }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 11, 10, .92) 0%, rgba(12, 11, 10, .55) 55%, rgba(12, 11, 10, .35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy .display { font-size: clamp(2.125rem, 1.1rem + 2.9vw, 3.375rem); margin-bottom: 1rem; text-shadow: 0 2px 1.5rem rgba(0, 0, 0, .6); }
.hero-copy .lede { color: var(--text); opacity: .92; }
.hero-meta { margin: 1.25rem 0 0; color: var(--muted); font-size: .9375rem; }
.hero-story { margin: .35rem 0 0; font-weight: 600; }
.hero-story a { color: var(--text-2); text-decoration: none; }
.hero-story a:hover { color: var(--accent-hover); }
.hero-art { margin: 0; justify-self: end; max-width: 64rem; padding: 0; }
.hero-art img { width: 100%; }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: stretch; }
  .hero-backdrop::after { background: linear-gradient(180deg, rgba(12, 11, 10, .75), rgba(12, 11, 10, .6) 60%, var(--bg)); }
}

/* ---------------------------------------------------------------- latest update */
.update-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(1.25rem, 3vw, 2.25rem); }
.update-title { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; margin-bottom: .75rem; }
.update-intro p { color: var(--text-2); }
.highlights { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.highlights li { padding: 1rem 1.1rem; border-radius: var(--radius-m); background: var(--bg-2); border: 1px solid var(--border-subtle); border-top: 2px solid var(--accent-deep); }
.highlights h3 { font-size: 1.0625rem; font-weight: 700; color: var(--accent-highlight); margin-bottom: .35rem; }
.highlights p { margin: 0; color: var(--text-2); font-size: .96875rem; }
@media (max-width: 899px) { .update-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 559px) { .highlights { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.chip { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; border: 1px solid; }
.chip-new { color: var(--accent-hover); border-color: rgba(201, 163, 91, .45); background: rgba(201, 163, 91, .1); }
.chip-improved { color: var(--info); border-color: rgba(103, 174, 221, .4); background: rgba(103, 174, 221, .08); }
.chip-fixed { color: var(--success); border-color: rgba(108, 197, 138, .4); background: rgba(108, 197, 138, .08); }

/* ---------------------------------------------------------------- news rows and cards */
.row-list { display: grid; gap: .75rem; }
.row-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 799px) { .row-list.two-col { grid-template-columns: minmax(0, 1fr); } }
.row-card { border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--border-subtle); transition: background-color .15s, border-color .15s; }
.row-card:hover { background: var(--card-hover); border-color: var(--border); }
.row-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem .9rem .9rem; color: inherit; text-decoration: none; }
.row-media { width: 5.5rem; height: 5.5rem; overflow: hidden; border-radius: var(--radius-m); border: 1px solid var(--metal-dark); }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.row-link:hover .row-media img { transform: scale(1.05); }
.row-body { min-width: 0; }
.row-body .eyebrow { margin-bottom: .25rem; font-size: .75rem; }
.row-title { font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; color: var(--text); transition: color .15s; }
.row-link:hover .row-title { color: var(--accent-hover); }
.row-summary { margin: 0; color: var(--text-2); font-size: .96875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-arrow { color: var(--muted); font-size: 1.25rem; transition: color .15s, transform .15s; }
.row-link:hover .row-arrow { color: var(--accent); transform: translateX(3px); }
@media (max-width: 479px) { .row-media { width: 4rem; height: 4rem; } .row-arrow { display: none; } .row-link { grid-template-columns: auto minmax(0, 1fr); } }

.feature-card { margin-bottom: 1.25rem; overflow: hidden; }
.feature-link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); color: inherit; text-decoration: none; }
.feature-media { overflow: hidden; border-radius: calc(var(--radius-l) - 1px) 0 0 calc(var(--radius-l) - 1px); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature-link:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: clamp(1.25rem, 3vw, 2.25rem); align-self: center; }
.feature-body p { color: var(--text-2); }
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); margin-bottom: .75rem; transition: color .15s; }
.feature-link:hover .feature-title { color: var(--accent-hover); }
@media (max-width: 799px) { .feature-link { grid-template-columns: minmax(0, 1fr); } .feature-media { border-radius: calc(var(--radius-l) - 1px) calc(var(--radius-l) - 1px) 0 0; aspect-ratio: 16 / 9; } }

/* ---------------------------------------------------------------- article */
.article { padding-top: clamp(1.5rem, 4vw, 3rem); }
.article-head { margin-bottom: 1.75rem; }
.article-head .display { font-size: clamp(2rem, 1.2rem + 2.8vw, 3rem); margin-bottom: .75rem; }
.article-art { margin: 0 0 2rem; max-width: 64rem; }
.article-art img { width: 100%; }
.prose { font-size: 1.125rem; line-height: 1.7; color: var(--text-2); }
.prose p { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--text); margin: 2.25rem 0 .75rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin: .35rem 0; }
.post-blocks { padding-bottom: 1.5rem; }
.post-media { width: min(100%, 48rem); margin: 1.5rem 0 2rem; overflow: hidden; }
.post-media img { width: 100%; }
.post-media figcaption { padding: .7rem 1rem .8rem; color: var(--text-2); font-size: .875rem; line-height: 1.45; }
.post-blocks blockquote { max-width: 48rem; margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 3px solid var(--accent); background: var(--card); color: var(--text); }
.post-blocks blockquote p { margin: .25rem 0; }
.post-blocks blockquote footer { color: var(--muted); font-size: .875rem; }
.post-video video { width: 100%; aspect-ratio: 16 / 9; background: var(--bg); display: block; }
.post-video a { display: block; padding: 1rem; color: var(--text); text-decoration: none; }
.post-video a:hover, .post-video a:focus-visible { color: var(--accent-hover); }
.about { padding-bottom: 1rem; }

/* ---------------------------------------------------------------- events */
.event-list { display: grid; gap: .9rem; }
.event-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; padding: 1.1rem; border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--border-subtle); border-left: 3px solid var(--border-strong); }
.event-card.is-live { border-left-color: var(--success); background: linear-gradient(90deg, rgba(108, 197, 138, .06), transparent 40%), var(--card); }
.event-card.is-upcoming { border-left-color: var(--info); }
.event-card.is-ended { opacity: .75; }
.event-media { width: 6.5rem; height: 6.5rem; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--metal-dark); }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 .4rem; }
.event-loc { color: var(--muted); font-size: .875rem; }
.event-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.event-when { color: var(--accent-highlight); font-weight: 600; font-size: .96875rem; margin-bottom: .5rem; }
.event-summary { color: var(--text-2); margin-bottom: .5rem; }
.event-more summary { cursor: pointer; color: var(--text); font-weight: 600; }
.event-more summary:hover { color: var(--accent-hover); }
.event-more p { color: var(--text-2); margin-top: .5rem; }
.event-link { margin: .5rem 0 0; font-weight: 600; }
@media (max-width: 559px) { .event-card { grid-template-columns: minmax(0, 1fr); } .event-media { width: 100%; height: 8rem; } }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; vertical-align: middle; }
.badge-live { color: var(--success); border-color: rgba(108, 197, 138, .5); background: rgba(108, 197, 138, .1); }
.badge-live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(108, 197, 138, .6); animation: pulse 2s infinite; }
.badge-upcoming { color: var(--info); border-color: rgba(103, 174, 221, .45); background: rgba(103, 174, 221, .08); }
.badge-ended { color: var(--muted); border-color: var(--border-strong); }
.badge-latest { color: var(--inverse); background: var(--accent); border-color: var(--accent); letter-spacing: .1em; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108, 197, 138, .6); } 70% { box-shadow: 0 0 0 .45rem rgba(108, 197, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 197, 138, 0); } }
.empty-state { padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 1.5rem; max-width: 44rem; }
.empty-state h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: .6rem; }
.empty-state p { color: var(--text-2); margin: 0; }

/* ---------------------------------------------------------------- gallery */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1099px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.shot-link { display: block; overflow: hidden; aspect-ratio: 16 / 9; color: var(--on-art); text-decoration: none; }
.shot-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, filter .3s; }
.shot-link:hover img { transform: scale(1.04); filter: brightness(1.08); }
.shot-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .75rem; font-weight: 700; font-size: .9375rem; letter-spacing: .02em; background: linear-gradient(0deg, rgba(8, 7, 6, .9), transparent); border-radius: 0 0 calc(var(--radius-l) - 1px) calc(var(--radius-l) - 1px); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 96vh; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 4, 3, .92); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(96vw, 1600px); max-height: calc(96vh - 3.5rem); width: auto; height: auto; border: 1px solid var(--metal-light); border-radius: var(--radius-m); }
.lightbox figcaption { text-align: center; padding: .75rem 3rem 0; color: var(--text-2); font-weight: 600; }
.lb-btn { position: absolute; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--metal-light); background: rgba(19, 18, 16, .9); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { color: var(--accent-highlight); border-color: var(--accent); }
.lb-close { top: -1.25rem; right: -1.25rem; }
.lb-prev { left: -1.375rem; top: calc(50% - 3rem); }
.lb-next { right: -1.375rem; top: calc(50% - 3rem); }
@media (max-width: 767px) { .lb-close { top: .5rem; right: .5rem; } .lb-prev { left: .5rem; } .lb-next { right: .5rem; } }

/* ---------------------------------------------------------------- downloads */
.cta-band { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 959px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 639px) { .dl-pair { grid-template-columns: minmax(0, 1fr); } }
.dl-card { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; }
.dl-card .actions { margin-top: auto; padding-top: 1rem; }
.dl-head { display: flex; gap: .9rem; align-items: center; }
.dl-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; }
.dl-icon { width: 2.25rem; height: 2.25rem; fill: var(--accent); flex: none; }
.dl-file { margin: 0; color: var(--muted); font-size: .9375rem; }
.dl-size { font-weight: 600; opacity: .7; letter-spacing: .04em; }
.dl-note { margin: .85rem 0 0; color: var(--text-2); font-size: .9375rem; }
.req-list { list-style: none; margin: 1rem 0 0; display: grid; gap: .4rem; }
.req-list li { position: relative; padding-left: 1.4rem; color: var(--text-2); font-size: .96875rem; }
.req-list li::before { content: ""; position: absolute; left: .2rem; top: .6em; width: .45rem; height: .45rem; transform: rotate(45deg); background: var(--accent-deep); border-radius: 1px; }
.dl-pair-large .dl-card { padding: clamp(1.25rem, 3vw, 2rem); }
.feedback-card { padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(160deg, rgba(126, 17, 24, .22), transparent 55%) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--metal-edge) border-box; }
.feedback-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: .75rem; }
.feedback-card p { color: var(--text-2); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 899px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--border-subtle); }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; font: 600 1.125rem var(--font-display); color: var(--accent-highlight); border: 1px solid var(--metal-light); background: radial-gradient(circle, rgba(201, 163, 91, .18), transparent 70%); }
.steps h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--text-2); font-size: .96875rem; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: clamp(2rem, 5vw, 4rem); }
@media (max-width: 799px) { .note-grid { grid-template-columns: minmax(0, 1fr); } }
.note-card { padding: 1.25rem 1.35rem; }
.note-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .4rem; color: var(--accent-highlight); }
.note-card p { margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- patch notes */
.version-list { list-style: none; display: grid; gap: 1.25rem; padding-bottom: clamp(2rem, 5vw, 4rem); }
.version-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; }
.version-side { padding-top: 1.1rem; }
.version-number { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--accent); text-decoration: none; }
.version-number:hover { color: var(--accent-hover); }
.version-date { color: var(--muted); font-size: .9375rem; margin: .5rem 0 .6rem; }
.version-main { padding: clamp(1.1rem, 3vw, 1.75rem); }
.version-title { font-size: 1.375rem; font-weight: 700; margin-bottom: .5rem; }
.version-title a { color: var(--text); text-decoration: none; }
.version-title a:hover { color: var(--accent-hover); }
.version-main > p { color: var(--text-2); }
.version-highlights { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .25rem 0 0; }
.version-highlights li { font-size: .875rem; color: var(--text-2); padding: .2rem .6rem; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--border-subtle); }
.version-main .chips { margin: 1rem 0 .75rem; }
@media (max-width: 699px) { .version-row { grid-template-columns: minmax(0, 1fr); gap: .5rem; } .version-side { padding-top: 0; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; } .version-date { margin: 0; } }

.notes-head { padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.notes-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.notes-head .eyebrow .badge { margin-left: .5rem; }
.notes-meta { color: var(--muted); margin: -.25rem 0 1rem; }
.notes-art { margin: 0; }
.notes-art img { width: 100%; }
@media (max-width: 899px) { .notes-head-grid { grid-template-columns: minmax(0, 1fr); } }
.notes-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-top: 2rem; padding-bottom: clamp(2rem, 5vw, 4rem); }
.notes-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; display: grid; gap: 1.75rem; }
.toc h2 { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--category); margin-bottom: .6rem; }
.toc ul { list-style: none; display: grid; gap: .1rem; border-left: 1px solid var(--border); }
.toc a { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem .75rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.toc a[aria-current="page"], .toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.toc .count { color: var(--muted); font-weight: 400; }
.toc-versions li { display: flex; align-items: baseline; justify-content: space-between; padding-right: .25rem; }
.toc-versions span { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
@media (max-width: 899px) {
  .notes-layout { grid-template-columns: minmax(0, 1fr); }
  .notes-aside { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; }
  .toc a { border: 1px solid var(--border); border-radius: 999px; margin: 0; padding: .35rem .8rem; }
  .toc-versions { display: none; }
}
.notes-section { margin-bottom: 2.75rem; }
.notes-section > h2 { display: flex; align-items: center; gap: .75rem; font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.notes-section > h2 .count { font: 600 .9375rem var(--font-body); color: var(--muted); }
.tag { display: inline-block; padding: .2rem .75rem; border-radius: var(--radius-s); font: 700 .875rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.tag-new { color: var(--inverse); background: var(--accent); }
.tag-improved { color: #06131c; background: var(--info); }
.tag-fixed { color: #07170d; background: var(--success); }
.highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.highlights-grid li { scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (max-width: 559px) { .highlights-grid { grid-template-columns: minmax(0, 1fr); } }
.notes-list { list-style: none; }
.notes-list li { position: relative; padding: .8rem 2rem .8rem 1.25rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-2); scroll-margin-top: calc(var(--header-h) + 1rem); }
.notes-list li::before { content: ""; position: absolute; left: .1rem; top: 1.35rem; width: .4rem; height: .4rem; transform: rotate(45deg); border-radius: 1px; background: var(--border-strong); }
.notes-list li:target { background: var(--accent-soft); border-radius: var(--radius-s); }
.notes-list strong { color: var(--text); font-weight: 700; }
.anchor { position: absolute; right: .5rem; top: .8rem; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 700; transition: opacity .15s; }
.notes-list li:hover .anchor, .anchor:focus-visible { opacity: 1; }
.notes-muted .notes-list li { font-size: .96875rem; }
.notes-known > h2 { color: var(--warning); }
.notes-known .notes-list li::before { background: var(--warning); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pager a { display: block; padding: 1rem 1.25rem; border-radius: var(--radius-l); border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--metal-light); color: var(--accent-hover); }
.pager span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.pager-next { grid-column: 2; text-align: right; }
@media (max-width: 559px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager-next { grid-column: 1; } }

/* ---------------------------------------------------------------- 404 */
.page-404 { padding-bottom: clamp(3rem, 10vw, 8rem); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border-subtle); background: linear-gradient(180deg, var(--bg-2), var(--bg)); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(138, 113, 72, .7), transparent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.footer-brand p { color: var(--muted); margin: .75rem 0 0; max-width: 22rem; }
.footer-logo { display: inline-block; border-radius: var(--radius-s); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer-nav h2 { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--category); margin-bottom: .75rem; }
.footer-nav ul { list-style: none; display: grid; gap: .45rem; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-hover); }
.fineprint { border-top: 1px solid var(--border-subtle); padding-top: 1.25rem; padding-bottom: 2rem; color: var(--muted); font-size: .875rem; }
.fineprint p { margin: 0; }
@media (max-width: 799px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- motion and forced colours */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .shot-link:hover img, .row-link:hover .row-media img, .feature-link:hover .feature-media img { transform: none; }
}
@media (forced-colors: active) {
  .frame, .btn, .row-card, .event-card { border: 1px solid CanvasText; }
  .seal, .brush, .corner { display: none; }
}
@media print {
  .site-header, .site-footer, .hero-backdrop, .gallery, .actions { display: none !important; }
  body { background: #fff; color: #000; }
}
