:root {
  --bg: #07090d;
  --bg-soft: #0d1117;
  --bg-card: rgba(16, 21, 29, 0.9);
  --bg-card-strong: #121822;
  --bg-panel: #151c27;
  --bg-panel-alt: #10151d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f2ea;
  --muted: #b9b0a3;
  --dim: #7d7670;
  --accent: #f67a23;
  --accent-soft: #ffb45e;
  --accent-deep: #8a3f10;
  --cream: #fff0dd;
  --ally: #74d4a2;
  --enemy: #ff7678;
  --ban: #f2cb59;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ally-bg: rgba(116, 212, 162, 0.12);
  --enemy-bg: rgba(255, 118, 120, 0.12);
  --ban-bg: rgba(242, 203, 89, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 30px 80px rgba(0, 0, 0, 0.34), 0 0 60px rgba(246, 122, 35, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --mono: "Space Mono", monospace;
  --head: "Syne", sans-serif;
  --body: "DM Sans", sans-serif;
  --accent-cyan: #4fc3f7;
  --accent-purple: #b39ddb;
  --glow-orange: 0 0 40px rgba(246, 122, 35, 0.45), 0 0 80px rgba(246, 122, 35, 0.2);
  --glow-green: 0 0 30px rgba(116, 212, 162, 0.4), 0 0 60px rgba(116, 212, 162, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(246, 122, 35, 0.26), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(255, 180, 94, 0.14), transparent 24%),
    radial-gradient(circle at 55% 80%, rgba(79, 195, 247, 0.05), transparent 35%),
    radial-gradient(circle at 5% 60%, rgba(179, 157, 219, 0.04), transparent 28%),
    linear-gradient(180deg, #07090e 0%, #090c12 34%, #07090d 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.018) 3px,
    rgba(0, 0, 0, 0.018) 4px
  );
  pointer-events: none;
  z-index: -2;
}

body.modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.draft-faux-fullscreen-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--head);
}

p {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
}

:focus-visible {
  outline: 2px solid rgba(255, 180, 94, 0.9);
  outline-offset: 3px;
}

.page-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
  pointer-events: none;
  z-index: -2;
}

.page-glow-left {
  top: -8rem;
  left: -8rem;
  background: rgba(246, 122, 35, 0.5);
  animation: drift-glow 18s ease-in-out infinite;
}

.page-glow-right {
  top: 8rem;
  right: -12rem;
  background: rgba(255, 180, 94, 0.35);
  animation: drift-glow 22s ease-in-out infinite reverse;
}

.page-glow-3 {
  bottom: 20%;
  right: 8%;
  width: 24rem;
  height: 24rem;
  background: rgba(79, 195, 247, 0.14);
  animation: drift-glow 28s ease-in-out infinite;
}

.page-glow-4 {
  top: 55%;
  left: 3%;
  width: 20rem;
  height: 20rem;
  background: rgba(179, 157, 219, 0.1);
  animation: drift-glow 34s ease-in-out infinite alternate;
}

.page-glow-5 {
  bottom: 5%;
  left: 35%;
  width: 28rem;
  height: 28rem;
  background: rgba(246, 122, 35, 0.07);
  animation: drift-glow 40s ease-in-out infinite reverse;
}

@keyframes drift-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(24px, 18px, 0) scale(1.08);
  }
}

.site-header,
.site-main {
  width: min(1480px, calc(100% - 44px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(246, 122, 35, 0.1);
  border-radius: 999px;
  background: rgba(9, 12, 17, 0.86);
  backdrop-filter: blur(28px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 180, 94, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  animation: logo-float 7.5s ease-in-out infinite;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(-2deg);
  }
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--head);
  font-size: 1.04rem;
  letter-spacing: 0.03em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.83rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ─── Header API status indicator ─────────────────────────────── */
.header-api-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.header-api-dot {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Loading state */
.header-api-status[data-status="loading"] {
  background: rgba(255, 180, 94, 0.08);
  border-color: rgba(255, 180, 94, 0.2);
  color: var(--muted);
}
.header-api-status[data-status="loading"] .header-api-dot {
  background: rgba(255, 180, 94, 0.7);
  animation: api-dot-blink 1.2s ease-in-out infinite;
}

/* Online state */
.header-api-status[data-status="online"] {
  background: rgba(116, 212, 162, 0.13);
  border-color: rgba(116, 212, 162, 0.55);
  color: #b8f0da;
  text-shadow: 0 0 10px rgba(116, 212, 162, 0.4);
  animation: api-badge-pulse 2.2s ease-in-out infinite;
}
.header-api-status[data-status="online"] .header-api-dot {
  background: #74d4a2;
  box-shadow: 0 0 8px rgba(116, 212, 162, 0.95), 0 0 16px rgba(116, 212, 162, 0.4);
  animation: api-dot-blink 1.6s ease-in-out infinite;
}

/* Offline state */
.header-api-status[data-status="offline"] {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.header-api-status[data-status="offline"] .header-api-dot {
  background: rgba(180, 180, 200, 0.45);
}

/* Hide label text on small screens, keep dot */
@media (max-width: 640px) {
  .header-api-status {
    padding: 6px 8px;
    gap: 0;
  }
  .header-api-label {
    display: none;
  }
}

.header-link,
.header-login,
.secondary-btn,
.text-button {
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.header-link,
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.header-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.header-login,
.primary-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(246, 122, 35, 0.45);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #2c1304;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(246, 122, 35, 0.22);
}

.header-login::after,
.primary-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -65%;
  width: 45%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(18deg);
  animation: button-sheen 4.6s linear infinite;
  pointer-events: none;
}

@keyframes button-sheen {
  0% {
    left: -65%;
  }

  100% {
    left: 140%;
  }
}

.header-login:hover,
.header-login:focus-visible,
.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(246, 122, 35, 0.28);
}

.header-login.logged-in {
  background: linear-gradient(135deg, rgba(255, 180, 94, 0.16), rgba(246, 122, 35, 0.22));
  color: var(--text);
  border-color: rgba(255, 180, 94, 0.4);
  box-shadow: none;
}

.clerk-user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
}

.clerk-user-button[hidden] {
  display: none;
}

.clerk-user-button :is(.cl-userButtonBox, .cl-userButtonTrigger) {
  width: 42px;
  height: 42px;
}

.site-main {
  padding: 32px 0 60px;
}

.hero-section,
.scroll-story,
.value-strip,
.content-section,
.site-footer {
  margin-top: 28px;
  scroll-margin-top: 110px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.surface-card,
.tool-shell,
.site-footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 27, 37, 0.96), rgba(11, 15, 21, 0.92));
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.surface-card:hover {
  border-color: rgba(255, 180, 94, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 30px rgba(246, 122, 35, 0.05);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-xl);
  border-color: rgba(255, 180, 94, 0.12);
  background:
    radial-gradient(circle at 82% 16%, rgba(246, 122, 35, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(18, 24, 33, 0.98), rgba(11, 15, 21, 0.94));
  box-shadow: var(--shadow);
  animation: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

@keyframes hero-border-pulse {
  0%, 100% { border-color: rgba(246, 122, 35, 0.10); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34); }
  50% { border-color: rgba(255, 180, 94, 0.24); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34), 0 0 60px rgba(246, 122, 35, 0.08); }
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 122, 35, 0.12), transparent 72%);
  pointer-events: none;
}

.hero-copy::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 34%;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 206, 0.7), transparent);
  box-shadow: 0 0 16px rgba(255, 180, 94, 0.3);
  transform: rotate(-12deg);
  opacity: 0.55;
  transform-origin: left center;
  animation: hero-scan 7.5s linear infinite;
}

@keyframes sweep-line {
  0% {
    transform: translateX(-12%);
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.eyebrow,
.card-kicker {
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

.eyebrow::before,
.card-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(246, 122, 35, 0.9), 0 0 16px rgba(246, 122, 35, 0.4);
  flex-shrink: 0;
  animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(246, 122, 35, 0.9), 0 0 16px rgba(246, 122, 35, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 4px rgba(246, 122, 35, 0.6), 0 0 8px rgba(246, 122, 35, 0.2); }
}

.hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, var(--cream) 0%, var(--accent-soft) 68%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: none;
}

@keyframes gradient-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-text {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-battle-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-battle-pill {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(79, 195, 247, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
}

.hero-battle-pill::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 180, 94, 0.8), transparent 65%);
  opacity: 0.8;
}

.hero-battle-pill span {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-battle-pill strong {
  max-width: 10ch;
  font-family: var(--head);
  font-size: 1.05rem;
  line-height: 0.98;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.secondary-btn:hover,
.secondary-btn:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.hero-welcome {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 180, 94, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 180, 94, 0.08);
  max-width: max-content;
}

.welcome-label {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-rail {
  display: block;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  }

  33% {
    transform: translateY(-6px) rotate(0.3deg);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38), 0 0 30px rgba(246, 122, 35, 0.06);
  }

  66% {
    transform: translateY(-10px) rotate(-0.2deg);
    box-shadow: 0 45px 95px rgba(0, 0, 0, 0.4), 0 0 40px rgba(246, 122, 35, 0.08);
  }
}

.surface-card {
  padding: 20px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.hero-focus-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(79, 195, 247, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(246, 122, 35, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(21, 27, 37, 0.96), rgba(11, 15, 21, 0.92));
}

.hero-focus-card > * {
  position: relative;
  z-index: 1;
}

.hero-focus-card::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(79, 195, 247, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(79, 195, 247, 0.04),
    0 0 0 46px rgba(79, 195, 247, 0.025);
  opacity: 0.8;
  animation: hero-orbit 18s linear infinite;
}

.hero-focus-card::after {
  content: "";
  position: absolute;
  inset: auto auto -18% -8%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 122, 35, 0.14), transparent 68%);
  filter: blur(10px);
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #d8f3ff;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-signal span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67f5cf;
  box-shadow: 0 0 14px rgba(103, 245, 207, 0.8);
  animation: dot-pulse 2.8s ease-in-out infinite;
}

@keyframes hero-scan {
  0% {
    transform: translate3d(-12%, -10px, 0) rotate(-12deg);
    opacity: 0;
  }

  18%,
  62% {
    opacity: 0.58;
  }

  100% {
    transform: translate3d(16%, 12px, 0) rotate(-12deg);
    opacity: 0;
  }
}

@keyframes hero-orbit {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.03);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hero-focus-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--cream), var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.channel-text,
.goal-card p,
.value-card p,
.section-heading p,
.info-card p,
.site-footer p {
  color: var(--muted);
}

.channel-text {
  max-width: 26ch;
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.45;
}

.channel-live-note {
  max-width: 30ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.hero-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-focus-item {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.hero-focus-item span {
  display: block;
  color: var(--dim);
  margin-bottom: 2px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-focus-item strong {
  font-size: 0.96rem;
  line-height: 1.3;
}

.hero-focus-card .text-link {
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--cream);
  font-weight: 600;
}

.text-link::after {
  content: "->";
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.scroll-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.76fr);
  gap: 20px;
  align-items: start;
}

.scroll-story-stage {
  position: sticky;
  top: 110px;
  align-self: start;
}

.story-screen {
  --story-progress: 0;
  --story-accent: rgba(255, 180, 94, 0.42);
  --story-accent-soft: rgba(79, 195, 247, 0.16);
  position: relative;
  min-height: min(78vh, 760px);
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, var(--story-accent-soft), transparent 30%),
    linear-gradient(180deg, rgba(12, 18, 45, 0.96), rgba(7, 12, 29, 0.98));
  box-shadow: var(--shadow-glow);
  isolation: isolate;
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.story-screen[data-story-index="1"] {
  --story-accent: rgba(103, 245, 207, 0.44);
  --story-accent-soft: rgba(67, 225, 255, 0.16);
}

.story-screen[data-story-index="2"] {
  --story-accent: rgba(255, 118, 120, 0.34);
  --story-accent-soft: rgba(246, 122, 35, 0.2);
}

.story-screen::before,
.story-screen::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.story-screen::before {
  top: -8%;
  right: -8%;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--story-accent), transparent 68%);
  filter: blur(16px);
  opacity: 0.9;
  transform: translate3d(calc(var(--story-progress) * 18px), calc(var(--story-progress) * -20px), 0)
    scale(calc(1 + (var(--story-progress) * 0.14)));
  transition: transform 0.18s linear, background 0.45s var(--ease-out);
}

.story-screen::after {
  inset: 0;
  background:
    linear-gradient(118deg, transparent 10%, rgba(255, 255, 255, 0.08) 46%, transparent 62%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.4;
  transform: translateX(calc((var(--story-progress) - 0.5) * 36px));
  transition: transform 0.18s linear;
}

.story-screen-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  min-height: 100%;
  padding: clamp(24px, 4vw, 38px);
}

.story-screen-copy {
  display: grid;
  gap: 14px;
  max-width: 34rem;
}

.story-screen-kicker {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-screen-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.story-screen-copy p {
  max-width: 34ch;
  color: rgba(246, 242, 234, 0.82);
  font-size: 1rem;
  line-height: 1.6;
}

.story-screen-panels {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.story-screen-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(5, 11, 31, 0.38);
  opacity: 0.46;
  transform: translateY(20px) scale(0.96);
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    background 0.45s var(--ease-out);
}

.story-screen-panel span {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-screen-panel strong {
  font-family: var(--head);
  font-size: 1rem;
  line-height: 1.02;
}

.story-screen-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), 0 0 24px rgba(255, 180, 94, 0.08);
}

.story-progress {
  display: grid;
  gap: 10px;
}

.story-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 240, 206, 0.72);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-progress-track {
  height: 10px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(4, 10, 30, 0.55);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.22);
}

.story-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), #ff5f6d);
  transform-origin: left center;
  transform: scaleX(0.08);
  transition: transform 0.18s linear;
  box-shadow: 0 0 16px rgba(246, 122, 35, 0.35);
}

.scroll-story-steps {
  display: grid;
  gap: 18px;
}

.story-step {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding-left: 28px;
}

.story-step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 180, 94, 0.08), rgba(79, 195, 247, 0.2), transparent);
}

.story-step-index {
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(10, 16, 37, 0.92);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.story-step-copy {
  width: 100%;
  padding: 24px 24px 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.92), rgba(9, 13, 18, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    background 0.45s var(--ease-out);
}

.story-step-copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
}

.story-step-copy p {
  max-width: 26ch;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.story-step.is-active .story-step-copy {
  transform: translateX(-10px);
  border-color: rgba(255, 180, 94, 0.24);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.28), 0 0 34px rgba(246, 122, 35, 0.08);
  background: linear-gradient(180deg, rgba(24, 31, 43, 0.98), rgba(10, 15, 23, 0.94));
}

.story-step.is-active .story-step-index {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #2f1402;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 18px rgba(246, 122, 35, 0.35);
}

.story-step.is-active::before {
  background: linear-gradient(180deg, rgba(255, 180, 94, 0.18), rgba(79, 195, 247, 0.34), transparent);
}

.value-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) repeat(3, minmax(0, 0.92fr));
  gap: 16px;
  align-items: stretch;
}

.value-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 82px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

