:root {
  --ink: #080909;
  --charcoal: #101313;
  --sumi: #171411;
  --lacquer: #24100e;
  --moss: #1d3328;
  --moss-2: #2b4d37;
  --gold: #d8a94b;
  --gold-strong: #f2cc74;
  --gold-soft: rgba(216, 169, 75, 0.34);
  --paper: #f4ead7;
  --paper-dim: #cfc2a8;
  --muted: #968873;
  --red: #b94b36;
  --blue: #668dbf;
  --line: rgba(244, 234, 215, 0.15);
  --panel: rgba(12, 13, 12, 0.82);
  --panel-strong: rgba(8, 9, 9, 0.92);
  --display: "Kaisei Tokumin", "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--gothic);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(216, 169, 75, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 234, 215, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #080909 0%, #132019 42%, #23100e 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(244, 234, 215, 0.04) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(216, 169, 75, 0.035) 0 1px, transparent 1px 11px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.nobr {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(216, 169, 75, 0.22);
  background: rgba(7, 8, 8, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-decoration: none;
}

.brand-crest {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(242, 204, 116, 0.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(216, 169, 75, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.42);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.primary-link,
.secondary-link,
.card-link,
.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(216, 169, 75, 0.18), rgba(216, 169, 75, 0.07)),
    rgba(10, 11, 11, 0.72);
  color: var(--paper);
  padding: 0 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.secondary-link {
  background: rgba(244, 234, 215, 0.07);
}

.site-nav a:hover,
.primary-link:hover,
.secondary-link:hover,
.card-link:hover,
.back-link:hover {
  border-color: var(--gold-strong);
  color: #fff;
  transform: translateY(-1px);
}

.front-board {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 124px);
  display: grid;
  grid-template-columns: 220px minmax(0, 0.84fr) minmax(360px, 1fr);
  align-items: center;
  gap: 26px;
  overflow: hidden;
  padding: 48px clamp(16px, 5vw, 72px) 58px;
}

.front-board::before,
.front-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.front-board::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 8, 8, 0.95) 0%, rgba(6, 8, 8, 0.74) 43%, rgba(6, 8, 8, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 9, 9, 0.95) 0%, rgba(8, 9, 9, 0.08) 28%, rgba(8, 9, 9, 0.24) 100%);
}

.front-board::after {
  z-index: -1;
  border-bottom: 1px solid rgba(216, 169, 75, 0.24);
  background:
    linear-gradient(90deg, rgba(216, 169, 75, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 234, 215, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mix-blend-mode: screen;
  opacity: 0.26;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.08) brightness(0.82);
  animation: hero-ken-burns 24s cubic-bezier(.22, 1, .36, 1) forwards;
}

.battle-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  align-self: stretch;
  max-height: min(720px, calc(100svh - 180px));
  overflow-y: auto;
  padding-right: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  scrollbar-color: rgba(216, 169, 75, 0.46) rgba(244, 234, 215, 0.07);
  scrollbar-width: thin;
}

.battle-rail::-webkit-scrollbar {
  width: 6px;
}

.battle-rail::-webkit-scrollbar-track {
  background: rgba(244, 234, 215, 0.07);
}

.battle-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(216, 169, 75, 0.46);
}

.rail-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(244, 234, 215, 0.12);
  border-radius: 6px;
  background: rgba(9, 10, 10, 0.64);
  padding: 9px;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.rail-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--gold-strong);
  opacity: 0.86;
  transform: translateY(-50%);
  transition: height 260ms ease;
}

.rail-item:hover {
  border-color: rgba(242, 204, 116, 0.72);
  background: rgba(24, 25, 21, 0.82);
  transform: translateX(2px);
}

.rail-item:hover::before {
  height: 100%;
}

.rail-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 169, 75, 0.42);
  color: var(--gold-strong);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rail-item strong,
.rail-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-item strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.rail-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.front-copy {
  max-width: 640px;
}

.ribbon-label {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: min(420px, 100%);
  min-height: 54px;
  margin-bottom: 18px;
}

.ribbon-label img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.ribbon-label span {
  position: relative;
  color: #21150a;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 rgba(255, 244, 209, 0.72);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.17;
}

h1 {
  max-width: 8em;
  font-size: 54px;
  letter-spacing: 0.08em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
}

.lead {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 26px 0 0;
}

.hero-stats div {
  border-top: 1px solid rgba(216, 169, 75, 0.5);
  background: rgba(8, 9, 9, 0.46);
  padding: 10px 2px 0;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.featured-stage {
  position: relative;
  align-self: center;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(216, 169, 75, 0.38);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.featured-stage .battle-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 540px;
  border: 1px solid rgba(216, 169, 75, 0.34);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(10, 12, 12, 0.94), rgba(24, 18, 13, 0.82)),
    rgba(8, 9, 9, 0.88);
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.featured-copy h2 {
  font-size: 42px;
  letter-spacing: 0.06em;
}

.featured-copy p {
  margin: 10px 0 0;
  color: var(--paper-dim);
  line-height: 1.8;
}

.featured-copy .primary-link {
  margin-top: 16px;
}

.program-band,
.notes-band {
  padding: 60px clamp(16px, 5vw, 72px);
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
  border-top: 1px solid rgba(216, 169, 75, 0.18);
  border-bottom: 1px solid var(--line);
  padding: 38px 0 22px;
}

.section-ribbon {
  position: absolute;
  left: -18px;
  top: 8px;
  width: min(560px, 100%);
  height: 62px;
  object-fit: cover;
  opacity: 0.58;
  pointer-events: none;
}

.section-head > div,
.section-copy {
  position: relative;
}

.section-head h2 {
  font-size: 42px;
  letter-spacing: 0.06em;
}

.section-copy {
  margin: 0;
  color: var(--paper-dim);
  line-height: 1.8;
}

.battle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.battle-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(244, 234, 215, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 234, 215, 0.06), rgba(244, 234, 215, 0.02)),
    rgba(12, 13, 12, 0.88);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.battle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(45deg, transparent 20%, rgba(242, 204, 116, 0.22) 48%, transparent 70%);
  opacity: 0;
  transform: translateX(-120%);
}

