:root {
  --bg: #0f1020;
  --surface: #1a1c33;
  --surface-2: #242747;
  --text: #eef0ff;
  --muted: #a6a9c8;
  --accent: #7c5cff;
  --border: #33365c;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ---------- Header / nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}

.site-header .brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav > a,
.nav-dropdown > button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav > a:hover,
.nav-dropdown > button:hover,
.nav-dropdown:hover > button,
.nav-dropdown:focus-within > button {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav > a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu,
.nav-menu.open {
  display: flex;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
}

.nav-menu a:hover {
  background: var(--surface-2);
}

.nav-menu a span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
  }

  .site-nav.open { display: flex; }

  .nav-dropdown > button { width: 100%; text-align: left; }

  .nav-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding-left: 1rem;
  }
}

/* ---------- Layout ---------- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  overflow-x: clip; /* contains the carousel's 3D side cards */
}

.intro {
  margin-bottom: 1.5rem;
}

.intro h1 {
  margin: 0 0 0.4rem;
  font-size: 1.9rem;
}

.intro p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.intro a {
  color: var(--accent);
}

/* ---------- Article ---------- */

.article {
  --measure: 44rem;
  max-width: calc(var(--measure) + 15rem);
  margin: 0 auto;
}

.article-header {
  max-width: var(--measure);
  margin: 0 auto 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.article-standfirst {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.article-meta > * + *::before {
  content: "·";
  margin-right: 0.5rem;
}

/* layout: sticky TOC rail on wide screens */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1000px) {
  .article-layout {
    grid-template-columns: 13rem minmax(0, var(--measure));
    justify-content: center;
    align-items: start;
  }
}

.article-toc {
  font-size: 0.88rem;
}

.article-toc > .article-toc-title {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.article-toc a {
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid var(--border);
  padding-left: 0.7rem;
  display: block;
}

.article-toc a:hover { color: var(--text); }

.article-toc a.active {
  color: var(--text);
  border-left-color: var(--accent);
}

.article-toc li.lvl-3 a { padding-left: 1.4rem; font-size: 0.84rem; }

@media (min-width: 1000px) {
  .article-toc {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}

@media (max-width: 999px) {
  .article-toc {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.9rem;
  }
  .article-toc > .article-toc-title { cursor: pointer; margin: 0.3rem 0; }
  .article-toc[data-collapsed="true"] ol { display: none; }
}

/* body typography */
.article-body {
  font-size: 1.06rem;
  line-height: 1.7;
}

.article-body > * {
  margin: 0 0 1.1rem;
}

.article-body h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  scroll-margin-top: 1.5rem;
}

.article-body h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.15rem;
  scroll-margin-top: 1.5rem;
}

.article-body h2 .anchor,
.article-body h3 .anchor {
  opacity: 0;
  margin-left: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
}

.article-body h2:hover .anchor,
.article-body h3:hover .anchor { opacity: 1; }

.article-body a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body li { margin: 0.4rem 0; }
.article-body li > ul,
.article-body li > ol { margin: 0.4rem 0; }

.article-body strong { color: var(--text); }

.article-body blockquote {
  margin: 1.4rem 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-body :not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  text-align: left;
}

.article-body th { background: var(--surface-2); }

/* callout / tip box */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.6rem 0;
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.callout .callout-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ---------- Resource pages: link cards ---------- */

.link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
}

.link-card:hover {
  border-color: var(--accent);
}

.link-card a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}

.link-name {
  color: var(--text);
  font-weight: 600;
}

.link-host {
  color: var(--accent);
  font-size: 0.8rem;
}