.value-card h2 {
  max-width: 12ch;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.value-card-lead {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.value-title {
  margin-bottom: 8px;
  font-family: var(--head);
  font-size: 1.12rem;
  background: linear-gradient(135deg, var(--cream), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-section {
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(14, 18, 26, 0.92), rgba(9, 13, 18, 0.88));
  box-shadow: var(--shadow);
}

.content-section > * {
  position: relative;
  z-index: 1;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 94, 0.34), transparent);
  pointer-events: none;
}

#shorts::after,
#journey::after {
  content: "";
  position: absolute;
  inset: auto auto -46px -34px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 122, 35, 0.08), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

#shorts::after {
  inset: auto -24px -48px auto;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.08), transparent 72%);
}

.tool-section {
  padding-bottom: 20px;
}

.tool-section .section-heading {
  margin-bottom: 16px;
}

@supports (content-visibility: auto) {
  .value-strip,
  .content-section,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 720px;
  }
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  position: relative;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), transparent);
  border-radius: 999px;
}

.section-heading p:last-child {
  max-width: 34rem;
  margin-top: 10px;
  font-size: 0.97rem;
  line-height: 1.55;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.short-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.02));
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.short-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 94, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.short-card:hover,
.short-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 180, 94, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(246, 122, 35, 0.08);
}

.short-card:hover::before,
.short-card:focus-within::before {
  opacity: 1;
}

.short-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #111723, #0a0d13);
}

.short-frame iframe,
.short-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.short-card:hover .short-frame iframe,
.short-card:focus-within .short-frame iframe,
.short-card:hover .short-frame img,
.short-card:focus-within .short-frame img {
  transform: scale(1.02);
}

.short-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.short-index {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.short-title {
  font-family: var(--head);
  font-size: 1.08rem;
  line-height: 1.08;
}

.short-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(250px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.milestone-list {
  position: relative;
  display: grid;
  counter-reset: milestone;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: start;
}

.milestone-list::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 180, 94, 0.18), transparent 86%);
  opacity: 0.9;
}

.milestone-card,
.info-card {
  border-radius: var(--radius-lg);
}

.milestone-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  background:
    linear-gradient(155deg, rgba(246, 122, 35, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s ease;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
}

.milestone-card::before {
  counter-increment: milestone;
  content: counter(milestone, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 180, 94, 0.16);
  border-radius: 999px;
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  background: rgba(246, 122, 35, 0.07);
}

.milestone-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 122, 35, 0.3), transparent);
}

.milestone-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(246, 122, 35, 0.1);
}

.milestone-card:hover,
.milestone-card:focus-within,
.value-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 94, 0.2);
}

.milestone-card time {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.milestone-card strong {
  font-family: var(--head);
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--cream), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.journey-notes {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 118px;
}

.info-card {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.goal-number {
  margin: 6px 0 2px;
  font-family: var(--head);
  font-size: clamp(2.2rem, 7vw, 3.3rem);
  line-height: 0.9;
  background: linear-gradient(135deg, var(--cream), var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(246, 122, 35, 0.3));
}

.tool-section {
  overflow: hidden;
}

.tool-shell {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.tool-badges span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 180, 94, 0.12);
  border-radius: 999px;
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: rgba(246, 122, 35, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tool-badges span:hover {
  background: rgba(246, 122, 35, 0.1);
  border-color: rgba(255, 180, 94, 0.24);
}

.draft-main {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(320px, 360px);
  min-height: 860px;
}

.panel {
  min-height: 860px;
  max-height: 860px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  overscroll-behavior: contain;
}

.panel:last-child {
  border-right: 0;
}

.draft-board {
  background: var(--bg-panel);
}

.pool-panel {
  background: var(--bg-panel-alt);
}

.coach-panel {
  background: var(--bg-panel);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-meta {
  color: var(--muted);
}

.lane-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.lane-tab {
  padding: 12px 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lane-tab:hover,
.lane-tab:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.lane-tab.active-enemy {
  color: var(--enemy);
  border-bottom-color: var(--enemy);
}

.lane-tab.active-ally {
  color: var(--ally);
  border-bottom-color: var(--ally);
}

.lane-tab.active-ban {
  color: var(--ban);
  border-bottom-color: var(--ban);
}

.slot-section,
.progress-wrap,
.speed-section,
.selects-row,
.draft-actions,
.top-pick-card,
.alt-picks,
.coach-tips,
.shortcuts {
  border-top: 1px solid var(--line);
}

.slot-section {
  padding: 14px 12px;
}

.slot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slot-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.slot-enemy .slot-label::before {
  background: var(--enemy);
}

.slot-ally .slot-label::before {
  background: var(--ally);
}

.slot-ban .slot-label::before {
  background: var(--ban);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.82rem;
}

.chip-enemy {
  color: #ffb1b3;
  border-color: rgba(255, 118, 120, 0.26);
  background: var(--enemy-bg);
}

.chip-ally {
  color: #a4f0c8;
  border-color: rgba(116, 212, 162, 0.3);
  background: var(--ally-bg);
}

.chip-ban {
  color: #f7e08b;
  border-color: rgba(242, 203, 89, 0.28);
  background: var(--ban-bg);
}

.chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1;
}

.chip-x:hover,
.chip-x:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.chip-empty,
.speed-empty {
  color: var(--dim);
  font-size: 0.8rem;
}

.progress-wrap {
  padding: 14px 12px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.progress-track,
.score-bar {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.progress-track {
  height: 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent));
  background-size: 200% 100%;
  animation: bar-shimmer 2.5s linear infinite;
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(246, 122, 35, 0.5);
}

.selects-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 12px;
}

.sel-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sel-group select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.speed-section {
  padding: 12px;
}

.speed-title,
.alt-head,
.shortcut-head {
  margin-bottom: 8px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.speed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.speed-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
}

.speed-chip:hover,
.speed-chip:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.speed-chip.fav-chip {
  border-color: rgba(255, 180, 94, 0.3);
  color: var(--accent-soft);
}

.draft-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.btn-sm {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.btn-sm:hover,
.btn-sm:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm.danger:hover,
.btn-sm.danger:focus-visible {
  border-color: rgba(255, 118, 120, 0.4);
  color: var(--enemy);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.search-icon {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.search-bar input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
}

.search-bar input::placeholder {
  color: var(--dim);
}

.role-filters {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.role-filters::-webkit-scrollbar {
  display: none;
}

.role-pill {
  flex-shrink: 0;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.role-pill:hover,
.role-pill:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.role-pill.active {
  border-color: rgba(255, 180, 94, 0.34);
  background: rgba(255, 180, 94, 0.14);
  color: var(--cream);
}

.brawler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  padding: 12px;
}

.draft-grid-empty {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  place-content: center;
  text-align: center;
}

.draft-grid-empty strong {
  font-family: var(--head);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

.draft-grid-empty span {
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.55;
}

.brawler-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.brawler-card:hover,
.brawler-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 180, 94, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 20px rgba(246, 122, 35, 0.07);
}

.brawler-card.top-pick {
  border-color: rgba(116, 212, 162, 0.4);
  background:
    linear-gradient(160deg, rgba(116, 212, 162, 0.14), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  animation: top-pick-card-pulse 2.8s ease-in-out infinite;
}

@keyframes top-pick-card-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(116, 212, 162, 0);
    border-color: rgba(116, 212, 162, 0.4);
  }
  50% {
    box-shadow: 0 0 24px rgba(116, 212, 162, 0.22), inset 0 0 16px rgba(116, 212, 162, 0.06);
    border-color: rgba(116, 212, 162, 0.65);
  }
}

.brawler-card.fav {
  border-color: rgba(255, 180, 94, 0.32);
}

.brawler-card.taken {
  opacity: 0.46;
}

.bc-fav-toggle {
  align-self: flex-end;
  margin: 10px 10px 0 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
}

.bc-fav-toggle:hover,
.bc-fav-toggle:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.bc-fav-toggle.active {
  border-color: rgba(255, 180, 94, 0.34);
  background: rgba(255, 180, 94, 0.14);
  color: var(--cream);
}

.card-pick-btn {
  display: block;
  width: 100%;
  padding: 10px 12px 14px;
  text-align: left;
}

.card-pick-btn:disabled {
  cursor: not-allowed;
}

.bc-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 180, 94, 0.18), rgba(246, 122, 35, 0.1));
  border: 1px solid rgba(255, 180, 94, 0.18);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.bc-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.bc-role {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.bc-modes {
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.74rem;
}

.phase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.phase-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(246, 122, 35, 0.9), 0 0 40px rgba(246, 122, 35, 0.4);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.phase-dot::before,
.phase-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 122, 35, 0.7);
  animation: pulse-ring 2.4s ease-out infinite;
}

.phase-dot::after {
  animation-delay: 1.2s;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(5);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.85);
  }
}

.top-pick-card {
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(116, 212, 162, 0.08), transparent 60%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.top-pick-card:has(#topPickContent:not([hidden])) {
  background: linear-gradient(180deg, rgba(116, 212, 162, 0.14), transparent 70%);
  animation: top-pick-glow 3.5s ease-in-out infinite;
}

@keyframes top-pick-glow {
  0%, 100% { box-shadow: inset 0 0 0 rgba(116, 212, 162, 0); }
  50% { box-shadow: inset 0 0 30px rgba(116, 212, 162, 0.08); }
}

.top-pick-label {
  color: var(--ally);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empty-state {
  padding: 22px 6px 8px;
  text-align: center;
  color: var(--dim);
}

.empty-icon {
  margin-bottom: 8px;
  font-family: var(--head);
  font-size: 2rem;
}

.top-pick-name {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 0.94;
  background: linear-gradient(135deg, var(--cream), var(--ally));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-pick-role,
.top-pick-bestfor,
.alt-role,
.coach-tip,
.shortcut-row {
  color: var(--muted);
}

.top-pick-role {
  margin-top: 4px;
  font-size: 0.86rem;
}

.score-track {
  margin: 12px 0;
}

.score-bar {
  height: 5px;
}

.score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ally), #c4f3db, var(--ally));
  background-size: 200% 100%;
  animation: bar-shimmer 3s linear infinite;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(116, 212, 162, 0.4);
}

@keyframes bar-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.score-num {
  margin-top: 6px;
  color: var(--ally);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.reason-tags,
.so-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reason-tag,
.so-reason {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
}

.top-pick-bestfor {
  margin-top: 10px;
  font-size: 0.86rem;
}

.quick-lock-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #52d896, var(--ally), #52d896);
  background-size: 200% 200%;
  color: #0a2016;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(116, 212, 162, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  letter-spacing: 0.02em;
}

.quick-lock-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -65%;
  width: 45%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(18deg);
  animation: button-sheen 3s linear infinite;
  pointer-events: none;
}

.quick-lock-btn:hover,
.quick-lock-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(116, 212, 162, 0.5);
}

.quick-lock-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.alt-picks,
.coach-tips {
  padding: 14px;
}

.alt-pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.alt-pick-row:last-child,
.coach-tip:last-child {
  margin-bottom: 0;
}

.alt-pick-row:hover,
.alt-pick-row:focus-visible {
  border-color: var(--line-strong);
}

.alt-num {
  width: 18px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.74rem;
  flex-shrink: 0;
}

.alt-name {
  font-weight: 700;
}

.alt-score {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.coach-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
}

