/* ============================================================
   SOLOZ · Manga / Samurai Theme
   Crimson · Onyx · Gold · Ink Brush · Katana Slash
   ============================================================ */

:root {
  --bg-0: #0c0608;
  --bg-1: #1a0608;
  --bg-2: #2a0a0e;
  --bg-paper: #f6efe6;
  --ink-0: #f9f3e8;
  --ink-1: #d8c9b8;
  --ink-2: #8a7565;
  --ink-faint: #5a4a40;

  --crimson: #c8232c;
  --crimson-deep: #8b1218;
  --crimson-soft: #ff5566;
  --gold: #d4a948;
  --gold-soft: #f1d279;
  --bronze: #b87333;
  --silver: #c0c8d4;
  --black: #0a0608;

  --line: rgba(200, 35, 44, 0.32);
  --line-gold: rgba(212, 169, 72, 0.32);
  --line-soft: rgba(212, 169, 72, 0.16);

  --serif-jp: 'Shippori Mincho', 'Cinzel', serif;
  --serif-display: 'Cinzel', serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 15% 0, rgba(200, 35, 44, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(212, 169, 72, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
  min-height: 100vh;
  background-attachment: fixed;
}

body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--crimson); color: var(--bg-paper); }

.icon {
  display: inline-block; vertical-align: middle; flex-shrink: 0;
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   BOOT LOADER — manga ink wash + katana slash reveal
   ============================================================ */
.boot {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(ellipse at center, #2a0a0e 0%, #0c0608 75%);
  display: grid; place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* slow ink wash animation across loader */
.boot__ink {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(200, 35, 44, 0.15), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(212, 169, 72, 0.10), transparent 50%);
  animation: 4s ease-in-out infinite inkShift;
  pointer-events: none;
}
@keyframes inkShift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(2%, -3%) scale(1.05); opacity: 1; }
}

/* katana slash diagonal flash */
.boot__slash {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 45%, rgba(212, 169, 72, 0.5) 50%, transparent 55%);
  transform: translateX(-100%);
  animation: 2.5s ease-in-out infinite katanaSlash;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes katanaSlash {
  0% { transform: translateX(-100%) skewX(-20deg); }
  60%, 100% { transform: translateX(150%) skewX(-20deg); }
}

.boot__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  animation: 0.5s ease-out bootFadeIn;
}
@keyframes bootFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.boot__mon {
  font-family: var(--serif-jp);
  font-size: 96px;
  color: var(--crimson);
  text-shadow: 0 0 30px rgba(200, 35, 44, 0.6), 0 0 60px rgba(200, 35, 44, 0.3);
  line-height: 1;
  animation: 1.6s ease-in-out infinite bootPulse;
}
@keyframes bootPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 30px rgba(200, 35, 44, 0.6); }
  50% { transform: scale(1.06); text-shadow: 0 0 50px rgba(200, 35, 44, 0.8); }
}

.boot__title {
  font-family: var(--serif-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--ink-0);
  text-shadow: 0 0 30px rgba(212, 169, 72, 0.4);
  position: relative;
  display: flex; gap: 6px;
}
.boot__title span {
  display: inline-block;
  opacity: 0;
  animation: 0.8s ease-out forwards bootLetter;
}
.boot__title span:nth-child(1) { animation-delay: 0.3s; }
.boot__title span:nth-child(2) { animation-delay: 0.4s; }
.boot__title span:nth-child(3) { animation-delay: 0.5s; }
.boot__title span:nth-child(4) { animation-delay: 0.6s; }
.boot__title span:nth-child(5) { animation-delay: 0.7s; color: var(--crimson); }

@keyframes bootLetter {
  from { opacity: 0; transform: translateY(20px) rotateX(-90deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* crimson ghost echo */
.boot__title::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  font-family: var(--serif-display);
  font-size: inherit; font-weight: 900; letter-spacing: inherit;
  color: var(--crimson);
  text-shadow: none;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
  opacity: 0.55;
  animation: 2.2s steps(8) infinite bootGlitch1;
  pointer-events: none;
}
@keyframes bootGlitch1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
}

.boot__sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  display: flex; gap: 14px; align-items: center;
}
.boot__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
  animation: 0.9s ease-in-out infinite dotBlink;
}
@keyframes dotBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.boot__progress {
  width: 280px; height: 3px;
  background: rgba(212, 169, 72, 0.12);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.boot__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--gold) 100%);
  box-shadow: 0 0 10px var(--crimson);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.boot__hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--ink-2);
  text-transform: uppercase;
}

