:root {
  --bg: #d9d9d9;
  --surface: #f4f4f4;
  --surface-strong: #ffffff;
  --ink: #050505;
  --muted: #606060;
  --line: rgba(5, 5, 5, 0.16);
  --accent: #00ff41;
  --accent-deep: #00c434;
  --accent-rgb: 0, 255, 65;
  --shadow: rgba(5, 5, 5, 0.12);
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --hero-bg: #101833;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(5, 5, 5, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  font-family: var(--mono);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.22;
}

button,
a {
  font: inherit;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.site-shell {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(217, 217, 217, 0.92);
  backdrop-filter: blur(12px);
}

.left-rail {
  position: fixed;
  top: 42px;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  width: 64px;
  padding: 18px 0;
  border-right: 1px solid var(--line);
  background: rgba(217, 217, 217, 0.78);
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.rail-copy {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.rail-code {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.right-nav {
  position: fixed;
  top: 42px;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  width: 132px;
  padding: 18px 14px;
  border-left: 1px solid var(--line);
  background: rgba(217, 217, 217, 0.78);
}

.nav-link {
  width: 100%;
  padding: 11px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--accent);
  border-color: var(--ink);
}

.nav-link:active {
  transform: translateY(1px);
}

.page-flow {
  width: min(100% - 196px, 1320px);
  margin-left: max(82px, calc((100vw - 1320px) / 2));
  padding: 18px 0 56px;
}

.scroll-section {
  scroll-margin-top: 64px;
}

.hero-section {
  --mx: 0;
  --my: 0;
  position: relative;
  min-height: calc(100dvh - 78px);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--hero-bg);
  box-shadow: 8px 8px 0 var(--shadow);
  isolation: isolate;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-section::before {
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0 30%, rgba(5, 5, 5, 0.18) 56%, rgba(5, 5, 5, 0.48) 100%),
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), 0.18) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
}

.hero-section::after {
  inset: -18% 48% -12% 42%;
  z-index: 3;
  background: rgba(var(--accent-rgb), 0.34);
  transform: skewX(-21deg) translateX(calc(var(--mx) * 8px));
  filter: blur(0.5px);
  opacity: 0.72;
  animation: beamFlicker 3.4s steps(2, end) infinite;
}

.arena-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.arena-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px), 0) scale(1.08);
  filter: saturate(1.2) contrast(1.06);
  animation: arenaDrift 14s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) infinite alternate;
}

.hero-ghost {
  position: absolute;
  right: -3vw;
  top: -2vw;
  z-index: 4;
  color: rgba(255, 255, 255, 0.075);
  font-family: var(--display);
  font-size: clamp(8rem, 19vw, 18rem);
  font-weight: 950;
  line-height: 0.76;
  letter-spacing: -0.09em;
  pointer-events: none;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 8px), 0);
  animation: ghostWake 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.energy-beam {
  position: absolute;
  z-index: 4;
  width: 48vw;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.78);
  pointer-events: none;
  transform-origin: center;
  animation: bladeIgnite 1200ms cubic-bezier(0.16, 1, 0.3, 1) both, bladePulse 2.6s ease-in-out infinite 1.2s;
}

.beam-one {
  right: 12%;
  bottom: 28%;
  transform: rotate(-17deg);
}

.beam-two {
  right: -4%;
  bottom: 33%;
  transform: rotate(18deg);
  animation-delay: 120ms, 1.3s;
}

.target-ring {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: ringSpin 16s linear infinite;
}

.ring-one {
  right: 19%;
  top: 15%;
  width: 240px;
  height: 240px;
}

.ring-two {
  right: 13%;
  top: 25%;
  width: 380px;
  height: 380px;
  animation-direction: reverse;
  animation-duration: 22s;
}

.dossier-panel {
  position: absolute;
  left: clamp(28px, 6vw, 76px);
  top: 12%;
  z-index: 6;
  display: grid;
  gap: 18px;
  width: min(42vw, 520px);
  padding: clamp(22px, 3.2vw, 38px);
  color: var(--surface);
  background: rgba(5, 5, 5, 0.88);
  border: 1.5px solid rgba(var(--accent-rgb), 0.76);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  box-shadow: 12px 12px 0 rgba(var(--accent-rgb), 0.22);
  transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 5px), 0);
  animation: panelDrop 760ms cubic-bezier(0.16, 1, 0.3, 1) both 120ms;
}

