/* =====================================================================
   SYNO · TERMINAL UI — pure mono · black bg · phosphor accent
   no cards, no glass, no gradients. just a CLI session.
   ===================================================================== */

:root {
  --bg:        #000000;
  --fg:        #d6e0d6;
  --fg-dim:    #5e6a5e;
  --fg-mid:    #8b9585;
  --accent:    #00ff9c;        /* phosphor green */
  --accent-dim:#00b872;
  --warn:      #ffb000;        /* amber */
  --bad:       #ff5c5c;
  --rule:      #1a221a;
  --rule-mid:  #2a342a;
  --caret:     #00ff9c;
  --selection: #003820;

  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

::selection { background: var(--selection); color: var(--accent); }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.term.is-preloading {
  opacity: 0;
  transition: opacity 0.45s ease;
}
body.term.is-ready {
  opacity: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.12s linear;
}
a:hover { border-bottom-color: var(--accent); }

.term-link { color: var(--accent); }
.term-cmt  { color: var(--fg-dim); }

/* blinking caret — only one in the document at a time, used in prompt + footer */
@keyframes termBlink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.term-prompt__caret {
  display: inline-block;
  color: var(--caret);
  animation: termBlink 1s steps(2) infinite;
  margin-left: 2px;
  font-weight: 700;
}

/* ============= BOOT SPLASH ============= */
.term-splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 32px;
  font-family: var(--font-mono);
  color: var(--fg);
}
.term-splash__inner {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.7;
}
.term-splash__line {
  white-space: pre;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-4px);
  animation: termSplashLineIn .35s ease forwards;
}
.term-splash__line--cmd { animation-delay: 0s; opacity: 1; transform: none; }
.term-splash__line:nth-of-type(2) { animation-delay: .35s; }
.term-splash__line:nth-of-type(3) { animation-delay: .55s; }
.term-splash__line:nth-of-type(4) { animation-delay: .8s; }
.term-splash__line:nth-of-type(5) { animation-delay: 1.05s; }
@keyframes termSplashLineIn { to { opacity: 1; transform: none; } }
.term-splash__prompt { color: var(--accent); font-weight: 700; }
.term-splash__path { color: var(--warn); }
.term-splash__dollar { color: var(--fg-mid); }
.term-splash__cmd { color: var(--fg); }
.term-splash__caret {
  color: var(--caret);
  animation: termBlink 1s steps(2) infinite;
  font-weight: 700;
  margin-left: 1px;
}
.term-splash__pct {
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  min-width: 4ch;
  text-align: right;
}
.term-splash__msg {
  color: var(--fg-mid);
  margin-left: 10px;
}
.term-splash__msg--ready { color: var(--accent); font-weight: 700; }

/* ============= SCANLINE OVERLAY ============= */
.term-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 255, 156, 0.018) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* ============= TOP CHROME ============= */
.term-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 18px;
  height: 40px;
  gap: 24px;
}
.term-top__win {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-mid);
  flex-shrink: 0;
}
.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid currentColor;
}
.term-dot--r { color: var(--bad); }
.term-dot--y { color: var(--warn); }
.term-dot--g { color: var(--accent); }
.term-top__title {
  margin-left: 6px;
  color: var(--fg-mid);
  letter-spacing: 0.5px;
  font-weight: 500;
}
.term-top__title strong {
  color: var(--accent);
  font-weight: 500;
}
.term-top__nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  font-size: 11.5px;
}
.term-top__nav a {
  color: var(--fg-mid);
  border-bottom: none;
  position: relative;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.1s linear, background 0.1s linear;
  border-left: 1px solid var(--rule);
}
.term-top__nav a:first-child { border-left: none; }
.term-top__nav a::before {
  content: attr(data-num);
  color: var(--fg-dim);
  font-size: 10px;
  letter-spacing: 0;
  min-width: 14px;
  text-align: right;
}
.term-top__nav a:hover {
  color: var(--accent);
  background: rgba(0, 255, 156, 0.04);
}
.term-top__nav a.is-active {
  color: var(--accent);
  background: rgba(0, 255, 156, 0.08);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.term-top__nav a.is-active::before { color: var(--accent); }
.term-top__nav a.is-external::before { content: "↗"; }

/* ============= MAIN CONTAINER ============= */
.term-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 22px 120px 22px;
}

