/* ───────────────────────────── tokens ───────────────────────────── */
:root {
  --ink: #0b0a12;
  --bg: #0b0a12;
  --paper: #f6f3ea;
  --muted: rgba(246, 243, 234, 0.66);
  --faint: rgba(246, 243, 234, 0.14);
  --lime: #c8f53a;
  --pink: #ff4fa3;
  --violet: #7a5cff;
  --orange: #ff8a3d;
  --cyan: #33e1ea;
  --yellow: #ffd23f;
  --red: #ff4b4b;
  --green: #3ee08f;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ───────────────────────────── chrome ───────────────────────────── */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--pink));
  z-index: 60; transition: width 0.1s linear;
}
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  background: linear-gradient(to bottom, rgba(11, 10, 18, 0.85), rgba(11, 10, 18, 0));
  backdrop-filter: blur(6px);
}
.brand {
  font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 0.02em;
  color: var(--paper); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--lime); }
.years {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px;
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.years::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--faint); background: rgba(255, 255, 255, 0.05);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--paper);
  transition: transform 0.2s var(--bounce), background 0.2s;
}
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }
.chip.active { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.tooltip {
  position: fixed; z-index: 80; pointer-events: none;
  background: var(--paper); color: var(--ink);
  border-radius: 10px; padding: 8px 11px; font-size: 13px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(0.96);
  transition: opacity 0.12s, transform 0.12s; max-width: 260px;
}
.tooltip.on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.tooltip b { font-weight: 800; }

/* ───────────────────────────── slides ───────────────────────────── */
.slide {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 20px 90px;
  isolation: isolate;
}
.content { position: relative; z-index: 2; width: min(1120px, 100%); }
.center { text-align: center; }
.bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.kicker {
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.85; margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 6vw, 76px); font-weight: 900; }
h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 22px); line-height: 1.45; max-width: 760px; margin: 18px 0 0; }
.center .lead { margin-left: auto; margin-right: auto; }
.quip { font-size: clamp(15px, 1.6vw, 18px); font-style: italic; opacity: 0.8; margin-top: 14px; }
.hl { color: var(--lime); }
.mega {
  font-family: var(--display); font-weight: 900; line-height: 0.88; letter-spacing: -0.05em;
  font-size: clamp(110px, 24vw, 330px); margin: 8px 0;
}

/* themes */
.t-dark { background: var(--bg); }
.t-violet { background: var(--violet); }
.t-lime { background: var(--lime); color: var(--ink); }
.t-pink { background: var(--pink); color: var(--ink); }
.t-orange { background: var(--orange); color: var(--ink); }
.t-cyan { background: var(--cyan); color: var(--ink); }
.t-yellow { background: var(--yellow); color: var(--ink); }
.t-red { background: #1a0508; }
.t-lime .hl, .t-pink .hl, .t-orange .hl, .t-cyan .hl, .t-yellow .hl { color: var(--ink); background: var(--paper); padding: 0 0.18em; border-radius: 0.15em; }

/* blobs */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  animation: blob 18s ease-in-out infinite alternate;
}
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, -6vh) scale(1.2); }
  100% { transform: translate(-6vw, 8vh) scale(0.9); }
}
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dots {
  position: absolute; inset: 0; opacity: 0.18;
  background-image: radial-gradient(currentColor 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}

/* floating covers */
.floater {
  position: absolute; width: var(--w, 120px); z-index: 0; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: bob var(--dur, 7s) ease-in-out infinite alternate;
}
.floater img { transform: rotate(var(--rot, 0deg)); }
@keyframes bob { from { translate: 0 -12px; } to { translate: 0 12px; } }

/* ───────────────────────────── reveal animations ───────────────────────────── */
.rv { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.up { transform: translateY(60px); }
.rv.down { transform: translateY(-60px); }
.rv.left { transform: translateX(-80px); }
.rv.right { transform: translateX(80px); }
.rv.zoom { transform: scale(0.6); }
.rv.pop { transform: scale(0.3) rotate(-12deg); transition-timing-function: var(--bounce); }
.rv.blur { filter: blur(18px); transform: scale(1.1); }
.rv.flip { transform: perspective(800px) rotateY(80deg); }
.rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .floater, .blob, .marquee-track { animation: none !important; }
}

/* ───────────────────────────── hero ───────────────────────────── */
.hero { background: #120f22; }
.marquee {
  position: absolute; inset: -20% -20%; display: flex; flex-direction: column; gap: 22px;
  transform: rotate(-9deg); opacity: 0.55;
}
.marquee-row { display: flex; width: max-content; }
.marquee-track { display: flex; gap: 22px; padding-right: 22px; animation: scroll var(--speed, 60s) linear infinite; }
.marquee-row.rev .marquee-track { animation-direction: reverse; }
.marquee-track img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
@keyframes scroll { to { transform: translateX(-100%); } }
.hero .shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 10, 18, 0.88) 0%, rgba(11, 10, 18, 0.65) 45%, rgba(11, 10, 18, 0.2) 100%);
}
.hero h1 { font-size: clamp(44px, 9vw, 120px); font-weight: 900; }
.hero h1 .year {
  display: inline-block;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--pink), var(--lime));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.hero .who { font-family: var(--display); font-size: clamp(16px, 2vw, 22px); font-weight: 600; opacity: 0.9; }
.scroll-hint { margin-top: 48px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.scroll-hint .die { font-size: 42px; display: block; animation: roll 2.4s var(--bounce) infinite; margin-top: 8px; }
@keyframes roll { 0%, 60% { transform: translateY(0) rotate(0); } 75% { transform: translateY(14px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }

.loader { text-align: center; font-family: var(--display); }
.loader .die { font-size: 80px; animation: roll 1.2s var(--bounce) infinite; }

/* ───────────────────────────── stat tiles ───────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 46px; }
.tile {
  border-radius: var(--radius); padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.t-lime .tile, .t-pink .tile, .t-orange .tile, .t-cyan .tile, .t-yellow .tile { background: rgba(11, 10, 18, 0.08); border-color: rgba(11, 10, 18, 0.15); }
.tile .v { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; }
.tile .l { font-size: 14px; font-weight: 600; opacity: 0.8; margin-top: 4px; }
.tile .s { font-size: 13px; opacity: 0.65; margin-top: 8px; font-style: italic; }

/* ───────────────────────────── charts ───────────────────────────── */
.chart-card {
  margin-top: 40px; border-radius: var(--radius); padding: 26px 24px 18px;
  background: rgba(11, 10, 18, 0.35); border: 1px solid rgba(255, 255, 255, 0.1);
}
.t-lime .chart-card, .t-cyan .chart-card, .t-yellow .chart-card, .t-orange .chart-card, .t-pink .chart-card { background: rgba(11, 10, 18, 0.9); color: var(--paper); }
.chart-title { font-weight: 800; font-size: 15px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chart-title span { font-weight: 500; opacity: 0.6; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 240px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; cursor: default; }
.bar {
  width: 100%; max-width: 54px; border-radius: 6px 6px 2px 2px;
  background: var(--lime); height: 0; transition: height 1.1s var(--ease); transition-delay: var(--d, 0ms);
  position: relative;
}
.bar.dim { background: rgba(200, 245, 58, 0.45); }
.bar-col:hover .bar { filter: brightness(1.15); }
.bar-val { font-weight: 800; font-size: 13px; margin-bottom: 6px; min-height: 16px; opacity: 0; transition: opacity 0.4s 0.9s; }
.in .bar-val { opacity: 1; }
.bar-lbl { font-size: 12px; opacity: 0.6; margin-top: 8px; white-space: nowrap; }
.axis-line { height: 1px; background: rgba(255, 255, 255, 0.15); margin-top: -1px; }

/* calendar heatmap */
.cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 6px; }
.cal i { width: 13px; height: 13px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); display: block; transform: scale(0); transition: transform 0.4s var(--bounce); transition-delay: var(--d, 0ms); }
.in .cal i { transform: scale(1); }
.cal i.l1 { background: rgba(200, 245, 58, 0.3); }
.cal i.l2 { background: rgba(200, 245, 58, 0.55); }
.cal i.l3 { background: rgba(200, 245, 58, 0.8); }
.cal i.l4 { background: #c8f53a; }
.cal i.out { visibility: hidden; }
.legend { display: flex; align-items: center; gap: 5px; font-size: 12px; opacity: 0.75; margin-top: 12px; justify-content: flex-end; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* year × month grid */
.ym { display: grid; gap: 4px; font-size: 12px; align-items: center; }
.ym .c { aspect-ratio: 1.6; border-radius: 4px; background: rgba(255, 255, 255, 0.05); }
.ym .h { opacity: 0.6; text-align: center; overflow: hidden; white-space: nowrap; }
@media (max-width: 520px) {
  .ym .h { font-size: 0; }
  .ym .h::after { content: attr(data-s); font-size: 12px; }
}
.ym .y { opacity: 0.8; font-weight: 700; text-align: right; padding-right: 6px; }

/* ───────────────────────────── top game ───────────────────────────── */
.feature-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(14px) saturate(1.2); transform: scale(1.1); }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(11, 10, 18, 0.95) 25%, rgba(11, 10, 18, 0.55) 70%, rgba(11, 10, 18, 0.3)); }
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.feature .boxart { width: min(420px, 100%); margin: 0 auto; }
.tilt { transition: transform 0.2s ease-out; transform-style: preserve-3d; will-change: transform; }
.boxart img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 15%; border-radius: 50%; z-index: -1;
  background: var(--lime); filter: blur(60px); opacity: 0.5; animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.9); } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px;
  font-weight: 800; font-size: 13px; background: var(--lime); color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { border-radius: 999px; padding: 10px 16px; background: rgba(255, 255, 255, 0.1); font-weight: 700; font-size: 15px; }
