@font-face {
  font-family: "Widock";
  src: url("./assets/WidockTrialBold.otf") format("opentype");
  font-weight: 700 900;
  font-display: block;
}

@font-face {
  font-family: "Montserrat Local";
  src: url("./assets/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "Consolas Local";
  src: url("./assets/Consolas-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Consolas Local";
  src: url("./assets/Consolas-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #020202;
  --text: #f8f8f4;
  --muted: #b8b8b2;
  --line: rgba(248, 248, 244, 0.28);
  --line-strong: rgba(248, 248, 244, 0.74);
  --panel: rgba(6, 6, 6, 0.72);
  --green: #caff3d;
  --red: #ff3636;
  --success: #47e58b;
  --pink: #f046d9;
  --violet: #884dff;
  --font-main: "Consolas Local", Consolas, "Courier New", monospace;
  --font-logo: Widock, "Widock TRIAL", "Widock Trial", Impact, Haettenschweiler, "Arial Black", sans-serif;
  --font-number: "Montserrat Local", Montserrat, Arial, sans-serif;
  --edge: clamp(28px, 3.90625vw, 90px);
  --header-top: clamp(26px, 2.34375vw, 58px);
  --bg-vgap: clamp(62px, 9.722svh, 118px);
  --ticker-gap: 15px;
  --ticker-size: calc((100svh - (var(--bg-vgap) * 2) - (var(--ticker-gap) * 3)) / 3.12);
  --spot-top: 26.9svh;
  --spot-height: 45.6svh;
  --stats-gap: 30px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.045), transparent 28rem),
    linear-gradient(180deg, #000 0%, #030303 58%, #000 100%);
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
}

body.is-hydrating .page-shell {
  opacity: 0;
}

.page-shell {
  transition: opacity 140ms ease;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

.ticker-bg {
  position: fixed;
  inset: calc(var(--bg-vgap) + 18px) -34vw calc(var(--bg-vgap) - 18px) -34vw;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ticker-gap);
  overflow: hidden;
  opacity: 0.36;
  pointer-events: none;
}

.ticker-row {
  position: relative;
  display: flex;
  width: max-content;
  color: rgba(255, 255, 255, 0.052);
  font-family: var(--font-logo);
  flex: 0 0 auto;
  font-size: var(--ticker-size);
  line-height: 0.78;
  letter-spacing: 0;
  word-spacing: -0.36em;
  white-space: nowrap;
  animation: marquee-left 190s linear infinite;
  will-change: transform;
}

.ticker-row span {
  padding-right: 6px;
}

.ticker-row.right {
  animation-name: marquee-right;
  animation-duration: 232s;
}

.ticker-row.slow {
  animation-duration: 274s;
}

.ticker-row.fast {
  animation-duration: 168s;
}

.ticker-row:nth-child(n + 5) {
  display: none;
}

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

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

.page-shell {
  position: relative;
  z-index: 2;
  display: block;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
  padding: 0;
}

.site-header {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: var(--header-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  width: clamp(9.4rem, 10.5vw, 12.65rem);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.2vw, 3.6rem);
}

.nav-links button,
.modal-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-links button {
  padding: 0;
  color: var(--text);
  font-size: clamp(0.78rem, 1.05vw, 1.22rem);
  transition: opacity 180ms ease;
}

.nav-links button:hover {
  opacity: 0.62;
}

.telegram-menu {
  position: relative;
  display: grid;
  place-items: center;
}

.telegram-link {
  position: relative;
  display: grid;
  width: clamp(2.1rem, 2.35vw, 2.7rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(248, 248, 244, 0.48);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  opacity: 0.9;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.telegram-link::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -72%;
  width: 58%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  opacity: 0;
  transition: opacity 160ms ease;
}

.telegram-link img {
  position: relative;
  z-index: 1;
  display: block;
  width: 48%;
  height: 48%;
  object-fit: contain;
}

.telegram-link:hover {
  border-color: rgba(248, 248, 244, 0.74);
  background: rgba(248, 248, 244, 0.07);
  box-shadow: 0 0 26px rgba(255,255,255,0.12);
  opacity: 1;
  transform: translateY(-1px);
}

.telegram-link:hover::after {
  opacity: 1;
  animation: claim-sheen 1.3s ease forwards;
}

.telegram-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.56rem);
  z-index: 30;
  display: grid;
  gap: 0.22rem;
  width: 8.95rem;
  padding: 0.42rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3,3,3,0.92);
  box-shadow: 0 22px 48px rgba(0,0,0,0.48), 0 0 28px rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.65rem) scaleY(0.82);
  transform-origin: top right;
  transition: opacity 190ms ease, transform 190ms cubic-bezier(.2,.85,.22,1), border-color 160ms ease;
  backdrop-filter: blur(12px);
}

.telegram-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.68rem;
}

.telegram-menu:hover .telegram-dropdown,
.telegram-menu:focus-within .telegram-dropdown,
.telegram-menu.is-open .telegram-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
  border-color: var(--line-strong);
}

.telegram-menu.is-click-closed .telegram-dropdown {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.65rem) scaleY(0.82);
  border-color: var(--line);
}

.telegram-dropdown a,
.telegram-dropdown button {
  display: none;
  width: 100%;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(0.92rem, 0.96vw, 1.08rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  place-items: center;
  transition: background 160ms ease, color 160ms ease, text-shadow 160ms ease;
}

.telegram-dropdown a {
  line-height: 1;
}

.telegram-dropdown .is-connect {
  color: var(--success);
}

.telegram-dropdown .is-disconnect {
  color: #ff4747;
}

.telegram-dropdown a:hover,
.telegram-dropdown button:hover {
  background: rgba(248,248,244,0.08);
}

.telegram-dropdown .is-connect:hover {
  text-shadow: 0 0 16px rgba(71,229,139,0.38);
}

.telegram-dropdown .is-disconnect:hover {
  text-shadow: 0 0 16px rgba(255,71,71,0.38);
}

.telegram-menu:not(.is-connected) [data-telegram-menu-connect] {
  display: grid;
}

.telegram-menu.is-connected [data-telegram-menu-open],
.telegram-menu.is-connected [data-telegram-menu-disconnect] {
  display: grid;
}

.hero {
  position: static;
}

.takeover-top {
  position: absolute;
  left: 50%;
  top: 16.02svh;
  transform: translateX(-50%);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.92rem;
  width: min(23.6rem, 92vw);
  min-height: 6.45svh;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 28px rgba(255,255,255,0.035);
  cursor: pointer;
  font-size: clamp(1.05rem, 1.48vw, 1.75rem);
  line-height: 1;
  overflow: hidden;
  padding: 0 1.05rem;
  text-align: center;
  animation: outline-pulse 2.4s ease-in-out infinite;
  transition: background 180ms ease, transform 180ms ease;
}

.takeover-top > span:first-child {
  display: inline-block;
  line-height: 1;
}

.takeover-top:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translate(-50%, -1px);
}

.takeover-top.is-owned,
.takeover-top.is-battle {
  box-shadow: none;
  animation: none;
}

.takeover-top.is-owned {
  border-color: rgba(248, 248, 244, 0.34);
  background: rgba(8, 8, 8, 0.22);
  color: rgba(248, 248, 244, 0.52);
  cursor: default;
}

.takeover-top.is-battle {
  border-color: rgba(255, 54, 54, 0.66);
  background: rgba(255, 54, 54, 0.055);
  color: var(--red);
  animation: battle-button-pulse 2.8s ease-in-out infinite;
}