/* ============= SECTION BASE ============= */
.term-sec {
  padding: 40px 0 28px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.term-sec:last-of-type { border-bottom: none; }
.term-sec__hdr {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.term-sec__hdr--sub { margin-top: 36px; }
.term-sec__idx {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}
.term-sec__title {
  color: var(--fg-mid);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.term-sec__rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 22px;
}

/* ============= WHO (hero) ============= */
.term-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 22px;
}
.term-prompt__user { color: var(--accent); font-weight: 700; }
.term-prompt__path { color: var(--warn); }
.term-prompt__dollar { color: var(--fg-mid); margin-right: 8px; }
.term-prompt__cmd { color: var(--fg); }

.term-who__block {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--fg);
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 22px;
  padding: 12px 0;
}
.term-who__block span,
.term-who__block a {
  color: var(--accent);
}

.term-who__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 18px 0;
}

.term-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid var(--rule-mid);
  background: transparent;
  color: var(--fg-mid);
  transition: all 0.1s linear;
  border-radius: 0;
}
.term-btn:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(0, 255, 156, 0.04);
}
.term-btn--primary {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(0, 255, 156, 0.06);
}
.term-btn--primary:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.term-btn--ghost {}

.term-meta {
  font-size: 11.5px;
  color: var(--fg-dim);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

/* ============= STORY ============= */
.term-story__bio {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--fg);
  white-space: pre-wrap;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--rule-mid);
}
.term-story__sig {
  color: var(--warn);
  font-style: normal;
  font-size: 13px;
  padding: 12px 16px;
  border: 1px dashed var(--rule-mid);
  margin: 0 0 26px 0;
  letter-spacing: 0.3px;
}
.term-story__sig::before { content: "$ "; color: var(--fg-mid); }

/* ASCII-rendered profile frame */
.term-ascii {
  margin: 6px 0 26px;
  border: 1px solid var(--rule-mid);
  background: #050805;
  position: relative;
  max-width: 520px;
}
.term-ascii__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--rule);
  background: #0a0c0a;
  font-size: 10.5px;
  color: var(--fg-mid);
  letter-spacing: .3px;
}
.term-ascii__bar-title {
  margin-left: 6px;
  color: var(--fg-dim);
  letter-spacing: .4px;
}
.term-ascii__bar-title::before {
  content: "syno@champion";
  color: var(--accent);
  margin-right: 4px;
  font-weight: 700;
}
.term-ascii__art {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.0;
  color: var(--accent);
  white-space: pre;
  overflow-x: auto;
  letter-spacing: 0;
  font-weight: 400;
  background:
    radial-gradient(ellipse at center, rgba(0,255,156,0.05) 0%, transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,255,156,0.04) 2px, rgba(0,255,156,0.04) 3px),
    #050805;
  position: relative;
  cursor: crosshair;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  transition: filter .2s linear;
}
.term-ascii__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,255,156,0.06) 50%, transparent 51%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: termAsciiFlicker 4s steps(2) infinite;
}
@keyframes termAsciiFlicker {
  0%, 92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  95% { opacity: 0.7; }
  100% { opacity: 1; }
}
.term-ascii__art .ch-dim { color: rgba(0,255,156,0.35); }
.term-ascii__art .ch-mid { color: rgba(0,255,156,0.7); }
.term-ascii__art .ch-bright { color: rgba(0,255,156,1); text-shadow: 0 0 6px rgba(0,255,156,0.55); }
.term-ascii__cap {
  padding: 4px 12px 8px;
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: .4px;
  border-top: 1px dashed var(--rule);
}
.term-ascii__cap::before {
  content: "$ ";
  color: var(--fg-mid);
  margin-right: 4px;
}
@media (max-width: 720px) {
  .term-ascii__art { font-size: 7px; padding: 8px 6px; }
  .term-ascii { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .term-ascii__art::before { animation: none; }
}

.term-arc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.term-arc__cell {
  background: var(--bg);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--fg);
  line-height: 1.55;
}
.term-arc__phase {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 11px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.term-arc__year { color: var(--fg-dim); }
.term-arc__event {
  color: var(--fg);
  font-size: 12.5px;
  margin-bottom: 4px;
}
.term-arc__note {
  color: var(--fg-dim);
  font-size: 11.5px;
  line-height: 1.45;
}

/* ============= TROPHY ============= */
.term-trophy__box {
  border: 1px solid var(--accent-dim);
  padding: 22px 22px;
  position: relative;
}
.term-trophy__box::before {
  content: "[ HIGHLIGHT ]";
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--bg);
  color: var(--accent);
  padding: 0 8px;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  transform: translateY(-50%);
}
.term-trophy__ascii {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 14px;
  text-align: center;
}
.term-trophy__head { margin-bottom: 18px; }
.term-trophy__rank {
  color: var(--warn);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.term-trophy__title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}