.boot__seal {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif-jp);
  font-size: 14px;
  letter-spacing: 1.5em;
  color: var(--crimson);
  opacity: 0.25;
  writing-mode: vertical-rl;
  user-select: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(12, 6, 8, 0.9), rgba(12, 6, 8, 0.65));
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.6s;
}
body.is-loaded .nav { opacity: 1; }

.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif-display);
  font-size: 20px; font-weight: 900;
  letter-spacing: 0.15em;
}
.nav__kanji {
  font-family: var(--serif-jp);
  font-size: 36px;
  line-height: 1;
  color: var(--crimson);
  text-shadow: 0 0 14px rgba(200, 35, 44, 0.5), 0 0 28px rgba(200, 35, 44, 0.25);
  display: inline-block;
  transition: 0.25s;
  letter-spacing: 0;
}
.nav__kanji:hover {
  transform: translateY(-1px);
  text-shadow: 0 0 22px var(--crimson), 0 0 44px rgba(200, 35, 44, 0.4);
}
.nav__name { color: var(--ink-0); }
.nav__dot { color: var(--crimson); }

.nav__menu {
  display: flex; gap: 26px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__menu a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink-1);
  transition: 0.2s;
}
.nav__menu a:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: rgba(200, 35, 44, 0.08);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--crimson);
  color: var(--bg-paper);
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--crimson);
  transition: 0.2s;
}
.nav__cta:hover {
  background: var(--gold);
  color: var(--bg-0);
  border-color: var(--gold);
}

/* ============================================================
   TABBAR — MOBILE ONLY (liquid glass, icon-only, fixed bottom)
   ============================================================ */
.tabbar {
  display: none;
}

@media (max-width: 880px) {
  .nav { padding: 12px 16px; }
  .nav__menu { display: none; }

  /* Mobile-only FOLLOW pill in topbar (was hidden — left topbar feeling empty) */
  .nav__cta {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 11px;
    gap: 6px;
    background: linear-gradient(135deg, rgba(200, 35, 44, 0.85), rgba(139, 18, 24, 0.9));
    border: 1px solid rgba(212, 169, 72, 0.4);
    border-radius: 999px;
    color: var(--bg-paper);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 0 14px rgba(200, 35, 44, 0.35);
  }
  .nav__cta svg { width: 10px; height: 10px; }

  /* ----- MOBILE TABBAR — content-width, real liquid glass ----- */
  .tabbar {
    display: flex;
    position: fixed;
    /* Match content width: section padding 20px on small screens,
       hero max-width 1320px centered. On a 375px viewport that
       leaves content gutter ~20px each side → bar 335px wide. */
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 420px;
    z-index: 80;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    /* Real iOS-style liquid glass — three layers:
       (1) near-transparent tint, (2) heavy backdrop blur +
       saturation, (3) specular highlight gradient.
       No drop shadow. */
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(0, 0, 0, 0.10) 100%),
      rgba(12, 6, 8, 0.20);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
    backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    /* No drop shadow. Liquid glass edges are inset strokes +
       a 1px hairline outline that catches the bg. */
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -1px 0 rgba(0, 0, 0, 0.20),
      0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    isolation: isolate;
  }
  /* Specular highlight layer (top edge refraction fudge) */
  .tabbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
      radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200, 35, 44, 0.10), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
  .tabbar > * { position: relative; z-index: 1; }

  .tabbar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    color: var(--ink-1);
    text-decoration: none;
    border-radius: 14px;
    transition: 0.25s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar__item svg {
    width: 21px;
    height: 21px;
    display: block;
    stroke: currentColor;
    transition: 0.25s;
  }
  .tabbar__item span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.88;
    transition: 0.25s;
  }
  .tabbar__item:hover { color: var(--bg-paper); }
  .tabbar__item.is-active {
    color: var(--crimson);
    background: rgba(200, 35, 44, 0.12);
  }
  .tabbar__item.is-active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--crimson);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--crimson);
  }
  .tabbar__item.is-active svg {
    filter: drop-shadow(0 0 5px rgba(200, 35, 44, 0.55));
  }

  body { padding-bottom: 88px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  padding: 80px 32px 60px;
  max-width: 1320px;
  margin: 0 auto;
}

.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__sakura {
  position: absolute;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 192, 203, 0.08) 0%, transparent 3%),
    radial-gradient(circle at 78% 65%, rgba(255, 192, 203, 0.06) 0%, transparent 2%),
    radial-gradient(circle at 50% 90%, rgba(255, 192, 203, 0.05) 0%, transparent 2%),
    radial-gradient(circle at 88% 12%, rgba(255, 192, 203, 0.07) 0%, transparent 3%);
  animation: 12s ease-in-out infinite sakuraFloat;
}
@keyframes sakuraFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero__ink1, .hero__ink2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}
.hero__ink1 {
  background: var(--crimson);
  top: -100px; left: -150px;
  animation: 8s ease-in-out infinite inkDrift;
}
.hero__ink2 {
  background: var(--gold);
  bottom: -100px; right: -150px;
  animation: 10s ease-in-out infinite inkDrift;
  animation-delay: 2s;
}
@keyframes inkDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 35, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 35, 44, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 20px 40px; }
}