.takeover-top.is-owned:hover {
  background: rgba(8, 8, 8, 0.22);
  transform: translateX(-50%);
}

.takeover-top.is-battle:hover {
  background: rgba(255, 54, 54, 0.09);
}

.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.58em;
  height: 0.58em;
  flex: 0 0 0.58em;
  opacity: 0.86;
  transform: translateY(-0.01em);
}

.button-arrow img {
  display: block;
  width: 0.58em;
  height: 0.58em;
  object-fit: contain;
  pointer-events: none;
}

.button-arrow::before,
.button-arrow::after {
  content: none;
}

.takeover-top.is-owned {
  gap: 0;
}

.takeover-top.is-owned .button-arrow,
.takeover-top.is-battle .button-arrow {
  display: none;
}

@keyframes battle-button-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,54,54,0); }
  50% { box-shadow: 0 0 24px rgba(255,54,54,0.16); }
}

@keyframes outline-pulse {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 28px rgba(255,255,255,0.035);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 0 34px rgba(255,255,255,0.13);
  }
}

.section-label {
  position: absolute;
  left: var(--edge);
  top: 22.25svh;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  width: auto;
  margin: 0;
  font-size: clamp(0.96rem, 1.25vw, 1.5rem);
}

.section-label span {
  width: 0.22rem;
  height: 1.55rem;
  background: var(--text);
}

.spot-frame {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: var(--spot-top);
  height: var(--spot-height);
  margin: 0;
  padding: clamp(0.75rem, 1.55vw, 1.9rem);
}

.corner {
  position: absolute;
  width: clamp(1.8rem, 2.65vw, 3rem);
  height: clamp(1.8rem, 2.65vw, 3rem);
  border-color: var(--text);
  border-style: solid;
  border-width: 0;
}

.top-left {
  left: 0;
  top: 0;
  border-left-width: 0.45rem;
  border-top-width: 0.45rem;
}

.top-right {
  right: 0;
  top: 0;
  border-right-width: 0.45rem;
  border-top-width: 0.45rem;
}

.bottom-left {
  left: 0;
  bottom: 0;
  border-left-width: 0.45rem;
  border-bottom-width: 0.45rem;
}

.bottom-right {
  right: 0;
  bottom: 0;
  border-right-width: 0.45rem;
  border-bottom-width: 0.45rem;
}

.spot-surface {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    #060606;
  box-shadow: 0 24px 74px rgba(0,0,0,0.72), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.spot-surface::before,
.spot-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.spot-surface::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,0.035) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,0.026) 31px 32px);
}

.spot-surface::after {
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.7);
}

.spot-surface.is-filled {
  background: #050505;
}

.spot-surface.is-mobile-poster {
  background: #050505;
}

.spot-surface.is-filled::before {
  opacity: 0;
  background: none;
}

.spot-surface.under-attack::before {
  opacity: 1;
  background:
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(255,54,54,0.22) 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255,54,54,0.17) 30px 31px);
}

.spot-surface.is-filled::after {
  box-shadow: inset 0 0 44px rgba(0,0,0,0.48);
}

.spot-frame.is-filled .spot-copy,
.spot-surface.is-filled .spot-copy {
  display: none;
}

.empty-spot-fallback,
.spot-frame:not(.is-filled) .spot-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid !important;
  width: 100%;
  height: 100%;
  place-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.spot-frame.has-current-ad .empty-spot-fallback,
.spot-surface.has-current-ad .empty-spot-fallback {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.spot-surface.under-attack .spot-media,
.spot-surface.under-attack .spot-media-bg {
  filter: blur(12px) brightness(0.45);
  transform: scale(1.02);
  pointer-events: none;
}

.spot-surface.under-attack .spot-media-link {
  pointer-events: none;
}

.spot-surface.under-attack {
  border-color: rgba(255, 54, 54, 0.82);
  animation: attack-frame-pulse 2.2s ease-in-out infinite;
  background:
    linear-gradient(180deg, rgba(255, 35, 35, 0.11), rgba(255, 35, 35, 0.035)),
    #050505;
  box-shadow: 0 0 38px rgba(255, 54, 54, 0.14), inset 0 0 0 1px rgba(255,54,54,0.14);
}

@keyframes attack-frame-pulse {
  0%, 100% {
    box-shadow: 0 0 26px rgba(255, 54, 54, 0.12), inset 0 0 0 1px rgba(255,54,54,0.12);
  }
  50% {
    box-shadow: 0 0 48px rgba(255, 54, 54, 0.26), inset 0 0 0 1px rgba(255,54,54,0.22);
  }
}

.spot-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.spot-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-media-bg {
  position: absolute;
  inset: -8%;
  z-index: 1;
  display: block;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(30px) brightness(0.36);
  transform: scale(1.04);
}

.spot-media.is-mobile-poster {
  inset: 5% 0;
  z-index: 2;
  width: 100%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.62));
}

.battle-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,54,54,0.18), transparent 42%),
    linear-gradient(90deg, rgba(255,54,54,0.08), transparent 20%, transparent 80%, rgba(255,54,54,0.08)),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(255,54,54,0.22) 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255,54,54,0.18) 30px 31px),
    rgba(0, 0, 0, 0.42);
}

.battle-overlay::before,
.battle-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.battle-overlay::before {
  border: 1px solid rgba(255,54,54,0.62);
  box-shadow: inset 0 0 58px rgba(255,54,54,0.18), 0 0 48px rgba(255,54,54,0.18);
}

.battle-overlay::after {
  opacity: 0.5;
  background: linear-gradient(180deg, transparent, rgba(255,54,54,0.11), transparent);
  transform: translateY(-42%);
  animation: battle-scan 4.8s ease-in-out infinite;
}

@keyframes battle-scan {
  0%, 100% { transform: translateY(-42%); }
  50% { transform: translateY(42%); }
}

.battle-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(0.9rem, 1.45vw, 1.55rem);
  width: min(68rem, 92%);
  min-height: 100%;
  font-family: var(--font-main);
}

.battle-live {
  position: absolute;
  right: 0;
  top: -0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ff3636;
  font-size: clamp(0.8rem, 1vw, 1.1rem);
}

.battle-live span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ff3636;
  box-shadow: 0 0 18px rgba(255,54,54,0.8);
}

.battle-panel h3 {
  margin: 0;
  color: var(--red);
  font-family: var(--font-logo);
  font-size: clamp(2rem, 3.4vw, 4.3rem);
  line-height: 0.92;
  text-shadow: 0 0 24px rgba(255,54,54,0.36);
}

.battle-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3rem, 4.6vw, 5.2rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.65rem, 1.8vw, 2.2rem);
  width: min(54rem, 100%);
  margin: 0;
  color: var(--red);
}

.battle-player {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  color: var(--text);
}

.battle-player:first-child {
  justify-items: end;
  text-align: right;
}

.battle-player:last-child {
  justify-items: start;
  text-align: left;
}

.battle-player strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-logo);
  font-size: clamp(1rem, 1.45vw, 1.72rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
  white-space: normal;
  text-transform: none;
}

.battle-versus > strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-logo);
  font-size: clamp(1rem, 1.45vw, 1.72rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
  white-space: normal;
  text-transform: none;
}

.battle-versus > strong:first-child {
  justify-self: end;
  text-align: right;
}

.battle-versus > strong:last-child {
  justify-self: start;
  text-align: left;
}