.pill b { font-family: var(--display); }

/* ranking list */
.ranking { display: grid; gap: 12px; margin-top: 34px; }
.rank-row {
  display: grid; grid-template-columns: 64px 84px 1fr auto; gap: 18px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(11, 10, 18, 0.1);
}
.rank-row .n { font-family: var(--display); font-weight: 900; font-size: 46px; text-align: center; }
.rank-row img { width: 84px; height: 84px; object-fit: contain; transition: transform 0.3s var(--bounce); }
.rank-row:hover img { transform: scale(1.15) rotate(-6deg); }
.rank-row .name { font-weight: 800; font-size: clamp(16px, 2vw, 21px); }
.rank-row .sub { font-size: 13px; opacity: 0.7; margin-top: 3px; }
.rank-row .meter { height: 8px; border-radius: 99px; background: rgba(11, 10, 18, 0.12); margin-top: 9px; overflow: hidden; }
.rank-row .meter i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.rank-row .cnt { font-family: var(--display); font-weight: 900; font-size: 30px; text-align: right; }
.rank-row .cnt small { display: block; font-family: var(--body); font-size: 12px; font-weight: 600; opacity: 0.6; }

/* ───────────────────────────── cover wall ───────────────────────────── */
.wall-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.wall-controls .chip.active { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-auto-rows: 92px; grid-auto-flow: dense;
  gap: 10px; margin-top: 30px;
}
.wall .cv {
  position: relative; border-radius: 16px; background: rgba(255, 255, 255, 0.04); display: grid; place-items: center;
  transition: transform 0.35s var(--bounce), background 0.3s; cursor: pointer;
}
.wall .cv:hover { transform: scale(1.12) rotate(-3deg); z-index: 3; background: rgba(255, 255, 255, 0.12); }
.wall .cv img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.wall .cv.s2 { grid-column: span 2; grid-row: span 2; }
.wall .cv.s3 { grid-column: span 3; grid-row: span 3; }
.wall .cv .ct {
  position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 800; background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 2px 7px;
}
.wall .cv .sw { position: absolute; left: 8px; bottom: 8px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--paper); display: none; }
.wall.by-colour .cv .sw { display: block; }
.wall .cv.new::before {
  content: "NEW"; position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 900; letter-spacing: 0.06em;
  background: var(--lime); color: var(--ink); border-radius: 6px; padding: 2px 6px; z-index: 2;
}
.wall .cv.fl { animation: flipIn 0.6s var(--bounce) both; animation-delay: var(--d, 0ms); }
@keyframes flipIn { from { opacity: 0; transform: perspective(600px) rotateY(90deg) scale(0.6); } }