.battle-card:hover::after {
  opacity: 1;
  animation: card-sheen 700ms ease;
}

.battle-card .battle-visual {
  aspect-ratio: 16 / 10;
  width: 100%;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(216, 169, 75, 0.18);
}

.battle-visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #161a16;
}

.battle-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
}

.battle-card:hover .battle-visual img,
.featured-stage:hover .battle-visual img {
  transform: scale(1.05);
}

.battle-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 9, 0) 46%, rgba(8, 9, 9, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 9, 9, 0.2), rgba(8, 9, 9, 0.02));
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.schedule {
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.status.published {
  border-color: rgba(216, 169, 75, 0.76);
  color: var(--gold-strong);
  background: rgba(216, 169, 75, 0.1);
}

.status.production {
  border-color: rgba(102, 141, 191, 0.65);
  color: #b5cff0;
}

.battle-card h3 {
  font-size: 26px;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 5px 0 14px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  min-width: 0;
  margin: 0;
  color: var(--paper-dim);
  font-size: 13px;
  line-height: 1.5;
}

.highlight {
  color: var(--paper-dim);
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.tag-row.compact {
  margin: 14px 0 0;
}

.tag-row span {
  border: 1px solid rgba(244, 234, 215, 0.14);
  border-radius: 999px;
  background: rgba(244, 234, 215, 0.06);
  padding: 5px 8px;
  color: var(--paper-dim);
  font-size: 12px;
  line-height: 1.2;
}

.card-link {
  width: 100%;
  margin-top: auto;
}

.notes-inner {
  max-width: 900px;
  border-top: 1px solid var(--gold-soft);
  padding-top: 20px;
}

.notes-inner h2 {
  font-size: 28px;
  letter-spacing: 0.06em;
}

.notes-inner p,
.site-footer {
  color: var(--paper-dim);
  line-height: 1.9;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(16px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.preview-main {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(20px, 5vw, 60px);
  align-items: center;
  padding: clamp(30px, 6vw, 76px) clamp(16px, 5vw, 72px);
}

.preview-panel {
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(20px, 4vw, 34px);
}

.preview-panel h1 {
  font-size: 58px;
}

.preview-panel .lead {
  margin-bottom: 18px;
}

.preview-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.preview-list li {
  border-left: 3px solid var(--gold);
  background: rgba(244, 234, 215, 0.06);
  padding: 10px 12px;
  color: var(--paper-dim);
}

.preview-main .battle-visual {
  min-height: min(62vh, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.error-main {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.error-panel {
  max-width: 620px;
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(24px, 5vw, 44px);
  text-align: center;
}

.error-panel h1 {
  font-size: 60px;
}

.noscript {
  color: var(--paper-dim);
}

.reveal-armed {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms cubic-bezier(.22, 1, .36, 1),
    transform 600ms cubic-bezier(.22, 1, .36, 1);
}

.reveal-armed.in-view {
  opacity: 1;
  transform: translateY(0);
}

.js .battle-card:nth-child(2n) {
  transition-delay: 60ms;
}

.js .battle-card:nth-child(3n) {
  transition-delay: 120ms;
}

.js .battle-card:nth-child(4n) {
  transition-delay: 180ms;
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.06) translate3d(1.5%, -1.2%, 0);
  }
}

@keyframes card-sheen {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .battle-card::after {
    animation: none;
  }

  .battle-visual img,
  .rail-item,
  .rail-item::before,
  .js .battle-card,
  .js .featured-stage,
  .js .section-head {
    transition: none;
  }

  .js .battle-card,
  .js .featured-stage,
  .js .section-head {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1440px) {
  h1 {
    font-size: 62px;
  }

  .featured-stage {
    min-height: 600px;
  }
}

@media (max-width: 1180px) {
  .front-board {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  }

  .battle-rail {
    display: none;
  }

  h1 {
    font-size: 48px;
  }
}

@media (max-width: 980px) {
  .front-board,
  .preview-main {
    grid-template-columns: 1fr;
  }

  .front-board {
    min-height: auto;
    padding-top: 40px;
  }

  .front-board::before {
    background:
      linear-gradient(180deg, rgba(6, 8, 8, 0.82) 0%, rgba(6, 8, 8, 0.62) 48%, rgba(6, 8, 8, 0.9) 100%),
      linear-gradient(90deg, rgba(6, 8, 8, 0.78), rgba(6, 8, 8, 0.32));
  }

  h1 {
    font-size: 42px;
  }

  .featured-stage {
    min-height: 460px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .preview-panel h1 {
    font-size: 46px;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10px;
  }

  .front-board {
    gap: 20px;
    padding-bottom: 36px;
  }

  .front-copy h1,
  h1 {
    max-width: 9em;
    font-size: 31px;
    line-height: 1.28;
  }

  .lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .featured-stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .featured-stage .battle-visual {
    position: relative;
    min-height: 260px;
  }

  .featured-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    border-right: 0;
    border-bottom: 0;
    border-left-width: 4px;
    border-radius: 0;
  }

  .featured-copy h2,
  .section-head h2 {
    font-size: 30px;
  }

  .program-band,
  .notes-band {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .section-ribbon {
    left: 0;
    width: 100%;
  }

  .battle-grid {
    grid-template-columns: 1fr;
  }

  .card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  dl div {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .preview-panel h1,
  .error-panel h1 {
    font-size: 34px;
  }
}