.tip-icon {
  min-width: 38px;
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shortcuts {
  padding: 14px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.8rem;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 240px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(13, 17, 24, 0.96);
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 60;
}

.spotlight-overlay.show {
  opacity: 1;
  transform: translateY(0);
}

.so-name {
  font-family: var(--head);
  font-size: 1.1rem;
}

.so-meta {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.so-stat-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.so-stat {
  flex: 1;
  padding: 7px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.so-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.so-stat span {
  color: var(--dim);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.so-reasons {
  margin-top: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 17, 24, 0.95);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal-ready {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40px) scale(0.982);
  transition:
    opacity 0.78s var(--ease-out),
    transform 0.88s var(--ease-out),
    filter 0.88s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
}

.site-footer a {
  color: var(--cream);
  font-weight: 600;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 10, 0.72);
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 440px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(4, 7, 10, 0.72);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  backdrop-filter: blur(12px);
}

.auth-dialog h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.auth-copy {
  margin-top: 12px;
  color: var(--muted);
}

.clerk-sign-in {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0;
}

.auth-hint {
  color: var(--muted);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 11, 16, 0.84);
}

.auth-dialog :is(.cl-rootBox, .cl-card) {
  width: 100%;
}

.auth-dialog .cl-rootBox {
  display: flex;
  justify-content: center;
}

@media (max-height: 720px) {
  .modal-backdrop {
    place-items: start center;
  }

  .auth-dialog {
    margin-block: 72px 20px;
  }
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auth-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.text-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

@media (max-width: 1160px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .hero-section,
  .scroll-story,
  .journey-layout,
  .value-strip {
    grid-template-columns: 1fr;
  }

  .scroll-story-stage {
    position: static;
    top: auto;
  }

  .story-screen {
    min-height: auto;
  }

  .scroll-story-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-step {
    min-height: auto;
    padding-left: 0;
  }

  .story-step::before {
    display: none;
  }

  .story-step-index {
    top: 16px;
    left: 16px;
    transform: none;
  }

  .story-step-copy {
    padding: 54px 20px 20px;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .journey-notes {
    position: static;
    top: auto;
  }

  .value-card-lead {
    min-height: 0;
  }

  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-main {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .panel {
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-main {
    width: min(1480px, calc(100% - 20px));
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-focus-grid,
  .hero-battle-strip,
  .milestone-list,
  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scroll-story-steps,
  .story-screen-panels {
    grid-template-columns: 1fr;
  }

  .story-step {
    padding-left: 28px;
  }

  .story-step::before {
    display: block;
  }

  .story-step-index {
    top: 24px;
    left: 0;
  }

  .story-step-copy {
    padding: 54px 20px 20px 24px;
  }

  .content-section {
    padding: 20px;
  }

  .site-footer,
  .auth-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .selects-row,
  .draft-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    padding: 12px;
  }

  .brand-text span,
  .site-nav {
    font-size: 0.82rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-link,
  .header-login,
  .primary-btn,
  .secondary-btn {
    flex: 1;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-copy,
  .surface-card {
    padding: 20px;
  }

  .story-screen-inner {
    padding: 20px;
  }

  .story-screen-copy h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .story-progress-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .story-step-copy {
    padding: 50px 18px 18px 22px;
  }

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

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

  .value-card {
    padding: 18px;
  }

  .hero-copy h1,
  .section-heading h2 {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  .tool-badges {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: none;
  }

  .tool-badges::-webkit-scrollbar,
  .shorts-grid::-webkit-scrollbar,
  .milestone-list::-webkit-scrollbar,
  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .brawler-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tool-badges span {
    flex: 0 0 auto;
    text-align: center;
  }

  .shorts-grid,
  .milestone-list {
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }

  .short-card,
  .milestone-card {
    min-width: 0;
  }

  .milestone-card {
    min-height: 104px;
  }

  .card-pick-btn {
    padding: 10px 10px 12px;
  }

  .bc-name {
    font-size: 0.94rem;
  }
}

@media (max-width: 380px) {
  .brawler-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── WIN % BARS ON BRAWLER CARDS ────────────────────────────────────────── */

.bc-winbar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: 6px;
}

.bc-winbar {
  height: 100%;
  border-radius: 0;
  transition: width 0.45s var(--ease-out);
}

.bc-winbar-high {
  background: linear-gradient(90deg, var(--ally), #c4f3db);
  box-shadow: 0 0 6px rgba(116, 212, 162, 0.5);
}

.bc-winbar-mid {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 6px rgba(246, 122, 35, 0.4);
}

.bc-winbar-low {
  background: linear-gradient(90deg, var(--enemy), #ff9a9c);
  box-shadow: 0 0 6px rgba(255, 118, 120, 0.4);
}

/* ─── SCORE BADGE COLOR VARIANTS ─────────────────────────────────────────── */

.bc-score-high {
  background: linear-gradient(135deg, rgba(116, 212, 162, 0.22), rgba(116, 212, 162, 0.08));
  border-color: rgba(116, 212, 162, 0.32);
  color: #8ef5c4;
}

.bc-score-mid {
  background: linear-gradient(135deg, rgba(255, 180, 94, 0.22), rgba(246, 122, 35, 0.08));
  border-color: rgba(255, 180, 94, 0.32);
  color: var(--accent-soft);
}

.bc-score-low {
  background: linear-gradient(135deg, rgba(255, 118, 120, 0.22), rgba(255, 118, 120, 0.08));
  border-color: rgba(255, 118, 120, 0.3);
  color: #ffb1b3;
}

.bc-score-pending {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

/* ─── WIN % COLOUR HELPERS ────────────────────────────────────────────────── */

.win-high { color: var(--ally); }
.win-mid  { color: var(--accent-soft); }
.win-low  { color: var(--enemy); }

/* ─── PROMINENT WIN % DISPLAY IN COACH TOP PICK ──────────────────────────── */

.win-pct-value {
  display: block;
  font-family: var(--head);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.win-pct-source {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── ALT PICK WIN BARS ───────────────────────────────────────────────────── */

.alt-winbar-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}

.alt-winbar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s var(--ease-out);
}

.alt-winbar-high { background: var(--ally); }
.alt-winbar-mid  { background: var(--accent-soft); }
.alt-winbar-low  { background: var(--enemy); }

/* ─── API BADGE IN TOOL HEADER ────────────────────────────────────────────── */

.api-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 13px;
  border: 1.5px solid rgba(116, 212, 162, 0.55);
  border-radius: 999px;
  color: #b8f0da;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(116, 212, 162, 0.14);
  text-shadow: 0 0 12px rgba(116, 212, 162, 0.45);
  margin-left: auto;
  animation: api-badge-pulse 2.2s ease-in-out infinite;
}

.api-badge::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #74d4a2;
  box-shadow: 0 0 8px rgba(116, 212, 162, 0.95), 0 0 18px rgba(116, 212, 162, 0.45);
  animation: api-dot-blink 1.6s ease-in-out infinite;
}

@keyframes api-badge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(116, 212, 162, 0), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border-color: rgba(116, 212, 162, 0.45);
  }
  50% {
    box-shadow: 0 0 24px rgba(116, 212, 162, 0.24), 0 0 48px rgba(116, 212, 162, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border-color: rgba(116, 212, 162, 0.72);
  }
}

@keyframes api-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.55); }
}

.api-badge-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border-color: rgba(255, 180, 94, 0.25);
  color: var(--muted);
  background: rgba(246, 122, 35, 0.06);
  animation: loading-fade 1.4s ease-in-out infinite;
}

.api-badge-loading::before {
  background: rgba(255, 180, 94, 0.7);
  box-shadow: 0 0 8px rgba(255, 180, 94, 0.6);
  animation: loading-fade 1.4s ease-in-out infinite;
}

.api-badge-offline {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  text-shadow: none;
  animation: none;
}

.api-badge-offline::before {
  background: rgba(180, 180, 200, 0.5);
  box-shadow: none;
  animation: none;
}

@keyframes loading-fade {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── TEAM WIN % SECTION IN COACH ────────────────────────────────────────── */

.team-win-section {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(116, 212, 162, 0.05), transparent 80%);
}

.team-win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.team-win-label {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-win-pct {
  font-family: var(--head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.team-win-track {
  position: relative;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.team-win-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.55s var(--ease-out);
}

.win-fill-high {
  background: linear-gradient(90deg, var(--ally), #c4f3db);
  box-shadow: 0 0 10px rgba(116, 212, 162, 0.5);
}

.win-fill-mid {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 8px rgba(246, 122, 35, 0.35);
}

.win-fill-low {
  background: linear-gradient(90deg, var(--enemy), #ff9a9c);
  box-shadow: 0 0 8px rgba(255, 118, 120, 0.35);
}

.team-win-mid-marker {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 2px;
  height: calc(100% + 4px);
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
  border-radius: 1px;
  pointer-events: none;
}

/* Draft screen refresh */

.tool-shell {
  border: 1px solid rgba(76, 139, 255, 0.18);
  background:
    radial-gradient(circle at top center, rgba(46, 123, 255, 0.24), transparent 32%),
    radial-gradient(circle at bottom left, rgba(0, 217, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #0b2f78 0%, #133687 22%, #08153a 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.tool-badges {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(7, 12, 31, 0.45), rgba(7, 12, 31, 0.08));
}

.tool-badges span {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 16, 44, 0.45);
  color: #ffe08c;
}

.draft-main {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 18px;
}

.draft-hud {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  gap: 14px;
}

.hud-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(9, 15, 42, 0.62), rgba(7, 12, 31, 0.84)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hud-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -32px;
  height: 54px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hud-panel-mode {
  background:
    linear-gradient(180deg, rgba(255, 162, 33, 0.88), rgba(215, 102, 7, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 55%);
  color: #2f1402;
}

.hud-panel-center {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(61, 153, 255, 0.3), transparent 52%),
    linear-gradient(180deg, rgba(10, 39, 107, 0.96), rgba(8, 20, 58, 0.96));
}

.hud-panel-status {
  justify-content: space-between;
  text-align: right;
  background:
    linear-gradient(180deg, rgba(10, 18, 48, 0.92), rgba(7, 12, 31, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 36%);
}

.hud-mode-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 3px solid rgba(47, 20, 2, 0.22);
  background:
    radial-gradient(circle at 35% 35%, #fff7d8, #ffd978 42%, transparent 43%),
    radial-gradient(circle at center, rgba(47, 20, 2, 0.8) 0 23%, transparent 24%),
    conic-gradient(from 45deg, #2f1402 0 20%, transparent 20% 30%, #2f1402 30% 50%, transparent 50% 60%, #2f1402 60% 80%, transparent 80% 90%, #2f1402 90% 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.hud-copy,
.hud-turn-copy {
  display: grid;
  gap: 3px;
}

.hud-kicker,
.hud-prompt,
.hud-status-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hud-kicker {
  color: rgba(47, 20, 2, 0.7);
}

.hud-copy strong,
.hud-turn-copy strong,
.hud-panel-status strong {
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.hud-copy span:last-child {
  font-size: 0.9rem;
  font-weight: 700;
}

.hud-prompt {
  color: #ffe08c;
}

.hud-turn-copy strong {
  color: #ffffff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.24);
}

.hud-status-label {
  color: rgba(255, 255, 255, 0.62);
}

.hud-panel-status strong {
  color: #ffffff;
}

#hudReserveText {
  color: #8fb3ff;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.turn-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  width: min(360px, 100%);
}

.turn-node {
  position: relative;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 8, 24, 0.7);
}

.turn-node.filled {
  background: linear-gradient(180deg, #ffd86c, #f49f20);
  border-color: rgba(255, 255, 255, 0.34);
}

.turn-node.current {
  box-shadow: 0 0 0 3px rgba(255, 213, 92, 0.2);
}

.turn-node.current::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(180deg, #fff5bf, #ffd86c);
}

.draft-core {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: stretch;
}

.panel {
  min-height: 700px;
  max-height: 700px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.panel:last-child {
  border-right: 2px solid rgba(255, 255, 255, 0.12);
}

.draft-board {
  background:
    linear-gradient(180deg, rgba(7, 17, 47, 0.98), rgba(10, 26, 71, 0.96)),
    radial-gradient(circle at top left, rgba(123, 188, 255, 0.16), transparent 32%);
}

.pool-panel {
  background:
    linear-gradient(180deg, rgba(14, 41, 109, 0.98), rgba(8, 22, 64, 0.98)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.12), transparent 42%);
}

.coach-panel {
  background:
    linear-gradient(180deg, rgba(16, 33, 86, 0.98), rgba(8, 19, 54, 0.98)),
    radial-gradient(circle at top right, rgba(88, 187, 255, 0.12), transparent 34%);
}

.section-head {
  padding: 14px 18px 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: #98b5ff;
  font-size: 0.7rem;
}

.panel-meta {
  color: #ffffff;
}

.lane-tabs {
  gap: 8px;
  padding: 14px;
  border-bottom: 0;
}

.lane-tab {
  min-height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(6, 13, 36, 0.54);
  color: #c9daff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lane-tab.active-enemy,
.lane-tab.active-ally,
.lane-tab.active-ban {
  color: #08153a;
}

.lane-tab.active-enemy {
  background: linear-gradient(180deg, #ff7c87, #d93d57);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.lane-tab.active-ally {
  background: linear-gradient(180deg, #68f0cf, #24c694);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.lane-tab.active-ban {
  background: linear-gradient(180deg, #ffe070, #f0b031);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.progress-wrap,
.speed-section,
.selects-row,
.draft-actions,
.top-pick-card,
.alt-picks,
.coach-tips,
.shortcuts {
  border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.progress-wrap {
  padding: 14px 16px 16px;
}

.progress-meta {
  color: #d9e5ff;
  font-size: 0.76rem;
}

.progress-track,
.score-bar {
  background: rgba(3, 7, 22, 0.52);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.22);
}

.progress-track {
  height: 12px;
  padding: 2px;
}

.progress-fill {
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 184, 71, 0.45);
}

.selects-row {
  gap: 10px;
  padding: 16px;
}

.sel-group label {
  color: #8fb3ff;
  font-size: 0.66rem;
}

.sel-group select {
  min-height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(3, 9, 30, 0.45);
  color: #ffffff;
  font-weight: 600;
}

.speed-section,
.draft-actions {
  padding: 16px;
}

.speed-title,
.alt-head,
.shortcut-head {
  color: #8fb3ff;
  font-size: 0.68rem;
}

.speed-chips {
  gap: 10px;
}

.speed-chip {
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 30, 0.4);
  color: #eff4ff;
  font-weight: 700;
}

.speed-chip.fav-chip {
  border-color: rgba(255, 214, 113, 0.38);
  background: rgba(255, 214, 113, 0.12);
  color: #ffe08c;
}

.btn-sm {
  min-height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(4, 10, 30, 0.42);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.search-bar {
  gap: 12px;
  padding: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.search-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(4, 10, 30, 0.42);
  color: #ffe08c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.search-bar input {
  font-size: 0.96rem;
  font-weight: 600;
}

.search-bar input::placeholder {
  color: #8fb3ff;
}

.role-filters {
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.role-pill {
  padding: 8px 13px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 30, 0.36);
  color: #d6e4ff;
  font-weight: 700;
}

.role-pill.active {
  border-color: rgba(255, 214, 113, 0.38);
  background: linear-gradient(180deg, rgba(255, 214, 113, 0.22), rgba(255, 175, 46, 0.18));
  color: #fff4ca;
}

.brawler-grid {
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
  padding: 16px;
}

.brawler-card {
  --card-accent: #76d3ff;
  --card-accent-strong: #2ea0ff;
  --card-glow: rgba(46, 160, 255, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 212px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--card-accent-strong) 0%, var(--card-accent) 38%, #091229 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 26px rgba(0, 0, 0, 0.22);
  transform-origin: center bottom;
}

.brawler-card::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 55%;
  border-radius: 16px 16px 22px 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.26), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.brawler-card:hover,
.brawler-card:focus-within {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 30px rgba(0, 0, 0, 0.28),
    0 0 24px var(--card-glow);
}

.brawler-card.top-pick {
  border-color: rgba(135, 255, 209, 0.72);
  animation: top-pick-card-pulse 2.8s ease-in-out infinite;
}

.brawler-card.fav {
  border-color: rgba(255, 219, 113, 0.72);
}

.brawler-card.taken {
  border-color: rgba(255, 255, 255, 0.16);
  filter: grayscale(0.18) saturate(0.7);
}

.brawler-card.taken::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.16) 0 10px, rgba(255, 255, 255, 0.04) 10px 20px);
  pointer-events: none;
}

.bc-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 0;
}

.bc-topbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bc-level,
.bc-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bc-state {
  color: #ffe08c;
}

.bc-fav-toggle {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 24px;
  padding: 0 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.72);
  color: #d8e4ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bc-fav-toggle.active {
  border-color: rgba(255, 214, 113, 0.42);
  background: rgba(255, 214, 113, 0.16);
  color: #fff1be;
}

.bc-portrait {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: center;
  flex: 1;
  padding: 0 12px;
}

.bc-initials {
  font-family: var(--head);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.86;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.16);
}

.bc-archetype {
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 12, 31, 0.48);
  color: #e8f0ff;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bc-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(4, 8, 24, 0.12), rgba(4, 8, 24, 0.5));
}

.bc-name-row,
.bc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bc-name {
  min-width: 0;
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.bc-role {
  margin-top: 0;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bc-modes {
  margin-top: 0;
  color: #d4e2ff;
  font-size: 0.66rem;
  text-align: right;
}

.bc-score {
  min-width: 48px;
  min-height: 28px;
  margin-bottom: 0;
  padding: 0 9px;
  background: rgba(5, 8, 20, 0.72);
  border-width: 2px;
  color: #fff1be;
  font-size: 0.74rem;
}

.bc-winbar-wrap {
  height: 6px;
  margin-top: 10px;
  background: rgba(5, 8, 20, 0.4);
  border-radius: 999px;
  overflow: hidden;
}

.phase-bar {
  padding: 14px 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  color: #d4e2ff;
}

.top-pick-card {
  background: linear-gradient(180deg, rgba(103, 245, 207, 0.12), rgba(255, 255, 255, 0) 72%);
}

.top-pick-role,
.top-pick-bestfor,
.alt-role,
.coach-tip,
.shortcut-row {
  color: #d4e2ff;
}

.alt-pick-row,
.coach-tip {
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 12, 31, 0.32);
}

.shortcuts {
  padding: 14px 16px 16px;
}

.draft-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.team-side,
.ban-rack {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.2);
}

.team-side-blue {
  background:
    linear-gradient(180deg, rgba(47, 114, 255, 0.96), rgba(10, 38, 113, 0.96)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 36%);
}

.team-side-red {
  background:
    linear-gradient(180deg, rgba(223, 37, 83, 0.96), rgba(118, 16, 44, 0.98)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 36%);
}

.team-side-head,
.panel-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-side-head span:last-child,
.panel-strip-head span:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.chip-list-team,
.chip-list-bans {
  gap: 12px;
  padding: 14px;
}

.chip-list-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip-list-bans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.versus-core {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.versus-badge {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #ffe38e, #f7a924 70%, #e8760f);
  color: #2f1402;
  font-family: var(--head);
  font-size: 2rem;
  font-weight: 800;
  box-shadow:
    0 18px 26px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.versus-copy {
  max-width: 110px;
  color: #d8e4ff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ban-rack {
  background:
    linear-gradient(180deg, rgba(34, 27, 72, 0.96), rgba(15, 11, 34, 0.98)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 36%);
}

.pick-slot {
  --slot-accent: #78d1ff;
  position: relative;
  min-height: 124px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, var(--slot-accent) 0%, #081234 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pick-slot-empty {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 12px, rgba(0, 0, 0, 0.08) 12px 24px),
    rgba(4, 10, 30, 0.35);
}

.pick-slot-order {
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pick-slot-main {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 10px;
}

.pick-slot-initials {
  font-family: var(--head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 0.84;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.pick-slot-copy {
  display: grid;
  gap: 2px;
  text-align: center;
}

.pick-slot-copy strong {
  font-size: 0.92rem;
  line-height: 1;
  text-transform: uppercase;
}

.pick-slot-copy span,
.pick-slot-placeholder {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
}

.pick-slot-placeholder {
  display: grid;
  place-items: center;
  min-height: 74px;
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pick-slot-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1320px) {
  .draft-core {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .coach-panel {
    grid-column: 1 / -1;
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 1120px) {
  .draft-hud,
  .draft-matchup {
    grid-template-columns: 1fr;
  }

  .versus-core {
    order: -1;
  }

  .draft-core {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 780px) {
  .draft-main {
    padding: 14px;
  }

  .hud-panel,
  .panel,
  .team-side,
  .ban-rack {
    border-radius: 20px;
  }

  .chip-list-team,
  .chip-list-bans {
    grid-template-columns: 1fr;
  }

  .brawler-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brawler-card {
    min-height: 198px;
  }
}

@media (max-width: 560px) {
  .tool-badges {
    gap: 8px;
    padding-inline: 14px;
  }

  .tool-badges span {
    font-size: 0.72rem;
  }

  .draft-main {
    gap: 14px;
    padding: 12px;
  }

  .hud-panel {
    padding: 14px;
  }

  .hud-copy strong,
  .hud-turn-copy strong,
  .hud-panel-status strong {
    font-size: 1.24rem;
  }

  .brawler-grid {
    gap: 10px;
    padding: 12px;
  }

  .bc-initials {
    font-size: 2.6rem;
  }
}

/* Draft app v2 */

.tool-shell.draft-app {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  min-height: min(94vh, 980px);
  overflow: hidden;
  border: 2px solid rgba(123, 188, 255, 0.26);
  border-radius: 34px;
  background:
    radial-gradient(circle at top center, rgba(76, 148, 255, 0.3), transparent 28%),
    radial-gradient(circle at bottom center, rgba(0, 217, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #0d2e7d 0%, #10245d 18%, #09112d 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tool-shell.draft-app:fullscreen,
.tool-shell.draft-app.is-fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  transform: none;
}

.tool-shell.draft-app.is-faux-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1400;
  margin: 0;
  transform: none;
}

.tool-shell.draft-app::before,
.tool-shell.draft-app::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.tool-shell.draft-app::before {
  left: 10%;
  right: 10%;
  bottom: -16%;
  height: 34%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(76, 148, 255, 0.22), rgba(0, 217, 255, 0.08) 38%, transparent 72%);
  filter: blur(40px);
  opacity: 0.82;
  animation: draft-ambient-glow 15s ease-in-out infinite;
}

.tool-shell.draft-app::after {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.09) 48%, transparent 58%),
    radial-gradient(circle at top center, rgba(255, 214, 113, 0.12), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: draft-scan-pass 14s linear infinite;
}

.draft-app-live,
.draft-fullscreen-gate {
  position: relative;
  z-index: 1;
}

@keyframes draft-ambient-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.76;
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.08);
    opacity: 0.98;
  }
}

@keyframes draft-scan-pass {
  0% {
    transform: translateX(-28%);
    opacity: 0;
  }

  16%,
  62% {
    opacity: 0.28;
  }

  100% {
    transform: translateX(28%);
    opacity: 0;
  }
}

.draft-app-bar,
.draft-toolbar,
.draft-stage,
.draft-dock {
  padding-inline: 18px;
}

.draft-app-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1.15fr) minmax(320px, 0.95fr);
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.draft-app-mode,
.draft-app-turn,
.draft-app-command,
.draft-grid-panel,
.draft-app .coach-panel,
.draft-dock-center .ban-rack,
.draft-dock .team-side {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.22);
}

.draft-app-mode,
.draft-app-turn,
.draft-app-command {
  min-height: 132px;
}

.draft-app-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 162, 33, 0.92), rgba(214, 100, 9, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 55%);
  color: #2f1402;
}

.draft-app-copy {
  display: grid;
  gap: 3px;
}

.draft-app-copy strong {
  font-family: var(--head);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 0.94;
}

.draft-app-copy span:last-child {
  font-size: 0.92rem;
  font-weight: 700;
}

.draft-top-selects {
  grid-column: 1 / -1;
  padding: 0;
  border-top: 0;
}

.draft-top-selects .sel-group select {
  background: rgba(47, 20, 2, 0.14);
  border-color: rgba(47, 20, 2, 0.16);
  color: #2f1402;
}

.draft-top-selects .sel-group label {
  color: rgba(47, 20, 2, 0.72);
}

.draft-app-turn {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 16px 18px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(76, 148, 255, 0.36), transparent 48%),
    linear-gradient(180deg, rgba(11, 47, 128, 0.98), rgba(7, 17, 47, 0.98));
}

.draft-top-progress {
  width: min(340px, 100%);
  padding: 0;
  border-top: 0;
}

.draft-top-progress .progress-meta {
  margin-bottom: 6px;
}

.draft-app-command {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(8, 16, 43, 0.98), rgba(5, 10, 28, 0.98)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 36%);
}

.draft-command-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.draft-lane-status {
  display: grid;
  gap: 4px;
}

.draft-lane-status strong {
  font-family: var(--head);
  font-size: 1.4rem;
  line-height: 0.94;
}

.draft-top-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.btn-sm.accent {
  background: linear-gradient(180deg, #ffe070, #f0b031);
  color: #2f1402;
  border-color: rgba(255, 255, 255, 0.22);
}

.tool-shell.draft-app .tool-badges {
  padding: 0 18px 14px;
  border-bottom: 0;
  background: transparent;
}

.draft-toolbar {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
}

.draft-search-bar {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(4, 10, 30, 0.34);
}

.draft-quickrows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.speed-section-inline {
  padding: 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(4, 10, 30, 0.28);
}

.draft-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 16px;
}

.draft-grid-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 41, 107, 0.98), rgba(8, 19, 53, 0.98)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.12), transparent 42%);
}

.draft-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.draft-grid-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grid-nav {
  display: flex;
  gap: 8px;
}

.grid-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 30, 0.4);
  color: #ffffff;
  font-family: var(--head);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.grid-nav-btn:hover,
.grid-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.draft-grid-panel .phase-bar {
  padding: 0;
  border-top: 0;
}

.draft-grid-shell {
  min-height: 0;
  height: 100%;
  padding: 14px;
}

.brawler-grid-viewport {
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}

.draft-grid-panel .brawler-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 146px);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px 12px;
  width: max-content;
  height: auto;
  min-height: 100%;
  padding-right: 18px;
  align-content: start;
  align-items: stretch;
}

