@property --aura-core {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(118, 185, 0, 0.16);
}
@property --aura-mid {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(8, 9, 12, 0.55);
}
@property --aura-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(118, 185, 0, 0.035);
}

:root {
  color-scheme: dark;
  --bg: #08090c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6f1;
  --muted: #8a8d86;
  --accent: #76b900;
  --accent-bright: #a6e22e;
  --accent-soft: rgba(118, 185, 0, 0.13);
  --accent-glow: rgba(118, 185, 0, 0.38);
  --bump: #c8f562;
  --tier-accent: #76b900;
  --aura-core: rgba(118, 185, 0, 0.16);
  --aura-mid: rgba(8, 9, 12, 0.55);
  --aura-tint: rgba(118, 185, 0, 0.035);
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

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

html,
body {
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  padding-bottom: env(safe-area-inset-bottom);
  transition: background-color 600ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- wallpapers ---------- */
.nv-wallpaper,
.burst-wallpaper {
  position: fixed;
  inset: -260px;
  pointer-events: none;
  animation: tile-drift 60s linear infinite;
  will-change: transform, opacity, filter;
}
.nv-wallpaper {
  z-index: 0;
  background-image: url("/assets/nv-tile.svg");
  background-size: 260px 260px;
  background-repeat: repeat;
  opacity: 0.12;
  filter: contrast(1.05) brightness(0.95);
  transition: opacity 900ms ease, filter 900ms ease;
}
.nv-wallpaper.is-hit {
  opacity: 0.26;
  filter: contrast(1.2) brightness(1.15) drop-shadow(0 0 12px var(--accent-glow));
  transition: opacity 90ms ease, filter 90ms ease;
}
.burst-wallpaper {
  z-index: 1;
  background-image: url("/assets/burst-tile.svg");
  background-size: 260px 260px;
  background-repeat: repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 82% 82% at 50% 46%, rgba(0,0,0,0.95) 26%, rgba(0,0,0,0.45) 66%, rgba(0,0,0,0.2) 100%);
  mask-image: radial-gradient(ellipse 82% 82% at 50% 46%, rgba(0,0,0,0.95) 26%, rgba(0,0,0,0.45) 66%, rgba(0,0,0,0.2) 100%);
}
@keyframes tile-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(260px, 260px, 0); }
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 54% at 50% 42%, var(--aura-core), transparent 72%),
    radial-gradient(ellipse 120% 90% at 50% 0%, var(--aura-tint), transparent 60%);
  transition: background 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.vfx-canvas,
.pop-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.vfx-canvas { z-index: 30; }
.pop-overlay { z-index: 31; }

/* ---------- corner controls ---------- */
.tone-corner {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  z-index: 60;
}
.tone-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 14, 16, 0.6);
  backdrop-filter: blur(10px);
}
.tone-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-emoji);
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
}
.tone-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.tone-btn.is-active {
  opacity: 1;
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px var(--border);
}