.battle-player span {
  color: #ff3636;
  font-size: clamp(0.68rem, 0.92vw, 1rem);
}

.battle-versus > span {
  justify-self: center;
  color: var(--red);
  font-family: var(--font-logo);
  font-size: clamp(1.65rem, 2.75vw, 3.1rem);
  line-height: 0.92;
  transform: translateY(-0.02em);
  text-shadow: 0 0 18px rgba(255,54,54,0.3);
}

.battle-vs,
.battle-timer {
  color: var(--red);
}

.battle-vs {
  font-family: var(--font-logo);
  font-size: clamp(1.65rem, 2.75vw, 3.1rem);
  line-height: 0.92;
  transform: translateY(-0.08em);
  text-shadow: 0 0 18px rgba(255,54,54,0.3);
}

.battle-timer {
  display: inline-grid;
  place-items: center;
  width: clamp(19rem, 24vw, 26rem);
  min-width: clamp(19rem, 24vw, 26rem);
  font-family: var(--font-number);
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border: 1px solid rgba(255,54,54,0.28);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
  padding: 0.22rem 0.85rem;
  text-shadow: 0 0 22px rgba(255,54,54,0.28);
}

.battle-waiting {
  margin: 0;
  color: #ff6262;
  font-size: clamp(0.9rem, 1.25vw, 1.35rem);
  text-transform: none;
}

.spot-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: clamp(1.2rem, 2vw, 2.2rem);
  width: min(52rem, 86%);
  text-align: center;
}

.spot-copy .eyebrow {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: clamp(0.72rem, 0.9vw, 0.98rem);
}

.spot-copy h1 {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.35vw, 5.65rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.spot-copy p {
  max-width: 40rem;
  margin: 0.68rem auto 0.95rem;
  color: var(--muted);
  font-size: clamp(0.74rem, 0.9vw, 1rem);
  line-height: 1.35;
}

.spot-copy button,
.wallet-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--text);
  color: #030303;
  cursor: pointer;
  padding: 0.72rem 1rem;
}

.spot-copy button {
  min-width: 9.1rem;
  position: relative;
  overflow: hidden;
  animation: claim-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.spot-copy button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 55%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  animation: claim-sheen 3.6s ease-in-out infinite;
}

.spot-copy button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.18);
}

@keyframes claim-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.16);
  }
}

@keyframes claim-sheen {
  0%, 42% {
    left: -70%;
  }
  62%, 100% {
    left: 120%;
  }
}

.stats-grid {
  position: absolute;
  left: var(--edge);
  top: calc(var(--spot-top) + var(--spot-height) + var(--stats-gap));
  display: grid;
  width: min(54.6vw, 65rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
  margin: 0;
  padding-left: 0;
}

.stat-card {
  --stat-x: 1.35vw;
  --stat-label-y: 1.85rem;
  --stat-value-y: 5.55rem;
  --stat-meta-y: 9.65rem;
  --stat-closed-height: 3.75rem;
  --stat-open-height: clamp(11.3rem, 17.6svh, 12.7rem);
  position: relative;
  display: block;
  height: var(--stat-closed-height);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  text-align: left;
  transform: scale(1);
  transform-origin: center;
  transition:
    height 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
  will-change: transform, height;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: var(--stat-x);
  top: var(--stat-label-y);
  width: 0.52rem;
  height: 0.52rem;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  opacity: 0.78;
  transform: translateY(-65%) rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 320ms ease, opacity 240ms ease;
}

.stat-card.is-open::after {
  opacity: 1;
  transform: translateY(-35%) rotate(225deg);
}

.stat-card.is-open {
  height: var(--stat-open-height);
  transform: scale(1.018);
  border-color: rgba(248, 248, 244, 0.42);
  box-shadow: 0 0 28px rgba(255,255,255,0.055);
}

.stat-card h2 {
  position: absolute;
  left: var(--stat-x);
  right: calc(var(--stat-x) + 1.4rem);
  top: var(--stat-label-y);
  text-align: left;
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 1.15rem);
  line-height: 1;
  transform: translateY(-50%);
}

.stat-card strong {
  position: absolute;
  left: var(--stat-x);
  right: var(--stat-x);
  top: var(--stat-value-y);
  display: block;
  text-align: left;
  font-size: clamp(1.25rem, 2vw, 2.45rem);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: clip;
  opacity: 0;
  transform: translateY(calc(-50% + 0.28rem));
  transition: opacity 260ms ease 90ms, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 90ms;
}

.stat-card.is-open strong {
  opacity: 1;
  transform: translateY(-50%);
  margin-top: 0;
}

.stat-card .money,
.stat-card .number {
  font-family: var(--font-number);
  font-weight: 900;
  font-size: clamp(1.62rem, 2.62vw, 3.1rem);
  white-space: nowrap;
}

.stat-card p {
  position: absolute;
  left: var(--stat-x);
  right: var(--stat-x);
  top: var(--stat-meta-y);
  text-align: left;
  margin: 0;
  color: var(--text);
  font-size: clamp(0.62rem, 0.86vw, 1rem);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(calc(-50% + 0.2rem));
  transition: opacity 260ms ease 120ms, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms;
}

.stat-card.is-open p {
  opacity: 1;
  transform: translateY(-50%);
  margin-top: 0;
}

.owner-card strong {
  font-family: var(--font-number);
  font-weight: 900;
  font-size: clamp(0.98rem, 1.48vw, 1.85rem);
  white-space: normal;
  overflow-wrap: anywhere;
}

[data-current-owner] {
  text-transform: none;
}

.owner-card p {
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.battle-actions {
  position: absolute;
  right: var(--edge);
  top: calc(var(--spot-top) + var(--spot-height) + var(--stats-gap));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
  width: min(35.8vw, 42rem);
}

.battle-actions button {
  position: relative;
  display: grid;
  min-height: 3.2rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8,8,8,0.7);
  color: var(--text);
  cursor: pointer;
  padding: 0.14rem 1rem 0;
  line-height: 1;
  text-align: center;
  transform: translateY(0);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.battle-actions button:first-child {
  border-color: rgba(71,229,139,0.68);
  background: rgba(71,229,139,0.12);
  color: var(--success);
  animation: defend-pulse 2.8s ease-in-out infinite;
}

.battle-actions button:last-child {
  border-color: rgba(248,248,244,0.28);
  background: rgba(248,248,244,0.08);
  color: var(--muted);
  animation: let-go-pulse 3.2s ease-in-out infinite;
}

.battle-actions button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 55%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  animation: action-sheen 3.9s ease-in-out infinite;
  opacity: 0.72;
  pointer-events: none;
}

.battle-actions button:hover {
  transform: translateY(-2px);
}

.battle-actions button:first-child:hover {
  border-color: rgba(71,229,139,0.92);
  background: rgba(71,229,139,0.17);
  box-shadow: 0 0 28px rgba(71,229,139,0.2);
}

.battle-actions button:last-child:hover {
  border-color: rgba(248,248,244,0.48);
  background: rgba(248,248,244,0.12);
  box-shadow: 0 0 24px rgba(248,248,244,0.12);
}

.battle-actions button:hover::after {
  opacity: 1;
}

@keyframes defend-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(71,229,139,0); }
  50% { box-shadow: 0 0 24px rgba(71,229,139,0.17); }
}

@keyframes let-go-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(248,248,244,0); }
  50% { box-shadow: 0 0 18px rgba(248,248,244,0.1); }
}