.draft-app .coach-panel {
  min-height: 0;
  max-height: none;
  background:
    linear-gradient(180deg, rgba(14, 24, 66, 0.98), rgba(7, 14, 38, 0.98)),
    radial-gradient(circle at top right, rgba(103, 245, 207, 0.08), transparent 34%);
}

.draft-app .coach-panel .section-head {
  padding: 14px 16px 12px;
}

.draft-app .coach-panel .top-pick-name {
  font-size: 2rem;
}

.draft-app .coach-panel .top-pick-bestfor {
  line-height: 1.45;
}

.draft-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding-bottom: 18px;
  min-height: 148px;
}

.draft-dock-center {
  display: grid;
  gap: 12px;
  align-content: start;
}

.draft-dock .team-side {
  background:
    linear-gradient(180deg, rgba(47, 114, 255, 0.96), rgba(10, 38, 113, 0.96)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 36%);
}

.draft-dock .team-side.team-side-red {
  background:
    linear-gradient(180deg, rgba(223, 37, 83, 0.96), rgba(118, 16, 44, 0.98)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 36%);
}

.draft-dock .chip-list-team {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 98px;
}

.draft-dock .ban-rack {
  background:
    linear-gradient(180deg, rgba(38, 31, 76, 0.98), rgba(17, 12, 34, 0.98)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 36%);
}

.draft-dock .chip-list-bans {
  grid-template-columns: 1fr;
  min-height: 98px;
}

.versus-core {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(7, 14, 38, 0.84), rgba(4, 8, 22, 0.96)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 38%);
}

.versus-badge {
  width: 84px;
  height: 84px;
}

.pick-slot {
  min-height: 80px;
  padding: 8px 10px 8px 8px;
}

.pick-slot-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: stretch;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.pick-slot-copy {
  text-align: left;
}

.pick-slot-initials {
  font-size: 1.7rem;
}

.pick-slot-copy strong {
  font-size: 0.78rem;
}

.pick-slot-copy span,
.pick-slot-placeholder {
  font-size: 0.64rem;
}

.pick-slot-placeholder {
  min-height: 58px;
  place-items: center start;
}

.draft-grid-panel .brawler-card {
  min-height: 0;
  width: 100%;
  aspect-ratio: 0.72;
  border-radius: 18px;
  scroll-snap-align: start;
}

.draft-grid-panel .brawler-card::before {
  inset: 8px 8px auto;
}

.draft-grid-panel .bc-topline {
  padding: 8px 8px 0;
}

.draft-grid-panel .bc-level,
.draft-grid-panel .bc-state,
.draft-grid-panel .bc-fav-toggle {
  min-height: 22px;
  padding-inline: 7px;
  font-size: 0.58rem;
}

.draft-grid-panel .bc-portrait {
  padding-inline: 10px;
}

.draft-grid-panel .bc-initials {
  font-size: 2.7rem;
}

.draft-grid-panel .bc-archetype,
.draft-grid-panel .bc-role,
.draft-grid-panel .bc-modes {
  display: none;
}

.draft-grid-panel .bc-footer {
  padding: 10px;
}

.draft-grid-panel .bc-name {
  font-size: 0.92rem;
}

.draft-grid-panel .bc-score {
  min-width: 40px;
  min-height: 22px;
  font-size: 0.62rem;
}

.draft-grid-panel .bc-winbar-wrap {
  height: 5px;
  margin-top: 8px;
}