.kicker,
.label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.dossier-panel .kicker {
  color: var(--accent);
}

.dossier-panel h1 {
  display: block;
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.ign-inline {
  background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff, #ff0000);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleStrike 680ms cubic-bezier(0.16, 1, 0.3, 1) both, rgb-flow 3s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

@keyframes rgb-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.summary {
  max-width: 46ch;
  color: rgba(244, 244, 244, 0.78);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
}

.ios-code-block {
  display: grid;
  gap: 0;
  overflow: hidden;
  color: #f4f4f4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(18, 24, 40, 0.78);
  border: 1px solid rgba(244, 244, 244, 0.18);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  animation: codeBlockIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both 260ms;
}

.ios-code-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(244, 244, 244, 0.12);
}

.ios-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #28c840;
}

.ios-code-title {
  margin-left: 6px;
  color: rgba(244, 244, 244, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ios-code-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.ios-code-body code {
  overflow: hidden;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.26rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safe-ign {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  font-variant-ligatures: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-name-button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.copy-name-button:hover {
  transform: translateY(-1px);
  background: #f4f4f4;
}

.copy-name-button.is-copied {
  color: var(--accent);
  background: var(--ink);
}

.copy-name-button:focus-visible {
  outline: 2px solid #f4f4f4;
  outline-offset: 3px;
}

.copy-status {
  min-height: 16px;
  padding: 0 13px 11px;
  color: rgba(244, 244, 244, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  color: var(--bg);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.pill-button::after {
  content: "•";
  margin-left: 10px;
  color: var(--accent);
}

.pill-button.ghost {
  color: var(--ink);
  background: transparent;
}

.dossier-panel .pill-button.ghost {
  color: var(--surface);
  border-color: rgba(244, 244, 244, 0.72);
  background: rgba(244, 244, 244, 0.06);
}

.pill-button:hover {
  color: var(--ink);
  background: var(--accent);
  transform: translateY(-2px);
}

.pill-button:hover::after {
  color: var(--ink);
}

.pill-button:active {
  transform: translateY(1px);
}

.pill-button.is-pressed {
  transform: scale(0.96);
}

.profile-orbit {
  position: absolute;
  right: clamp(26px, 7vw, 92px);
  top: 11%;
  z-index: 6;
  width: clamp(190px, 22vw, 292px);
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0) rotate(2deg);
  animation: cardFloat 5.8s ease-in-out infinite, cardEnter 880ms cubic-bezier(0.16, 1, 0.3, 1) both 260ms;
}

.player-mini-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  background: #192242;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38);
}

.player-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), transparent 48%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
}

.player-mini-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.73;
  object-fit: cover;
  object-position: top center;
}

.rank-plate {
  position: absolute;
  right: -22px;
  bottom: -22px;
  z-index: 7;
  display: grid;
  gap: 3px;
  width: 186px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--accent);
  border: 1.5px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(5, 5, 5, 0.34);
  transform: rotate(-7deg);
  animation: rankPop 860ms cubic-bezier(0.16, 1, 0.3, 1) both 520ms;
}

.rank-plate span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.rank-plate strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.hero-bottom-deck {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  bottom: clamp(24px, 5vw, 56px);
  left: clamp(16px, 3vw, 48px);
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 1fr) minmax(220px, 0.8fr);
  align-items: end;
  gap: clamp(10px, 1.5vw, 20px);
}

.hero-hud {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr) minmax(0, 0.76fr);
  width: 100%;
  border: 1.5px solid var(--ink);
  background: var(--accent);
  box-shadow: 8px 8px 0 rgba(5, 5, 5, 0.36);
  animation: hudRise 760ms cubic-bezier(0.16, 1, 0.3, 1) both 420ms;
}

.hud-stat {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px clamp(8px, 1vw, 14px);
  border-right: 1px solid rgba(5, 5, 5, 0.24);
}

.hud-stat:last-child {
  border-right: 0;
}

.hud-stat span {
  font-family: var(--display);
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.85rem, 2.75vw, 3.25rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-overflow: clip;
  white-space: nowrap;
}

.hud-stat small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.command-stack {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  background: rgba(5, 5, 5, 0.76);
  color: var(--accent);
  transform: translate3d(calc(var(--mx) * -5px), calc(var(--my) * -4px), 0);
  animation: commandIn 800ms cubic-bezier(0.16, 1, 0.3, 1) both 620ms;
}