@keyframes action-sheen {
  0%, 48% { left: -70%; }
  68%, 100% { left: 120%; }
}

.site-footer {
  position: absolute;
  right: 4.45vw;
  bottom: 32px;
  transform: translateY(50%);
  margin: 0;
  color: var(--text);
  font-size: clamp(0.86rem, 1.05vw, 1.18rem);
}

.technical-reset {
  position: absolute;
  right: 4.45vw;
  bottom: 62px;
  z-index: 5;
  border: 1px solid rgba(248,248,244,0.24);
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
  color: rgba(248,248,244,0.46);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: clamp(0.58rem, 0.72vw, 0.78rem);
  font-weight: 700;
  line-height: 1;
  padding: 0.46rem 0.62rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.technical-reset:hover {
  transform: translateY(-1px);
  border-color: rgba(248,248,244,0.54);
  background: rgba(248,248,244,0.06);
  color: rgba(248,248,244,0.86);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 220ms ease;
}

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

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 8px), 0);
  transform-origin: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(3, 3, 3, 0.96);
  padding: 2rem 2rem 3.15rem;
  box-shadow: 0 24px 90px rgba(0,0,0,0.88);
  backface-visibility: hidden;
  contain: layout paint;
  will-change: opacity, transform;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-open {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
}

.modal > * {
  backface-visibility: hidden;
}

#modal-history {
  width: min(52rem, calc(100vw - 2rem));
}

.modal h2 {
  margin: 0 2.5rem 1.2rem 0;
  font-size: clamp(1.45rem, 2vw, 2.25rem);
}

.modal p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
  text-transform: none;
}

.manifest-copy p {
  margin-bottom: 1.1rem;
  color: var(--text);
  line-height: 1.32;
  text-transform: none;
}

.manifest-copy p:last-child {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(248,248,244,0.28);
  border-radius: 8px;
  background: rgba(8,8,8,0.72);
  color: transparent;
  font-size: 0;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-close:hover {
  border-color: rgba(248,248,244,0.56);
  background: rgba(248,248,244,0.08);
}

.history-list {
  display: grid;
  gap: 0.72rem;
}

.history-empty,
.history-item {
  display: grid;
  gap: 0.64rem;
  border: 1px solid rgba(248,248,244,0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248,248,244,0.045), rgba(248,248,244,0.015));
  padding: 0.9rem;
}

.history-empty span,
.history-top,
.history-bottom {
  color: var(--muted);
  font-size: 0.78rem;
}

.history-empty strong,
.history-item strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-transform: none;
}

.history-top,
.history-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.history-badge {
  border: 1px solid rgba(248,248,244,0.18);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: var(--text);
}

.history-attack .history-badge {
  border-color: rgba(255,54,54,0.48);
  color: var(--red);
}

.history-defense .history-badge,
.history-takeover .history-badge {
  border-color: rgba(71,229,139,0.52);
  color: var(--success);
}

.history-actors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem 0.56rem;
  padding: 0.12rem 0 0.04rem;
}

.history-actors b {
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: var(--text);
  font-family: var(--font-number);
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-transform: none;
}

