/* ── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #f5c518;
  --correct:   #4caf50;
  --wrong:     #e53935;
  --overlay-bg: rgba(0,0,0,.85);
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: #0f0f1a;
  color: #fff;
  overflow: hidden;
}

/* ── Inline rank bar ─────────────────────────────────────────────────────── */
.rank-bar-inline {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 220px;
  background: rgba(15,15,26,.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  transition: border-color .4s ease;
}
.rib-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: color .4s ease;
}
.rib-track {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
}
.rib-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width .6s cubic-bezier(0.22,1,0.36,1), background .4s ease, box-shadow .4s ease;
}
.rib-next {
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .4s ease;
}

/* ── Score ───────────────────────────────────────────────────────────────── */
.score-box {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(15,15,26,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 14px;
  padding: 10px 20px 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  line-height: 1;
}

.top-score-box {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(15,15,26,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 14px;
  padding: 10px 20px 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  line-height: 1;
}

.top-score-label {
  font-size: .5rem;
  letter-spacing: .22em;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
}

.top-score-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(245,197,24,.4);
}
.score-label {
  font-size: .5rem;
  letter-spacing: .22em;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
}
.score-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(245,197,24,.4);
}

@keyframes scoreBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); }
  65%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.score-bump { animation: scoreBump .4s cubic-bezier(.36,.07,.19,.97); }

/* ── Game wrap ───────────────────────────────────────────────────────────── */
.game-wrap {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center top;
  filter: blur(1px) brightness(.58) saturate(.72);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.2) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.75) 100%
  );
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 36px;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Name + info button row */
.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* Name */
.card-name {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
  letter-spacing: .01em;
}

/* Bio paragraph — the rich description */
.card-bio {
  font-size: .78rem;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding: 8px 4px;
  width: 100%;
}