.command-stack span {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.24);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.command-stack span:last-child {
  border-bottom: 0;
}

.roster-dock {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: rgba(244, 244, 244, 0.9);
  box-shadow: 8px 8px 0 rgba(5, 5, 5, 0.26);
  transform: translate3d(calc(var(--mx) * 4px), calc(var(--my) * 3px), 0) rotate(-1deg);
  animation: dockSlide 860ms cubic-bezier(0.16, 1, 0.3, 1) both 700ms;
}

.roster-dock img {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
  object-position: top left;
  filter: saturate(1.16) contrast(1.08);
}

.roster-dock figcaption {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px 16px;
}

.roster-dock span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.roster-dock strong {
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.scan-line {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.16), transparent);
  pointer-events: none;
  animation: scan 4s ease-in-out infinite;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat-block,
.bio-panel,
.loadout-panel,
.hero-card,
.timeline article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.stat-block {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.stat-block strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.stat-block small,
.section-header p,
.bio-panel p,
.hero-card p,
.skin-copy p,
.timeline p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.main-rank {
  background: var(--accent);
  border-color: var(--ink);
}

.main-rank strong {
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.main-rank .label,
.main-rank small {
  color: rgba(0, 0, 0, 0.72);
}

.profile-section,
.heroes-section,
.skins-section,
.moments-section {
  min-height: 100dvh;
  padding: 92px 0 48px;
}

.section-header {
  display: grid;
  max-width: 780px;
  gap: 14px;
  margin-bottom: 26px;
}

.section-header.compact {
  max-width: 620px;
}

.section-header h2,
.skin-copy h2 {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 18px;
}

.profile-shot,
.hero-pool-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: #1d294f;
  box-shadow: 8px 8px 0 var(--shadow);
}

.profile-shot::after,
.hero-pool-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(var(--accent-rgb), 0.18) 58% 59%, transparent 59%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.profile-shot img,
.hero-pool-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-shot {
  min-height: 520px;
}

.profile-shot img {
  object-position: center;
}

.bio-panel,
.loadout-panel {
  padding: clamp(22px, 4vw, 42px);
}

.bio-panel {
  display: grid;
  gap: 18px;
  background: var(--surface-strong);
  border-color: var(--ink);
}

.loadout-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), transparent 52%),
    rgba(255, 255, 255, 0.68);
}

.loadout-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(5, 5, 5, 0.12);
  font-size: 13px;
}

.loadout-row:last-child {
  border-bottom: 0;
}

.loadout-row span {
  color: var(--muted);
}

.hero-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 18px;
  margin-top: 18px;
}

.hero-pool-shot {
  min-height: 430px;
}

.hero-pool-shot img {
  object-position: top center;
}

.hero-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 280px;
  padding: clamp(20px, 3vw, 34px);
}

.hero-card.featured {
  grid-row: span 2;
  min-height: 578px;
  color: var(--accent);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), transparent 52%),
    var(--ink);
  border-color: var(--ink);
}

.hero-card.featured .label,
.hero-card.featured p,
.hero-card.featured dt {
  color: rgba(var(--accent-rgb), 0.78);
}

.hero-card.offset {
  transform: translateX(-34px);
}

.hero-card h3 {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

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

.hero-card dl div {
  border-top: 1px solid currentColor;
  padding-top: 12px;
}

.hero-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero-card dd {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}

.skins-section {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
}

.skin-visual {
  min-height: 620px;
  border: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), 0.18) 0 1px, transparent 1px 32px),
    linear-gradient(135deg, #111 0 45%, #dedede 45% 100%);
  box-shadow: 8px 8px 0 var(--shadow);
}

.skin-frame {
  position: relative;
  width: min(74%, 360px);
  height: 72%;
  margin: 15% auto;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.58), transparent 24%),
    rgba(0, 0, 0, 0.58);
}

.skin-light {
  position: absolute;
  inset: 12%;
  background: linear-gradient(135deg, transparent 0 35%, rgba(255, 255, 255, 0.75) 35% 48%, transparent 48%);
  animation: skinPulse 3.6s ease-in-out infinite;
}

.skin-copy {
  display: grid;
  gap: 18px;
}