/* new games strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.strip .cv { width: 120px; text-align: center; font-size: 12px; font-weight: 700; }
.strip .cv img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35)); transition: transform 0.3s var(--bounce); }
.strip .cv:hover img { transform: translateY(-8px) rotate(4deg); }
.strip .cv span { display: block; margin-top: 6px; line-height: 1.25; }

/* ───────────────────────────── DNA ───────────────────────────── */
.dna { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; }
.hbar .track { height: 26px; border-radius: 8px; background: rgba(11, 10, 18, 0.12); overflow: hidden; }
.hbar .fill { height: 100%; width: 0; border-radius: 8px; background: var(--ink); transition: width 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.hbar .pc { font-family: var(--display); font-weight: 800; text-align: right; }
.persona {
  margin-top: 30px; border-radius: 28px; padding: 30px; background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
.persona .emoji { font-size: 92px; line-height: 1; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.08); } }
.persona h3 { font-size: clamp(28px, 4vw, 48px); color: var(--lime); }
.persona p { margin: 10px 0 0; font-size: 17px; line-height: 1.45; opacity: 0.9; }
.weight { display: flex; height: 54px; border-radius: 14px; overflow: hidden; gap: 2px; margin-top: 14px; background: transparent; }
.weight div { display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink); min-width: 0; overflow: hidden; white-space: nowrap; transition: flex-grow 1.2s var(--ease); }
.weight-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.weight-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ───────────────────────────── people ───────────────────────────── */
.bestie { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.avatar {
  width: var(--s, 64px); height: var(--s, 64px); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: calc(var(--s, 64px) * 0.38); color: var(--ink);
  background: var(--c, var(--lime)); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}
.avatar.big { --s: clamp(160px, 22vw, 260px); box-shadow: 0 0 0 10px rgba(11, 10, 18, 0.15), 0 0 0 22px rgba(11, 10, 18, 0.07); animation: bob 4s ease-in-out infinite alternate; }
.name-xl { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 8vw, 104px); letter-spacing: -0.04em; line-height: 0.95; word-break: break-word; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 40px; }
.mate { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(11, 10, 18, 0.1); transition: transform 0.3s var(--bounce); }
.mate:hover { transform: translateY(-4px) rotate(-1deg); }
.mate .nm { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mate .mt { font-size: 13px; opacity: 0.75; margin-top: 2px; }
.mate .fav { width: 40px; height: 40px; object-fit: contain; margin-left: auto; }

.versus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.vs-card {
  border-radius: 26px; padding: 26px 22px; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.vs-card.nemesis { background: linear-gradient(160deg, #ff4b4b, #7a0b22); }
.vs-card.victim { background: linear-gradient(160deg, #3ee08f, #0b5b46); color: var(--ink); }
.vs-card.rival { background: linear-gradient(160deg, #7a5cff, #2b1a7a); }
.vs-card .tag { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.vs-card .who { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin: 14px 0 6px; word-break: break-word; }
.vs-card .rec { font-family: var(--display); font-weight: 800; font-size: 20px; }
.vs-card p { font-size: 15px; line-height: 1.4; margin: 12px 0 0; opacity: 0.92; }
.vs-card .ico { position: absolute; right: -10px; top: -14px; font-size: 110px; opacity: 0.18; transform: rotate(14deg); }
.vs-card img { width: 64px; height: 64px; object-fit: contain; margin-top: 14px; }

/* ───────────────────────────── winning ───────────────────────────── */
.winwrap { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; margin-top: 30px; }
.ring { position: relative; width: clamp(220px, 30vw, 320px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 16; }
.ring .trk { stroke: rgba(11, 10, 18, 0.15); }
.ring .val { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1.8s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font-family: var(--display); font-size: clamp(50px, 7vw, 84px); font-weight: 900; display: block; line-height: 1; }
.ring .lbl span { font-weight: 700; font-size: 14px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.gcard { display: flex; gap: 16px; align-items: center; border-radius: 22px; padding: 18px; background: rgba(11, 10, 18, 0.1); }
.gcard img { width: 90px; height: 90px; object-fit: contain; flex-shrink: 0; }
.gcard .tag { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.gcard .nm { font-weight: 800; font-size: 18px; margin: 4px 0; }
.gcard p { margin: 0; font-size: 14px; opacity: 0.8; }

/* ───────────────────────────── records ───────────────────────────── */
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.rec-card {
  border-radius: 24px; padding: 22px; position: relative; overflow: hidden; min-height: 210px;
  display: flex; flex-direction: column; color: var(--ink);
  transition: transform 0.35s var(--bounce);
}
.rec-card:hover { transform: translateY(-6px) rotate(-1.2deg); }
.rec-card .em { font-size: 34px; }
.rec-card .v { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -0.03em; margin-top: 10px; line-height: 1.05; }
.rec-card .v { margin-right: -48px; overflow-wrap: break-word; hyphens: manual; }
.rec-card .v.long { font-size: 26px; }
.rec-card .t { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; margin-top: 6px; }
.rec-card p { margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.rec-card img { position: absolute; right: -14px; bottom: -14px; width: 110px; opacity: 0.9; transform: rotate(-10deg); transition: transform 0.4s var(--bounce); }
.rec-card:hover img { transform: rotate(4deg) scale(1.1); }
.rec-card .txt { position: relative; z-index: 1; padding-right: 60px; }

/* ───────────────────────────── eras ───────────────────────────── */
.eras { display: grid; gap: 10px; margin-top: 40px; }
.era {
  display: grid; grid-template-columns: 90px 1fr 70px 200px; gap: 16px; align-items: center;
  padding: 10px 14px; border-radius: 18px; text-decoration: none; color: inherit; background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, transform 0.3s var(--bounce);
}
.era:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(8px); }
.era .yr { font-family: var(--display); font-weight: 900; font-size: 28px; }
.era .track { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.era .track i { display: block; height: 100%; width: 0; background: var(--cyan); border-radius: 8px; transition: width 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.era .n { font-family: var(--display); font-weight: 800; font-size: 20px; text-align: right; }
.era .top { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; min-width: 0; }
.era .top img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.era .top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delta { display: inline-block; font-family: var(--display); font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.9em; }

/* ───────────────────────────── outro poster ───────────────────────────── */
.poster {
  width: min(560px, 100%); margin: 40px auto 0; border-radius: 30px; padding: 30px 28px; text-align: left;
  background: linear-gradient(150deg, var(--violet), var(--pink) 60%, var(--orange));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); position: relative; overflow: hidden;
}
/* card flip on reveal + glass glints afterwards */
.poster.rv.pop { transform: perspective(1400px) rotateY(-110deg) scale(0.85); transition-duration: 1.1s; }
.poster.rv.pop.in { transform: none; }
.poster::before {
  content: ""; position: absolute; inset: -40%; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.08) 43%, rgba(255, 255, 255, 0.55) 48%, rgba(180, 240, 255, 0.35) 50%,
    rgba(255, 180, 240, 0.3) 52%, rgba(255, 255, 255, 0.08) 57%, transparent 62%);
  mix-blend-mode: overlay; transform: translateX(-60%);
}
.poster.shiny { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: cardTilt 7s 0.2s ease-in-out infinite; }
.poster.shiny::before { animation: glint 7s ease-in-out infinite; }
@keyframes glint {
  0% { opacity: 1; transform: translateX(-60%); }
  16% { opacity: 1; transform: translateX(60%); }
  17%, 100% { opacity: 0; transform: translateX(60%); }
}
@keyframes cardTilt {
  0%, 100% { transform: perspective(1400px) rotateY(0) rotateX(0); }
  7% { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
  15% { transform: perspective(1400px) rotateY(3deg) rotateX(-1deg); }
  22% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .poster.shiny, .poster.shiny::before { animation: none; } }
.poster::after { content: "🎲"; position: absolute; right: -20px; top: -30px; font-size: 160px; opacity: 0.15; transform: rotate(18deg); }
.poster .covers { display: flex; margin-bottom: 22px; padding-right: 18px; }
.poster .covers img { flex: 0 1 92px; min-width: 0; width: 92px; height: auto; aspect-ratio: 1; object-fit: contain; margin-right: -18px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4)); }
.poster .covers img:nth-child(odd) { transform: rotate(-6deg); }
.poster .covers img:nth-child(even) { transform: rotate(5deg) translateY(6px); }
.poster .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.poster .k { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.poster .val { font-family: var(--display); font-weight: 800; font-size: 20px; margin-top: 4px; line-height: 1.15; word-break: break-word; }
.poster .val.big { font-size: 42px; font-weight: 900; }
.poster .foot { margin-top: 24px; font-family: var(--display); font-weight: 800; font-size: 13px; display: flex; justify-content: space-between; opacity: 0.9; }
.outro-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 860px) {
  .feature, .bestie, .winwrap, .dna, .duo { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .bestie { text-align: center; justify-items: center; }
  .winwrap { justify-items: center; }
  .era { grid-template-columns: auto 1fr auto; gap: 12px; }
  .era .yr { font-size: 22px; min-width: 3.3em; }
  .era .n { font-size: 18px; min-width: 2.6em; }
  .era .track { height: 24px; }
  .era .top { display: none; }
  .rank-row { grid-template-columns: 40px 60px 1fr auto; gap: 10px; }
  .rank-row .n { font-size: 30px; }
  .rank-row img { width: 60px; height: 60px; }
  .hbar { grid-template-columns: 110px 1fr 42px; font-size: 13px; }
  .persona { grid-template-columns: 1fr; text-align: center; }
  .bars { gap: 3px; height: 200px; }
  .bar-lbl { font-size: 10px; }
  .slide { padding: 100px 16px 70px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); grid-auto-rows: 72px; }
}

/* ───────────────────────────── multi-player ───────────────────────────── */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; margin-right: 12px; box-shadow: 0 0 0 3px var(--lime); }
.plink { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 0.08em; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.25s; }
.plink:hover { background-size: 100% 0.4em; }
.player-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.12); }
.player-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.player-chip span { opacity: 0.6; }

.landing { align-items: flex-start; }
.landing .content { padding-top: 6vh; }
.search { margin: 34px auto 0; max-width: 460px; }
.search input {
  width: 100%; font: 700 18px var(--body); color: var(--paper); text-align: center;
  padding: 16px 22px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 10, 18, 0.6); backdrop-filter: blur(8px); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.search input:focus { border-color: var(--lime); box-shadow: 0 0 0 6px rgba(200, 245, 58, 0.18); }
.groups { margin-top: 30px; text-align: left; }
.group-title { margin: 46px 0 16px; font-size: clamp(22px, 3vw, 32px); }
.group-title span { font-family: var(--body); font-size: 14px; font-weight: 600; opacity: 0.6; margin-left: 10px; letter-spacing: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pcard {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 70px 14px 18px; border-radius: 24px; text-decoration: none; color: var(--paper); overflow: hidden;
  background: rgba(20, 17, 36, 0.82); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px);
  transition: transform 0.35s var(--bounce), border-color 0.2s, background 0.2s;
}
.pcard:hover { transform: translateY(-8px) rotate(-1.5deg); border-color: var(--lime); background: rgba(30, 26, 52, 0.92); }
.pcard-covers { position: absolute; top: 8px; left: 0; right: 0; display: flex; justify-content: center; opacity: 0.8; }
.pcard-covers img { width: 64px; height: 64px; object-fit: contain; margin: 0 -8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); transition: transform 0.35s var(--bounce); }
.pcard-covers img:nth-child(1) { transform: rotate(-12deg); }
.pcard-covers img:nth-child(3) { transform: rotate(12deg); }
.pcard:hover .pcard-covers img:nth-child(1) { transform: rotate(-22deg) translate(-8px, -4px); }
.pcard:hover .pcard-covers img:nth-child(3) { transform: rotate(22deg) translate(8px, -4px); }
.pcard .avatar { position: relative; z-index: 1; box-shadow: 0 0 0 4px rgba(20, 17, 36, 1), 0 0 0 6px rgba(255, 255, 255, 0.2); }
.pcard-name { font-family: var(--display); font-weight: 800; font-size: 18px; margin-top: 6px; word-break: break-word; }
.pcard-meta { font-size: 13px; opacity: 0.7; }
.pcard-meta b { color: var(--yellow); }

/* ───────────────────────────── contrast fixes for bars on dark cards ───────────────────────────── */
.chart-card .hbar .track { background: rgba(255, 255, 255, 0.08); }
.chart-card .hbar .fill { background: var(--lime); }
.t-pink .chart-card .hbar .fill { background: var(--pink); }
.weight { min-height: 54px; }

/* ───────────────────────────── clickable records + modal ───────────────────────────── */
button.rec-card { font: inherit; text-align: left; border: 0; cursor: pointer; width: 100%; }
button.rec-card:disabled { cursor: default; }
.rec-card .more { position: relative; z-index: 1; margin-top: auto; padding-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; transition: opacity 0.2s, transform 0.2s; }
.rec-card:hover .more { opacity: 1; transform: translateX(4px); }
.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 4, 10, 0.72); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal.on { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(720px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column;
  background: #17142a; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); transform: translateY(30px) scale(0.96); transition: transform 0.35s var(--bounce);
}
.modal.on .modal-card { transform: none; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.modal-head h3 { font-size: 20px; text-transform: capitalize; }
.modal-head span { opacity: 0.6; font-size: 14px; font-weight: 600; }
.modal-x { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); cursor: pointer; font-size: 16px; }
.modal-x:hover { background: var(--pink); color: var(--ink); }
.modal-list { overflow-y: auto; padding: 8px 22px 22px; }
.gd { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gd:last-child { border-bottom: 0; }
.gd > img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.gd h4 { margin: 0; font-family: var(--display); font-size: 18px; }
.gd-meta { font-size: 13px; opacity: 0.7; margin-top: 4px; }
.gd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gb { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.gb.r-W { background: var(--lime); color: var(--ink); }
.gb.r-L { background: var(--red); color: var(--ink); }
.gb.r-D { background: var(--yellow); color: var(--ink); }
.gb.tb { background: var(--cyan); color: var(--ink); }
.gd-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.gd-table td { padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.gd-table td:first-child { width: 48px; opacity: 0.7; font-weight: 700; }
.gd-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.gd-table tr.me td { background: rgba(200, 245, 58, 0.12); }
.gd-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.gd-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .gd { grid-template-columns: 64px 1fr; } .gd > img { width: 64px; height: 64px; } }

/* ───────────────────────────── group pages ───────────────────────────── */
.group-link { float: right; font-family: var(--body); font-size: 14px; font-weight: 800; color: var(--ink); background: var(--lime); padding: 8px 14px; border-radius: 999px; text-decoration: none; letter-spacing: 0; transition: transform 0.25s var(--bounce); }
.group-link:hover { transform: translateY(-2px) rotate(-2deg); }
.hero-avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px auto 0; max-width: 820px; }
.hero-avatars a { transition: transform 0.3s var(--bounce); }
.hero-avatars a:hover { transform: translateY(-6px) scale(1.08); }
.hbar.person > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbar.person .avatar { box-shadow: none; }
.hbar.person { grid-template-columns: 190px 1fr 64px; }

.graph-card { margin-top: 30px; border-radius: 30px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.graph { width: 100%; height: auto; display: block; }
.graph .edge { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.4s var(--ease), opacity 0.25s, stroke 0.25s; transition-delay: var(--d, 0ms), 0ms, 0ms; cursor: pointer; }
.in .graph .edge { stroke-dashoffset: 0; }
.graph .node { cursor: pointer; }
.graph .node > * { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--bounce); transition-delay: var(--d, 0ms); }
.in .graph .node > * { transform: scale(1); }
.graph .node text { fill: var(--paper); font-family: var(--display); font-weight: 800; }
.graph .node .nlabel { font-size: 17px; paint-order: stroke; stroke: var(--bg); stroke-width: 5px; }
.graph.focus .edge:not(.hot) { opacity: 0.06 !important; }
.graph.focus .edge.hot { opacity: 0.95 !important; }
.graph.focus .node:not(.hot) { opacity: 0.25; }
.graph .node, .graph .edge { transition-property: stroke-dashoffset, opacity, stroke; }

.duo-big { display: flex; }
.duo-big .avatar.big { --s: clamp(120px, 15vw, 190px); }
.duo-big .avatar.big + .avatar.big { margin-left: -40px; animation-delay: -2s; }
.duo-av { display: flex; flex-shrink: 0; }
.duo-av .avatar + .avatar { margin-left: -12px; }
.lineups { display: grid; gap: 10px; margin-top: 20px; }
.lineup { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(11, 10, 18, 0.1); }
.lu-av { display: flex; }
.lu-av .avatar + .avatar { margin-left: -10px; }
.lu-txt { font-weight: 800; font-size: 15px; }
.lu-n { font-family: var(--display); font-weight: 900; font-size: 26px; }

.factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.faction { border-radius: 26px; padding: 24px; background: rgba(255, 255, 255, 0.06); border: 2px solid var(--fc); box-shadow: 0 0 40px color-mix(in srgb, var(--fc) 25%, transparent); }
.faction .tag { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fc); }
.faction h3 { margin: 8px 0 16px; font-size: 26px; }
.f-members { display: grid; gap: 10px; }
.f-m { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: center; }
.f-m .avatar { grid-row: span 2; }
.f-m span { font-weight: 800; }
.f-m small { font-size: 12px; opacity: 0.65; }
.faction p { margin: 16px 0 0; font-size: 14px; opacity: 0.8; }

.timeline { padding: 20px 16px 14px; }
.tl-scroll { overflow-x: auto; padding-bottom: 6px; }
.tl-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; min-height: 34px; }
.tl-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; position: sticky; left: 0; background: #17142a; z-index: 1; padding-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-name .avatar { box-shadow: none; }
.tl-dots, .tl-bars { display: grid; align-items: center; justify-items: center; }
.tl-dots i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform 0.5s var(--bounce); transition-delay: var(--d, 0ms); }
.in .tl-dots i { transform: scale(var(--s)); }
.tl-group { min-height: 70px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 8px; }
.tl-bars { height: 60px; align-items: end; }
.tl-bars i { display: block; width: 70%; background: var(--lime); border-radius: 3px 3px 0 0; min-height: 0; }
.tl-axis span { font-size: 11px; opacity: 0.6; white-space: nowrap; justify-self: start; }
.rec-av { position: absolute; right: 16px; bottom: 16px; }

.matrix-wrap { overflow-x: auto; }
.matrix { border-collapse: separate; border-spacing: 3px; font-size: 13px; font-weight: 800; margin: 0 auto; }
.matrix th { font-weight: 700; padding: 4px 8px; text-align: right; white-space: nowrap; }
.matrix thead th { text-align: center; }
.matrix thead .avatar { margin: 0 auto; box-shadow: none; }
.matrix td { width: 44px; height: 38px; text-align: center; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--paper); }
.matrix td.self { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 4px, transparent 4px 8px); }

.tastes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.taste { border-radius: 30px; padding: 28px; background: var(--ink); color: var(--paper); }
.taste .tag { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.taste.opp .tag { color: var(--pink); }
.t-av { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0 12px; font-size: 34px; }
.taste h3 { font-size: 22px; }
.taste .sim { font-family: var(--display); font-weight: 900; font-size: 30px; margin-top: 6px; color: var(--lime); }
.taste.opp .sim { color: var(--pink); }
.taste p { font-size: 15px; opacity: 0.85; }
.t-covers { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.t-covers img { width: 70px; height: 70px; object-fit: contain; }
@media (max-width: 860px) { .tl-row { grid-template-columns: 100px 1fr; } .hbar.person { grid-template-columns: 130px 1fr 50px; } .group-link { float: none; display: inline-block; margin-top: 8px; } }

/* ───────────────────────────── bar chart race ───────────────────────────── */
.race { margin-top: 30px; border-radius: 26px; padding: 18px 20px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); --race-dur: 110ms; }
.race-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.race-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--lime); color: var(--ink); font-size: 18px; font-weight: 900; cursor: pointer; transition: transform 0.2s var(--bounce); box-shadow: 0 0 0 0 rgba(200, 245, 58, 0.6); animation: pulsePlay 2s infinite; }
.race.playing .race-play { animation: none; background: var(--pink); }
@keyframes pulsePlay { 70% { box-shadow: 0 0 0 16px rgba(200, 245, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 245, 58, 0); } }
.race-play:hover { transform: scale(1.08); }
.race-speeds { display: flex; gap: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 4px; }
.race-speeds button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-weight: 800; font-size: 13px; cursor: pointer; }
.race-speeds button.on { background: var(--paper); color: var(--ink); }
.race-date { flex: 1 1 0; min-width: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4vw, 44px); letter-spacing: -0.03em; }
@media (max-width: 600px) {
  .race-head { gap: 8px; flex-wrap: wrap; }
  .race-play { width: 42px; height: 42px; font-size: 15px; flex: none; }
  .race-speeds { gap: 2px; padding: 3px; flex: none; }
  .race-speeds button { padding: 5px 7px; font-size: 12px; }
  .race-date { font-size: 21px; }
  .race-total { margin-top: -6px; font-size: 13px; }
}
.race-total { font-weight: 700; opacity: 0.65; font-size: 14px; width: 100%; text-align: right; margin-top: -10px; }
.race-stage { position: relative; overflow: hidden; }
.race-row { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 8px; transition: transform var(--race-dur) linear, opacity 0.4s; }
.race-bar { height: 34px; border-radius: 8px; background: var(--c); display: flex; align-items: center; min-width: 4px; transition: width var(--race-dur) linear; overflow: visible; position: relative; }
.race-name { position: absolute; left: 10px; white-space: nowrap; font-weight: 800; font-size: 13px; color: var(--ink); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
.race-row img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.race-val { font-family: var(--display); font-weight: 900; font-size: 18px; width: 56px; flex-shrink: 0; padding-left: 6px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.02em; }
.race-val.big { font-size: 14px; letter-spacing: -0.04em; }
.race-noimg { width: 40px; height: 40px; flex-shrink: 0; }
.race-scrub { width: 100%; margin-top: 12px; accent-color: var(--lime); }
.race.scrubbing .race-row, .race.scrubbing .race-bar { transition: none; }

/* ───────────────────────────── ELO ───────────────────────────── */
.elo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 36px; }
.elo-card { border-radius: 22px; padding: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.elo-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.elo-head img { width: 52px; height: 52px; object-fit: contain; }
.elo-head .nm { font-weight: 800; font-size: 15px; line-height: 1.2; }
.elo-head .sub { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.elo-now { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--lime); }
.elo-spark { width: 100%; height: auto; margin-top: 10px; display: block; overflow: visible; }
.elo-line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease); }
.in .elo-line, .elo-card.in .elo-line { stroke-dashoffset: 0; }
.elo-peak { fill: var(--pink); stroke: var(--bg); stroke-width: 2; }
.elo-foot { display: flex; justify-content: space-between; font-size: 13px; margin-top: 6px; opacity: 0.85; }
.elo-foot .up { color: var(--green); font-weight: 800; }
.elo-foot .down { color: var(--red); font-weight: 800; }