/* Info button */
.info-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.info-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.info-btn-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.card-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.card-count {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.card-unit {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* ── Count row (right card) ──────────────────────────────────────────────── */
.count-row {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-group {
  display: flex;
  gap: 12px;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 12px 28px;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:active { transform: scale(.96); }

.btn-higher {
  background: var(--correct);
  color: #fff;
  box-shadow: 0 4px 20px rgba(76,175,80,.45);
}
.btn-higher:hover { filter: brightness(1.12); box-shadow: 0 6px 28px rgba(76,175,80,.6); }

.btn-lower {
  background: var(--wrong);
  color: #fff;
  box-shadow: 0 4px 20px rgba(229,57,53,.45);
}
.btn-lower:hover { filter: brightness(1.12); box-shadow: 0 6px 28px rgba(229,57,53,.6); }

.btn-play-again {
  background: var(--accent);
  color: #111;
  font-size: 1rem;
  padding: 14px 32px;
  box-shadow: 0 4px 20px rgba(245,197,24,.4);
}
.btn-play-again:hover { filter: brightness(1.1); }

.btn-share {
  background: #2e86de;
  color: #fff;
  font-size: .95rem;
  padding: 12px 28px;
  box-shadow: 0 4px 20px rgba(46,134,222,.45);
}
.btn-share:hover { filter: brightness(1.08); }

/* ── VS circle ───────────────────────────────────────────────────────────── */
.vs-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.6);
  letter-spacing: .04em;
  transition: background .2s ease, color .2s ease, font-size .15s ease, box-shadow .2s ease;
}

@keyframes vsPop {
  0%   { transform: translate(-50%,-50%) scale(1); }
  30%  { transform: translate(-50%,-50%) scale(1.6); }
  60%  { transform: translate(-50%,-50%) scale(1.45); }
  100% { transform: translate(-50%,-50%) scale(1.45); }
}
@keyframes vsReset {
  0%   { transform: translate(-50%,-50%) scale(1.45); }
  100% { transform: translate(-50%,-50%) scale(1); }
}
.vs-popping { animation: vsPop .3s cubic-bezier(.36,.07,.19,.97) forwards; }
.vs-resetting { animation: vsReset .25s ease forwards; }
.vs-correct {
  background: var(--correct) !important;
  color: #fff !important;
  font-size: 1.9rem !important;
  box-shadow: 0 0 40px rgba(76,175,80,.65), 0 4px 24px rgba(0,0,0,.6) !important;
}
.vs-wrong {
  background: var(--wrong) !important;
  color: #fff !important;
  font-size: 1.9rem !important;
  box-shadow: 0 0 40px rgba(229,57,53,.65), 0 4px 24px rgba(0,0,0,.6) !important;
}

.card-left { border-right: 2px solid rgba(255,255,255,.07); }

/* ── Game over overlay ───────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .35s ease;
}
.overlay-box {
  text-align: center;
  padding: 36px 44px 36px;
  background: #12121f;
  border-radius: 20px;
  border: 1px solid rgba(245,197,24,.3);
  box-shadow: 0 16px 64px rgba(0,0,0,.8);
  min-width: 340px;
  max-width: 700px;
  max-height: 92vh;
  overflow-y: auto;
  transition: border-color .4s, box-shadow .4s;
}
.overlay-layout {
  display: flex;
  gap: 28px;
  align-items: center;
}
.overlay-main {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.overlay-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .3em;
  color: var(--wrong);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.overlay-rank {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: color .4s;
}
.overlay-flavor {
  font-size: .78rem;
  color: rgba(255,255,255,.42);
  letter-spacing: .06em;
  font-style: italic;
  margin-bottom: 24px;
}
.overlay-msg {
  font-size: .55rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 4px;
}
.overlay-score {
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.overlay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

/* ── Result flash (unused — result shown on VS circle) ───────────────────── */
.result-flash { display: none !important; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

@keyframes fadeIn    { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideDown { from { opacity: 0; transform: translate(-50%, -12px) }
                       to   { opacity: 1; transform: translate(-50%, 0) } }
@keyframes slideOutLeft  { from { opacity: 1; transform: translateX(0)    } to { opacity: 0; transform: translateX(-50px) } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0)    } to { opacity: 0; transform: translateX(50px)  } }
@keyframes slideInLeft   { from { opacity: 0; transform: translateX(-50px) } to { opacity: 1; transform: translateX(0)   } }
@keyframes slideInRight  { from { opacity: 0; transform: translateX(50px)  } to { opacity: 1; transform: translateX(0)   } }

.slide-out-left  { animation: slideOutLeft  .3s ease forwards; }
.slide-out-right { animation: slideOutRight .3s ease forwards; }
.slide-in-left   { animation: slideInLeft   .4s ease forwards; }
.slide-in-right  { animation: slideInRight  .4s ease forwards; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .game-wrap { flex-direction: column; }
  .score-box, .top-score-box {
    top: 10px;
    padding: 8px 12px 10px;
    border-radius: 12px;
  }
  .score-value, .top-score-value { font-size: 1.6rem; }
  .card-left { border-right: none; border-bottom: 2px solid rgba(255,255,255,.07); }
  .vs-circle { top: 50%; }
  .card-name { font-size: 1.5rem; }
  .card-count { font-size: 2.4rem; }
  .card-bio { font-size: .72rem; }
}

/* ── Streak box ──────────────────────────────────────────────────────────── */
.streak-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,15,26,.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,140,0,.45);
  border-radius: 50px;
  padding: 8px 18px 8px 14px;
  box-shadow: 0 4px 24px rgba(255,140,0,.25);
  white-space: nowrap;
}
.streak-fire { font-size: 1.3rem; line-height: 1; }
.streak-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ff8c00;
  line-height: 1;
}
.streak-label {
  font-size: .5rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  line-height: 1;
}
@keyframes streakPop {
  0%   { transform: translateX(-50%) scale(1); }
  40%  { transform: translateX(-50%) scale(1.28); }
  100% { transform: translateX(-50%) scale(1); }
}
.streak-bump { animation: streakPop .35s cubic-bezier(.36,.07,.19,.97); }

/* ── Multiplier badge ────────────────────────────────────────────────────── */
.multiplier-badge {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 100;
  background: linear-gradient(135deg, #ff8c00, #f5c518);
  color: #111;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 16px rgba(255,140,0,.55);
}
@keyframes badgePop {
  0%   { opacity: 0; transform: translateY(8px) scale(.8); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.multiplier-badge.badge-show { animation: badgePop .35s ease forwards; }

/* ── Milestone banner ────────────────────────────────────────────────────── */
.milestone-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 250;
  background: linear-gradient(135deg, rgba(245,197,24,.97), rgba(255,140,0,.97));
  color: #111;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .07em;
  padding: 16px 42px;
  border-radius: 50px;
  box-shadow: 0 8px 48px rgba(245,197,24,.65);
  pointer-events: none;
  text-align: center;
}
@keyframes milestoneFade {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  75%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
}
.milestone-show { animation: milestoneFade 1.5s ease forwards; }

/* ── Screen shake ────────────────────────────────────────────────────────── */
@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-10px) rotate(-.5deg); }
  30%       { transform: translateX(9px)  rotate(.5deg); }
  45%       { transform: translateX(-7px); }
  60%       { transform: translateX(6px); }
  75%       { transform: translateX(-3px); }
}
.game-wrap.shake { animation: screenShake .45s ease; }