.moment-tree {
  position: relative;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  min-height: 520px;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(5, 5, 5, 0.06) 1px, transparent 1px),
    rgba(244, 244, 244, 0.76);
  background-size: 42px 42px;
  box-shadow: 8px 8px 0 var(--shadow);
  isolation: isolate;
}

.moment-tree::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px dashed rgba(var(--accent-rgb), 0.42);
  transform: skewX(-6deg);
}

.moment-tree-lines {
  position: absolute;
  inset: 34px 0 auto;
  z-index: 0;
  width: 100%;
  height: min(420px, 74%);
  pointer-events: none;
}

.tree-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(5px 5px 0 rgba(var(--accent-rgb), 0.72));
}

.tree-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  border: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 5px),
    var(--surface-strong);
  box-shadow: 8px 8px 0 rgba(5, 5, 5, 0.18);
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  will-change: transform, opacity;
}

.tree-node::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(5, 5, 5, 0.28);
}

.tree-root {
  justify-self: center;
  width: min(440px, 100%);
  min-height: 178px;
  padding: clamp(20px, 3vw, 30px);
  text-align: center;
  background: var(--accent);
}

.tree-branch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  margin-top: auto;
}

.tree-branch {
  min-height: 250px;
  padding: clamp(20px, 3vw, 32px);
}

.tree-node span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tree-root span,
.tree-root p {
  color: rgba(5, 5, 5, 0.68);
}

.tree-node h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.tree-node p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.moment-tree.is-visible .tree-line {
  animation: treeLineDraw 820ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.moment-tree.is-visible .tree-line-left {
  animation-delay: 180ms;
}

.moment-tree.is-visible .tree-line-mid {
  animation-delay: 280ms;
}

.moment-tree.is-visible .tree-line-right {
  animation-delay: 380ms;
}

.moment-tree.is-visible .tree-node {
  animation: treeNodeIn 680ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.moment-tree.is-visible .tree-root {
  animation-delay: 80ms;
}

.moment-tree.is-visible .tree-branch-left {
  animation-delay: 420ms;
}

.moment-tree.is-visible .tree-branch-mid {
  animation-delay: 540ms;
}

.moment-tree.is-visible .tree-branch-right {
  animation-delay: 660ms;
}

.ticker {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(244, 244, 244, 0.76);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 200%;
  height: 42px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  animation: marquee 22s linear infinite;
}

.ticker b {
  color: var(--accent-deep);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-70%);
    opacity: 0;
  }
  45%,
  55% {
    opacity: 1;
  }
  100% {
    transform: translateY(70%);
  }
}

@keyframes arenaDrift {
  from {
    transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px), 0) scale(1.08);
  }
  to {
    transform: translate3d(calc(var(--mx) * -18px + 18px), calc(var(--my) * -12px - 10px), 0) scale(1.12);
  }
}

@keyframes ghostWake {
  from {
    opacity: 0;
    transform: translate3d(44px, -18px, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 8px), 0) scale(1);
  }
}

@keyframes panelDrop {
  from {
    opacity: 0;
    transform: translate3d(-48px, 28px, 0) skewX(-4deg);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 5px), 0) skewX(0);
  }
}

@keyframes titleStrike {
  from {
    opacity: 0;
    transform: translate3d(-36px, 0, 0) scaleX(0.78);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
}

@keyframes codeBlockIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translate3d(44px, -22px, 0) rotate(9deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0) rotate(2deg) scale(1);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes rankPop {
  from {
    opacity: 0;
    transform: rotate(-11deg) translate3d(18px, 18px, 0) scale(0.82);
  }
  to {
    opacity: 1;
    transform: rotate(-7deg) translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hudRise {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes commandIn {
  from {
    opacity: 0;
    transform: translate3d(36px, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(var(--mx) * -5px), calc(var(--my) * -4px), 0);
  }
}

@keyframes dockSlide {
  from {
    opacity: 0;
    transform: translate3d(0, 38px, 0) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(var(--mx) * 4px), calc(var(--my) * 3px), 0) rotate(-1deg);
  }
}

@keyframes beamFlicker {
  0%,
  100% {
    opacity: 0.62;
  }
  46% {
    opacity: 0.92;
  }
  52% {
    opacity: 0.42;
  }
}

@keyframes bladeIgnite {
  from {
    opacity: 0;
    scale: 0 1;
  }
  to {
    opacity: 1;
    scale: 1 1;
  }
}

@keyframes bladePulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg) scale(0.98);
  }
  to {
    transform: rotate(360deg) scale(1.02);
  }
}