.history-actors span {
  border: 1px solid rgba(248,248,244,0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.18rem 0.45rem;
}

.history-attack .history-actors span {
  border-color: rgba(255,54,54,0.34);
  color: var(--red);
}

.history-defense .history-actors span,
.history-takeover .history-actors span {
  border-color: rgba(71,229,139,0.34);
  color: var(--success);
}

.history-bottom b {
  color: var(--text);
  font-family: var(--font-number);
}

/* Final mobile override: the main site becomes a clean vertical mobile app-like layout. */
@media (max-width: 640px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .page-shell {
    display: flex !important;
    height: auto !important;
    min-height: 100svh !important;
    flex-direction: column !important;
    overflow: visible !important;
    padding: 1.2rem var(--edge) calc(2rem + env(safe-area-inset-bottom)) !important;
  }

  .site-header,
  .takeover-top,
  .section-label,
  .spot-frame,
  .stats-grid,
  .battle-actions,
  .technical-reset,
  .site-footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  .site-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
    margin: 0 0 1.1rem !important;
  }

  .brand {
    width: clamp(8.4rem, 42vw, 11rem) !important;
  }

  .nav-links {
    justify-content: flex-start !important;
    gap: 0.72rem 1rem !important;
  }

  .nav-links button {
    font-size: clamp(0.74rem, 3.4vw, 0.92rem) !important;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
    width: 100% !important;
  }

  .takeover-top {
    width: 100% !important;
    min-height: 3.7rem !important;
    margin: 0 !important;
    font-size: clamp(1rem, 4.8vw, 1.32rem) !important;
  }

  .section-label {
    margin: 0.2rem 0 -0.15rem !important;
    font-size: 0.9rem !important;
  }

  .spot-frame {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    padding: 0.62rem !important;
  }

  .spot-media {
    object-fit: contain !important;
    background: #050505 !important;
  }

  .battle-panel h3 {
    font-size: clamp(1.8rem, 11vw, 3rem) !important;
    line-height: 0.82 !important;
  }

  .battle-versus {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.16rem !important;
  }

  .battle-versus strong {
    max-width: 100% !important;
    font-size: clamp(0.86rem, 4vw, 1.16rem) !important;
    overflow-wrap: anywhere !important;
  }

  .battle-timer {
    width: min(100%, 16.5rem) !important;
    min-width: 0 !important;
    font-size: clamp(2rem, 12vw, 3.2rem) !important;
  }

  .stats-grid {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: 1fr !important;
    gap: 0.72rem !important;
    margin: 0.65rem 0 0 !important;
    padding: 0 !important;
  }

  .stats-grid .stat-card,
  .stats-grid .stat-card.is-open {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.42rem !important;
    padding: 0.9rem 1rem !important;
    transform: none !important;
  }

  .stats-grid .stat-card::after {
    content: none !important;
  }

  .stats-grid .stat-card h2,
  .stats-grid .stat-card strong,
  .stats-grid .stat-card p {
    position: static !important;
    inset: auto !important;
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    text-align: left !important;
  }

  .stats-grid .stat-card h2 {
    font-size: 0.82rem !important;
  }

  .stats-grid .stat-card strong,
  .stats-grid .owner-card strong {
    max-width: 100% !important;
    font-family: var(--font-number) !important;
    font-size: clamp(1.35rem, 6.2vw, 2rem) !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .stats-grid .stat-card strong.money,
  .stats-grid .stat-card strong.number {
    font-size: clamp(1.65rem, 8vw, 2.45rem) !important;
  }

  .battle-actions {
    width: 100% !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  .technical-reset {
    align-self: flex-start !important;
    margin: 1.7rem 0 0 !important;
  }

  .site-footer {
    margin: 1.25rem 0 0 !important;
  }
}

/* Mobile site layout. Keep this block last: it intentionally overrides desktop locks. */
@media (max-width: 640px) {
  :root {
    --edge: clamp(16px, 5vw, 22px);
    --header-top: 18px;
    --stats-gap: 1rem;
  }

  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    background:
      radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.05), transparent 18rem),
      linear-gradient(180deg, #000 0%, #030303 56%, #000 100%);
  }

  .page-shell {
    display: flex;
    min-height: 100svh;
    height: auto;
    flex-direction: column;
    overflow: visible;
    padding: 1.2rem var(--edge) calc(2rem + env(safe-area-inset-bottom));
  }

  .ticker-bg {
    inset: 4.5rem -120vw 4rem -120vw;
    opacity: 0.26;
  }

  .ticker-row {
    font-size: clamp(4.9rem, 24vw, 7rem);
  }

  .site-header {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.8rem;
    width: 100%;
    margin: 0 0 1.1rem;
  }

  .brand {
    width: clamp(8.4rem, 42vw, 11rem);
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.72rem 1rem;
  }

  .nav-links button {
    font-size: clamp(0.74rem, 3.4vw, 0.92rem);
    line-height: 1;
  }

  .telegram-link {
    width: 2rem;
    border-color: transparent;
    background: transparent;
  }

  .telegram-dropdown {
    left: 0;
    right: auto;
  }

  .hero {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
  }

  .takeover-top {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    width: 100%;
    min-height: 3.7rem;
    transform: none;
    gap: 0.72rem;
    padding: 0.15rem 1rem 0;
    font-size: clamp(1rem, 4.8vw, 1.32rem);
  }

  .takeover-top:hover,
  .takeover-top.is-owned:hover {
    transform: none;
  }

  .section-label {
    position: relative;
    left: auto;
    top: auto;
    order: 2;
    gap: 0.72rem;
    margin: 0.2rem 0 -0.15rem;
    font-size: 0.9rem;
  }

  .section-label span {
    width: 0.18rem;
    height: 1.55rem;
  }

  .spot-frame {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    order: 3;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0.62rem;
  }

  .corner {
    width: 1.95rem;
    height: 1.95rem;
  }

  .top-left,
  .top-right,
  .bottom-left,
  .bottom-right {
    border-width: 0;
  }

  .top-left {
    border-left-width: 0.34rem;
    border-top-width: 0.34rem;
  }

  .top-right {
    border-right-width: 0.34rem;
    border-top-width: 0.34rem;
  }

  .bottom-left {
    border-left-width: 0.34rem;
    border-bottom-width: 0.34rem;
  }

  .bottom-right {
    border-right-width: 0.34rem;
    border-bottom-width: 0.34rem;
  }

  .spot-surface {
    min-height: 0;
  }

  .spot-surface::before {
    background:
      repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,0.035) 25px 26px),
      repeating-linear-gradient(0deg, transparent 0 24px, rgba(255,255,255,0.026) 25px 26px);
  }

  .spot-media {
    object-fit: contain;
    background: #050505;
  }

  .spot-media-bg {
    filter: blur(24px) brightness(0.32);
  }

  .spot-copy {
    width: 88%;
  }

  .spot-copy h1 {
    font-size: clamp(1.65rem, 9.4vw, 2.85rem);
    line-height: 0.9;
  }

  .spot-copy p {
    font-size: 0.72rem;
  }

  .spot-copy button {
    padding: 0.64rem 0.9rem;
    font-size: 0.72rem;
  }

  .battle-overlay {
    padding: 0.9rem;
  }

  .battle-panel {
    width: min(100%, 20rem);
    gap: 0.55rem;
  }

  .battle-panel h3 {
    font-size: clamp(1.8rem, 11vw, 3rem);
    line-height: 0.82;
  }

  .battle-versus {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.16rem;
    width: 100%;
  }

  .battle-versus strong {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(0.86rem, 4vw, 1.16rem);
    overflow-wrap: anywhere;
  }

  .battle-versus span {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .battle-timer {
    width: min(100%, 16.5rem);
    min-width: 0;
    padding: 0.35rem 0.75rem 0.24rem;
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .stats-grid {
    position: relative;
    left: auto;
    top: auto;
    order: 4;
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 0.72rem;
    margin: 0.65rem 0 0;
    padding: 0;
  }

  .stats-grid .stat-card,
  .stats-grid .stat-card.is-open {
    --stat-x: 0;
    height: auto !important;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.42rem;
    padding: 0.9rem 1rem;
    transform: none !important;
    border-color: rgba(248,248,244,0.26);
    background: rgba(6, 6, 6, 0.72);
  }

  .stats-grid .stat-card::after {
    content: none;
  }

  .stats-grid .stat-card h2,
  .stats-grid .stat-card strong,
  .stats-grid .stat-card p {
    position: static !important;
    inset: auto !important;
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    text-align: left !important;
  }

  .stats-grid .stat-card h2 {
    color: rgba(248,248,244,0.86);
    font-size: 0.82rem;
  }

  .stats-grid .stat-card strong,
  .stats-grid .owner-card strong {
    max-width: 100%;
    color: var(--text);
    font-family: var(--font-number);
    font-size: clamp(1.35rem, 6.2vw, 2rem) !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .stats-grid .stat-card strong.money,
  .stats-grid .stat-card strong.number {
    font-size: clamp(1.65rem, 8vw, 2.45rem) !important;
  }

  .stats-grid .stat-card p {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .battle-actions {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    order: 5;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.2rem;
  }

  .battle-actions button {
    min-height: 3.1rem;
    font-size: 0.9rem;
  }

  .technical-reset {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    align-self: flex-start;
    margin: 1.7rem 0 0;
    padding: 0.72rem 0.9rem;
    font-size: 0.74rem;
  }

  .site-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 1.25rem 0 0;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .modal {
    width: calc(100vw - 1.4rem);
    max-height: calc(100svh - 1.4rem);
    padding: 1.55rem 1.05rem 2.2rem;
  }

  .takeover-modal {
    width: calc(100vw - 1.4rem);
  }

  .takeover-form {
    gap: 0.78rem;
  }

  .takeover-form input {
    min-height: 2.9rem;
  }
}

.spot-frame:not(.is-filled) .spot-surface {
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    #060606 !important;
}

.spot-frame:not(.is-filled) .spot-surface::before {
  opacity: 1 !important;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,0.035) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,0.026) 31px 32px) !important;
}

.spot-frame:not(.is-filled) .spot-copy.empty-spot-fallback {
  position: absolute !important;
  inset: 0 !important;
  z-index: 6 !important;
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-content: center !important;
  justify-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.spot-frame.is-filled .spot-copy.empty-spot-fallback,
.spot-surface.is-filled .spot-copy.empty-spot-fallback {
  display: none !important;
}

#modal-history {
  width: min(52rem, calc(100vw - 2rem));
  padding: 2rem 2rem 3.15rem;
}

#modal-history h2 {
  margin: 0 2.5rem 1.2rem 0;
  font-size: clamp(1.45rem, 2vw, 2.25rem);
}

#modal-history .history-list {
  display: grid;
  gap: 0.72rem;
}

#modal-history .history-start-story {
  display: block;
  width: 100%;
  margin: 1.2rem auto 0;
  border: 1px solid rgba(248,248,244,0.92);
  border-radius: 8px;
  background: #f8f8f4;
  color: #050505;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.86rem 1.15rem;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#modal-history .history-start-story:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 0 30px rgba(255,255,255,0.18);
}

#modal-history .history-empty,
#modal-history .history-item {
  display: grid;
  gap: 0.82rem;
  border: 1px solid rgba(248,248,244,0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248,248,244,0.045), rgba(248,248,244,0.015));
  padding: 1.2rem 1.45rem;
}

#modal-history .history-top,
#modal-history .history-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

#modal-history .history-badge {
  border: 1px solid rgba(248,248,244,0.18);
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1;
}

#modal-history .history-attack .history-badge {
  border-color: rgba(255,54,54,0.46);
  color: var(--red);
}