.link-desc {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Home: hero + news ---------- */

.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2.4rem;
  color: var(--text);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 {
    background: linear-gradient(90deg, #ffcf6b, #c58bff, #6bc5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 55ch;
  font-size: 1.05rem;
}

.hero p a {
  color: var(--accent);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
}

.section-title a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.section-title a:hover {
  text-decoration: underline;
}

/* ---------- Home: 3D rotating carousel ---------- */

.carousel {
  position: relative;
  width: min(440px, 84vw);
  margin: 1.75rem auto 3.25rem;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  perspective: 1200px;
  overflow: visible;
}

@media (max-width: 760px) {
  .carousel-viewport { overflow: hidden; }
}

.carousel-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.45, 0.05, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-stage { transition: none; }
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 38px -16px rgba(0, 0, 0, 0.82), 0 8px 16px -10px rgba(0, 0, 0, 0.6);
}

/* darkens as the card turns away (--dim set per card by carousel.js) */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #05060d;
  opacity: var(--dim, 0.7);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* stream slide */
.slide--stream { background: #000; }

.slide--stream .stream-embed {
  flex: 1;
  min-height: 0;
  background: #000;
  display: flex;
}

.slide--stream .stream-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.slide-caption {
  margin: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.slide-caption a { color: var(--accent); }

.stream-fallback {
  margin: auto;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 1rem;
}

.stream-fallback:hover { text-decoration: underline; }

/* promo slides */
.slide--promo {
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  justify-content: center;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.6rem 1.7rem;
}

.slide--promo:hover {
  background: linear-gradient(150deg, var(--surface-2), #2c2f55);
}

.slide-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.slide-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.slide-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.slide-cta {
  margin-top: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.slide--promo:hover .slide-cta { text-decoration: underline; }

/* controls */
.carousel-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.carousel-controls::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.3rem;
  width: 62%;
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(9px);
  z-index: -1;
  pointer-events: none;
}

.carousel-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.carousel-nav:hover { background: var(--accent); border-color: var(--accent); }

.carousel-dots {
  display: flex;
  gap: 0.45rem;
}

.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.news-item .thumb {
  width: 110px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}

.news-item .meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.news-item .source {
  color: var(--accent);
}

.news-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.news-item h3 a {
  color: var(--text);
  text-decoration: none;
}

.news-item h3 a:hover {
  text-decoration: underline;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item .thumb { width: 100%; height: 160px; }
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer code {
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 180px;
}

.filter label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.filter input,
.filter select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  font-size: 0.95rem;
}

.filter input:focus,
.filter select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.reset-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  height: fit-content;
}

.reset-btn:hover { border-color: var(--accent); }

.result-count {
  color: var(--muted);
  margin: 1rem 0 0.5rem;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  background-color: #000;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 62px;
  height: 44px;
  border-radius: 12px;
  background: rgba(20, 20, 30, 0.75);
  position: relative;
  transition: background 0.15s ease;
}

.video-play:hover .play-icon {
  background: var(--accent);
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.card-body {
  padding: 0.85rem 1rem 1rem;
}

.card-channel {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.watch-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}

.watch-link:hover {
  text-decoration: underline;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag.tag-date {
  background: transparent;
  border-color: transparent;
  padding-left: 0.15rem;
}

.tag.tag-set {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.tag.ink-amber { color: #ffcf6b; }
.tag.ink-amethyst { color: #c58bff; }
.tag.ink-emerald { color: #5fd7a0; }
.tag.ink-ruby { color: #ff7b7b; }
.tag.ink-sapphire { color: #6bc5ff; }
.tag.ink-steel { color: #c7ced9; }

/* ---------- Deck colour filter ---------- */

.filter-inks {
  flex-basis: 100%;
}

.filter-inks .hint {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.ink-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ink-chip {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem 0.3rem 1.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  position: relative;
}

.ink-chip::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--chip-ink, #888);
}

.ink-chip:hover { border-color: var(--chip-ink, var(--accent)); }

.ink-chip.active {
  color: #10111f;
  font-weight: 600;
  background: var(--chip-ink, var(--accent));
  border-color: var(--chip-ink, var(--accent));
}

.ink-chip.ink-amber    { --chip-ink: #ffcf6b; }
.ink-chip.ink-amethyst { --chip-ink: #c58bff; }
.ink-chip.ink-emerald  { --chip-ink: #5fd7a0; }
.ink-chip.ink-ruby     { --chip-ink: #ff7b7b; }
.ink-chip.ink-sapphire { --chip-ink: #6bc5ff; }
.ink-chip.ink-steel    { --chip-ink: #c7ced9; }

/* ---------- Deck colour dots on cards ---------- */

.deck-inks {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}

.deck {
  display: inline-flex;
  gap: 0.2rem;
}

.deck-inks .vs {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.ink-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.ink-dot.ink-amber    { background: #ffcf6b; }
.ink-dot.ink-amethyst { background: #c58bff; }
.ink-dot.ink-emerald  { background: #5fd7a0; }
.ink-dot.ink-ruby     { background: #ff7b7b; }
.ink-dot.ink-sapphire { background: #6bc5ff; }
.ink-dot.ink-steel    { background: #c7ced9; }

.deck-inks .more {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- Matchup index (more-info dropdown) ---------- */

.matchups {
  margin: 0.1rem 0 0.55rem;
  font-size: 0.85rem;
}

.matchups summary {
  cursor: pointer;
  color: var(--accent);
  list-style: revert;
}

.seg-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  max-height: 240px;
  overflow-y: auto;
}

.seg-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.15rem 0.2rem;
  border-radius: 5px;
}

.seg-list a:hover { background: var(--surface-2); }

.seg-time {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  min-width: 3.2em;
}

.seg-label {
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg-note {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- Lorecast index ---------- */

.lorecast-index {
  max-width: 52rem;
}

.page-header {
  margin: 0 auto 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lorecast-list {
  display: grid;
  gap: 1rem;
}

.lorecast-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.lorecast-entry time {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lorecast-entry h2 {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.lorecast-entry h2 a {
  color: var(--text);
  text-decoration: none;
}

.lorecast-entry h2 a:hover {
  color: var(--accent);
}

.lorecast-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Core Constructed / format page ---------- */

.format-page { max-width: 46rem; }

.fmt-updated { font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 0; }

.fmt-section { margin: 2rem 0; }
.fmt-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.fmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.fmt-set {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}
@media (max-width: 520px) {
  .fmt-set { grid-template-columns: 1fr auto; }
  .fmt-set .fmt-num { grid-column: 1 / -1; }
}

.fmt-num {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fmt-name { font-weight: 600; }

.fmt-tag {
  font-size: 0.74rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.fmt-tag.in { background: color-mix(in srgb, #3ecf8e 20%, transparent); color: #3ecf8e; }
.fmt-tag.leaving { background: color-mix(in srgb, #e0a33e 22%, transparent); color: #e0a33e; }
.fmt-tag.soon { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.fmt-tag.out { background: var(--surface-2); color: var(--muted); }

.fmt-muted .fmt-set { opacity: 0.72; }

.fmt-next {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.fmt-next h2 { border: 0; margin-bottom: 0.5rem; }
.fmt-next p { margin: 0.4rem 0; color: var(--muted); }
.fmt-next p strong { color: var(--text); }

.fmt-notes { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.fmt-notes li { margin: 0.4rem 0; }
.fmt-notes strong { color: var(--text); }

.fmt-section a { color: var(--accent); text-decoration: none; }
.fmt-section a:hover { text-decoration: underline; }