@keyframes skinPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-6%);
  }
  50% {
    opacity: 0.95;
    transform: translateX(8%);
  }
}

@keyframes treeLineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes treeNodeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .tree-line {
    stroke-dashoffset: 0;
  }

  .tree-node {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1200px) {
  .page-flow {
    width: calc(100% - 24px);
    margin: 0 auto;
    padding-bottom: 86px;
  }

  .left-rail {
    display: none;
  }

  .right-nav {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    gap: 0;
    width: auto;
    padding: 8px;
    border-top: 1px solid var(--line);
    border-left: 0;
    background: rgba(217, 217, 217, 0.96);
  }

  .nav-link {
    padding: 10px 6px;
    text-align: center;
    font-size: 9px;
  }

  .profile-grid,
  .skins-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    display: grid;
    gap: 16px;
    min-height: auto;
    padding: 16px;
  }

  .arena-bg img {
    object-position: 68% 50%;
  }

  .dossier-panel,
  .hero-bottom-deck,
  .profile-orbit,
  .hero-hud,
  .command-stack,
  .roster-dock {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .hero-bottom-deck {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dossier-panel {
    max-width: 620px;
  }

  .profile-orbit {
    justify-self: end;
    width: min(360px, 72vw);
  }

  .hero-hud {
    max-width: 620px;
  }

  .command-stack {
    max-width: 560px;
    justify-self: end;
  }

  .roster-dock {
    grid-template-columns: 160px minmax(0, 1fr);
    max-width: 720px;
    justify-self: center;
  }

  .rank-plate {
    right: -8px;
    bottom: -14px;
  }

  .stats-strip,
  .tree-branch-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moment-tree {
    min-height: auto;
  }

  .moment-tree-lines {
    display: none;
  }

  .tree-branch-row {
    position: relative;
  }

  .tree-branch-row::before {
    content: "";
    position: absolute;
    top: -18px;
    bottom: 18px;
    left: 18px;
    width: 1px;
    background: var(--ink);
    box-shadow: 4px 0 0 rgba(var(--accent-rgb), 0.52);
  }

  .tree-branch {
    padding-left: clamp(36px, 6vw, 48px);
  }

  .tree-branch::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 18px;
    width: 18px;
    height: 1px;
    background: var(--ink);
    box-shadow: 0 4px 0 rgba(var(--accent-rgb), 0.52);
  }

  .skin-visual {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .topbar {
    font-size: 9px;
  }

  .topbar-hide {
    display: none;
  }

  .hero-section {
    padding: 12px;
  }

  .hero-ghost {
    right: -18vw;
    top: 8vw;
    font-size: clamp(6.8rem, 30vw, 9rem);
  }

  .target-ring {
    display: none;
  }

  .energy-beam {
    width: 100vw;
  }

  .dossier-panel {
    width: 100%;
    gap: 14px;
    padding: 18px;
    clip-path: none;
  }

  .dossier-panel h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .profile-orbit {
    justify-self: center;
    width: min(310px, 84vw);
  }

  .command-stack,
  .hero-hud,
  .roster-dock {
    max-width: none;
    justify-self: stretch;
  }

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

  .hud-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(5, 5, 5, 0.24);
  }

  .hud-stat:last-child {
    border-bottom: 0;
  }

  .roster-dock {
    grid-template-columns: 1fr;
  }

  .roster-dock img {
    height: 150px;
  }

  .rank-plate {
    width: 176px;
    padding: 14px 16px;
  }

  .rank-plate strong {
    font-size: 32px;
  }

  .stats-strip,
  .hero-cards,
  .tree-branch-row {
    grid-template-columns: 1fr;
  }

  .hero-card.featured {
    grid-row: auto;
    min-height: 360px;
  }

  .hero-card.offset {
    transform: none;
  }

  .profile-section,
  .heroes-section,
  .skins-section,
  .moments-section {
    min-height: auto;
    padding: 72px 0 32px;
  }

  .section-header h2,
  .skin-copy h2 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .moment-tree {
    gap: 14px;
    padding: 12px;
  }

  .moment-tree::before {
    display: none;
  }

  .tree-root,
  .tree-branch {
    min-height: 0;
  }

  .tree-node h3 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }
}