#modal-history .history-defense .history-badge,
#modal-history .history-takeover .history-badge {
  border-color: rgba(71,229,139,0.52);
  color: var(--success);
}

#modal-history .history-actors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.46rem 0.62rem;
  padding: 0.05rem 0 0;
}

#modal-history .history-name {
  display: inline;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--text);
  font-family: var(--font-number);
  font-weight: 900;
  font-size: clamp(1.08rem, 1.42vw, 1.55rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-transform: none;
}

#modal-history .history-role {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(248,248,244,0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1;
  padding: 0.22rem 0.54rem;
}

#modal-history .history-attack .history-role {
  border-color: rgba(255,54,54,0.34);
  color: var(--red);
}

#modal-history .history-defense .history-role,
#modal-history .history-takeover .history-role {
  border-color: rgba(71,229,139,0.34);
  color: var(--success);
}

#modal-history .history-empty strong,
#modal-history .history-text {
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 1.22vw, 1.18rem);
  font-weight: 700;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-transform: none !important;
}

#modal-history .history-bottom b {
  color: var(--text);
  font-family: var(--font-number);
  font-size: 0.95rem;
}

.stat-card strong.money,
.stat-card strong.number {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  font-size: clamp(1.25rem, 2.12vw, 2.45rem) !important;
  line-height: 0.96;
}

.stat-card strong.money {
  letter-spacing: -0.01em;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-row strong {
  font-family: var(--font-number);
}

.attack-notice {
  display: grid;
  gap: 0.42rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(255,54,54,0.48);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,54,54,0.12), rgba(255,54,54,0.035)),
    rgba(8,8,8,0.72);
  padding: 0.78rem 0.85rem;
  box-shadow: inset 0 0 24px rgba(255,54,54,0.08);
}

.attack-notice strong {
  color: var(--red);
  font-size: 0.84rem;
}

.attack-notice span {
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.35;
  text-transform: none;
}

.takeover-form {
  display: grid;
  gap: 0.85rem;
}

.takeover-modal {
  overflow: hidden;
}

.takeover-modal .checkout-row,
.takeover-modal .attack-notice,
.takeover-modal .takeover-form,
.takeover-modal .modal-note,
.takeover-modal .terms-link,
.takeover-modal .crop-button,
.takeover-modal .mobile-banner-status {
  transition: filter 220ms ease, opacity 220ms ease;
}

.takeover-modal.is-telegram-locked .checkout-row,
.takeover-modal.is-telegram-locked .attack-notice,
.takeover-modal.is-telegram-locked .takeover-form,
.takeover-modal.is-telegram-locked .modal-note,
.takeover-modal.is-telegram-locked .terms-link,
.takeover-modal.is-telegram-locked .crop-button,
.takeover-modal.is-telegram-locked .mobile-banner-status {
  filter: blur(5px);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.telegram-gate {
  position: absolute;
  inset: 5.2rem 1.8rem 1.8rem;
  z-index: 4;
  display: none;
  place-items: center;
  pointer-events: none;
}

.takeover-modal.is-telegram-locked .telegram-gate {
  display: grid;
}

.takeover-form label {
  display: grid;
  gap: 0.45rem;
}

.telegram-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.telegram-status-badge {
  display: inline-grid;
  place-items: center;
  min-height: 1.25rem;
  border: 1px solid rgba(71,229,139,0.48);
  border-radius: 999px;
  background: rgba(71,229,139,0.09);
  color: var(--success);
  padding: 0.14rem 0.54rem;
  font-size: 0.68rem;
  line-height: 1;
  box-shadow: 0 0 16px rgba(71,229,139,0.08);
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  text-transform: none;
}

.takeover-form label.field-error {
  color: #ff4a4a;
}

.takeover-form label.field-error input {
  border-color: rgba(255, 58, 58, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 58, 58, 0.36), 0 0 24px rgba(255, 58, 58, 0.18);
  animation: field-error-pulse 1.05s ease-in-out 2;
}

@keyframes field-error-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 58, 58, 0.32), 0 0 16px rgba(255, 58, 58, 0.1);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 58, 58, 0.92), 0 0 34px rgba(255, 58, 58, 0.28);
  }
}

.takeover-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0.85rem;
  text-transform: none;
}

.takeover-form input.is-readonly {
  border-color: rgba(71,229,139,0.38);
  color: var(--text);
}

.telegram-connect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.74rem;
  min-height: 3.25rem;
  min-width: min(20rem, 82%);
  border: 1px solid rgba(248, 248, 244, 0.86);
  border-radius: 8px;
  background: var(--text);
  color: #050505;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: clamp(0.92rem, 1.08vw, 1.15rem);
  font-weight: 700;
  pointer-events: auto;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.crop-button {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.crop-button:not(:disabled):hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 22px rgba(255,255,255,0.08);
}

.crop-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.mobile-banner-status {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: none;
}

.mobile-banner-status.is-ready {
  color: var(--success);
}

.wallet-connect {
  position: relative;
  min-height: 2.65rem;
  overflow: hidden;
  border: 1px solid rgba(248,248,244,0.28);
  border-radius: 8px;
  background: rgba(248,248,244,0.06);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 0.78rem 1rem;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wallet-connect:hover {
  border-color: rgba(248,248,244,0.54);
  background: rgba(248,248,244,0.1);
  box-shadow: 0 0 24px rgba(248,248,244,0.08);
}

.wallet-connect.is-connected {
  border-color: rgba(71,229,139,0.58);
  background: rgba(71,229,139,0.1);
  color: var(--success);
}

.wallet-status {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: none;
}

.wallet-gate-modal {
  max-width: 25rem;
  text-align: center;
}

.wallet-gate-modal .modal-close {
  top: 1rem;
  right: 1rem;
}

.wallet-gate-kicker,
.wallet-gate-copy,
.wallet-gate-note {
  margin: 0;
}

.wallet-gate-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.wallet-gate-copy,
.wallet-gate-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-transform: none;
}

.wallet-gate-note.is-error {
  color: var(--danger);
}

.wallet-gate-action {
  width: 100%;
  margin-top: 0.35rem;
  border-color: #f8f8f4;
  background: #f8f8f4;
  color: #050505;
}

.wallet-gate-action:disabled {
  cursor: default;
  opacity: 0.62;
}

.telegram-connect::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -70%;
  width: 55%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.74), transparent);
  animation: claim-sheen 3.4s ease-in-out infinite;
}

.telegram-connect img,
.telegram-connect span {
  position: relative;
  z-index: 1;
}

.telegram-connect img {
  width: 1.05rem;
  height: 1.05rem;
  filter: invert(1);
}

.telegram-connect:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 248, 244, 1);
  background: #ffffff;
  box-shadow: 0 0 30px rgba(255,255,255,0.16);
}

.telegram-connect.is-waiting {
  opacity: 0.8;
}

.telegram-connect.is-connected {
  border-color: rgba(71,229,139,0.56);
  background: rgba(71,229,139,0.12);
  color: var(--text);
}

.battle-telegram-connect {
  margin-top: 1.45rem;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.battle-telegram-connect .telegram-connect {
  min-width: min(20rem, 100%);
}

.telegram-connected-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  border: 1px solid rgba(71,229,139,0.48);
  border-radius: 999px;
  background: rgba(71,229,139,0.09);
  color: var(--success);
  padding: 0.46rem 0.82rem;
  font-size: 0.82rem;
  box-shadow: 0 0 18px rgba(71,229,139,0.1);
}