@media (max-width: 1280px) {
  .draft-app-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-app-command {
    grid-column: 1 / -1;
  }

  .draft-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .draft-app .coach-panel {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .draft-app-bar,
  .draft-quickrows,
  .draft-dock {
    grid-template-columns: 1fr;
  }

  .draft-top-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .draft-dock .chip-list-bans,
  .draft-dock .chip-list-team {
    grid-template-columns: 1fr;
  }

  .draft-grid-panel .brawler-grid {
    grid-auto-columns: minmax(118px, 130px);
  }
}

@media (max-width: 640px) {
  .draft-app-bar,
  .draft-toolbar,
  .draft-stage,
  .draft-dock {
    padding-inline: 12px;
  }

  .draft-app-bar {
    padding-top: 12px;
  }

  .tool-shell.draft-app .tool-badges {
    padding-inline: 12px;
  }

  .draft-top-buttons {
    grid-template-columns: 1fr;
  }

  .draft-grid-panel .brawler-grid {
    grid-auto-columns: minmax(108px, 118px);
    gap: 8px;
  }

  .draft-grid-panel .bc-initials {
    font-size: 2.1rem;
  }
}

@media (max-width: 900px) {
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-bar,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-toolbar,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-stage,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-dock {
    padding-inline: 12px;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .tool-badges {
    padding-inline: 12px;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-mode,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-turn,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-command {
    min-height: auto;
    border-radius: 22px;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-dock {
    gap: 12px;
    padding-bottom: 12px;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-head {
    flex-wrap: wrap;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-command {
    grid-column: auto;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-stage,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-panel,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-shell,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .brawler-grid-viewport {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-shell {
    padding: 10px 12px 14px;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .brawler-grid-viewport {
    scroll-snap-type: none;
    touch-action: auto;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .grid-nav {
    display: none;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-panel .brawler-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    width: 100%;
    min-height: auto;
    padding-right: 0;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-panel .brawler-card {
    aspect-ratio: 0.76;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .coach-panel {
    overflow: visible;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .coach-panel .shortcuts {
    display: none;
  }
}

@media (max-width: 640px) {
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-top-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .btn-sm,
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .lane-tab {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-panel .bc-initials {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-panel .brawler-grid {
    grid-template-columns: 1fr;
  }
}

.tool-shell.draft-app {
  position: relative;
  display: block;
  width: 100%;
  isolation: isolate;
}

.tool-shell.draft-app:not(.is-fullscreen) {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.draft-app-live {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: min(92vh, 960px);
  min-height: min(92vh, 960px);
}

.tool-shell.draft-app:fullscreen .draft-app-live,
.tool-shell.draft-app.is-fullscreen .draft-app-live {
  height: 100%;
  min-height: 100%;
}

.draft-fullscreen-gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(5, 11, 31, 0.22), rgba(5, 11, 31, 0.82)),
    radial-gradient(circle at top center, rgba(255, 214, 113, 0.18), transparent 30%);
  backdrop-filter: blur(10px);
}

.tool-shell.draft-app:not(.is-fullscreen) .draft-fullscreen-gate {
  position: static;
  inset: auto;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  background: none;
  backdrop-filter: none;
}

.tool-shell.draft-app:fullscreen .draft-fullscreen-gate,
.tool-shell.draft-app.is-fullscreen .draft-fullscreen-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tool-shell.draft-app.is-fullscreen.needs-rotate .draft-fullscreen-gate,
.tool-shell.draft-app.is-faux-fullscreen.needs-rotate .draft-fullscreen-gate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tool-shell.draft-app.is-fullscreen.needs-rotate .draft-app-live,
.tool-shell.draft-app.is-faux-fullscreen.needs-rotate .draft-app-live {
  filter: blur(10px);
  transform: scale(0.985);
  pointer-events: none;
  user-select: none;
}

.draft-fullscreen-gate-card {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  justify-items: stretch;
  gap: 12px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 180, 94, 0.18);
  border-radius: var(--radius-lg);
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(246, 122, 35, 0.06);
  overflow: hidden;
}

.tool-shell.draft-app:not(.is-fullscreen) .draft-fullscreen-gate-card {
  margin: 0;
}

.draft-rotate-badge {
  display: none;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: 2px;
  border: 1px solid rgba(255, 180, 94, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.tool-shell.draft-app.needs-rotate .draft-rotate-badge {
  display: grid;
}

.draft-rotate-phone {
  position: relative;
  width: 18px;
  height: 30px;
  border: 2px solid rgba(255, 240, 206, 0.92);
  border-radius: 7px;
  transform: rotate(90deg);
  box-shadow: 0 0 18px rgba(246, 122, 35, 0.14);
}

.draft-rotate-phone::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 180, 94, 0.22), rgba(255, 255, 255, 0.05));
}

.draft-rotate-phone::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent-soft);
  border-right: 2px solid var(--accent-soft);
  transform: translateY(-50%) rotate(45deg);
}

.draft-fullscreen-gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 94, 0.45), transparent);
}

.draft-fullscreen-kicker,
.draft-fullscreen-hint {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.draft-fullscreen-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(255, 180, 94, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.draft-fullscreen-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(246, 122, 35, 0.9), 0 0 16px rgba(246, 122, 35, 0.4);
}

.draft-fullscreen-gate-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--head);
  max-width: 10ch;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.draft-fullscreen-gate-card p {
  max-width: 26ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.draft-fullscreen-gate-btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding-inline: 18px;
  justify-content: center;
  font-size: 0.98rem;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) {
  display: block;
  width: 100%;
  min-height: auto;
  overflow: hidden;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-live {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  height: auto;
  min-height: auto;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-app-bar {
  order: 1;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-toolbar {
  order: 2;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-view-tabs {
  order: 3;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-stage {
  order: 4;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-dock {
  order: 5;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .tool-badges {
  order: 6;
  padding-top: 4px;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-panel {
  grid-template-rows: auto auto;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-grid-shell {
  height: auto;
  overflow: visible;
}

/* ─── Draft view tabs (mobile only) ───────────────────────────── */
.draft-view-tabs {
  display: none;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-view-tabs {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}

.dvt-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 10, 30, 0.4);
  color: var(--muted);
  font-family: var(--head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.dvt-btn.is-active {
  background: rgba(76, 148, 255, 0.22);
  border-color: rgba(76, 148, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(76, 148, 255, 0.18);
}

.dvt-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* Hide inactive view panels on mobile (controlled by data-draft-view attribute) */
.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen)[data-draft-view="coach"] .draft-grid-panel {
  display: none;
}

.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen)[data-draft-view="picks"] .coach-panel {
  display: none;
}

/* Default: show picks first, hide coach */
.tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen):not([data-draft-view="coach"]) .coach-panel {
  display: none;
}

.tool-shell.draft-app .draft-grid-panel,
.tool-shell.draft-app .draft-dock {
  position: relative;
}

.tool-shell.draft-app [data-lane-target] {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tool-shell.draft-app [data-lane-target]:hover {
  transform: translateY(-1px);
}

.tool-shell.draft-app [data-lane-target].is-active-lane {
  /* Base fallback (overridden per lane below) */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.tool-shell.draft-app [data-lane-target="ally"].is-active-lane {
  border-color: rgba(104, 240, 207, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(36, 198, 148, 0.2);
}

.tool-shell.draft-app [data-lane-target="enemy"].is-active-lane {
  border-color: rgba(255, 124, 135, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(217, 61, 87, 0.2);
}

.tool-shell.draft-app [data-lane-target="ban"].is-active-lane {
  border-color: rgba(255, 224, 112, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(240, 176, 49, 0.2);
}

.tool-shell.draft-app .draft-grid-panel .brawler-grid {
  height: auto;
  min-height: 100%;
  align-content: start;
  align-items: stretch;
  padding-block: 2px;
}

.tool-shell.draft-app.is-fullscreen .tool-badges,
.tool-shell.draft-app.is-fullscreen .draft-quickrows,
.tool-shell.draft-app.is-fullscreen .coach-panel .shortcuts {
  display: none;
}

.tool-shell.draft-app.is-fullscreen .draft-app-bar {
  padding-top: 14px;
  padding-bottom: 10px;
  gap: 12px;
}

.tool-shell.draft-app.is-fullscreen .draft-toolbar {
  gap: 10px;
  padding-bottom: 10px;
}

.tool-shell.draft-app.is-fullscreen .tool-badges {
  padding-bottom: 0;
}

.tool-shell.draft-app.is-fullscreen .draft-stage {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.tool-shell.draft-app.is-fullscreen .draft-grid-shell {
  padding: 10px 14px 14px;
}

.tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-grid {
  grid-auto-columns: minmax(122px, 134px);
  gap: 10px;
}

.tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-card {
  aspect-ratio: 0.69;
}

.tool-shell.draft-app.is-fullscreen .draft-dock {
  min-height: 132px;
  gap: 14px;
  padding-bottom: 14px;
}

@media (max-height: 920px) {
  .tool-shell.draft-app.is-fullscreen .draft-app-mode,
  .tool-shell.draft-app.is-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-fullscreen .draft-app-command {
    min-height: 116px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-grid {
    grid-auto-columns: minmax(112px, 124px);
  }

  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .bc-initials {
    font-size: 2.15rem;
  }

  .tool-shell.draft-app.is-fullscreen .draft-dock {
    min-height: 122px;
  }
}

@media (max-width: 1280px) {
  .tool-shell.draft-app.is-fullscreen .draft-stage {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .tool-shell.draft-app.is-fullscreen .draft-app-live {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .tool-shell.draft-app.is-fullscreen .draft-fullscreen-gate {
    padding: 16px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-fullscreen-gate-card {
    width: min(360px, 100%);
  }

  .tool-shell.draft-app.is-fullscreen .draft-app-bar,
  .tool-shell.draft-app.is-fullscreen .draft-toolbar,
  .tool-shell.draft-app.is-fullscreen .draft-stage,
  .tool-shell.draft-app.is-fullscreen .draft-dock {
    padding-inline: 10px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-app-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-top-selects {
    display: none;
  }

  .tool-shell.draft-app.is-fullscreen .draft-app-mode,
  .tool-shell.draft-app.is-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-fullscreen .draft-app-command {
    min-height: 88px;
    border-radius: 20px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-app-mode,
  .tool-shell.draft-app.is-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-fullscreen .draft-app-command,
  .tool-shell.draft-app.is-fullscreen .draft-grid-panel,
  .tool-shell.draft-app.is-fullscreen .coach-panel,
  .tool-shell.draft-app.is-fullscreen .draft-dock-center .ban-rack,
  .tool-shell.draft-app.is-fullscreen .draft-dock .team-side {
    border-radius: 20px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-app-copy strong {
    font-size: 1.25rem;
  }

  .tool-shell.draft-app.is-fullscreen .draft-app-copy span:last-child,
  .tool-shell.draft-app.is-fullscreen .hud-kicker,
  .tool-shell.draft-app.is-fullscreen .hud-status-label,
  .tool-shell.draft-app.is-fullscreen .hud-prompt {
    font-size: 0.68rem;
  }

  .tool-shell.draft-app.is-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-fullscreen .draft-app-command {
    padding: 10px 12px;
  }

  .tool-shell.draft-app.is-fullscreen .hud-turn-copy strong,
  .tool-shell.draft-app.is-fullscreen #hudLaneBadge {
    font-size: 1rem;
  }

  .tool-shell.draft-app.is-fullscreen .turn-track {
    gap: 5px;
  }

  .tool-shell.draft-app.is-fullscreen .progress-meta,
  .tool-shell.draft-app.is-fullscreen #hudReserveText {
    font-size: 0.68rem;
  }

  .tool-shell.draft-app.is-fullscreen .lane-tabs {
    gap: 6px;
  }

  .tool-shell.draft-app.is-fullscreen .lane-tab,
  .tool-shell.draft-app.is-fullscreen .btn-sm {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .tool-shell.draft-app.is-fullscreen .draft-top-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-toolbar {
    gap: 8px;
    padding-bottom: 8px;
  }

  .tool-shell.draft-app.is-fullscreen .role-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-stage {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px;
    padding-bottom: 10px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-grid-head {
    padding: 10px 12px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-grid-shell {
    padding: 8px 10px 10px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-grid {
    grid-auto-columns: minmax(96px, 106px);
    gap: 8px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-card {
    border-radius: 16px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .bc-initials {
    font-size: 1.9rem;
  }

  .tool-shell.draft-app.is-fullscreen .coach-panel {
    overflow: auto;
  }

  .tool-shell.draft-app.is-fullscreen .coach-panel .section-head,
  .tool-shell.draft-app.is-fullscreen .top-pick-card,
  .tool-shell.draft-app.is-fullscreen .alt-picks {
    padding-inline: 12px;
  }

  .tool-shell.draft-app.is-fullscreen .coach-panel .top-pick-name {
    font-size: 1.45rem;
  }

  .tool-shell.draft-app.is-fullscreen .draft-dock {
    grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr);
    gap: 10px;
    min-height: 96px;
    padding-bottom: 10px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-dock-center {
    gap: 8px;
  }

  .tool-shell.draft-app.is-fullscreen .versus-badge {
    width: 62px;
    height: 62px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-dock .chip-list-team,
  .tool-shell.draft-app.is-fullscreen .draft-dock .chip-list-bans {
    min-height: 70px;
  }

  .tool-shell.draft-app.is-fullscreen .pick-slot {
    min-height: 60px;
    padding: 6px 8px;
  }

  .tool-shell.draft-app.is-fullscreen .pick-slot-main {
    gap: 8px;
    margin-top: 6px;
  }

  .tool-shell.draft-app.is-fullscreen .pick-slot-initials {
    font-size: 1.3rem;
  }

  .tool-shell.draft-app.is-fullscreen .pick-slot-copy strong {
    font-size: 0.7rem;
  }

  .tool-shell.draft-app.is-fullscreen .pick-slot-copy span,
  .tool-shell.draft-app.is-fullscreen .pick-slot-placeholder,
  .tool-shell.draft-app.is-fullscreen .pick-slot-order {
    font-size: 0.56rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS — touch-first layout refinements
   ═══════════════════════════════════════════════════════════════ */

/* ─── Touch-friendly controls (≤ 640 px) ───────────────────────── */
@media (max-width: 640px) {
  /* Search bar — bigger tap target */
  .search-bar input {
    font-size: 1rem;
    min-height: 48px;
  }

  /* Lane tabs — full-width, easier to tap */
  .lane-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .lane-tab {
    padding: 13px 8px;
    font-size: 0.8rem;
    text-align: center;
    flex: 1;
  }

  /* Brawler cards — minimum touch size */
  .brawler-card {
    min-height: 72px;
  }

  /* Quick-lock button — easier thumb target */
  .quick-lock-btn {
    min-height: 52px;
    font-size: 0.95rem;
  }

  /* Undo / Reset / Fullscreen */
  .btn-sm {
    min-height: 40px;
    padding: 0 14px;
  }

  /* Role pills — slightly larger */
  .role-pill {
    padding: 7px 12px;
    font-size: 0.75rem;
    min-height: 36px;
  }

  /* Tool badges — api-badge jumps to its own row, centred */
  .tool-badges {
    gap: 6px;
    padding: 10px 14px;
  }

  .tool-badges > span:not(.api-badge):not(.api-badge-loading) {
    font-size: 0.7rem;
    padding: 5px 9px;
  }

  .api-badge,
  .api-badge-loading,
  .api-badge-offline {
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
    font-size: 0.8rem;
  }

  /* Draft dock — blue and red side-by-side, bans full width below */
  .tool-shell.draft-app:not(.is-fullscreen) .draft-dock {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .tool-shell.draft-app:not(.is-fullscreen) .team-side-blue {
    grid-column: 1;
    grid-row: 1;
  }

  .tool-shell.draft-app:not(.is-fullscreen) .team-side-red {
    grid-column: 2;
    grid-row: 1;
  }

  .tool-shell.draft-app:not(.is-fullscreen) .draft-dock-center {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Picks chip slightly smaller so 3 fit in a row */
  .chip-list-team .pick-chip {
    font-size: 0.78rem;
  }
}

/* ─── Very small phones (≤ 380 px) ─────────────────────────────── */
@media (max-width: 380px) {
  .tool-badges > span:not(.api-badge):not(.api-badge-loading) {
    font-size: 0.65rem;
    padding: 4px 8px;
  }

  .api-badge,
  .api-badge-loading,
  .api-badge-offline {
    font-size: 0.74rem;
    padding: 8px 12px 8px 10px;
    gap: 6px;
  }

  .api-badge::before {
    width: 7px;
    height: 7px;
  }

  /* Dock: single column on tiny screens */
  .tool-shell.draft-app:not(.is-fullscreen) .draft-dock {
    grid-template-columns: 1fr;
  }

  .tool-shell.draft-app:not(.is-fullscreen) .team-side-blue,
  .tool-shell.draft-app:not(.is-fullscreen) .team-side-red,
  .tool-shell.draft-app:not(.is-fullscreen) .draft-dock-center {
    grid-column: 1;
    grid-row: auto;
  }

  /* Rounded cards slightly less aggressive */
  .draft-app-mode,
  .draft-app-turn,
  .draft-app-command {
    border-radius: 18px;
  }
}

/* Immersive refresh */
.site-header {
  padding-bottom: 20px;
  transition:
    background 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
}

.site-header.is-scrolled {
  border-color: rgba(255, 180, 94, 0.16);
  background: rgba(8, 11, 16, 0.92);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 180, 94, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--cream);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  pointer-events: none;
}

.header-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.035);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), #67f5cf);
  box-shadow: 0 0 14px rgba(246, 122, 35, 0.45);
  transition: transform 0.18s linear;
}

.hero-copy {
  backdrop-filter: blur(18px);
}

.hero-command-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-command-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(79, 195, 247, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.hero-command-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 180, 94, 0.72), transparent 72%);
  opacity: 0.8;
}

.hero-command-card span,
.hero-pulse-metric span,
.story-live-card span,
.shorts-spotlight-stat span,
.journey-signal-card span,
.tool-live-card span {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-command-card strong {
  font-family: var(--head);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-command-card p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.hero-command-card-emphasis {
  border-color: rgba(255, 180, 94, 0.18);
  background:
    radial-gradient(circle at top right, rgba(246, 122, 35, 0.15), transparent 44%),
    linear-gradient(180deg, rgba(255, 245, 232, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 40px rgba(0, 0, 0, 0.24),
    0 0 26px rgba(246, 122, 35, 0.08);
}

.hero-command-card-emphasis strong {
  font-size: clamp(1.28rem, 2.8vw, 1.82rem);
  background: linear-gradient(135deg, var(--cream), var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-rail {
  display: grid;
  gap: 16px;
  align-content: stretch;
}

.hero-pulse-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(79, 195, 247, 0.15), transparent 28%),
    radial-gradient(circle at bottom right, rgba(246, 122, 35, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 35, 0.96), rgba(10, 14, 21, 0.94));
}

.hero-pulse-visual {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255, 180, 94, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(12, 19, 32, 0.96), rgba(9, 13, 19, 0.92));
  display: grid;
  place-items: center;
}

.hero-pulse-visual::before,
.hero-pulse-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-pulse-visual::before {
  inset: auto auto -34% -14%;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(246, 122, 35, 0.18), transparent 68%);
  filter: blur(16px);
}

.hero-pulse-visual::after {
  inset: -18% -18% auto auto;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.16), transparent 72%);
  filter: blur(14px);
}

.hero-pulse-ring,
.hero-pulse-core {
  position: absolute;
  border-radius: 50%;
}

.hero-pulse-ring {
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: hero-pulse-ring 8.8s linear infinite;
}

.hero-pulse-ring-1 {
  width: 7rem;
  height: 7rem;
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.025);
}

.hero-pulse-ring-2 {
  width: 10.5rem;
  height: 10.5rem;
  border-color: rgba(79, 195, 247, 0.18);
  box-shadow: 0 0 0 20px rgba(79, 195, 247, 0.03);
  animation-direction: reverse;
  animation-duration: 11.5s;
}

.hero-pulse-core {
  width: 4.75rem;
  height: 4.75rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 180, 94, 0.72) 36%, rgba(246, 122, 35, 0.32) 64%, transparent 72%),
    radial-gradient(circle, rgba(79, 195, 247, 0.22), transparent 72%);
  box-shadow:
    0 0 30px rgba(246, 122, 35, 0.28),
    0 0 68px rgba(79, 195, 247, 0.16);
}

@keyframes hero-pulse-ring {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hero-pulse-copy {
  display: grid;
  gap: 12px;
}

.hero-pulse-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-pulse-copy p:not(.card-kicker) {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-pulse-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.hero-pulse-metric {
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-pulse-metric strong {
  display: block;
  margin-top: 6px;
  font-family: var(--head);
  font-size: 1.05rem;
  line-height: 1.05;
}

.story-screen {
  --story-intensity: 0.46;
}

.story-screen::before {
  opacity: calc(0.5 + (var(--story-intensity) * 0.55));
  filter: blur(calc(10px + (var(--story-intensity) * 22px)));
}

.story-screen::after {
  opacity: calc(0.22 + (var(--story-intensity) * 0.26));
}

.story-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.story-live-card {
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(5, 11, 31, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.story-live-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--head);
  font-size: clamp(1.02rem, 2vw, 1.32rem);
  line-height: 1.02;
}

.story-live-card p {
  margin-top: 8px;
  color: rgba(246, 242, 234, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.value-card-lead {
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.12), transparent 36%),
    radial-gradient(circle at bottom left, rgba(79, 195, 247, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(22, 29, 41, 0.98), rgba(10, 15, 23, 0.94));
}

.shorts-showcase {
  margin-bottom: 18px;
}

.shorts-spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, 0.82fr);
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(79, 195, 247, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(246, 122, 35, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(20, 27, 37, 0.96), rgba(10, 14, 21, 0.94));
}

.shorts-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.06) 44%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.shorts-spotlight-copy,
.shorts-spotlight-actions {
  position: relative;
  z-index: 1;
}

.shorts-spotlight-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.shorts-spotlight-copy h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.shorts-spotlight-copy p:not(.card-kicker) {
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.58;
}

.shorts-spotlight-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.shorts-spotlight-stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.shorts-spotlight-stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 0.96;
}

.shorts-spotlight-link {
  grid-column: 1 / -1;
  width: 100%;
}

.journey-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(200px, 0.72fr));
  gap: 16px;
  margin-bottom: 18px;
}

.journey-overview-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(79, 195, 247, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(19, 25, 35, 0.96), rgba(10, 14, 21, 0.94));
}

.journey-overview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.journey-overview-card h3 {
  max-width: 14ch;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.journey-progress-number {
  font-family: var(--head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--cream), var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.journey-overview-text {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.58;
}

.journey-progress-track {
  height: 12px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28);
}

.journey-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), #67f5cf);
  transform: scaleX(0.8);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 0 18px rgba(246, 122, 35, 0.3);
}

.journey-signal-card {
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 180, 94, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.journey-signal-card strong {
  font-family: var(--head);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.journey-signal-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.tool-live-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(79, 195, 247, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.tool-live-card strong {
  font-family: var(--head);
  font-size: clamp(1.18rem, 2.6vw, 1.82rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.tool-live-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tool-live-card-emphasis {
  border-color: rgba(255, 180, 94, 0.18);
  background:
    radial-gradient(circle at top right, rgba(246, 122, 35, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 245, 232, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.24),
    0 0 26px rgba(246, 122, 35, 0.08);
}

.tool-live-card-emphasis strong {
  background: linear-gradient(135deg, var(--cream), var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1180px) {
  .hero-command-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-pulse-card,
  .shorts-spotlight,
  .journey-overview {
    grid-template-columns: 1fr;
  }

  .journey-overview-top {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .story-live-grid,
  .tool-live-grid {
    grid-template-columns: 1fr;
  }

  .hero-pulse-metrics,
  .shorts-spotlight-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-progress {
    left: 16px;
    right: 16px;
  }

  .hero-command-deck,
  .hero-pulse-metrics,
  .story-live-grid,
  .shorts-spotlight-actions,
  .journey-overview,
  .tool-live-grid {
    grid-template-columns: 1fr;
  }

  .hero-pulse-card,
  .shorts-spotlight,
  .journey-overview-card {
    padding: 20px;
  }

  .hero-pulse-visual {
    min-height: 160px;
  }
}

/* Light calm refresh */
:root {
  --bg: #f4eee6;
  --bg-soft: #fbf8f3;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-strong: #fffdfa;
  --bg-panel: #f6f1ea;
  --bg-panel-alt: #fcf8f2;
  --line: rgba(54, 38, 22, 0.09);
  --line-strong: rgba(54, 38, 22, 0.16);
  --text: #1f180f;
  --muted: #6f6355;
  --dim: #9a8c7e;
  --accent: #c86b29;
  --accent-soft: #df9a5e;
  --accent-deep: #925021;
  --cream: #ffffff;
  --ally: #2f9c72;
  --enemy: #c85d67;
  --ban: #a98119;
  --ally-bg: rgba(47, 156, 114, 0.1);
  --enemy-bg: rgba(200, 93, 103, 0.1);
  --ban-bg: rgba(169, 129, 25, 0.11);
  --shadow: 0 18px 44px rgba(76, 55, 32, 0.08);
  --shadow-glow: 0 18px 44px rgba(76, 55, 32, 0.08);
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #f5efe8 0%, #fbf8f4 42%, #f1e9df 100%);
}

body::before,
body::after,
#particles,
.page-glow,
.hero-copy::before,
.hero-copy::after,
.hero-focus-card::before,
.hero-focus-card::after,
.shorts-spotlight::before,
.story-screen::before,
.story-screen::after,
.content-section::before,
#shorts::after,
#journey::after,
.tool-shell.draft-app::before,
.tool-shell.draft-app::after {
  display: none !important;
}

.brand-logo {
  animation: none;
}

.site-header {
  border-color: rgba(54, 38, 22, 0.08);
  background: rgba(255, 252, 248, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(76, 55, 32, 0.08);
}

.site-header.is-scrolled {
  border-color: rgba(54, 38, 22, 0.1);
  background: rgba(255, 252, 248, 0.94);
  box-shadow: 0 14px 30px rgba(76, 55, 32, 0.1);
}

.site-nav {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a::after,
.header-progress-fill {
  background: linear-gradient(90deg, rgba(200, 107, 41, 0.75), rgba(223, 154, 94, 0.35));
  box-shadow: none;
}

.header-api-status,
.api-badge,
.api-badge-loading,
.api-badge-offline {
  letter-spacing: 0.08em;
  box-shadow: none !important;
  animation: none !important;
}

.api-badge,
.api-badge-loading,
.api-badge-offline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  text-shadow: none;
}

.header-api-status[data-status="loading"] {
  background: rgba(223, 154, 94, 0.1);
  border-color: rgba(200, 107, 41, 0.14);
  color: var(--muted);
}

.header-api-status[data-status="loading"] .header-api-dot,
.header-api-status[data-status="online"] .header-api-dot,
.header-api-status[data-status="offline"] .header-api-dot {
  animation: none;
  box-shadow: none;
}

.header-api-status[data-status="online"] {
  background: rgba(47, 156, 114, 0.1);
  border-color: rgba(47, 156, 114, 0.16);
  color: #2d7759;
  text-shadow: none;
}

.header-api-status[data-status="offline"] {
  background: rgba(54, 38, 22, 0.04);
  border-color: rgba(54, 38, 22, 0.08);
}

.header-link,
.secondary-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: none;
}

.header-link:hover,
.header-link:focus-visible,
.secondary-btn:hover,
.secondary-btn:focus-visible {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.header-login::after,
.primary-btn::after,
.api-badge::before,
.api-badge-loading::before,
.api-badge-offline::before {
  display: none;
}

.header-login,
.primary-btn {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffaf4;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(200, 107, 41, 0.14);
}

.header-login.logged-in {
  background: #f7ede2;
  color: var(--text);
  border-color: rgba(200, 107, 41, 0.16);
  box-shadow: none;
}

.header-login:hover,
.header-login:focus-visible,
.primary-btn:hover,
.primary-btn:focus-visible {
  box-shadow: 0 12px 24px rgba(200, 107, 41, 0.16);
}

.hero-copy,
.surface-card,
.content-section,
.tool-shell,
.site-footer {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 244, 237, 0.96));
  box-shadow: var(--shadow);
}

.surface-card:hover {
  border-color: rgba(54, 38, 22, 0.12);
  box-shadow: 0 20px 34px rgba(76, 55, 32, 0.1);
}

.hero-copy {
  padding: clamp(30px, 4vw, 46px);
  backdrop-filter: none;
}

.hero-copy h1 {
  max-width: 8ch;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.hero-text,
.channel-text,
.story-screen-copy p,
.story-live-card p,
.tool-live-card p,
.journey-signal-card p,
.journey-overview-text,
.shorts-spotlight-copy p:not(.card-kicker),
.value-card p,
.section-heading p,
.draft-grid-empty span {
  color: var(--muted);
}

.eyebrow,
.card-kicker,
.hero-battle-pill span,
.hero-command-card span,
.hero-pulse-metric span,
.story-live-card span,
.shorts-spotlight-stat span,
.journey-signal-card span,
.tool-live-card span,
.story-progress-meta {
  color: var(--accent);
}

.eyebrow::before,
.card-kicker::before {
  animation: none;
  box-shadow: none;
}

.hero-welcome {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.welcome-label {
  color: var(--accent);
}

.hero-battle-strip,
.hero-command-deck,
.story-live-grid,
.tool-live-grid,
.journey-overview {
  gap: 14px;
}

.hero-command-deck {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-battle-pill,
.hero-command-card,
.hero-pulse-metric,
.story-live-card,
.shorts-spotlight-stat,
.journey-signal-card,
.tool-live-card,
.value-card,
.info-card,
.story-screen-panel,
.short-card,
.milestone-card,
.journey-overview-card,
.shorts-spotlight,
.hero-focus-card,
.hero-pulse-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.hero-battle-pill::before,
.hero-command-card::before,
.value-card::before {
  opacity: 0.24;
}

.hero-command-card strong,
.tool-live-card strong,
.story-live-card strong,
.journey-signal-card strong,
.hero-focus-item strong,
.story-screen-copy h2,
.section-heading h2,
.shorts-spotlight-copy h3,
.journey-overview-card h3 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero-command-card-emphasis,
.tool-live-card-emphasis,
.value-card-lead {
  background: #f8efe6;
  border-color: rgba(200, 107, 41, 0.16);
}

.hero-command-card-emphasis strong,
.tool-live-card-emphasis strong,
.journey-progress-number,
.goal-number,
.value-title,
.milestone-card strong {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  filter: none;
}

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

.hero-pulse-visual,
.hero-pulse-ring,
.hero-pulse-core {
  display: none;
}

.story-screen {
  background: linear-gradient(180deg, #fffdf9, #f7f1e8);
  box-shadow: var(--shadow);
}

.story-screen-panel {
  opacity: 1;
  transform: none;
}

.story-screen-panel.is-active {
  border-color: rgba(200, 107, 41, 0.18);
  background: #fffaf5;
  box-shadow: none;
}

.story-step.is-active .story-step-copy {
  transform: none;
  border-color: rgba(200, 107, 41, 0.16);
  background: #fff;
  box-shadow: var(--shadow);
}

.section-heading h2::after {
  width: 48px;
  height: 2px;
  background: rgba(200, 107, 41, 0.35);
}

.tool-shell.draft-app .tool-badges,
.tool-badges {
  background: #faf6f1;
}

.tool-badges span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.tool-badges span:hover {
  color: var(--text);
  background: #fff;
  border-color: var(--line-strong);
}

.draft-grid-empty {
  background: #fff;
  border-color: var(--line);
}

.brawler-card {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(76, 55, 32, 0.05);
}

.brawler-card:hover,
.brawler-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(54, 38, 22, 0.14);
  box-shadow: 0 12px 22px rgba(76, 55, 32, 0.09);
}

.brawler-card.top-pick {
  border-color: rgba(47, 156, 114, 0.22);
  background: linear-gradient(180deg, #f8fcfa, #ffffff);
  animation: none;
}

.brawler-card.fav {
  border-color: rgba(200, 107, 41, 0.22);
}

.brawler-card.taken {
  opacity: 0.58;
}

.bc-score-pending {
  color: var(--dim);
  background: #f6efe8;
  border-color: rgba(54, 38, 22, 0.08);
}

@media (max-width: 900px) {
  .hero-command-deck {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-copy h1 {
    max-width: 9ch;
  }
}

/* Usability + contrast refresh */
.text-link {
  color: var(--text);
}

.text-link::after {
  color: var(--accent);
}

.reveal-ready {
  transform: translateY(calc(40px + var(--section-drift, 0px))) scale(0.982);
}

.reveal-ready.is-visible {
  transform: translateY(var(--section-drift, 0px));
}

.scroll-float {
  --section-drift: 0px;
  will-change: transform;
}

.scroll-float:not(.reveal-ready) {
  transform: translateY(var(--section-drift, 0px));
  transition: transform 0.24s linear;
}

.hero-section,
.scroll-story,
.tool-section {
  --text: #f8efe7;
  --muted: #cbb8a7;
  --dim: #9b8572;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ee8d42;
  --accent-soft: #ffb76b;
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.hero-copy,
.hero-focus-card,
.hero-pulse-card {
  border-color: rgba(255, 183, 107, 0.14);
  background: linear-gradient(180deg, #1a120d, #0e0a08);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

.hero-copy h1,
.hero-focus-card h2,
.hero-pulse-copy h3 {
  color: #fff3e7;
}

.hero-text,
.channel-text,
.hero-command-card p,
.hero-pulse-copy p:not(.card-kicker),
.hero-focus-item span {
  color: var(--muted);
}

.hero-battle-pill,
.hero-command-card,
.hero-pulse-metric {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.hero-command-card-emphasis {
  background: linear-gradient(180deg, rgba(238, 141, 66, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 183, 107, 0.2);
}

.hero-command-card-emphasis strong {
  color: #fff3e7;
}

.scroll-story .story-screen {
  border-color: rgba(255, 183, 107, 0.14);
  background: linear-gradient(180deg, #17100c, #0b0807);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

.scroll-story .story-screen-copy p,
.scroll-story .story-live-card p,
.scroll-story .story-step-copy p {
  color: var(--muted);
}

.scroll-story .story-screen-panel,
.scroll-story .story-live-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.scroll-story .story-screen-panel.is-active {
  border-color: rgba(255, 183, 107, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.scroll-story .story-step-copy {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #17100c, #0c0907);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.scroll-story .story-step.is-active .story-step-copy {
  border-color: rgba(255, 183, 107, 0.18);
  background: linear-gradient(180deg, #22160f, #0c0907);
}

.scroll-story .story-progress-track {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.scroll-story .story-progress-fill {
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  box-shadow: none;
}

.tool-section {
  --bg-panel: #17110d;
  --bg-panel-alt: #120d09;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-strong: rgba(255, 255, 255, 0.07);
  --ally-bg: rgba(47, 156, 114, 0.14);
  --enemy-bg: rgba(200, 93, 103, 0.14);
  --ban-bg: rgba(169, 129, 25, 0.16);
  border-color: rgba(255, 183, 107, 0.14);
  background: linear-gradient(180deg, #17110d, #0d0907);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

.tool-section .section-heading p:last-child,
.tool-section .tool-live-card p {
  color: var(--muted);
}

.tool-section .tool-live-card,
.tool-section .tool-shell {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: none;
}

.tool-section .tool-live-card-emphasis {
  background: linear-gradient(180deg, rgba(238, 141, 66, 0.18), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 183, 107, 0.18);
}

.tool-section .tool-shell.draft-app .tool-badges,
.tool-section .tool-badges {
  background: rgba(255, 255, 255, 0.03);
}

.tool-section .tool-badges span,
.tool-section .api-badge,
.tool-section .api-badge-loading,
.tool-section .api-badge-offline {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.tool-section .draft-grid-empty {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.tool-section .brawler-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: none;
}

.tool-section .brawler-card:hover,
.tool-section .brawler-card:focus-within {
  border-color: rgba(255, 183, 107, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.tool-section .brawler-card.top-pick {
  border-color: rgba(255, 183, 107, 0.24);
  background: linear-gradient(180deg, rgba(238, 141, 66, 0.16), rgba(255, 255, 255, 0.04));
}

.tool-section .bc-score-pending {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 239, 231, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
}

.tool-section .text-link,
.hero-section .text-link,
.scroll-story .text-link {
  color: #fff3e7;
}

.tool-section .text-link::after,
.hero-section .text-link::after,
.scroll-story .text-link::after {
  color: var(--accent-soft);
}

.hero-text,
.section-heading p:last-child,
.auth-copy {
  max-width: 24ch;
}

.scroll-story-steps {
  gap: 14px;
}

.story-step {
  min-height: 56vh;
}

.story-step-copy {
  max-width: 34rem;
  padding: 22px 22px 22px 24px;
}

.story-step-copy p,
.scroll-story .story-screen-copy p {
  max-width: 20ch;
}

@media (max-width: 900px) {
  .story-step {
    min-height: 46vh;
  }

  .story-step-copy {
    max-width: 100%;
  }
}

/* Dark header + consent */
.site-header,
.site-header.is-scrolled {
  --text: #fff3e7;
  --muted: #cbb8a7;
  --dim: #9b8572;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  color: var(--text);
  border-color: rgba(255, 183, 107, 0.14);
  background: rgba(12, 9, 8, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.site-header .brand-text strong,
.site-header .site-nav a {
  color: var(--text);
}

.site-header .brand-text span,
.site-header .site-nav,
.site-header .header-api-status {
  color: var(--muted);
}

.site-header .header-link {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.site-header .header-link:hover,
.site-header .header-link:focus-visible {
  border-color: rgba(255, 183, 107, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.site-header .header-login.logged-in {
  background: rgba(255, 183, 107, 0.12);
  color: #fff3e7;
  border-color: rgba(255, 183, 107, 0.2);
}

.site-header .header-api-status[data-status="loading"] {
  background: rgba(255, 183, 107, 0.12);
  border-color: rgba(255, 183, 107, 0.2);
  color: #ffe0be;
}

.site-header .header-api-status[data-status="online"] {
  background: rgba(47, 156, 114, 0.14);
  border-color: rgba(47, 156, 114, 0.22);
  color: #d7ffeb;
}

.site-header .header-api-status[data-status="offline"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.auth-dialog {
  --text: #fff3e7;
  --muted: #cbb8a7;
  --dim: #9b8572;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.auth-dialog h2,
.auth-dialog .text-button,
.auth-dialog input {
  color: var(--text);
}

.auth-dialog .text-button {
  background: rgba(255, 255, 255, 0.04);
}

.auth-field input::placeholder {
  color: rgba(203, 184, 167, 0.58);
}

body.cookie-notice-open {
  padding-bottom: 110px;
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  width: min(1120px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 183, 107, 0.14);
  border-radius: 24px;
  background: rgba(12, 9, 8, 0.94);
  color: #fff3e7;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

.cookie-copy {
  display: grid;
  gap: 6px;
  max-width: 58rem;
}

.cookie-copy strong {
  color: #fff3e7;
  font-family: var(--head);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: -0.02em;
}

.cookie-copy p {
  color: #cbb8a7;
  line-height: 1.55;
}

.cookie-btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  body.cookie-notice-open {
    padding-bottom: 144px;
  }

  .cookie-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Dark surface contrast guards */
.tool-section .tool-shell,
.tool-section .panel,
.scroll-story .story-screen,
.scroll-story .story-step-copy {
  color: var(--text);
}

.tool-section .sel-group select,
.tool-section .btn-sm,
.tool-section .search-bar input,
.tool-section .role-pill,
.tool-section .speed-chip {
  color: var(--text);
}

.tool-section .section-head,
.tool-section .slot-label,
.tool-section .speed-title,
.tool-section .alt-head,
.tool-section .shortcut-head,
.tool-section .search-icon,
.tool-section .search-bar input::placeholder,
.tool-section .panel-meta,
.tool-section .progress-meta,
.tool-section .chip-empty,
.tool-section .speed-empty,
.tool-section .sel-group label {
  color: var(--muted);
}

/* Header draft shortcut + calmer hero */
.site-header .header-link.header-link-accent {
  border-color: rgba(255, 183, 107, 0.2);
  background: rgba(255, 183, 107, 0.12);
  color: #fff3e7;
  font-weight: 700;
}

.site-header .header-link.header-link-accent:hover,
.site-header .header-link.header-link-accent:focus-visible {
  border-color: rgba(255, 183, 107, 0.28);
  background: rgba(255, 183, 107, 0.18);
  color: #fffaf4;
}

.hero-command-deck {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-command-card {
  min-height: 112px;
}

.hero-rail {
  align-content: start;
}

.hero-focus-card {
  gap: 18px;
  justify-content: flex-start;
  min-height: auto;
}

.hero-focus-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .hero-command-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-command-deck,
  .hero-focus-grid {
    grid-template-columns: 1fr;
  }
}

/* Draft reliability fixes */
.tool-shell.draft-app.is-faux-fullscreen,
.tool-shell.draft-app.is-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}

.tool-shell.draft-app.is-faux-fullscreen .draft-app-live,
.tool-shell.draft-app.is-fullscreen .draft-app-live {
  display: grid;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

@media (max-width: 900px), (pointer: coarse) {
  .tool-shell.draft-app.is-faux-fullscreen .brawler-grid-viewport,
  .tool-shell.draft-app.is-fullscreen .brawler-grid-viewport {
    touch-action: auto;
    overscroll-behavior: contain;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-app-live,
  .tool-shell.draft-app.is-fullscreen .draft-app-live {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-app-bar,
  .tool-shell.draft-app.is-faux-fullscreen .draft-toolbar,
  .tool-shell.draft-app.is-faux-fullscreen .draft-stage,
  .tool-shell.draft-app.is-faux-fullscreen .draft-dock,
  .tool-shell.draft-app.is-fullscreen .draft-app-bar,
  .tool-shell.draft-app.is-fullscreen .draft-toolbar,
  .tool-shell.draft-app.is-fullscreen .draft-stage,
  .tool-shell.draft-app.is-fullscreen .draft-dock {
    padding-inline: 10px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-app-bar,
  .tool-shell.draft-app.is-fullscreen .draft-app-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-app-mode,
  .tool-shell.draft-app.is-faux-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-faux-fullscreen .draft-app-command,
  .tool-shell.draft-app.is-fullscreen .draft-app-mode,
  .tool-shell.draft-app.is-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-fullscreen .draft-app-command {
    min-height: auto;
    border-radius: 18px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-quickrows,
  .tool-shell.draft-app.is-faux-fullscreen .grid-nav,
  .tool-shell.draft-app.is-faux-fullscreen .coach-panel .shortcuts,
  .tool-shell.draft-app.is-fullscreen .draft-quickrows,
  .tool-shell.draft-app.is-fullscreen .grid-nav,
  .tool-shell.draft-app.is-fullscreen .coach-panel .shortcuts {
    display: none;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-toolbar,
  .tool-shell.draft-app.is-fullscreen .draft-toolbar {
    gap: 8px;
    padding-bottom: 8px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .role-filters,
  .tool-shell.draft-app.is-fullscreen .role-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-stage,
  .tool-shell.draft-app.is-fullscreen .draft-stage {
    display: block;
    flex: 0 0 auto;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding-bottom: 10px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-panel,
  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-shell,
  .tool-shell.draft-app.is-faux-fullscreen .brawler-grid-viewport,
  .tool-shell.draft-app.is-fullscreen .draft-grid-panel,
  .tool-shell.draft-app.is-fullscreen .draft-grid-shell,
  .tool-shell.draft-app.is-fullscreen .brawler-grid-viewport {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-panel .brawler-grid,
  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    width: 100%;
    min-height: auto;
    padding-right: 0;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-panel .brawler-card,
  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-card {
    aspect-ratio: 0.76;
  }

  .tool-shell.draft-app.is-faux-fullscreen .coach-panel,
  .tool-shell.draft-app.is-fullscreen .coach-panel {
    margin-top: 10px;
    max-height: none;
    overflow: visible;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-dock,
  .tool-shell.draft-app.is-fullscreen .draft-dock {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-panel .brawler-grid,
  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-grid {
    grid-template-columns: 1fr;
  }
}

.tool-shell.draft-app.is-faux-fullscreen:not(.needs-rotate) .draft-fullscreen-gate,
.tool-shell.draft-app.is-fullscreen:not(.needs-rotate) .draft-fullscreen-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 901px) {
  .tool-shell.draft-app.is-faux-fullscreen .draft-app-bar,
  .tool-shell.draft-app.is-fullscreen .draft-app-bar {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr) 260px;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-app-mode,
  .tool-shell.draft-app.is-faux-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-faux-fullscreen .draft-app-command,
  .tool-shell.draft-app.is-fullscreen .draft-app-mode,
  .tool-shell.draft-app.is-fullscreen .draft-app-turn,
  .tool-shell.draft-app.is-fullscreen .draft-app-command {
    min-height: 104px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-toolbar,
  .tool-shell.draft-app.is-fullscreen .draft-toolbar {
    gap: 10px;
    padding-bottom: 10px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-stage,
  .tool-shell.draft-app.is-fullscreen .draft-stage {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
    padding-bottom: 10px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-shell,
  .tool-shell.draft-app.is-fullscreen .draft-grid-shell {
    padding: 10px 12px 12px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-panel .brawler-grid,
  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-grid {
    grid-auto-columns: minmax(108px, 120px);
    gap: 8px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-grid-panel .brawler-card,
  .tool-shell.draft-app.is-fullscreen .draft-grid-panel .brawler-card {
    aspect-ratio: 0.68;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-dock,
  .tool-shell.draft-app.is-fullscreen .draft-dock {
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    gap: 12px;
    min-height: 108px;
    padding-bottom: 12px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .draft-dock .chip-list-team,
  .tool-shell.draft-app.is-faux-fullscreen .draft-dock .chip-list-bans,
  .tool-shell.draft-app.is-fullscreen .draft-dock .chip-list-team,
  .tool-shell.draft-app.is-fullscreen .draft-dock .chip-list-bans {
    min-height: 76px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .pick-slot,
  .tool-shell.draft-app.is-fullscreen .pick-slot {
    min-height: 64px;
    padding: 6px 8px;
  }

  .tool-shell.draft-app.is-faux-fullscreen .pick-slot-initials,
  .tool-shell.draft-app.is-fullscreen .pick-slot-initials {
    font-size: 1.35rem;
  }

  .tool-shell.draft-app.is-faux-fullscreen .pick-slot-copy strong,
  .tool-shell.draft-app.is-fullscreen .pick-slot-copy strong {
    font-size: 0.7rem;
  }

  .tool-shell.draft-app.is-faux-fullscreen .pick-slot-copy span,
  .tool-shell.draft-app.is-faux-fullscreen .pick-slot-placeholder,
  .tool-shell.draft-app.is-faux-fullscreen .pick-slot-order,
  .tool-shell.draft-app.is-fullscreen .pick-slot-copy span,
  .tool-shell.draft-app.is-fullscreen .pick-slot-placeholder,
  .tool-shell.draft-app.is-fullscreen .pick-slot-order {
    font-size: 0.56rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DRAFT LANE BAR — prominent team-switcher above the brawler grid
   ═══════════════════════════════════════════════════════════════ */

/* Container: 3-column grid matching the brawler grid width */
.draft-lane-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Large tap-friendly buttons */
.draft-lane-bar .lane-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 76px;
  padding: 12px 10px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(6, 13, 36, 0.54);
  color: rgba(185, 210, 255, 0.58);
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease;
}

.draft-lane-bar .lane-tab:hover,
.draft-lane-bar .lane-tab:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sub-label (small mono text below the main label) */
.dlb-label {
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.dlb-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.65;
  line-height: 1;
}

/* Keep sub-label readable on the dark gradient of inactive buttons */
.draft-lane-bar .lane-tab:not([class*="active"]) .dlb-sub {
  opacity: 0.5;
}

/* Active states: glow on top of the existing colored gradient backgrounds
   (the gradient backgrounds come from the global .lane-tab.active-* rules
   already present in the "Draft screen refresh" section) */
.draft-lane-bar .lane-tab.active-enemy,
.draft-lane-bar .lane-tab.active-ally,
.draft-lane-bar .lane-tab.active-ban {
  transform: translateY(-2px);
}

.draft-lane-bar .lane-tab.active-enemy {
  box-shadow:
    0 6px 22px rgba(217, 61, 87, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.draft-lane-bar .lane-tab.active-ally {
  box-shadow:
    0 6px 22px rgba(36, 198, 148, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.draft-lane-bar .lane-tab.active-ban {
  box-shadow:
    0 6px 22px rgba(240, 176, 49, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Sub-label on active buttons (colored background → dark text inherited) */
.draft-lane-bar .lane-tab.active-enemy .dlb-sub,
.draft-lane-bar .lane-tab.active-ally .dlb-sub,
.draft-lane-bar .lane-tab.active-ban .dlb-sub {
  opacity: 0.6;
  color: rgba(8, 21, 58, 0.85);
}

/* ── Fullscreen compact height (≤ 920 px tall screens) ─────────── */
@media (max-height: 920px) {
  .tool-shell.draft-app.is-fullscreen .draft-lane-bar .lane-tab,
  .tool-shell.draft-app.is-faux-fullscreen .draft-lane-bar .lane-tab {
    min-height: 58px;
    padding: 8px 10px;
    gap: 3px;
  }

  .tool-shell.draft-app.is-fullscreen .dlb-label,
  .tool-shell.draft-app.is-faux-fullscreen .dlb-label {
    font-size: 0.94rem;
  }

  .tool-shell.draft-app.is-fullscreen .dlb-sub,
  .tool-shell.draft-app.is-faux-fullscreen .dlb-sub {
    font-size: 0.58rem;
  }
}

/* ── Landscape mobile fullscreen: row layout, hide sub-label ────── */
@media (max-width: 900px) and (orientation: landscape) {
  .tool-shell.draft-app.is-fullscreen .draft-lane-bar,
  .tool-shell.draft-app.is-faux-fullscreen .draft-lane-bar {
    gap: 6px;
  }

  .tool-shell.draft-app.is-fullscreen .draft-lane-bar .lane-tab,
  .tool-shell.draft-app.is-faux-fullscreen .draft-lane-bar .lane-tab {
    min-height: 46px;
    flex-direction: row;
    gap: 7px;
  }

  .tool-shell.draft-app.is-fullscreen .dlb-sub,
  .tool-shell.draft-app.is-faux-fullscreen .dlb-sub {
    display: none;
  }
}

/* ── Desktop fullscreen (≥ 1025 px, non-compact) ───────────────── */
.tool-shell.draft-app.is-fullscreen .draft-lane-bar .lane-tab,
.tool-shell.draft-app.is-faux-fullscreen .draft-lane-bar .lane-tab {
  min-height: 68px;
}

/* ── Mobile non-fullscreen (≤ 640 px) ──────────────────────────── */
@media (max-width: 640px) {
  .draft-lane-bar {
    gap: 8px;
  }

  .draft-lane-bar .lane-tab {
    min-height: 62px;
    border-radius: 18px;
  }

  .draft-lane-bar .dlb-label {
    font-size: 0.94rem;
  }

  /* Override the generic is-mobile-draft shrink rule for lane-bar buttons */
  .tool-shell.draft-app.is-mobile-draft:not(.is-fullscreen) .draft-lane-bar .lane-tab {
    min-height: 62px;
    padding-inline: 10px;
    font-size: 0.94rem;
  }
}

/* ── Very small phones (≤ 380 px) ──────────────────────────────── */
@media (max-width: 380px) {
  .draft-lane-bar .lane-tab {
    min-height: 54px;
  }

  .draft-lane-bar .dlb-label {
    font-size: 0.86rem;
  }

  .draft-lane-bar .dlb-sub {
    font-size: 0.55rem;
  }
}

/* Compact hero + direct fullscreen draft access */
.hero-section {
  margin-top: 18px;
  gap: 14px;
  align-items: start;
}

.hero-copy {
  padding: clamp(22px, 3vw, 32px);
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.45rem, 5vw, 4rem);
  line-height: 0.95;
}

.hero-text {
  margin-top: 12px;
}

.hero-actions {
  margin-top: 18px;
}

.hero-focus-card {
  gap: 14px;
  padding: 20px;
}

.hero-signal {
  margin-bottom: 8px;
}

.channel-text,
.channel-live-note {
  margin-top: 8px;
}

.hero-focus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hero-focus-item {
  padding: 10px 12px;
}

.hero-focus-card .text-link {
  margin-top: 12px;
}

.tool-shell.draft-app.is-fullscreen,
.tool-shell.draft-app.is-faux-fullscreen {
  border-radius: 0;
}

.tool-shell.draft-app.is-fullscreen .coach-panel,
.tool-shell.draft-app.is-faux-fullscreen .coach-panel {
  overflow: auto;
}

@media (max-width: 640px) {
  .hero-copy,
  .hero-focus-card {
    padding: 18px;
  }

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

/* Draft tool responsive pass */
.tool-shell.draft-app {
  --draft-shell-height: clamp(680px, 88vh, 1180px);
  --draft-shell-pad: clamp(12px, 1.1vw, 22px);
  --draft-shell-gap: clamp(10px, 0.9vw, 18px);
  max-width: 1680px;
  margin-inline: auto;
}

.tool-shell.draft-app:not(.is-mobile-draft):not(.is-fullscreen):not(.is-faux-fullscreen) .draft-app-live {
  height: var(--draft-shell-height);
  min-height: var(--draft-shell-height);
}

.draft-app-bar,
.draft-toolbar,
.draft-stage,
.draft-dock {
  padding-inline: var(--draft-shell-pad);
}

.draft-app-bar,
.draft-stage,
.draft-dock {
  gap: var(--draft-shell-gap);
}

.draft-tool-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.draft-tool-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 180, 94, 0.86);
  box-shadow: 0 0 14px rgba(255, 180, 94, 0.58);
}

.draft-tool-status-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.draft-tool-status-copy strong {
  font-family: var(--head);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
}

.draft-tool-status-copy span {
  color: rgba(220, 231, 255, 0.72);
  font-size: 0.74rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.draft-tool-status[data-status="online"] {
  border-color: rgba(103, 245, 207, 0.38);
  background: rgba(36, 198, 148, 0.13);
}

.draft-tool-status[data-status="online"] .draft-tool-dot {
  background: #67f5cf;
  box-shadow: 0 0 12px rgba(103, 245, 207, 0.86), 0 0 24px rgba(103, 245, 207, 0.34);
  animation: dot-pulse 2.8s ease-in-out infinite;
}

.draft-tool-status[data-status="offline"] {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.draft-tool-status[data-status="offline"] .draft-tool-dot {
  background: rgba(190, 198, 220, 0.56);
  box-shadow: none;
}

.tool-shell.draft-app.is-fullscreen,
.tool-shell.draft-app.is-faux-fullscreen {
  --draft-shell-pad: clamp(10px, 1vw, 22px);
  max-width: none;
}

.tool-shell.draft-app.is-fullscreen .draft-tool-status-copy span,
.tool-shell.draft-app.is-faux-fullscreen .draft-tool-status-copy span {
  font-size: 0.7rem;
}

@media (min-width: 1680px) {
  .tool-shell.draft-app {
    --draft-shell-height: min(86vh, 1180px);
    max-width: 1880px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-bar {
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1fr) minmax(360px, 0.84fr);
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-stage {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-grid-panel .brawler-grid {
    grid-auto-columns: minmax(148px, 166px);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock {
    grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
    min-height: 166px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock .chip-list-team,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock .chip-list-bans {
    min-height: 112px;
  }
}

@media (min-width: 1080px) and (max-width: 1679px) {
  .tool-shell.draft-app {
    --draft-shell-height: clamp(650px, 86vh, 920px);
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-bar {
    grid-template-columns: minmax(230px, 0.95fr) minmax(280px, 1fr) minmax(250px, 0.9fr);
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-mode,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-turn,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-command {
    min-height: 104px;
    border-radius: 22px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-copy strong {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-stage {
    grid-template-columns: minmax(0, 1fr) clamp(270px, 22vw, 340px);
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-grid-panel .brawler-grid {
    grid-auto-columns: minmax(112px, 126px);
    gap: 8px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-grid-shell {
    padding: 10px 12px 12px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock {
    grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
    min-height: 118px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock .chip-list-team,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock .chip-list-bans {
    min-height: 76px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-lane-bar .lane-tab {
    min-height: 58px;
    padding: 8px 10px;
  }
}

@media (min-width: 901px) and (max-height: 900px) {
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen):not(.is-mobile-draft) {
    --draft-shell-height: min(72vh, 620px);
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen):not(.is-mobile-draft) .draft-quickrows,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen):not(.is-mobile-draft) .tool-badges {
    display: none;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-toolbar {
    gap: 8px;
    padding-bottom: 8px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-mode,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-turn,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-command {
    min-height: 74px;
    border-radius: 18px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-mode,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-app-turn {
    padding: 10px 12px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-command-actions {
    gap: 8px;
    padding: 10px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-top-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-top-selects .sel-group label {
    display: none;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-top-selects .sel-group select {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-lane-bar .lane-tab {
    min-height: 46px;
    padding: 6px 8px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .dlb-sub,
  .tool-shell.draft-app:not(.is-mobile-draft) .progress-meta,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-tool-status-copy span {
    font-size: 0.58rem;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock {
    min-height: 92px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock .chip-list-team,
  .tool-shell.draft-app:not(.is-mobile-draft) .draft-dock .chip-list-bans {
    min-height: 60px;
  }

  .tool-shell.draft-app:not(.is-mobile-draft) .draft-tool-status {
    padding: 8px 10px;
  }
}

@media (min-width: 901px) and (max-width: 1079px) {
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-app-live {
    height: auto;
    min-height: auto;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-app-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-app-command {
    grid-column: 1 / -1;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-stage {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-dock {
    grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .team-side-blue {
    grid-column: 1;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .team-side-red {
    grid-column: 2;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-dock-center {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) {
    --draft-shell-pad: 10px;
    border-radius: 22px;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-app-live {
    height: auto;
    min-height: auto;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-app-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-app-command {
    grid-column: auto;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-command-actions {
    gap: 10px;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-tool-status {
    padding: 10px;
    border-radius: 16px;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-stage,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-grid-panel,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-grid-shell,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .brawler-grid-viewport {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-grid-panel .brawler-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    width: 100%;
    min-height: auto;
    padding-right: 0;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-grid-panel .brawler-card {
    aspect-ratio: 0.78;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-dock-center {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-grid-panel .brawler-grid,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-dock,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-top-buttons {
    grid-template-columns: 1fr;
  }

  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .team-side-blue,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .team-side-red,
  .tool-shell.draft-app:not(.is-fullscreen):not(.is-faux-fullscreen) .draft-dock-center {
    grid-column: 1;
  }
}

/* Scroll reveal timeline + refreshed first section */
.scroll-appear {
  --reveal-x: 0px;
  --reveal-y: 42px;
  --reveal-scale: 0.982;
  --reveal-rotate: 0deg;
}

.scroll-appear.reveal-ready {
  clip-path: inset(0 0 18% 0);
  transform: translate3d(var(--reveal-x), calc(var(--reveal-y) + var(--section-drift, 0px)), 0) scale(var(--reveal-scale)) rotate(var(--reveal-rotate));
}

.scroll-appear.reveal-ready.is-visible {
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, var(--section-drift, 0px), 0) scale(1) rotate(0deg);
}

.reveal-tool {
  --reveal-y: 92px;
  --reveal-scale: 0.955;
  --reveal-rotate: 0.6deg;
}

.reveal-from-left {
  --reveal-x: -76px;
  --reveal-y: 18px;
  --reveal-rotate: -2deg;
}

.reveal-from-right {
  --reveal-x: 76px;
  --reveal-y: 18px;
  --reveal-rotate: 2deg;
}

.site-main {
  display: flex;
  flex-direction: column;
}

.hero-section {
  order: 1;
}

.tool-section {
  order: 2;
}

.youtube-timeline-section {
  order: 3;
}

#shorts {
  order: 4;
}

#journey {
  order: 5;
}

.site-footer {
  order: 6;
}

.hero-scroll-stage {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: stretch;
  margin-top: clamp(16px, 2.2vw, 28px);
}

.hero-scroll-stage .hero-copy,
.hero-scroll-stage .hero-draft-preview,
.hero-scroll-stage .hero-channel-card,
.youtube-timeline-section,
.youtube-timeline-card {
  border-color: rgba(255, 183, 107, 0.14);
  background:
    linear-gradient(180deg, rgba(26, 18, 13, 0.98), rgba(12, 9, 8, 0.98));
  color: #fff3e7;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

.hero-scroll-stage .hero-copy {
  min-height: clamp(360px, 54vh, 560px);
  padding: clamp(28px, 5vw, 58px);
}

.hero-scroll-stage .hero-copy::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 183, 107, 0.08) 42% 43%, transparent 43% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px);
  opacity: 0.54;
}

.hero-scroll-stage .hero-copy::after {
  top: auto;
  bottom: 26px;
  left: clamp(28px, 5vw, 58px);
  width: min(54%, 420px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 183, 107, 0.82), transparent);
  transform: none;
  opacity: 0.72;
  animation: none;
}

.hero-scroll-stage .hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  color: #fff3e7;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-scroll-stage .hero-text {
  max-width: 35rem;
  color: #cbb8a7;
}

.hero-scroll-stage .hero-battle-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-scroll-stage .hero-battle-pill {
  min-height: 82px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.hero-scroll-stage .hero-battle-pill strong {
  color: #fff3e7;
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #cbb8a7;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll-cue span {
  position: relative;
  width: 18px;
  height: 30px;
  border: 1px solid rgba(255, 183, 107, 0.36);
  border-radius: 999px;
}

.hero-scroll-cue span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffb76b;
  transform: translateX(-50%);
  animation: scroll-cue-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-dot {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, 10px);
  }
}

.hero-scroll-stage .hero-rail {
  display: grid;
  grid-template-rows: 1fr;
  gap: 14px;
  align-content: stretch;
}

.hero-draft-preview,
.hero-channel-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-draft-preview h2,
.hero-channel-card h2 {
  max-width: 14ch;
  color: #fff3e7;
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-draft-board {
  display: grid;
  gap: 10px;
}

.hero-draft-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.hero-draft-row.is-active {
  border-color: rgba(255, 183, 107, 0.36);
  background: rgba(255, 183, 107, 0.12);
}

.hero-draft-row span,
.hero-draft-row em,
.hero-score-card span,
.youtube-timeline-card span {
  color: #cbb8a7;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-draft-row strong {
  overflow: hidden;
  color: #fff3e7;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-score-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-score-card strong {
  color: #ffb76b;
  font-family: var(--head);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.hero-channel-card {
  min-height: 0;
}

.hero-channel-card .channel-text {
  max-width: 32ch;
  color: #cbb8a7;
}

.youtube-timeline-section {
  position: relative;
  overflow: hidden;
}

.youtube-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 8px 0 2px;
}

.youtube-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 183, 107, 0.52), transparent);
  transform: translateX(-50%);
}

.youtube-timeline-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: calc(50% - 34px);
  min-height: 128px;
  padding: 22px;
}

.youtube-timeline-card:nth-child(odd) {
  justify-self: start;
  text-align: right;
}

.youtube-timeline-card:nth-child(even) {
  justify-self: end;
}

.youtube-timeline-card::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 183, 107, 0.48);
  border-radius: 999px;
  background: #0c0908;
  box-shadow: 0 0 0 6px rgba(255, 183, 107, 0.08);
}

.youtube-timeline-card:nth-child(odd)::after {
  right: -42px;
}

.youtube-timeline-card:nth-child(even)::after {
  left: -42px;
}

.youtube-timeline-card strong {
  color: #fff3e7;
  font-family: var(--head);
  font-size: clamp(1.55rem, 3.5vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.youtube-timeline-card p,
.youtube-timeline-section .section-heading p {
  color: #cbb8a7;
}

@media (max-width: 1080px) {
  .hero-scroll-stage {
    grid-template-columns: 1fr;
  }

  .hero-scroll-stage .hero-copy {
    min-height: auto;
  }

  .hero-scroll-stage .hero-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 760px) {
  .reveal-from-left,
  .reveal-from-right {
    --reveal-x: -34px;
    --reveal-y: 18px;
  }

  .hero-scroll-stage .hero-battle-strip,
  .hero-scroll-stage .hero-rail {
    grid-template-columns: 1fr;
  }

  .hero-scroll-stage .hero-copy {
    padding: 22px;
  }

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

  .youtube-timeline::before {
    left: 13px;
  }

  .youtube-timeline-card,
  .youtube-timeline-card:nth-child(odd),
  .youtube-timeline-card:nth-child(even) {
    justify-self: stretch;
    width: auto;
    margin-left: 38px;
    text-align: left;
  }

  .youtube-timeline-card:nth-child(odd)::after,
  .youtube-timeline-card:nth-child(even)::after {
    left: -32px;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-appear.reveal-ready,
  .scroll-appear.reveal-ready.is-visible {
    clip-path: none;
    transform: none;
  }
}