/* ==========================================================================
   KT NEW INTERACTIVE FEATURES CSS
   ========================================================================== */

/* 1. Lobby Status Widget & Select */
.lobby-status-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 5, 5, 0.08);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 28px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  transition: all 0.3s ease;
}

.status-indicator-dot.ready {
  background-color: var(--accent);
  color: var(--accent);
}

.status-indicator-dot.ingame {
  background-color: #ff3b30;
  color: #ff3b30;
}

.status-indicator-dot.lfg {
  background-color: #007aff;
  color: #007aff;
}

.lobby-status-select {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  padding: 0 4px;
}

.lobby-timer {
  font-size: 11px;
  font-weight: 800;
  color: #ff3b30;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

.lobby-timer.hidden {
  display: none;
}

.lfg-invite-btn {
  background: var(--ink);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.lfg-invite-btn:hover {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 8px var(--accent);
}

.lfg-invite-btn.hidden {
  display: none;
}


/* 2. Cyber Toast System */
.cyber-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(5, 5, 5, 0.95);
  border: 1.5px solid var(--accent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 0 14px rgba(var(--accent-rgb), 0.15);
  padding: 14px 18px;
  transform: translateY(120px) skewX(-6deg);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.cyber-toast.is-show {
  transform: translateY(0) skewX(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-indicator {
  width: 6px;
  height: 18px;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.toast-indicator.success {
  background-color: var(--accent);
}

.toast-indicator.warning {
  background-color: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
}

.toast-indicator.info {
  background-color: #007aff;
  box-shadow: 0 0 8px #007aff;
}

.toast-msg {
  color: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}


/* 3. Hero Cards button styling inside heroes-section */
.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.build-btn {
  margin-top: 18px;
  width: fit-content;
  align-self: flex-start;
}


/* 4. Cyber Modal / Drawer */
.cyber-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cyber-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(8px);
}

.cyber-modal-container {
  position: relative;
  z-index: 10;
  width: min(90%, 650px);
  max-height: 85vh;
  overflow-y: auto;
  background: #0d1222;
  border: 2px solid var(--accent);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.28);
  padding: 30px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  transform: scale(0.9) skewY(1deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-modal.is-open .cyber-modal-container {
  transform: scale(1) skewY(0);
}

.cyber-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.24);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.modal-title-wrap h2 {
  font-family: var(--display);
  font-size: 38px;
  color: var(--accent);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--surface);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 8px;
}

.modal-close-btn:hover {
  color: var(--accent);
}

.cyber-modal-body {
  display: grid;
  gap: 24px;
}

.build-title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  border-left: 2.5px solid var(--accent);
  padding-left: 8px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.item-card-slot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-card-slot .slot-num {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
}

.item-card-slot .item-name {
  font-size: 13px;
  font-weight: 900;
  color: var(--surface);
}

.build-details-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.arcana-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.arcana-list li {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(244, 244, 244, 0.8);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 8px;
}

.enchantment-badge {
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px dashed var(--accent);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.enchantment-main {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
}

.enchantment-desc {
  font-size: 10px;
  line-height: 1.4;
  color: rgba(244, 244, 244, 0.6);
}

.strategy-section p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 244, 244, 0.76);
  background: rgba(5, 5, 5, 0.38);
  padding: 12px;
  border-left: 2px solid var(--accent);
}


/* 5. Counter Picker styling */
.counter-picker-wrap {
  margin-top: 56px;
  border: 1.5px dashed var(--line);
  padding: 34px;
  background: rgba(255, 255, 255, 0.03);
}

.counter-picker-header {
  margin-bottom: 24px;
}

.counter-picker-header h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 950;
  margin-top: 4px;
}

.counter-picker-header p {
  color: var(--muted);
  font-size: 13px;
}

.counter-picker-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.enemy-select-box {
  display: grid;
  gap: 8px;
}

.enemy-select-box label {
  font-size: 10px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.custom-select-wrapper {
  position: relative;
}

.enemy-select {
  width: 100%;
  padding: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  appearance: none;
  border-radius: 0;
}

.custom-select-wrapper::after {
  content: "▼";
  font-size: 10px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.counter-result-card {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  min-height: 200px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-placeholder {
  text-align: center;
  color: rgba(244, 244, 244, 0.4);
}

.result-placeholder span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.result-placeholder p {
  font-size: 12px;
  margin-top: 8px;
}

.result-content {
  display: grid;
  gap: 16px;
}

.result-content.hidden {
  display: none;
}

.my-pick-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.my-pick-badge strong {
  font-family: var(--display);
  font-size: 34px;
  color: var(--accent);
  font-weight: 950;
  line-height: 1;
}

.counter-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.counter-details p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 244, 244, 0.74);
}

.counter-stats {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.c-stat {
  display: grid;
  gap: 4px;
}

.c-stat span {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
}

.c-stat strong {
  font-size: 16px;
  font-weight: 900;
}

.accent-text {
  color: var(--accent);
}

.diff-easy {
  color: var(--accent);
}

.diff-medium {
  color: #ffcc00;
}

.diff-hard {
  color: #ff3b30;
}


/* 6. Updated Skins Styles */
.skin-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.skin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.skin-item-card {
  position: relative;
  background: rgba(18, 24, 40, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  backdrop-filter: blur(12px);
}

.skin-item-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Card theme colors when ACTIVE */
.skin-item-card[data-skin="nakroth"].active {
  background: rgba(255, 0, 119, 0.08);
  border-color: #ff0077;
  box-shadow: 
    0 0 20px rgba(255, 0, 119, 0.32),
    inset 0 0 12px rgba(255, 0, 119, 0.15);
}
.skin-item-card[data-skin="nakroth"].active h4 {
  color: #ff3399;
  text-shadow: 0 0 8px rgba(255, 51, 153, 0.5);
}

.skin-item-card[data-skin="tulen"].active {
  background: rgba(0, 240, 255, 0.08);
  border-color: #00f0ff;
  box-shadow: 
    0 0 20px rgba(0, 240, 255, 0.32),
    inset 0 0 12px rgba(0, 240, 255, 0.15);
}
.skin-item-card[data-skin="tulen"].active h4 {
  color: #33f0ff;
  text-shadow: 0 0 8px rgba(51, 240, 255, 0.5);
}

.skin-item-card[data-skin="raz"].active {
  background: rgba(255, 119, 0, 0.08);
  border-color: #ff7700;
  box-shadow: 
    0 0 20px rgba(255, 119, 0, 0.32),
    inset 0 0 12px rgba(255, 119, 0, 0.15);
}
.skin-item-card[data-skin="raz"].active h4 {
  color: #ff9933;
  text-shadow: 0 0 8px rgba(255, 153, 51, 0.5);
}

.skin-item-card h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: rgba(244, 244, 244, 0.7);
  line-height: 1.25;
  transition: all 0.25s ease;
}

.skin-grade {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 3px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.1) !important;
  letter-spacing: 0.06em;
  line-height: 1 !important;
  color: #ffffff !important;
}

.grade-sss {
  background: linear-gradient(90deg, #ff0077, #aa00ff) !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 0, 119, 0.6) !important;
}

.grade-ss {
  background: linear-gradient(90deg, #00f0ff, #0072ff) !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5) !important;
}


/* ==========================================================================
   KT RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 900px) {
  .counter-picker-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .build-details-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cyber-modal-container {
    padding: 20px;
    width: 92%;
    max-height: 90vh;
  }
  
  .modal-title-wrap h2 {
    font-size: 28px;
  }

  .counter-picker-wrap {
    padding: 18px;
    margin-top: 36px;
  }

  .counter-picker-header h3 {
    font-size: 22px;
  }

  .counter-result-card {
    padding: 16px;
    min-height: 180px;
  }

  .my-pick-badge strong {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .lobby-status-container {
    gap: 4px;
    padding: 2px 6px;
    height: 24px;
  }

  .lobby-status-select {
    font-size: 9px;
  }

  .lobby-timer {
    font-size: 9px;
  }

  .lfg-invite-btn {
    padding: 1px 4px;
    font-size: 8px;
  }

  .skin-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
  }

  .skin-item-card {
    padding: 10px;
    gap: 8px;
  }

  .skin-item-card h4 {
    font-size: 13px;
  }

  .skin-grade {
    font-size: 8px !important;
    padding: 2px 6px !important;
  }

  .cyber-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    padding: 10px 14px;
  }
}