.telegram-connected-pill img {
  width: 1rem;
  height: 1rem;
  filter: invert(1);
}

.crop-modal {
  width: min(60rem, calc(100vw - 2rem));
}

.crop-help {
  margin: -0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: none;
}

.crop-stage {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    #080808;
  background-size: 24px 24px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.crop-stage img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.crop-selection {
  position: absolute;
  left: 0;
  top: 0;
  width: 90px;
  height: 120px;
  border: 2px solid rgba(248,248,244,0.96);
  border-radius: 6px;
  cursor: move;
  box-shadow:
    0 0 0 999px rgba(0,0,0,0.52),
    0 0 28px rgba(255,255,255,0.18);
}

.crop-selection::before,
.crop-selection::after {
  content: "";
  position: absolute;
  inset: 33.333% 0 auto;
  border-top: 1px solid rgba(248,248,244,0.38);
}

.crop-selection::after {
  inset: 66.666% 0 auto;
}

.crop-selection span {
  position: absolute;
  right: -0.45rem;
  bottom: -0.45rem;
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(248,248,244,0.96);
  border-radius: 3px;
  background: #f8f8f4;
  cursor: nwse-resize;
  box-shadow: 0 0 18px rgba(255,255,255,0.22);
}

.wallet-button {
  margin-top: -0.08rem;
  position: relative;
  overflow: hidden;
  min-height: 3.25rem;
  display: grid;
  place-items: center;
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.wallet-button:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 55%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: claim-sheen 3.6s ease-in-out infinite;
}

.wallet-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255,255,255,0.13);
}

.wallet-button:disabled {
  cursor: default;
  opacity: 0.54;
}

.terms-link {
  position: absolute;
  left: 2rem;
  right: auto;
  bottom: 1.45rem;
  display: inline-flex;
  border: 0;
  border-bottom: 1px solid rgba(248, 248, 244, 0.48);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0 0.16rem;
  font-size: 0.78rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.terms-link:hover {
  border-color: var(--text);
  color: var(--text);
}

.modal-action {
  width: 100%;
  margin-top: 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--text);
  color: #030303;
  cursor: pointer;
  padding: 0.82rem 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.modal-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255,255,255,0.14);
}

.modal-action.secondary {
  margin-top: 0.65rem;
  background: transparent;
  color: var(--text);
}

.modal-note {
  margin: 1rem 6.4rem 1.25rem 0;
}

.modal-note.is-error {
  color: #ff8e8e;
}

.modal-note.is-success {
  color: var(--green);
}

@media (max-width: 820px) {
  :root {
    --edge: clamp(18px, 5vw, 34px);
    --header-top: 22px;
    --bg-vgap: 64px;
    --spot-top: 25.4svh;
    --spot-height: 35svh;
  }

  .page-shell {
    height: 100svh;
    min-height: 42rem;
    overflow: hidden;
  }

  .site-header {
    left: var(--edge);
    right: var(--edge);
    top: var(--header-top);
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 1rem;
  }

  .hero {
    justify-content: center;
  }

  .takeover-top {
    top: 14svh;
    width: calc(100vw - (var(--edge) * 2));
    min-height: 3.35rem;
    margin-bottom: 0;
    font-size: clamp(0.95rem, 3.2vw, 1.35rem);
  }

  .section-label {
    left: var(--edge);
    top: 21.2svh;
    font-size: clamp(0.78rem, 2.6vw, 1rem);
  }

  .spot-frame {
    left: var(--edge);
    right: var(--edge);
    top: var(--spot-top);
    height: var(--spot-height);
    padding: 0.8rem;
  }

  .spot-surface {
    min-height: 0;
  }

  .spot-copy h1 {
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

  .spot-copy button {
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
  }

  .battle-panel {
    gap: 0.55rem;
  }

  .battle-versus {
    gap: 0.8rem;
  }

  .battle-player strong {
    font-size: clamp(0.78rem, 2.9vw, 1.15rem);
  }

  .battle-player span {
    font-size: clamp(0.52rem, 1.9vw, 0.72rem);
  }

  .stats-grid {
    left: var(--edge);
    top: calc(var(--spot-top) + var(--spot-height) + var(--stats-gap));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100vw - (var(--edge) * 2));
    margin-top: 0;
    padding-left: 0;
  }

  .battle-actions {
    left: var(--edge);
    right: auto;
    top: calc(var(--spot-top) + var(--spot-height) + var(--stats-gap) + 9.5rem);
    width: calc(100vw - (var(--edge) * 2));
    gap: 0.52rem;
  }

  .stat-card {
    --stat-x: 0.85rem;
    --stat-label-y: 1.42rem;
    --stat-value-y: 4.05rem;
    --stat-meta-y: 7.15rem;
    --stat-closed-height: 3.35rem;
    --stat-open-height: 8.9rem;
  }

  .stat-card.is-open {
    height: var(--stat-open-height);
  }

  .stat-card h2 {
    font-size: clamp(0.62rem, 1.8vw, 0.9rem);
  }

  .stat-card strong {
    font-size: clamp(0.9rem, 2.6vw, 1.55rem);
  }

  .stat-card .money,
  .stat-card .number {
    font-size: clamp(1.45rem, 4.5vw, 2.3rem);
  }

  .stat-card p {
    font-size: clamp(0.55rem, 1.6vw, 0.78rem);
  }

  .stat-card.is-open strong {
    margin-top: 0;
  }

  .stat-card.is-open p {
    margin-top: 0;
  }

  .site-footer {
    left: var(--edge);
    right: auto;
    bottom: 4svh;
    font-size: 0.72rem;
  }

  .technical-reset {
    left: var(--edge);
    right: auto;
    bottom: calc(4svh + 1.35rem);
  }
}

@media (min-width: 821px) and (max-aspect-ratio: 4 / 3) {
  :root {
    --edge: clamp(38px, 5vw, 64px);
    --header-top: clamp(30px, 4vw, 50px);
    --bg-vgap: clamp(78px, 8svh, 105px);
    --spot-top: 26.6svh;
    --spot-height: 37.2svh;
  }

  .brand {
    width: clamp(8.8rem, 15vw, 12rem);
  }

  .nav-links {
    gap: clamp(1rem, 3vw, 2.3rem);
  }

  .nav-links button {
    font-size: clamp(0.82rem, 1.8vw, 1.1rem);
  }

  .takeover-top {
    top: 15.2svh;
    width: min(23rem, calc(100vw - (var(--edge) * 2)));
    min-height: 5.4svh;
  }

  .section-label {
    top: 22.4svh;
  }

  .spot-frame {
    top: var(--spot-top);
    height: var(--spot-height);
  }

  .spot-copy {
    width: min(42rem, 86%);
  }

  .spot-copy h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  }

  .stats-grid {
    width: calc(100vw - (var(--edge) * 2));
    max-width: 64rem;
  }

  .stat-card {
    --stat-label-y: 1.65rem;
    --stat-value-y: 4.65rem;
    --stat-meta-y: 8.05rem;
    --stat-closed-height: 3.65rem;
    --stat-open-height: 10rem;
  }

  .stat-card.is-open {
    height: var(--stat-open-height);
  }

  .stat-card .money,
  .stat-card .number {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
  }

  .site-footer {
    right: var(--edge);
    bottom: 4svh;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .page-shell {
    padding-block: 0.45rem 0.9rem;
  }

  .brand {
    width: 7.9rem;
  }

  .takeover-top {
    min-height: 3rem;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
  }

  .section-label {
    margin-bottom: 0.45rem;
  }

  .spot-surface {
    min-height: clamp(9.2rem, 14.5vw, 15.8rem);
  }

  .spot-copy h1 {
    font-size: clamp(1.7rem, 3.9vw, 4.65rem);
  }

  .spot-copy p {
    margin: 0.45rem auto 0.65rem;
  }

  .stats-grid {
    margin-top: 0.6rem;
  }

  .stat-card {
    --stat-label-y: 1.42rem;
    --stat-value-y: 4.05rem;
    --stat-meta-y: 7.15rem;
    --stat-closed-height: 3.35rem;
    --stat-open-height: 8.9rem;
  }

  .stat-card.is-open {
    height: var(--stat-open-height);
  }

  .site-footer {
    margin-top: 0.35rem;
  }
}