.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero__kicker-jp {
  font-family: var(--serif-jp);
  font-size: 22px;
  color: var(--crimson);
  text-shadow: 0 0 10px rgba(200, 35, 44, 0.5);
}
.hero__kicker-bar {
  width: 28px; height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--serif-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
}
.hero__title-top {
  display: block;
  font-size: clamp(72px, 14vw, 200px);
  color: var(--crimson);
  text-shadow:
    0 0 40px rgba(200, 35, 44, 0.6),
    4px 4px 0 var(--black),
    8px 8px 0 rgba(200, 35, 44, 0.4);
}
.hero__title-jp {
  position: absolute;
  top: -16px; right: -8px;
  font-family: var(--serif-jp);
  font-size: clamp(28px, 4vw, 56px);
  color: var(--gold);
  writing-mode: vertical-rl;
  opacity: 0.4;
  letter-spacing: 0.4em;
  pointer-events: none;
}
.hero__title-sub {
  display: block;
  font-family: var(--mono);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-top: 14px;
}

.hero__lede {
  font-family: var(--body);
  font-size: 16px; line-height: 1.7;
  color: var(--ink-1);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero__lede::first-letter {
  font-family: var(--serif-jp);
  font-size: 2.6em;
  float: left; line-height: 0.9;
  color: var(--crimson);
  padding: 4px 10px 0 0;
  font-weight: 800;
}

.hero__quote {
  font-family: var(--serif-jp);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  position: relative;
}
.hero__quote-mark {
  color: var(--crimson);
  font-size: 1.4em;
  margin-right: 6px;
}
.hero__quote-mark--end {
  margin-left: 6px; margin-right: 0;
}

.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid;
  transition: 0.2s;
  cursor: pointer;
}
.btn--primary {
  background: var(--crimson);
  color: var(--bg-paper);
  border-color: var(--crimson);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-0);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 169, 72, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--ghost:hover {
  background: var(--gold);
  color: var(--bg-0);
  transform: translateY(-2px);
}

/* ====== HERO CARD ====== */
.hero__card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 18px;
  isolation: isolate;
}
.hero__card::before {
  content: '';
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--crimson), transparent 40%, transparent 60%, var(--gold));
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

.hero__card-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.hero__card-tag { color: var(--crimson); }
.hero__card-id { color: var(--gold); }

.hero__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--bg-0);
  overflow: hidden;
  border: 2px solid var(--crimson);
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.9);
  transition: 0.5s;
}
.hero__card:hover .hero__portrait img {
  transform: scale(1.04);
}

.hero__portrait-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.4;
}

.hero__portrait-seal {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--serif-jp);
  font-size: 32px;
  color: var(--crimson);
  background: var(--bg-paper);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  text-shadow: none;
}

.hero__card-name {
  display: flex; flex-direction: column; gap: 4px;
}
.hero__card-name b {
  font-family: var(--serif-display);
  font-size: 32px; font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink-0);
}
.hero__card-name span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--crimson);
  letter-spacing: 0.12em;
}

.hero__card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin: 0;
}
.hero__card-stats > div {
  display: flex; flex-direction: column; gap: 2px;
}
.hero__card-stats dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__card-stats dd {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
}

.hero__card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__card-seal {
  font-family: var(--serif-jp);
  font-size: 18px;
  color: var(--crimson);
  background: var(--bg-0);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 4px;
  border: 1px solid var(--crimson);
}

/* ============================================================
   RUNEBAR
   ============================================================ */