/* ───────────────────────────── head to head ───────────────────────────── */
.vs-hero { background: #0b0a12; }
.vs-split { position: absolute; inset: 0; display: flex; }
.vs-l, .vs-r { flex: 1; }
.vs-l { background: radial-gradient(circle at 30% 50%, #4f7dff, #12204f 70%); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); margin-right: -6%; }
.vs-r { background: radial-gradient(circle at 70% 50%, #ff4b5c, #4f0d17 70%); clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); margin-left: -6%; }
.vs-faceoff { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 70px); margin-top: 20px; }
.vs-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vs-side .avatar.big { --s: clamp(120px, 18vw, 200px); }
.vs-av-a { box-shadow: 0 0 0 8px #4f7dff, 0 0 60px #4f7dff !important; }
.vs-av-b { box-shadow: 0 0 0 8px #ff4b5c, 0 0 60px #ff4b5c !important; }
.vs-name { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3.5vw, 42px); word-break: break-word; }
.vs-bolt { font-family: var(--display); font-weight: 900; font-size: clamp(50px, 9vw, 120px); color: var(--yellow); text-shadow: 0 0 30px rgba(255, 210, 63, 0.7); transform: rotate(-8deg); animation: zap 1.8s ease-in-out infinite; }
@keyframes zap { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.12); } }
.vs-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.vs-pick select {
  font: 800 17px var(--body); color: var(--paper); background: rgba(11, 10, 18, 0.7); border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; padding: 12px 20px; cursor: pointer; backdrop-filter: blur(8px); max-width: 260px;
}
.vs-pick select:first-child { border-color: #4f7dff; }
.vs-pick select:nth-of-type(2) { border-color: #ff4b5c; }
.vs-pick > span { font-family: var(--display); font-weight: 900; font-size: 22px; }
.vs-pick.fight .chip { padding: 12px 22px; font-size: 16px; border: 0; }
.vs-totals { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; }
.vs-totals .mega { font-size: clamp(80px, 14vw, 200px); }
.vs-totals .mega.mid { font-size: clamp(50px, 7vw, 100px); color: #8b8799; }
.vs-lbl { font-weight: 800; font-size: 16px; opacity: 0.8; }
.splitbar { display: flex; gap: 2px; height: 26px; border-radius: 8px; overflow: hidden; width: 100%; }
.splitbar.big { height: 64px; border-radius: 16px; margin-top: 26px; }
.sp-seg { display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #fff; min-width: 0; overflow: hidden; white-space: nowrap; transition: flex-grow 1.4s var(--ease); flex-basis: 0; }
.splitbar.big .sp-seg { font-family: var(--display); font-size: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.05; }
.sp-seg.t { color: var(--ink); }
.sp-seg .sp-n { font-family: var(--body); font-size: 12px; font-weight: 800; opacity: 0.85; letter-spacing: 0.02em; }
.split-wrap { position: relative; }
.split-wrap .splitbar.big { margin-top: 26px; }
.sp-tie-out { position: absolute; top: 24px; transform: translate(-50%, -100%); font-size: 12px; font-weight: 800; white-space: nowrap; color: #c9c6d4;
  padding-bottom: 6px; opacity: 0; transition: opacity 0.6s 1.2s; }
.sp-tie-out::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 6px; margin-left: -1px; background: currentColor; border-radius: 1px; }
.in .sp-tie-out, .in.sp-tie-out { opacity: 1; }
.tug { width: 100%; height: auto; display: block; }
.tug .tick { stroke: rgba(255, 255, 255, 0.08); }
.tug .tick-l { fill: rgba(255, 255, 255, 0.5); font-size: 12px; font-family: var(--body); }
.tug .zero { stroke: rgba(255, 255, 255, 0.5); stroke-dasharray: 4 4; }
.tug-line { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.in .tug-line { stroke-dashoffset: 0; }
.tug-l { font-family: var(--display); font-weight: 800; font-size: 15px; }
.yrows { display: grid; gap: 8px; }
.yrow { display: grid; grid-template-columns: 56px 1fr 56px; gap: 12px; align-items: center; }
.yl { font-family: var(--display); font-weight: 800; }
.yb { transition: width 1s var(--ease); }
.yn { font-weight: 800; text-align: right; opacity: 0.8; }
.turf-list { display: grid; gap: 10px; margin-top: 30px; }
.turf-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(11, 10, 18, 0.88); color: var(--paper); }
.turf-row img { width: 64px; height: 64px; object-fit: contain; }
.turf-row .name { font-weight: 800; margin-bottom: 8px; }
.turf-row .name small { opacity: 0.6; font-weight: 600; margin-left: 6px; }
.turf-rec { font-family: var(--display); font-size: 22px; white-space: nowrap; }
.coop-note { font-size: 13px; opacity: 0.8; }
.vs-poster { background: linear-gradient(120deg, #2a3fa0, #17142a 50%, #a01c2c); }
.vs-poster-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 900; font-size: 18px; gap: 10px; }
.vs-poster-top b { font-size: 22px; opacity: 0.6; }
.pill-link { text-decoration: none; color: inherit; background: var(--ink) !important; color: var(--paper); }
.vs-mini { color: inherit; font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; }
@media (max-width: 700px) { .vs-faceoff { gap: 10px; } .vs-totals { gap: 8px; } .yrow { grid-template-columns: 44px 1fr 40px; } .race-val { width: 46px; padding-left: 4px; font-size: 16px; } .race-val.big { font-size: 12.5px; } .race-row img, .race-noimg { width: 34px; height: 34px; } }
.graph .knot { fill: var(--paper); stroke: var(--bg); stroke-width: 2; opacity: 0; transition: opacity 0.4s 1.4s; pointer-events: none; }
.in .graph .knot { opacity: 0.9; }
.graph.focus .rope .edge.hot { opacity: 1 !important; }
.graph.focus .rope:not(:has(.hot)) .knot { opacity: 0.08; }
.graph .node .nsub { font-family: var(--body); font-weight: 700; font-size: 14px; fill: rgba(246, 243, 234, 0.65); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.landing-fight { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -4px 0 18px; padding: 12px 16px; border-radius: 999px; background: linear-gradient(90deg, rgba(79, 125, 255, 0.22), rgba(255, 75, 92, 0.22)); border: 1px solid rgba(255, 255, 255, 0.12); width: fit-content; max-width: 100%; }
.landing-fight .lf-label { font-family: var(--display); font-weight: 800; font-size: 14px; }
.landing-fight .vs-pick { margin: 0; gap: 8px; }
.landing-fight .vs-pick select { font-size: 14px; padding: 8px 14px; }
.landing-fight .vs-pick > span { font-size: 15px; }
.landing-fight .vs-pick .chip { padding: 9px 16px; font-size: 14px; }
@media (max-width: 700px) { .landing-fight { border-radius: 22px; } }
/* race v2: JS-driven smooth animation + activity wave */
.race-row { transition: none !important; will-change: transform, opacity; }
.race-bar { transition: none !important; will-change: width; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.race-row img { transition: transform 0.3s var(--bounce); }
.race-row:hover img { transform: scale(1.2) rotate(-6deg); }
.race-scrubwrap { position: relative; margin-top: 14px; height: 52px; }
.race-wave { position: absolute; left: 8px; right: 8px; top: 0; width: calc(100% - 16px); height: 40px; pointer-events: none; }
.race-wave .wave-all { fill: rgba(246, 243, 234, 0.13); }
.race-wave .wave-played { fill: rgba(200, 245, 58, 0.45); }
.race-scrubwrap .race-scrub { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; width: 100%; cursor: pointer; }

/* friendship web v3: kamehameha clash */
.graph .beam-glow { opacity: 0; filter: blur(6px); stroke-linecap: round; pointer-events: none; transition: opacity 0.8s 1.2s; }
.in .graph .beam-glow { opacity: 0.22; }
.graph .beam-flow { stroke: #fff; stroke-linecap: round; stroke-dasharray: 2 16; opacity: 0; pointer-events: none; animation: beamFlow 1s linear infinite; transition: opacity 0.6s 1.4s; }
.in .graph .beam-flow { opacity: 0.45; }
@keyframes beamFlow { to { stroke-dashoffset: -18; } }
.graph .clash { opacity: 0; transition: opacity 0.5s; transition-delay: var(--d, 1200ms); pointer-events: none; }
.in .graph .clash { opacity: 1; }
.graph .clash .aura { transform-box: fill-box; transform-origin: center; animation: auraPulse 1.1s ease-in-out infinite alternate; mix-blend-mode: screen; }
.graph .clash .core { transform-box: fill-box; transform-origin: center; animation: corePulse 0.45s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px #fff); }
.graph .clash .shock { fill: none; stroke-linecap: round; opacity: 0.9; animation: shock 0.9s ease-out infinite; transform-box: view-box; }
.graph .clash .spark { opacity: 0.9; transform-box: view-box; animation: spark 0.55s ease-in-out infinite alternate; filter: drop-shadow(0 0 3px #fff); }
@keyframes auraPulse { from { transform: scale(0.85); opacity: 0.75; } to { transform: scale(1.15); opacity: 1; } }
@keyframes corePulse { from { transform: scale(0.8); } to { transform: scale(1.1); } }
@keyframes shock { 0% { opacity: 0.95; translate: 0 0; } 100% { opacity: 0.1; translate: 10px 0; } }
@keyframes spark { from { opacity: 0.35; scale: 0.7 1; } to { opacity: 1; scale: 1.15 1; } }
.graph.focus .rope .beam-glow, .graph.focus .rope .beam-flow, .graph.focus .rope .clash { transition-delay: 0s; }
.graph.focus .rope:not(:has(.hot)) .beam-glow, .graph.focus .rope:not(:has(.hot)) .beam-flow, .graph.focus .rope:not(:has(.hot)) .clash { opacity: 0.05; }
@media (prefers-reduced-motion: reduce) { .graph .clash *, .graph .beam-flow { animation: none !important; } }
.rec-card:has(.rec-av) .txt { padding-right: 86px; }

/* secret societies */
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.club { position: relative; border-radius: 26px; padding: 22px; background: linear-gradient(160deg, rgba(164, 139, 255, 0.22), rgba(11, 10, 18, 0.6)); border: 1px solid rgba(164, 139, 255, 0.45); overflow: hidden; }
.club::after { content: "🕯️"; position: absolute; right: 14px; top: 10px; font-size: 26px; animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.7; } 50% { opacity: 0.4; } 55% { opacity: 0.85; } }
.club-covers { display: flex; margin-bottom: 12px; }
.club-covers img { width: 78px; height: 78px; object-fit: contain; margin-right: -14px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.club-covers img:nth-child(2) { transform: rotate(6deg) translateY(4px); }
.club-covers img:nth-child(3) { transform: rotate(-5deg); }
.club .tag { font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #c4a8ff; }
.club h3 { margin: 6px 0 4px; font-size: 24px; }
.club-sub { margin: 0 0 14px; font-size: 14px; opacity: 0.75; }
.club-core { display: flex; flex-wrap: wrap; gap: 10px; }
.club-core .cm { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.club-core small { font-weight: 800; font-size: 12px; }
.club-out { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.18); font-size: 13px; }
.club-out .avatar { filter: grayscale(1) opacity(0.55); box-shadow: none; }
.club-out span { margin-left: 6px; opacity: 0.8; font-style: italic; }
.matrix.whowhat thead th img { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto; }
.matrix.whowhat tbody th { text-align: left; }
.matrix.whowhat .ww-name { display: flex; align-items: center; gap: 8px; }
.matrix.whowhat tbody th .avatar { box-shadow: none; flex-shrink: 0; }
.matrix.whowhat td { width: 46px; height: 34px; color: var(--ink); font-size: 14px; }

/* timeline v2: covers sized by activity */
.tl-row.tl-big { min-height: 62px; }
.tl-cells { display: grid; align-items: center; justify-items: center; }
.tl-cell { display: grid; place-items: center; width: var(--sz); height: var(--sz); border-radius: 50%; background: var(--c); transform: scale(0); transition: transform 0.55s var(--bounce); transition-delay: var(--d, 0ms); cursor: default; }
.tl-cell.has-img { background: transparent; border-radius: 6px; }
.tl-cell img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55)); transition: transform 0.25s var(--bounce); }
.tl-cell:hover img { transform: scale(1.35) rotate(-6deg); }
.in .tl-cell { transform: scale(1); }
.tl-empty { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.tl-axis span { justify-self: center; }

/* ELO subpage */
.elo-page { align-items: flex-start; }
.elo-more { display: inline-block; font-weight: 800; font-size: 16px; padding: 12px 20px; }
.elo-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.elo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.elo-tools input { font: 700 15px var(--body); color: var(--paper); background: rgba(11, 10, 18, 0.6); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 10px 16px; outline: none; min-width: 220px; }
.elo-tools input:focus { border-color: var(--lime); }
.elo-tools .chip.active { background: var(--lime); color: var(--ink); border-color: var(--lime); }
/* timeline v3: back to dots (group games only) */
.tl-cell { border-radius: 50% !important; background: var(--c) !important; box-shadow: 0 0 calc(var(--sz) / 2) color-mix(in srgb, var(--c) 45%, transparent); }
.tl-cell:hover { filter: brightness(1.2); }

/* most addicted: group vs outside stacked bars */
.t-violet .chart-card.addicted { background: rgba(11, 10, 18, 0.82); backdrop-filter: blur(10px); }
.add-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; cursor: pointer; color: var(--paper); }
.seg button.on { background: var(--paper); color: var(--ink); }
.track.stack { display: flex; gap: 2px; background: rgba(255, 255, 255, 0.06); }
.track.stack .fill { flex: none; border-radius: 6px; }
.track.stack .fill.out, .weight-legend i.hatch {
  background: repeating-linear-gradient(135deg, rgba(200, 245, 58, 0.38) 0 4px, rgba(200, 245, 58, 0.12) 4px 8px) !important;
}
.hbar.person .pc { white-space: nowrap; }
.hbar.person .pc small { font-family: var(--body); font-weight: 600; opacity: 0.55; font-size: 12px; }
.hbar.person { grid-template-columns: 190px 1fr 96px; }
@media (max-width: 860px) { .hbar.person { grid-template-columns: 120px 1fr 80px; } }

/* ───────────────────────────── friendship web: view switcher ───────────────────────────── */
.gview-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 22px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 5px; }
.gview-tabs button { border: 0; background: transparent; color: var(--paper); font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background 0.2s, transform 0.2s var(--bounce); }
.gview-tabs button:hover { transform: translateY(-2px); }
.gview-tabs button.on { background: var(--lime); color: var(--ink); }
.gview { display: none; }
.gview.on { display: block; }
.gview-help { font-size: 14px; opacity: 0.75; margin: 18px 0 0; max-width: 820px; }
.gview .graph-card { margin-top: 14px; }
/* replay entrance animations when switching views */
@keyframes drawIn { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dealIn { from { opacity: 0; transform: translateY(-60px) rotate(0deg) scale(0.6); } }
.gview.replay .graph .edge { animation: drawIn 1.2s var(--ease) both; animation-delay: var(--d, 0ms); }
.gview.replay .graph .node > * { animation: popIn 0.6s var(--bounce) both; animation-delay: var(--d, 0ms); }

/* round table */
.table-card { background: radial-gradient(circle at 50% 50%, rgba(255, 210, 63, 0.06), transparent 70%); }
.graph.focus .chord:not(.hot) { opacity: 0.04 !important; }

/* game board */

/* hands of cards */
.hands { display: grid; gap: 14px; margin-top: 14px; }
.hand-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.hand-owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hand-owner b { display: block; font-size: 16px; }
.hand-owner small { opacity: 0.65; font-size: 12px; }
.hand { display: flex; align-items: flex-end; height: 150px; padding-left: 20px; }
.pcard-mini {
  position: relative; width: 96px; height: calc(140px * var(--h)); margin-left: -18px; border-radius: 12px;
  background: linear-gradient(170deg, #fffaf0, #efe4cc); color: var(--ink); border: 3px solid var(--c);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 6px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); transform: rotate(var(--rot)); transform-origin: 50% 120%;
  transition: transform 0.3s var(--bounce), z-index 0s; cursor: default;
}
.pcard-mini:first-child { margin-left: 0; }
.pcard-mini:hover { transform: rotate(0deg) translateY(-22px) scale(1.08); z-index: 5; }
.pcard-mini .avatar { box-shadow: none; }
.pm-name { font-weight: 800; font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-n { font-family: var(--display); font-weight: 900; font-size: 18px; }
.pm-corner { position: absolute; top: 4px; left: 6px; font-size: 10px; font-weight: 900; opacity: 0.6; }
.pm-corner.w { color: #1d7a3d; opacity: 1; }
.pm-corner.l { color: #b3123a; opacity: 1; }
.in .pcard-mini, .gview.replay .pcard-mini { animation: dealIn 0.55s var(--bounce) both; animation-delay: var(--d, 0ms); }
@media (max-width: 760px) { .hand-row { grid-template-columns: 1fr; } .pcard-mini { width: 76px; } }
/* game board: fixed square size, compact & centred */

/* duos & lineups v2 */
.mate.duo { align-items: center; }
.mini-split { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 6px; background: rgba(11, 10, 18, 0.12); }
.mini-split i { display: block; min-width: 3px; }
.lineup2 { padding: 16px 18px; border-radius: 22px; background: rgba(11, 10, 18, 0.88); color: var(--paper); }
.lu-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.lu-who { min-width: 0; }
.lu-meta { font-size: 13px; opacity: 0.65; margin-top: 2px; }
.lu-body { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 14px; }
.lu-games { display: flex; gap: 8px; }
.lu-g { position: relative; }
.lu-g img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); transition: transform 0.25s var(--bounce); }
.lu-g:hover img { transform: translateY(-4px) rotate(-5deg); }
.lu-g small { position: absolute; right: -4px; bottom: -2px; background: var(--paper); color: var(--ink); font-weight: 900; font-size: 11px; border-radius: 999px; padding: 1px 6px; }
.lu-wins-l { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.lu-bar { display: flex; gap: 2px; height: 26px; border-radius: 8px; overflow: hidden; }
.lu-bar i { display: grid; place-items: center; color: var(--ink); font-style: normal; font-weight: 900; font-size: 12px; min-width: 4px; }
.lu-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.lu-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.lu-joke { margin: 12px 0 0; font-size: 14px; font-style: italic; opacity: 0.9; }
.lineup2 .lu-n { color: var(--lime); }
@media (max-width: 760px) { .lu-body { grid-template-columns: 1fr; } }

/* ───────────── nav v2: lead chips + years; phones get a dropdown and the lead chip on its own row */
.years { align-items: center; }
.nav-lead, .nav-years { display: flex; gap: 6px; flex-shrink: 0; }
.year-select { display: none; }
.year-select select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 800;
  background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: 7px 30px 7px 14px; cursor: pointer;
}
.year-select { position: relative; }
.year-select::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink); pointer-events: none; font-weight: 900; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
  .years { display: contents; }
  .nav-years { display: none; }
  .year-select { display: block; margin-left: auto; order: 1; }
  .nav-lead { order: 2; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-lead .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .slide { padding-top: 124px; }
}

/* ───────────── h2h: formats, co-op, turf tabs */
button.turf-row { border: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; transition: transform 0.2s var(--bounce); }
button.turf-row:hover { transform: translateX(4px); }
.turf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.turf-tabs .chip { background: rgba(11, 10, 18, 0.85); color: var(--paper); border-color: transparent; font-size: 14px; padding: 8px 14px; }
.turf-tabs .chip.active { background: var(--ink); box-shadow: 0 0 0 3px var(--paper) inset; }
.turf-tabs small { opacity: 0.6; margin-left: 4px; }
.turf-blurb { margin: 14px 0 0; font-weight: 600; opacity: 0.8; }
.turf-pane .turf-list { margin-top: 14px; }
.coop-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.coop-bar i { background: #33e1ea; min-width: 0; }
.coop-bar i.l { background: rgba(255, 255, 255, 0.18); }
.fmt-bar { display: flex; height: 46px; border-radius: 999px; overflow: hidden; margin-top: 30px; }
.fmt-bar > div { display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 800; font-size: 14px; white-space: nowrap; min-width: 6px; }
.fmt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.fmt-tile { text-align: left; border: 2px solid var(--c); border-radius: 22px; padding: 20px; background: rgba(255, 255, 255, 0.04); color: var(--paper); cursor: pointer; transition: transform 0.2s var(--bounce); }
.fmt-tile:hover:not([disabled]) { transform: translateY(-4px); }
.fmt-tile[disabled] { opacity: 0.45; cursor: default; }
.fmt-tile .em { font-size: 30px; }
.fmt-tile .v { font-family: var(--display); font-weight: 900; font-size: 48px; color: var(--c); line-height: 1.1; }
.fmt-tile .l { font-weight: 800; font-size: 18px; }
.fmt-tile .s { font-size: 13px; font-weight: 700; margin: 6px 0; }
.fmt-tile p { margin: 0; font-size: 14px; opacity: 0.7; }
.coop-best { max-width: 560px; margin: 30px auto 0; text-align: left; background: rgba(11, 10, 18, 0.1); }
.coop-board { display: grid; gap: 10px; max-width: 720px; margin: 30px auto 0; text-align: left; }
.coop-row { display: grid; grid-template-columns: 30px 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(11, 10, 18, 0.88); color: var(--paper); border: 0; width: 100%; font: inherit; text-align: left; }
button.coop-row { cursor: pointer; transition: transform 0.2s var(--bounce); }
button.coop-row:hover { transform: translateX(4px); }
.coop-row .n { font-family: var(--display); font-weight: 900; font-size: 24px; text-align: center; color: #33e1ea; }
.coop-row img { width: 64px; height: 64px; object-fit: contain; }
.coop-row .name { font-weight: 800; margin-bottom: 7px; }
.coop-row .name small { opacity: 0.6; font-weight: 600; margin-left: 6px; }
.coop-row .coop-bar { height: 14px; }
.coop-row .sub { font-size: 12px; opacity: 0.65; margin-top: 6px; }
.coop-row .rate { text-align: right; }
.coop-row .rate b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; color: #33e1ea; line-height: 1; }
.coop-row .rate small { font-size: 12px; opacity: 0.7; white-space: nowrap; }
.coop-more { margin-top: 2px; }
.coop-more > summary { cursor: pointer; font-weight: 800; padding: 8px 4px; list-style: none; }
.coop-more > summary::-webkit-details-marker { display: none; }
.coop-more[open] > summary { margin-bottom: 8px; }
.coop-more .coop-row + .coop-row { margin-top: 10px; }
.coop-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.coop-facts span { background: rgba(11, 10, 18, 0.1); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
@media (max-width: 640px) {
  .coop-row { grid-template-columns: 22px 46px 1fr auto; gap: 10px; padding: 8px 12px 8px 8px; }
  .coop-row img { width: 46px; height: 46px; }
  .coop-row .n { font-size: 18px; }
  .coop-row .rate b { font-size: 22px; }
}

/* ───────────── group poster v2 */
.g-poster { max-width: 640px; }
.g-poster::after { display: none; }
.fav3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 24px; }
.fav { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; }
.fav img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4)); }
.fav:nth-child(1) img { transform: rotate(-4deg); } .fav:nth-child(3) img { transform: rotate(4deg); }
.fav b { font-family: var(--display); font-size: 15px; line-height: 1.15; }
.fav small { font-size: 12px; font-weight: 700; opacity: 0.8; }
.fav .medal { position: absolute; top: -6px; left: 4px; font-size: 26px; z-index: 1; }
.g-poster .grid { grid-template-columns: 1fr 1fr; }
.g-poster .val small { font-size: 0.7em; opacity: 0.75; }

/* ───────────── discoveries per year */
.disc { display: grid; gap: 14px; margin-top: 34px; }
.disc-row { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--faint); border-radius: 22px; padding: 16px; }
.disc-y a { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--paper); text-decoration: none; display: block; }
.disc-y a:hover { color: var(--lime); }
.disc-y b { font-family: var(--display); font-size: 22px; color: var(--orange, #ff8a3d); }
.disc-y small { margin-left: 6px; font-weight: 700; opacity: 0.7; }
.disc-y p { margin: 8px 0 0; font-size: 13px; opacity: 0.75; }
.disc-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 8px; overflow: hidden; }
.disc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a3d, #ffd23f); border-radius: 99px; }
.disc-boxes { display: flex; flex-wrap: wrap; gap: 6px; }
.disc-g { position: relative; width: 52px; height: 52px; padding: 3px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); cursor: pointer; transition: transform 0.2s var(--bounce); }
.disc-g:hover { transform: scale(1.25) rotate(-4deg); z-index: 2; }
.disc-g img { width: 100%; height: 100%; object-fit: contain; }
.disc-g.keeper { background: rgba(255, 210, 63, 0.18); box-shadow: 0 0 0 2px #ffd23f inset; }
.disc-g i { position: absolute; top: -7px; right: -7px; font-size: 14px; font-style: normal; }
@media (max-width: 700px) { .disc-row { grid-template-columns: 1fr; } .disc-g { width: 44px; height: 44px; } }

/* ───────────── empires streamgraph */
.content.wide { width: min(1300px, 100%); }
.emp-card { margin-top: 30px; background: rgba(11, 10, 18, 0.6); border: 1px solid var(--faint); border-radius: 26px; padding: 12px; }
.empire { width: 100%; height: auto; display: block; overflow: visible; }
.emp-s { fill: hsl(var(--h) 75% 58% / 0.5); stroke: hsl(var(--h) 85% 68% / 0.9); stroke-width: 1.2; transition: fill 0.6s, stroke 0.6s, opacity 0.25s; cursor: pointer; }
.emp-s:hover { fill: hsl(var(--h) 80% 62% / 0.85); }
.emp-other { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.3); stroke-dasharray: 4 4; }
.emp-other:hover { fill: rgba(255, 255, 255, 0.2); }
.empire:hover .emp-s:not(:hover) { opacity: 0.55; }
.emp-box { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); cursor: pointer; }
.emp-grid { stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 2 6; }
.emp-year { fill: var(--paper); font-family: var(--display); font-weight: 900; font-size: 22px; opacity: 0.85; }
.emp-tot { fill: var(--paper); font-size: 13px; font-weight: 700; opacity: 0.5; }
.emp-card.rv.in .emp-s { animation: empIn 1.2s both; animation-delay: var(--d); }
@keyframes empIn { from { opacity: 0; } to { opacity: 1; } }
.emp-obox { opacity: 0.9; }
.emp-more { fill: var(--paper); font-size: 12px; font-weight: 700; opacity: 0.6; }
.emp-year { font-size: 26px; }

/* ───────────── ELO tiers: coloured pills + tier bands in the charts */
.elo-head .sub { opacity: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.elo-head .sub > span:last-child { opacity: 0.65; }
.tier-pill {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px;
  background: var(--tc); color: var(--ink); font-weight: 800; font-size: 12px; white-space: nowrap; border: 0;
  box-shadow: 0 0 14px color-mix(in srgb, var(--tc) 45%, transparent);
}
.tier-pill small { opacity: 0.7; font-weight: 700; }
button.tier-pill { cursor: pointer; font-size: 14px; padding: 6px 14px; transition: opacity 0.2s, transform 0.2s var(--bounce); }
button.tier-pill:hover { transform: translateY(-2px); }
button.tier-pill.off { opacity: 0.3; box-shadow: none; }
.elo-tiers.center { justify-content: center; }
.elo-card { border-top: 3px solid var(--tc, transparent); }
.elo-band { stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.55; }
.elo-band-l { font-size: 10px; font-weight: 800; opacity: 0.85; }
.elo-peak { fill: #fff; }
.elo-toggle { justify-content: center; margin: 24px 0 0; }
.emp-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-weight: 800; flex-wrap: wrap; }
.emp-ctrl input { flex: 1; max-width: 340px; accent-color: var(--lime); }
.emp-ctrl b { font-family: var(--display); font-size: 26px; color: var(--lime); min-width: 2ch; }
.emp-s { stroke-width: 0.8; }
/* empire: games / real-life hours toggle */
.emp-ctrl .wall-controls { flex-basis: 100%; justify-content: flex-start; }
.emp-note { margin-top: 12px; text-align: left; }
/* race: the name always sits where the bar starts, in white; a long name pushes box + number to the right */
.race-lab { position: relative; display: flex; align-items: center; height: 34px; flex-shrink: 0; }
.race-lab .race-bar { position: absolute; left: 0; top: 0; bottom: 0; min-width: 4px; }
.race-lab .race-name { position: relative; left: auto; padding: 0 12px 0 10px; color: #fff; max-width: none; overflow: visible; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 6px rgba(0, 0, 0, 0.45); }
/* ELO summary toggle: [hidden] must beat .elo-grid's display:grid */
[data-elopane][hidden] { display: none !important; }
/* wall: floats instead of a grid — big boxes sit on the left and the next rows flow to their right, never on top */
.wall { display: flow-root; }
.wall .cv { float: left; width: 92px; height: 92px; margin: 5px; }
.wall .cv.s2 { width: 194px; height: 194px; }
.wall .cv.s3 { width: 296px; height: 296px; }
.wall .cv img { width: 92%; height: 92%; }
@media (max-width: 700px) { .wall .cv { width: 76px; height: 76px; margin: 4px; } .wall .cv.s2 { width: 160px; height: 160px; } .wall .cv.s3 { width: 244px; height: 244px; } }
/* friendship web: no infinite animations / blur filters (too slow on big groups) */
.graph .beam-flow, .graph .beam-glow { display: none; }
.graph .clash .aura, .graph .clash .core, .graph .clash .shock, .graph .clash .spark { animation: none !important; filter: none !important; mix-blend-mode: normal; }
.wall .cv .ct { right: auto; bottom: auto; left: 6px; top: 6px; z-index: 2; }
.wall .cv.new::before { left: auto; right: 6px; }
/* saga timeline: rows as wide as their content so the sticky names stay pinned while scrolling */
.tl-scroll { --tl-name: 150px; }
.tl-scroll > .tl-row { width: max(100%, calc(var(--tl-name) + 10px + var(--tl-w, 300px))); }
@media (max-width: 860px) { .tl-scroll { --tl-name: 100px; } }
/* solar system */
.solar-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.solar-pick button { border: 0; padding: 3px; border-radius: 50%; background: transparent; cursor: pointer; opacity: 0.55; transition: transform 0.25s var(--bounce), opacity 0.2s; }
.solar-pick button.on { opacity: 1; background: var(--lime); transform: scale(1.12); }
.solar-pick button:hover { opacity: 1; }
.solar-card { padding: 8px; background: radial-gradient(circle at 50% 50%, #1c1640 0%, #0b0918 70%); }
.solar-cap { text-align: center; margin: 10px 0 0; font-size: 15px; }
.solar { display: block; width: 100%; max-width: 800px; margin: 0 auto; }
.solar .orbit-ring { fill: none; stroke: rgba(246, 243, 234, 0.1); stroke-width: 1; }
.solar .orbit-ring.far { stroke-dasharray: 3 6; }
.solar .orbit { transform-box: view-box; transform-origin: 400px 400px; transform: rotate(var(--a)); animation: orbitSpin var(--t) linear infinite; }
.solar .planet-in { transform-box: view-box; transform-origin: 0 0; transform: rotate(calc(-1 * var(--a))); animation: orbitSpin var(--t) linear infinite reverse; }
.solar .planet { cursor: pointer; }
.solar .planet:hover circle:first-child { stroke: #fff; stroke-width: 3; }
.solar-card:hover .orbit, .solar-card:hover .planet-in { animation-play-state: paused; }
.solar .corona { animation: corona 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.solar .face-txt { fill: var(--paper); font-weight: 900; }
@keyframes orbitSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes corona { 50% { transform: scale(1.08); opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) { .solar .orbit, .solar .planet-in, .solar .corona { animation: none; } }
/* duo ladder */
.ladder { display: grid; gap: 10px; margin-top: 14px; }
.lad-row { display: grid; grid-template-columns: 30px 70px 1fr 70px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.lad-n { font-family: var(--display); font-weight: 900; font-size: 20px; opacity: 0.6; }
.lad-faces { display: flex; }
.lad-faces .avatar + .avatar { margin-left: -14px; }
.lad-names { font-weight: 800; font-size: 15px; }
.lad-names span { opacity: 0.5; }
.lad-names em { font-style: normal; font-size: 12px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--pink); color: var(--ink); white-space: nowrap; }
.lad-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); margin: 6px 0 5px; overflow: hidden; }
.lad-bar i { display: block; height: 100%; border-radius: 999px; }
.lad-tug { display: flex; align-items: center; height: 6px; max-width: 220px; gap: 2px; }
.lad-tug i { display: block; height: 100%; border-radius: 999px; }
.lad-tug small { margin-left: 8px; font-size: 11px; opacity: 0.7; white-space: nowrap; }
.lad-cnt { font-family: var(--display); font-weight: 900; font-size: 22px; text-align: right; line-height: 1; }
.lad-cnt small { display: block; font-family: inherit; font-size: 11px; opacity: 0.6; font-weight: 700; }
@media (max-width: 700px) { .lad-row { grid-template-columns: 22px 56px 1fr 50px; gap: 8px; padding: 8px 10px; } .lad-faces .avatar { width: 32px !important; height: 32px !important; } }
/* group empire: leave people out */
.emp-people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; font-weight: 800; }
.emp-person { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.emp-person .avatar { box-shadow: none; }
.emp-person.out { opacity: 0.4; text-decoration: line-through; filter: grayscale(1); }
/* matrices: keep their natural width (scroll sideways instead of squashing cells) and pin the name column */
.matrix { width: max-content; }
.matrix td { min-width: 44px; }
.matrix.whowhat td { min-width: 46px; }
.matrix.whowhat thead th img { max-width: none; }
.matrix tbody th, .matrix thead th:first-child { position: sticky; left: 0; z-index: 2; background: #15131f; box-shadow: -4px 0 0 4px #15131f; }
.t-lime .matrix tbody th, .t-cyan .matrix tbody th, .t-yellow .matrix tbody th, .t-orange .matrix tbody th, .t-pink .matrix tbody th,
.t-lime .matrix thead th:first-child, .t-cyan .matrix thead th:first-child, .t-yellow .matrix thead th:first-child, .t-orange .matrix thead th:first-child, .t-pink .matrix thead th:first-child { background: #0f0e15; box-shadow: -4px 0 0 4px #0f0e15; }
@media (max-width: 700px) {
  .matrix-wrap { margin: 0 -12px; padding: 0 12px; }
  .matrix th { font-size: 12px; padding: 4px 6px; }
  .matrix.whowhat .ww-name { max-width: 120px; }
  .matrix.whowhat .ww-name span { overflow: hidden; text-overflow: ellipsis; }
}
/* rivalry / nemesis cards: light text even on light slides */
.vs-card.rival, .vs-card.nemesis { color: var(--paper); }

/* ───────────── h2h: game filter shared by tug of war + who won each year */
.gpick { position: relative; z-index: 20; margin: 4px 0 18px; max-width: 420px; }
.gpick-sel { display: none; position: relative; }
.gpick-sel span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; pointer-events: none; }
.gpick-sel::after { content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-weight: 900; }
.gpick select, .gpick input {
  appearance: none; -webkit-appearance: none; width: 100%; font: inherit; font-size: 16px; font-weight: 800; color: var(--paper);
  background: rgba(11, 10, 18, 0.55); border: 2px solid rgba(255, 255, 255, 0.22); border-radius: 999px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.gpick select { padding: 12px 40px 12px 76px; text-overflow: ellipsis; }
.gpick select option { color: #111; }
.gpick input { padding: 12px 44px 12px 18px; }
.gpick input::placeholder { color: rgba(255, 255, 255, 0.75); }
.gpick input:focus, .gpick select:focus { border-color: var(--lime); background: rgba(11, 10, 18, 0.85); }
.gpick.on input { border-color: var(--lime); color: var(--lime); }
.gpick-combo { position: relative; }
.gpick-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: var(--paper); font-weight: 900; cursor: pointer; }
.gpick-x:hover { background: var(--lime); color: var(--ink); }
.gpick-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: rgba(11, 10, 18, 0.97); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.gpick-list li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; cursor: pointer; color: var(--paper); font-weight: 700; font-size: 15px; }
.gpick-list li img, .gpick-list li i { width: 32px; height: 32px; object-fit: contain; }
.gpick-list li small { opacity: 0.6; font-weight: 800; }
.gpick-list li.act { background: rgba(200, 245, 58, 0.18); }
.gpick-list li.cur span { color: var(--lime); }
.gpick-list li.empty { display: block; cursor: default; opacity: 0.7; }
.gbody.swap { animation: gswap 0.45s var(--ease); }
@keyframes gswap { from { opacity: 0.2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px), (hover: none) {
  .gpick { max-width: none; }
  .gpick-sel { display: block; }
  .gpick-combo { display: none; }
}

/* ───────────── language switcher (discreet: landing top bar + page footer) */
.nav-end { margin-left: auto; display: flex; align-items: center; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; opacity: 0.45; transition: opacity 0.2s; white-space: nowrap; }
.lang-switch:hover, .lang-switch:focus-within { opacity: 1; }
.lang-switch button {
  font: inherit; font-weight: 700; color: var(--paper); background: none; border: 0; border-radius: 999px;
  padding: 3px 7px; cursor: pointer; opacity: 0.6;
}
.lang-switch button:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.lang-switch button.on { opacity: 1; background: rgba(255, 255, 255, 0.12); cursor: default; }
.years .nav-end { flex: 1; justify-content: flex-end; }
.site-foot {
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 28px 16px 36px; font-size: 12px; color: var(--paper); opacity: 0.7; background: var(--ink, #0b0a12);
}
.site-foot > span:first-child { opacity: 0.5; font-weight: 700; }
/* Spanish "NUEVO" only fits on wide screens; phones keep the short "NEW" pill */
@media (min-width: 701px) { html[lang="es"] .wall .cv.new::before { content: "NUEVO"; } }
.lbl-narrow { display: none; }
@media (max-width: 700px) { .lbl-wide { display: none; } .lbl-narrow { display: inline; } }
/* giant numbers shrink with their digit count so they never overflow (--nd set by count()) */
.mega .count { font-size: min(1em, calc(var(--fitw, 92vw) / (var(--nd, 3) * 0.64))); }
.vs-totals .mega .count { --fitw: 34vw; }
.vs-totals .mega.mid .count { --fitw: 18vw; }
.vs-totals > div { min-width: 0; }
.vs-lbl { overflow-wrap: anywhere; }