.top-right-controls {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switcher { position: relative; }
.lang-toggle,
.personal-badge {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 14, 16, 0.6);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.lang-toggle:hover,
.personal-badge:hover { border-color: var(--accent-glow); background: rgba(20, 24, 18, 0.85); }
.lang-globe-icon { color: var(--accent-bright); }
.lang-caret { color: var(--muted); font-size: 0.6rem; }
.lang-menu {
  position: absolute;
  top: 39px;
  right: 0;
  min-width: 132px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(14, 16, 19, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.lang-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}
.lang-option:hover { background: var(--surface-strong); }
.lang-option.is-active { color: var(--accent-bright); }
.lang-option .check { font-family: var(--font-mono); font-size: 0.7rem; }

.personal-badge {
  gap: 6px;
  padding: 0 9px 0 8px;
  font-family: var(--font-mono);
}
.personal-tier-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tier-accent);
  box-shadow: 0 0 8px var(--tier-accent);
}
.personal-label { font-family: var(--font-sans); color: var(--muted); letter-spacing: 0.06em; }
.personal-count { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.personal-share-icon { color: var(--muted); font-size: 0.8rem; }

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  min-height: 0;
  padding: 58px 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.stage::-webkit-scrollbar { display: none; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
}
.hero-heading { text-align: center; }
.hero-title {
  margin: 0;
  font-size: clamp(2.25rem, 9.5vw, 4.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: 0 0 42px rgba(0,0,0,0.65);
}
.title-nvidia {
  color: var(--accent-bright);
  text-shadow: 0 0 26px var(--accent-glow), 0 0 60px rgba(118,185,0,0.18);
}
.hero-subtitle {
  margin: 10px 0 0;
  font-size: clamp(0.68rem, 2.4vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  color: var(--muted);
}
.hero-tagline {
  margin: 6px 0 0;
  font-size: clamp(0.66rem, 2.3vw, 0.82rem);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.finger-zone {
  position: relative;
  margin: clamp(14px, 3vh, 28px) 0 clamp(10px, 2vh, 18px);
  display: grid;
  place-items: center;
}
.finger-btn {
  position: relative;
  width: clamp(132px, 34vmin, 214px);
  height: clamp(132px, 34vmin, 214px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(118,185,0,0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(118,185,0,0.14), transparent 62%),
    radial-gradient(circle at 50% 50%, #14180f 0%, #0c0e0b 72%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6) inset,
    0 0 46px rgba(118,185,0,0.14),
    0 24px 70px rgba(0,0,0,0.65);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 90ms cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 220ms ease, border-color 220ms ease;
}
.finger-btn::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(118,185,0,0.22);
  border-radius: 50%;
  animation: ring-spin 26s linear infinite;
  pointer-events: none;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.finger-btn:hover {
  border-color: rgba(118,185,0,0.55);
  box-shadow: 0 0 60px rgba(118,185,0,0.24), 0 24px 70px rgba(0,0,0,0.65);
}
.finger-btn.is-pressed { transform: scale(0.93); }
.finger-btn.is-hit { animation: finger-hit 150ms ease; }
@keyframes finger-hit {
  0% { transform: scale(0.9) rotate(-3deg); }
  60% { transform: scale(1.06) rotate(2deg); }
  100% { transform: scale(1); }
}
.finger-emoji {
  font-family: var(--font-emoji);
  font-size: clamp(4.6rem, 20vmin, 8rem);
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
  pointer-events: none;
}
.hold-hud {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-bright);
  text-shadow: 0 0 18px var(--accent-glow);
  letter-spacing: 0.03em;
}
.tier-flash {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translate(-50%, 8px);
  white-space: nowrap;
  font-size: clamp(0.72rem, 2.6vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tier-accent);
  opacity: 0;
  pointer-events: none;
}
.tier-flash.show { animation: tier-pop 1300ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes tier-pop {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(0.7); }
  16% { opacity: 1; transform: translate(-50%, 0) scale(1.12); }
  30% { transform: translate(-50%, 0) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(1); }
}

.fuck-cta {
  min-width: 218px;
  height: 50px;
  padding: 0 30px;
  border: 1px solid rgba(118,185,0,0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, #8fd11a 0%, #5f9600 100%);
  box-shadow: 0 8px 26px rgba(118,185,0,0.22), inset 0 1px 0 rgba(255,255,255,0.28);
  color: #0a0d06;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.fuck-cta:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 36px rgba(118,185,0,0.35); }
.fuck-cta:active { transform: translateY(1px) scale(0.98); }

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 5vw, 34px);
  margin-top: clamp(16px, 3.4vh, 30px);
  min-height: 52px;
}
.stat-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}
#country-stat-box { border-radius: 8px; padding: 4px 6px; margin: -4px -6px; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.num-slot {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
}
.stat-value {
  font-size: clamp(1.5rem, 6vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-sep { width: 1px; height: 26px; background: var(--border); }
.country-flag { font-family: var(--font-emoji); font-size: 1.15rem; }
.country-name { font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.country-count { font-size: clamp(1.05rem, 4.2vw, 1.5rem); font-weight: 700; color: var(--accent-bright); }

/* ---------- region dock ---------- */
.region-dock {
  width: 100%;
  max-width: 900px;
  margin-top: auto;
  padding-top: 10px;
}
.region-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
}
.region-dock-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(166,226,46,0.5);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(166,226,46,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(166,226,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(166,226,46,0); }
}
.region-all-btn {
  border: 0;
  background: transparent;
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.region-all-btn:hover { text-decoration: underline; }
.region-matrix-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.022);
  overflow: hidden;
}
.region-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.region-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 6px 8px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  min-width: 0;
  transition: background 150ms ease;
}
.region-cell:nth-child(5n) { border-right: 0; }
.region-cell:nth-child(n+6) { border-bottom: 0; }
.region-cell.is-me { background: var(--accent-soft); }
.region-cell-top { display: flex; align-items: center; gap: 4px; min-width: 0; }
.region-cell-rank { font-size: 0.58rem; color: var(--muted); font-weight: 700; }
.region-cell-flag { font-family: var(--font-emoji); font-size: 0.9rem; }
.region-cell-name { font-size: 0.62rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-cell-count { font-size: 0.82rem; font-weight: 700; margin-top: 1px; }
.region-outside-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--accent-glow);
  background: var(--accent-soft);
  color: var(--text);
  text-align: left;
}
.region-outside-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.region-outside-name { font-size: 0.72rem; font-weight: 700; }
.region-outside-sub { font-family: var(--font-mono); font-size: 0.56rem; color: var(--muted); letter-spacing: 0.05em; }
.corner-contact {
  display: flex;
  justify-content: center;
  padding: 9px 0 2px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
  text-align: center;
}

/* ---------- drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.leaderboard-panel {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
  border-left: 1px solid var(--border);
  background: rgba(11, 13, 15, 0.97);
  backdrop-filter: blur(22px);
  box-shadow: -24px 0 70px rgba(0,0,0,0.6);
  transform: translateX(102%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
.leaderboard-panel.is-open { transform: none; }
.leaderboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.leaderboard-header h2 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.leaderboard-sub { margin: 5px 0 0; font-size: 0.68rem; color: var(--muted); }
.leaderboard-header-actions { display: flex; align-items: center; gap: 10px; }
.country-total-badge {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.66rem;
  color: var(--accent-bright);
}
.leaderboard-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}
.leaderboard-close:hover { color: var(--text); border-color: var(--accent-glow); }
.leaderboard-list { flex: 1; overflow-y: auto; margin-top: 18px; padding-right: 4px; }
.leaderboard-empty { padding: 30px 0; text-align: center; color: var(--muted); font-family: var(--font-mono); }
.rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
}
.rank-row.is-me { background: var(--accent-soft); }
.rank-row-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.rank-row.is-me .rank-row-num { color: var(--accent-bright); }
.rank-row-mid { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rank-row-flag { font-family: var(--font-emoji); font-size: 1.2rem; }
.rank-row-name { font-size: 0.82rem; font-weight: 600; }
.rank-row-you { font-family: var(--font-mono); font-size: 0.55rem; color: #0a0d06; background: var(--accent-bright); border-radius: 4px; padding: 1px 5px; font-weight: 800; }
.rank-row-count { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 700; }
.leaderboard-note { margin: 14px 0 0; font-size: 0.62rem; line-height: 1.6; color: var(--muted); }

/* ---------- share modal ---------- */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.share-modal.is-open { opacity: 1; pointer-events: auto; }
.share-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.66); backdrop-filter: blur(5px); }
.share-dialog {
  position: relative;
  width: min(520px, 94vw);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #0e1013;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
  transform: translateY(18px) scale(0.97);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.share-modal.is-open .share-dialog { transform: none; }
.share-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.share-dialog-head h2 { margin: 0; font-size: 1.1rem; }
.share-tier-sub { margin: 5px 0 0; font-size: 0.7rem; color: var(--muted); }
.share-preview-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.share-canvas { display: block; width: 100%; height: auto; }
.share-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.share-btn {
  height: 38px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: filter 160ms ease, transform 160ms ease;
}
.share-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.share-btn-primary { border-color: transparent; background: var(--accent); color: #0a0d06; }
.share-btn-secondary { background: var(--surface-strong); color: var(--text); }
.share-btn-ghost { background: transparent; color: var(--muted); }
.share-feedback-slot { min-height: 20px; margin-top: 10px; text-align: center; }
.share-feedback { margin: 0; font-size: 0.65rem; color: var(--accent-bright); }

/* ---------- tier moods ---------- */
body[data-tier="spark"] { --tier-accent: #a6e22e; --aura-core: rgba(140, 210, 0, 0.2); --aura-tint: rgba(140, 210, 0, 0.05); }
body[data-tier="rage"] { --tier-accent: #f5c518; --aura-core: rgba(230, 180, 0, 0.2); --aura-tint: rgba(230, 180, 0, 0.05); }
body[data-tier="furious"] { --tier-accent: #ff9d2e; --aura-core: rgba(255, 130, 20, 0.22); --aura-tint: rgba(255, 130, 20, 0.055); }
body[data-tier="inferno"] { --tier-accent: #ff5a3c; --aura-core: rgba(255, 70, 45, 0.24); --aura-tint: rgba(255, 70, 45, 0.06); }
body[data-tier="meltdown"] { --tier-accent: #ff2d6f; --aura-core: rgba(255, 45, 111, 0.26); --aura-tint: rgba(255, 45, 111, 0.07); }
body[data-tier="singularity"] { --tier-accent: #d08cff; --aura-core: rgba(190, 110, 255, 0.28); --aura-tint: rgba(190, 110, 255, 0.08); }
body[data-tier="void"] { --tier-accent: #76b900; }

body.shake .stage { animation: stage-shake 320ms ease; }
@keyframes stage-shake {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
}

@media (max-width: 560px) {
  .hero-tagline { max-width: 300px; }
  .finger-btn { width: clamp(126px, 40vmin, 168px); height: clamp(126px, 40vmin, 168px); }
  .finger-emoji { font-size: clamp(4.2rem, 22vmin, 6rem); }
  .region-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .region-cell:nth-child(2n) { border-right: 0; }
  .region-cell:nth-child(n+5) { border-bottom: 0; }
  .region-cell:nth-child(n+9) { display: none; }
  .rank-row { padding: 10px 6px; gap: 6px; grid-template-columns: 24px minmax(0, 1fr) auto; }
  .share-actions { grid-template-columns: 1fr 1fr; }
  .share-btn-ghost { grid-column: 1 / -1; }
}

@media (max-height: 680px) {
  .hero-tagline { display: none; }
  .finger-btn { width: clamp(110px, 26vmin, 150px); height: clamp(110px, 26vmin, 150px); }
  .finger-emoji { font-size: clamp(3.8rem, 16vmin, 5.2rem); }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .stats-bar { margin-top: 12px; }
  .region-dock { padding-top: 4px; }
}

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