.runebar {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg-0), var(--bg-2), var(--bg-0));
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.runebar__track {
  display: flex; gap: 56px; align-items: center;
  white-space: nowrap;
  width: max-content;
  padding: 16px 0;
  font-family: var(--serif-display);
  font-size: clamp(18px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: 40s linear infinite ticker;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.runebar__item { color: var(--ink-0); }
.runebar__item:nth-child(5n) { color: var(--crimson); }
.runebar__item:nth-child(5n+2) { color: var(--gold); }
.runebar__sep { color: var(--crimson); opacity: 0.5; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative; z-index: 2;
  padding: 100px 32px;
  max-width: 1320px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .section { padding: 60px 20px; }
}

.section__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 28px;
  margin-bottom: 50px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.section__kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section__title em {
  font-style: normal;
  color: var(--crimson);
  text-shadow: 0 0 20px rgba(200, 35, 44, 0.4);
}

.section__sub {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-1);
  max-width: 480px;
  line-height: 1.6;
}

/* ============================================================
   CLIPS GRID
   ============================================================ */
.clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.clip {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: 0.25s;
}
.clip:hover {
  border-color: var(--crimson);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(200, 35, 44, 0.2);
}

.clip__thumb {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
}
.clip__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.clip:hover .clip__thumb img { transform: scale(1.05); }

.clip__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 50%, rgba(12, 6, 8, 0.8));
}
.clip__play span {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  background: rgba(12, 6, 8, 0.7);
  border-radius: 50%;
  transition: 0.2s;
}
.clip:hover .clip__play span {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: scale(1.1);
}
.clip__play svg { width: 22px; height: 22px; color: var(--gold); margin-left: 3px; }
.clip:hover .clip__play svg { color: var(--bg-paper); }

.clip__id {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  background: var(--bg-0);
  color: var(--gold);
  padding: 4px 7px;
  border: 1px solid var(--gold);
}
.clip__views {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  background: rgba(12, 6, 8, 0.85);
  color: var(--crimson-soft);
  padding: 4px 7px;
  border: 1px solid var(--crimson);
}

.clip__body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.clip__title {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-0);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.5em;
}
.clip__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}
.clip__meta a {
  color: var(--crimson);
  border-bottom: 1px solid var(--crimson);
}

.clip.embed .clip__thumb { display: none; }
.clip.embed .clip__player { display: block; aspect-ratio: 9/16; }
.clip__player { display: none; }
.clip__player iframe {
  width: 100%; height: 100%; border: 0;
}

.clip--loading .clip__thumb img { opacity: 0; }
.clip--loading .clip__thumb {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: 1.4s linear infinite shimmer;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================
   STATS
   ============================================================ */
.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(200, 35, 44, 0.04), transparent);
}
.stats__cell {
  padding: 32px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stats__cell:last-child { border-right: none; }
@media (max-width: 880px) {
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .stats__cell { border-right: 1px solid var(--line); }
  .stats__cell:nth-child(2n) { border-right: none; }
  .stats__cell:nth-child(1), .stats__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats__row { grid-template-columns: 1fr; }
  .stats__cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stats__cell:last-child { border-bottom: none; }
}

.stats__cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: linear-gradient(180deg, var(--crimson), var(--gold));
  transition: height 0.4s;
}
.stats__cell:hover::before { height: 100%; }

.stats__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stats__v {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  color: var(--crimson);
  text-shadow: 0 0 16px rgba(200, 35, 44, 0.3);
}
.stats__u {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.stats__bar {
  height: 4px;
  background: rgba(212, 169, 72, 0.1);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.stats__bar i {
  display: block;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  box-shadow: 0 0 8px var(--crimson);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================================
   TROPHIES
   ============================================================ */
.shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
}

.trophy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: linear-gradient(180deg, rgba(26, 6, 8, 0.6), rgba(12, 6, 8, 0.4));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: 0.25s;
}
.trophy::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--crimson);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s;
}
.trophy:hover::before { transform: scaleY(1); }

.trophy--gold {
  border-color: var(--line-gold);
  background: linear-gradient(135deg, rgba(212, 169, 72, 0.06), transparent);
}
.trophy--gold::before { background: var(--gold); }
.trophy--crimson {
  border-color: var(--line);
  background: linear-gradient(135deg, rgba(200, 35, 44, 0.06), transparent);
}
.trophy--crimson::before { background: var(--crimson); }
.trophy--crimson.is-current {
  border-color: var(--line-gold);
  background: linear-gradient(135deg, rgba(212, 169, 72, 0.10), rgba(200, 35, 44, 0.06));
  position: relative;
}
.trophy--crimson.is-current::after {
  content: 'NOW';
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold);
  padding: 3px 7px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--bg);
  animation: nowPulse 2.4s ease-out infinite;
}
@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 169, 72, 0.4); }
  70%      { box-shadow: 0 0 0 6px rgba(212, 169, 72, 0); }
}
.trophy--silver {
  border-color: rgba(192, 200, 212, 0.3);
}
.trophy--silver::before { background: var(--silver); }
.trophy--bronze {
  border-color: rgba(184, 115, 51, 0.3);
}
.trophy--bronze::before { background: var(--bronze); }