@media (max-width: 520px) {
  :root {
    --edge: 16px;
    --header-top: 14px;
    --bg-vgap: 50px;
    --spot-top: 29svh;
    --spot-height: 31svh;
  }

  .page-shell {
    height: 100svh;
    min-height: 39rem;
    overflow: hidden;
  }

  .site-header {
    left: var(--edge);
    right: var(--edge);
    top: var(--header-top);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .brand {
    width: 7.4rem;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .nav-links button {
    font-size: 0.68rem;
    padding: 0.25rem 0;
  }

  .ticker-bg {
    inset: var(--bg-vgap) -78vw var(--bg-vgap) -78vw;
  }

  .ticker-row {
    font-size: 5.9rem;
  }

  .takeover-top {
    top: 17svh;
    width: calc(100vw - (var(--edge) * 2));
    min-height: 3.35rem;
    font-size: 0.95rem;
  }

  .section-label {
    left: var(--edge);
    top: 25svh;
    font-size: 0.88rem;
  }

  .spot-frame {
    left: var(--edge);
    right: var(--edge);
    top: var(--spot-top);
    height: var(--spot-height);
    padding: 0.55rem;
  }

  .spot-surface {
    min-height: 0;
  }

  .spot-copy h1 {
    font-size: clamp(1.55rem, 9.5vw, 2.65rem);
  }

  .spot-copy p {
    margin: 0.55rem auto 0.75rem;
    font-size: 0.68rem;
  }

  .spot-copy button {
    padding: 0.62rem 0.8rem;
    font-size: 0.72rem;
  }

  .battle-live {
    top: -0.35rem;
    font-size: 0.62rem;
  }

  .battle-panel h3 {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }

  .battle-versus {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .battle-player:first-child,
  .battle-player:last-child {
    justify-items: center;
    text-align: center;
  }

  .battle-vs {
    font-size: 1.35rem;
  }

  .battle-timer {
    width: clamp(13rem, 68vw, 18rem);
    min-width: clamp(13rem, 68vw, 18rem);
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .battle-waiting {
    font-size: 0.72rem;
  }

  .stats-grid {
    left: var(--edge);
    top: calc(var(--spot-top) + var(--spot-height) + var(--stats-gap));
    width: calc(100vw - (var(--edge) * 2));
    gap: 0.42rem;
  }

  .stat-card {
    --stat-x: 0.55rem;
    --stat-label-y: 1.12rem;
    --stat-value-y: 3.35rem;
    --stat-meta-y: 6.25rem;
    --stat-closed-height: 3.15rem;
    --stat-open-height: 7.7rem;
  }

  .stat-card.is-open {
    height: var(--stat-open-height);
  }

  .stat-card h2 {
    margin-bottom: 0.3rem;
    font-size: 0.52rem;
  }

  .stat-card strong,
  .owner-card strong {
    font-size: 0.74rem;
  }

  .stat-card .money,
  .stat-card .number {
    font-size: 1.25rem;
  }

  .stat-card p {
    margin-top: 0.45rem;
    font-size: 0.47rem;
  }

  .spot-copy {
    width: 88%;
  }

  .corner {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-row {
    animation: none;
  }

  .modal,
  .modal-backdrop {
    transition: none;
  }
}

@media (min-width: 821px) {
  :root {
    --spot-frame-width: calc(100vw - (var(--edge) * 2));
    --spot-pad: clamp(0.75rem, 1.55vw, 1.9rem);
    --spot-surface-width: calc(var(--spot-frame-width) - (var(--spot-pad) * 2));
    --spot-height: calc((var(--spot-surface-width) / 4) + (var(--spot-pad) * 2));
    --spot-left: var(--edge);
    --spot-top: calc(50svh - (var(--spot-height) / 2));
  }

  .section-label {
    left: var(--spot-left);
    top: calc(var(--spot-top) - 3.45rem);
  }

  .spot-frame {
    left: var(--spot-left);
    right: auto;
    top: var(--spot-top);
    width: var(--spot-frame-width);
    height: var(--spot-height);
    padding: var(--spot-pad);
  }

  .stats-grid {
    left: var(--spot-left);
    top: calc(var(--spot-top) + var(--spot-height) + var(--stats-gap));
  }

  .battle-actions {
    right: var(--spot-left);
    top: calc(var(--spot-top) + var(--spot-height) + var(--stats-gap));
  }
}

/* Final desktop layout locks. Keep these last so responsive rules do not re-grow the cards. */
.stats-grid .stat-card {
  --stat-label-y: 1.55rem;
  --stat-value-y: 4.55rem;
  --stat-meta-y: 7.25rem;
  --stat-closed-height: 3.35rem;
  --stat-open-height: clamp(8.75rem, 13.6svh, 9.7rem);
}

.stats-grid .stat-card strong {
  top: var(--stat-value-y) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 2.46rem !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

.stats-grid .stat-card strong.money,
.stats-grid .stat-card strong.number {
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  font-size: clamp(1.38rem, 1.78vw, 2.08rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.stats-grid .stat-card strong.money {
  transform-origin: left center;
}

.stats-grid .stat-card.is-open strong.money {
  transform: translateY(-50%) !important;
}

.stats-grid .owner-card strong {
  font-size: clamp(1rem, 1.4vw, 1.72rem) !important;
  line-height: 1 !important;
}

.history-list {
  gap: 0.72rem;
}

.history-empty,
.history-item {
  gap: 0.58rem;
  border: 1px solid rgba(248,248,244,0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248,248,244,0.045), rgba(248,248,244,0.015));
  padding: 0.78rem;
}

.history-empty span,
.history-top,
.history-bottom {
  color: var(--muted);
  font-size: 0.68rem;
}

.history-empty strong,
.history-item strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-transform: none !important;
}

.history-actors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem 0.42rem;
  padding: 0.1rem 0 0.05rem;
}

.history-actors b {
  min-width: 0;
  width: auto !important;
  max-width: 100%;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-family: var(--font-number);
  font-weight: 900;
  font-size: 0.84rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-transform: none !important;
}

.history-actors span {
  border: 1px solid rgba(248,248,244,0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.16rem 0.38rem;
}

.history-attack .history-actors span {
  border-color: rgba(255,54,54,0.34);
  color: var(--red);
}

.history-defense .history-actors span,
.history-takeover .history-actors span {
  border-color: rgba(71,229,139,0.34);
  color: var(--success);
}

.history-bottom b {
  color: var(--text);
  font-family: var(--font-number);
}