.term-trophy__sub {
  color: var(--fg-mid);
  font-size: 12.5px;
}
.term-trophy__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}
.term-ts {
  background: var(--bg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.term-ts__k {
  color: var(--fg-dim);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.term-ts__v {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.term-trophy__note {
  font-size: 12.5px;
  color: var(--fg-mid);
  line-height: 1.7;
  border-top: 1px dashed var(--rule-mid);
  padding-top: 14px;
}

/* ============= TEAMS ============= */
.term-teams__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.term-team {
  background: var(--bg);
  padding: 14px;
  position: relative;
  font-size: 12.5px;
}
.term-team__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.term-team__name {
  color: var(--fg);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}
.term-team__short {
  color: var(--fg-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--rule-mid);
  padding: 1px 6px;
}
.term-team__role {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.term-team__period {
  color: var(--fg-mid);
  font-size: 11.5px;
  margin-bottom: 8px;
}
.term-team__note {
  color: var(--fg-dim);
  font-size: 11.5px;
  line-height: 1.55;
}
.term-team--champion {
  border-left: 2px solid var(--accent);
}
.term-team--champion .term-team__name::after {
  content: " ♛";
  color: var(--warn);
}
.term-team--champion .term-team__short {
  color: var(--warn);
  border-color: var(--warn);
}

.term-achv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.term-achv__cell {
  background: var(--bg);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.term-achv__rank {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.term-achv__rank--1 { color: var(--warn); }
.term-achv__rank--2 { color: var(--fg); }
.term-achv__rank--3 { color: var(--fg-mid); }
.term-achv__rank--other { color: var(--fg-dim); }
.term-achv__tier {
  color: var(--fg-dim);
  font-size: 10.5px;
  letter-spacing: 1.2px;
}
.term-achv__tournament {
  color: var(--fg);
  font-size: 12.5px;
}
.term-achv__meta {
  color: var(--fg-mid);
  font-size: 11px;
}

/* ============= CHOU ============= */
.term-chou__hero {
  color: var(--fg);
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 16px;
  white-space: pre;
  overflow-x: auto;
}
.term-chou__ch {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
}
.term-chou__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 20px;
}
.term-chou__clip {
  display: block;
  border: 1px solid var(--rule-mid);
  padding: 14px 16px;
  color: var(--fg);
  border-bottom: 1px solid var(--rule-mid);
}
.term-chou__clip:hover {
  border-color: var(--accent-dim);
  background: rgba(0, 255, 156, 0.03);
}
.term-chou__clip-label {
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.term-chou__clip-title {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.term-chou__clip-tags {
  color: var(--fg-mid);
  font-size: 11.5px;
}

/* ============= CLIPS ============= */
.term-clips__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 22px;
}
.term-clip {
  background: var(--bg);
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-bottom: none;
  aspect-ratio: 9/16;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.term-clip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}
.term-clip__meta {
  position: relative;
  z-index: 2;
  padding: 8px 10px 10px 10px;
  color: var(--fg);
}
.term-clip__title {
  font-size: 11px;
  line-height: 1.35;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.term-clip__stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.5px;
}
.term-clip__rank {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 10px;
  color: var(--bg);
  background: var(--accent);
  padding: 1px 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.term-clip__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--accent);
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.12s linear;
  pointer-events: none;
}
.term-clip:hover .term-clip__play { opacity: 1; }

.term-clips__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ============= CONTACT ============= */
.term-contact__block {
  color: var(--fg);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre;
  overflow-x: auto;
  padding-left: 14px;
  border-left: 2px solid var(--rule-mid);
}

/* ============= MODAL ============= */
.term-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.term-modal.is-open { display: flex; }
.term-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.term-modal__panel {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--accent-dim);
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 201;
}
.term-modal__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 11.5px;
}
.term-modal__path {
  color: var(--fg-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-modal__close {
  background: transparent;
  border: 1px solid var(--rule-mid);
  color: var(--fg-mid);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  border-radius: 0;
}
.term-modal__close:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.term-modal__embed {
  flex: 1;
  min-height: 580px;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  font-size: 12px;
  position: relative;
}
.term-modal__embed iframe {
  width: 100%;
  height: 100%;
  min-height: 580px;
  border: 0;
  display: block;
}
.term-modal__placeholder { color: var(--fg-dim); }
.term-modal__stats {
  padding: 8px 12px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--fg-mid);
}
.term-stat-accent { color: var(--accent); font-weight: 700; }
.term-stat-sep { color: var(--fg-dim); margin: 0 6px; }

/* ============= FOOTER ============= */
.term-foot {
  border-top: 1px solid var(--rule);
  padding: 18px 22px 100px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--fg-dim);
}
.term-foot__sep { color: var(--fg-dim); }
.term-foot__link {
  color: var(--fg-mid);
  border-bottom: none;
}
.term-foot__link:hover { color: var(--accent); }

/* ============= MOBILE BOTTOM TABBAR ============= */
.term-tab {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
  border-top: 1px solid var(--accent-dim);
  padding: 6px 4px calc(env(safe-area-inset-bottom, 0) + 8px) 4px;
  font-size: 10px;
  justify-content: space-between;
  align-items: stretch;
}
.term-tab a {
  color: var(--fg-mid);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 4px;
  letter-spacing: 0.5px;
  flex: 1;
  min-width: 0;
  position: relative;
  transition: color 0.1s linear;
}
.term-tab a::before {
  content: attr(data-num);
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1;
}
.term-tab a span.term-tab__lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.term-tab a.is-active {
  color: var(--accent);
}
.term-tab a.is-active::before { color: var(--accent); }
.term-tab a.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
}

/* ============= REVEAL ANIMATIONS ============= */
.term-sec {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.term-sec.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .term-prompt__caret { animation: none; }
  .term-scanlines { display: none; }
  .term-sec { transition: none; }
  .term-sec { opacity: 1; transform: none; }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 720px) {
  html, body { font-size: 13px; }
  .term-top__nav { display: none; }
  .term-tab { display: flex; }
  .term-main { padding: 18px 16px 110px 16px; }
  .term-sec { padding: 32px 0 22px 0; }
  .term-who__block { font-size: 12px; line-height: 1.85; }
  .term-trophy__title { font-size: 18px; }
  .term-trophy__ascii { font-size: 10px; }
  .term-chou__hero { font-size: 11px; }
  .term-clips__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .term-foot { padding-bottom: 110px; }
}

@media (max-width: 420px) {
  .term-clips__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .term-arc, .term-teams__grid, .term-achv {
    grid-template-columns: 1fr;
  }
}