.trophy:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.trophy__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.trophy--gold .trophy__icon {
  background: rgba(212, 169, 72, 0.12);
  color: var(--gold);
  border-color: var(--line-gold);
}
.trophy--crimson .trophy__icon {
  background: rgba(200, 35, 44, 0.12);
  color: var(--crimson);
  border-color: var(--line);
}
.trophy--silver .trophy__icon {
  background: rgba(192, 200, 212, 0.12);
  color: var(--silver);
  border-color: rgba(192, 200, 212, 0.3);
}
.trophy--bronze .trophy__icon {
  background: rgba(184, 115, 51, 0.12);
  color: var(--bronze);
  border-color: rgba(184, 115, 51, 0.3);
}
.trophy__icon svg { width: 30px; height: 30px; stroke-width: 2; }

.trophy__body {
  display: flex; flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.trophy__body small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.trophy__body b {
  display: block;
  font-family: var(--serif-display);
  font-size: 19px; font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-0);
  line-height: 1.25;
  margin-top: 2px;
}
.trophy__body span {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.55;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 56px;
  max-width: 920px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--crimson), var(--gold), var(--crimson));
}

.tl {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s;
}
.tl.in { opacity: 1; transform: translateY(0); }
.tl::before {
  content: '';
  position: absolute;
  left: -44px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--crimson);
  z-index: 1;
}
.tl.is-active::before {
  background: var(--crimson);
  box-shadow: 0 0 14px var(--crimson);
}

.tl__years {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tl__team {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-0);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.tl__note {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.5;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}
@media (min-width: 700px) {
  .contact { grid-template-columns: repeat(2, 1fr); }
}

.contact__big {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
  transition: 0.25s;
  min-height: 160px;
  justify-content: space-between;
}
.contact__big:last-child { border-bottom: none; }
@media (min-width: 700px) {
  .contact__big:nth-child(2n) { border-right: none; }
  .contact__big:nth-last-child(-n+2) { border-bottom: none; }
}

.contact__big:hover {
  background: var(--crimson);
  color: var(--bg-paper);
}
.contact__big:hover .contact__num,
.contact__big:hover .contact__hint { color: rgba(246, 239, 230, 0.7); }

.contact__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.contact__lbl {
  font-family: var(--serif-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
}
.contact__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.contact__arrow {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--serif-jp);
  font-size: 24px;
  color: var(--crimson);
  transition: 0.25s;
}
.contact__big:hover .contact__arrow {
  color: var(--bg-paper);
  transform: translate(4px, -4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 32px;
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.foot a.foot__studio {
  color: var(--gold);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 1px;
  transition: 0.2s;
}
.foot a.foot__studio:hover {
  color: var(--crimson);
  border-color: var(--crimson);
}

@media (prefers-reduced-motion: reduce) {
  *, ::after, ::before {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* === Modal === */
/* === Mobile 2x1 clip grid === */
@media (max-width: 640px) {
  .clips { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
}
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.is-on { display: flex; }
.modal__bg { position: absolute; inset: 0; background: rgba(4,6,12,0.88); backdrop-filter: blur(14px); }
.modal__box { position: relative; width: min(420px, 100%); max-height: 92vh; background: var(--bg-2, #1a1a1a); border: 1px solid var(--line, #333); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line, #333); }
.modal__title { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: 1.2px; color: var(--gold, #d4a948); text-transform: uppercase; }
.modal__close { background: transparent; border: 1px solid var(--line, #333); color: var(--ink-2, #aaa); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-family: var(--font-mono, monospace); font-size: 13px; }
.modal__close:hover { color: var(--gold, #d4a948); border-color: var(--gold, #d4a948); }
.modal__embed { position: relative; aspect-ratio: 9/16; max-height: 70vh; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; width: 100%; }
.modal__embed .skel { position: absolute; inset: 0; background-size: cover; background-position: center; }
.modal__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; margin: 0 auto; display: block; }
.modal__stats {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-top: 1px solid var(--line, #333);
  font-family: var(--font-mono, monospace); font-size: 10px;
  letter-spacing: 0.5px; color: var(--ink-2, #aaa);
  flex-wrap: wrap;
}
.modal__stats > span { text-align: center; flex: 1 1 auto; min-width: 50px; }
.modal__stats b { display: block; font-size: 14px; color: var(--accent, #0ff); margin-top: 2px; font-weight: 600; }
.modal__stat { text-align: center; }
.modal__stat b { display: block; font-size: 14px; font-family: var(--font-mono, monospace); color: var(--gold, #d4a948); }
.modal__stat .k { font-size: 9px; letter-spacing: 1.2px; color: var(--ink-2, #aaa); text-transform: uppercase; margin-top: 2px; }