/* ── Particles ───────────────────────────────────────────────────────────── */
@keyframes particleFly {
  to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
.particle {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  animation: particleFly .7s ease-out forwards;
}

/* ── Lives box ───────────────────────────────────────────────────────────── */
.lives-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(15,15,26,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229,57,53,.25);
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.life-heart {
  font-size: 1.4rem;
  color: #e53935;
  text-shadow: 0 0 10px rgba(229,57,53,.55);
  display: inline-block;
  line-height: 1;
  transition: color .3s, text-shadow .3s;
}
@keyframes lifeShatter {
  0%   { transform: scale(1);    color: #e53935; filter: brightness(1); }
  12%  { transform: scale(2.2);  color: #ff1744; filter: brightness(2.5) drop-shadow(0 0 12px #ff1744); }
  30%  { transform: scale(1.6) rotate(-18deg); }
  50%  { transform: scale(0.9) rotate(12deg);  filter: brightness(0.5); }
  70%  { transform: scale(0.7);  color: #333;   filter: brightness(0.2); }
  100% { transform: scale(0.55); color: #222;   filter: brightness(0) grayscale(1); opacity: 0.35; }
}
.life-heart.life-lost { animation: lifeShatter .65s cubic-bezier(.36,.07,.19,.97) forwards; }

@keyframes lifeFlash {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  100% { opacity: 0; }
}
.life-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  box-shadow: inset 0 0 120px 60px rgba(229,57,53,.75);
  border: 4px solid rgba(229,57,53,.6);
  border-radius: 0;
  animation: lifeFlash .75s ease-out forwards;
}

/* ── Bonus float text ────────────────────────────────────────────────────── */
@keyframes bonusFloat {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0)     scale(.7); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(-10px)  scale(1.08); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-90px)  scale(.9); }
}
.bonus-float {
  position: fixed;
  left: 50%;
  z-index: 300;
  font-family: var(--font);
  font-weight: 900;
  pointer-events: none;
  text-align: center;
  line-height: 1.2;
  animation: bonusFloat 1.1s ease-out forwards;
}
.bf-points {
  display: block;
  font-size: 2.4rem;
  color: #f5c518;
  text-shadow: 0 0 30px rgba(245,197,24,.75), 0 2px 10px rgba(0,0,0,.9);
  letter-spacing: -.01em;
}
.bf-speed {
  display: block;
  font-size: .8rem;
  letter-spacing: .14em;
  color: #4caf50;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  text-transform: uppercase;
}
.bf-insane { color: #f5c518; }

/* ── VS close-call state ─────────────────────────────────────────────────── */
.vs-close-call {
  background: #ff8c00 !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  box-shadow: 0 0 40px rgba(255,140,0,.65), 0 4px 24px rgba(0,0,0,.6) !important;
}

/* ── Overlay streak line ─────────────────────────────────────────────────── */
.overlay-streak {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 20px;
  min-height: 1em;
}
.overlay-streak span {
  color: #ff8c00;
  font-weight: 700;
}

/* ── Rank-up popup ───────────────────────────────────────────────────────── */
.rank-up-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 180;
  background: rgba(12, 12, 22, 0.97);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 28px 44px 24px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}
.rank-up-banner.rank-up-show {
  animation: rankUpAnim 1.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes rankUpAnim {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.82); }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  35%  { transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
}
.rank-up-label {
  font-size: .6rem;
  letter-spacing: .38em;
  font-weight: 800;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rank-up-title {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.rank-up-flavor {
  font-size: .72rem;
  color: rgba(255,255,255,.42);
  font-style: italic;
}

/* ── Rank Chart ──────────────────────────────────────────────────────────── */
.rank-chart {
  flex: 0 0 170px;
  width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  border-right: 1px solid rgba(255,255,255,.08);
  padding-right: 20px;
}
.rank-chart-row {
  opacity: 0.4;
  transition: opacity .2s;
}
.rank-chart-row.rank-active {
  opacity: 1;
}
.rank-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.rank-chart-name {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.rank-chart-score {
  font-size: .58rem;
  color: rgba(255,255,255,.5);
  font-variant-numeric: tabular-nums;
}
.rank-chart-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.rank-chart-row.rank-active .rank-chart-bar-wrap {
  height: 5px;
}
.rank-chart-bar {
  height: 100%;
  border-radius: 2px;
  min-width: 4px;
}

@media (max-width: 640px) {
  .streak-box { bottom: 14px; padding: 6px 14px 6px 10px; }
  .streak-value { font-size: 1.2rem; }
  .milestone-banner { font-size: 1.1rem; padding: 12px 28px; }
  .multiplier-badge { top: 68px; right: 10px; }
  .lives-box { top: 10px; padding: 6px 12px; gap: 4px; }
  .life-heart { font-size: 1.1rem; }
  .rank-bar-inline { top: 56px; width: 180px; }
  .overlay-layout { flex-direction: column-reverse; gap: 16px; }
  .rank-chart { flex: none; width: 100%; border-right: none; border-top: 1px solid rgba(255,255,255,.08); padding-right: 0; padding-top: 16px; }
  .overlay-box { padding: 28px 24px 28px; }
}
