/* =========================================================
   HYTALE UKRAINE — Ukrainian Hytale server landing
   ========================================================= */

:root {
  /* Hytale-inspired palette */
  --bg-0:           #050814;
  --bg-1:           #0a0f24;
  --bg-2:           #111935;
  --bg-card:        rgba(18, 24, 50, 0.6);
  --bg-card-solid:  #131a36;
  --border:         rgba(120, 160, 255, 0.14);
  --border-strong:  rgba(120, 160, 255, 0.28);

  --text:           #ecf2ff;
  --text-mute:      #8a96bd;
  --text-dim:       #5e6b8e;

  --hytale-cyan:    #4cc9ff;
  --hytale-blue:    #2563ff;
  --hytale-purple:  #7b5cff;
  --hytale-magic:   #9b6bff;

  --ua-blue:        #0057b8;
  --ua-yellow:      #ffd500;

  --accent-grad:    linear-gradient(135deg, #ffd500 0%, #ffb800 100%);
  --primary-grad:   linear-gradient(135deg, #4cc9ff 0%, #2563ff 60%, #7b5cff 100%);
  --frame-grad:     linear-gradient(135deg, rgba(76, 201, 255, .18), rgba(123, 92, 255, .18));

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-1: 0 10px 30px rgba(0, 10, 40, 0.4);
  --shadow-glow: 0 0 60px rgba(76, 201, 255, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(76, 201, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-a { width: 520px; height: 520px; left: -120px; top: -100px;  background: radial-gradient(closest-side, rgba(76, 201, 255, .55), transparent); }
.orb-b { width: 480px; height: 480px; right: -100px; top: 220px;   background: radial-gradient(closest-side, rgba(123, 92, 255, .55), transparent); animation-delay: -7s;}
.orb-c { width: 600px; height: 600px; left: 30%; top: 70%;         background: radial-gradient(closest-side, rgba(255, 213, 0, .25), transparent); animation-delay: -14s;}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}
.noise {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 20, 0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  letter-spacing: .04em;
}
.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(76, 201, 255, .35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: 'Russo One', sans-serif;
  font-size: 18px; letter-spacing: .14em;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub {
  font-size: 11px; color: var(--text-mute); letter-spacing: .14em;
  margin-top: 5px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.main-nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-mute);
  transition: color .2s, background .2s;
  position: relative;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-link.active {
  color: var(--text);
  background: rgba(76, 201, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(76, 201, 255, .25);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 0;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
.lang-pill .lang-on { padding: 4px 10px; background: var(--accent-grad); color: #000; border-radius: 999px; }
.lang-pill .lang-off { padding: 4px 10px; color: var(--text-mute); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 255, 0.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 255, 0.5); }
.btn-outline {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--hytale-cyan); }
.btn-ghost-sm {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-mute);
  transition: color .2s, border-color .2s, background .2s;
}
.btn-ghost-sm:hover { color: var(--text); border-color: var(--hytale-cyan); background: rgba(76, 201, 255, .07); }

.burger {
  display: none; width: 40px; height: 40px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px;
}
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

/* Stage: centered scene only */
.hero-stage {
  --scene-color: #4cc9ff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}
.hero-stage .hero-scene {
  width: 100%;
  max-width: 480px;
}

.class-chips {
  display: flex; flex-direction: column; gap: 14px;
}
.class-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(20, 26, 50, .55);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  font-weight: 700; font-size: 15px; letter-spacing: .03em;
  color: var(--text-mute);
  transition: transform .25s, border-color .25s, background .25s, color .25s;
  backdrop-filter: blur(8px);
  width: 100%;
}
.class-chips-right .class-chip { flex-direction: row; justify-content: flex-end; text-align: right; }
.class-chip-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(76, 201, 255, .08);
  border-radius: 10px;
  color: var(--text-mute);
  transition: background .25s, color .25s, box-shadow .25s;
}
.class-chip-icon svg { width: 18px; height: 18px; }
.class-chip-name { flex: 1; }
.class-chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateX(4px); }
.class-chips-right .class-chip:hover { transform: translateX(-4px); }
.class-chip.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--chip-color, #4cc9ff) 18%, transparent), transparent);
  border-color: var(--chip-color, #4cc9ff);
  color: var(--text);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--chip-color, #4cc9ff) 25%, transparent);
}
.class-chips-right .class-chip.active {
  background: linear-gradient(-90deg, color-mix(in srgb, var(--chip-color, #4cc9ff) 18%, transparent), transparent);
}
.class-chip.active .class-chip-icon {
  background: var(--chip-color, #4cc9ff);
  color: #001022;
  box-shadow: 0 0 24px var(--chip-color, #4cc9ff);
}

/* Center scene */
.hero-scene {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-scene-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(76, 201, 255, .12), transparent 70%);
  pointer-events: none;
}
.hero-scene-aura {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, var(--scene-color), transparent 65%);
  opacity: .45; filter: blur(38px);
  transition: background .5s;
  pointer-events: none;
}
.hero-scene-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-scene-art .float-cube { transform-box: fill-box; transform-origin: center; animation: cubeBob 5s ease-in-out infinite; }
.hero-scene-art .fc-1 { animation-delay: 0s; }
.hero-scene-art .fc-2 { animation-delay: -1.3s; }
.hero-scene-art .fc-3 { animation-delay: -2.5s; }
.hero-scene-art .fc-4 { animation-delay: -3.6s; }
@keyframes cubeBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-scene-logo {
  position: relative; z-index: 2;
  width: 36%; max-width: 200px;
  filter: drop-shadow(0 8px 28px var(--scene-color)) drop-shadow(0 0 18px var(--scene-color));
  animation: floaty 6s ease-in-out infinite;
  margin-bottom: 64px;
  transition: filter .5s;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Players pill */
.players-pill {
  position: absolute; bottom: 6%; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  background: rgba(0, 6, 18, .6);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  z-index: 3;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(34, 197, 94, .12);
  white-space: nowrap;
}
.players-pill-count {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(34, 197, 94, .35);
}
.players-pill-count svg { width: 14px; height: 14px; }
.players-pill-count strong { font-weight: 900; }
.players-pill-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px 9px 12px;
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.players-pill-cta svg { width: 12px; height: 12px; }

/* Title block */
.hero-titleblock {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(76, 201, 255, .08);
  border: 1px solid rgba(76, 201, 255, .25);
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hytale-cyan);
  margin-bottom: 24px;
  flex-wrap: wrap;
  text-align: center;
  max-width: 100%;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: pulse 2s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  50%     { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.hero-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(48px, 8vw, 110px);
  line-height: .92;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.hero-title-line { display: block; }
.hero-title-line.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 213, 0, .35));
}
.hero-lead {
  font-size: 17px; color: var(--text-mute);
  max-width: 560px; margin: 0 auto 32px;
  text-align: center;
}

/* Animated Ukraine flag — SVG turbulence wave, inline next to UKRAINE */
.ua-flag {
  display: inline-block;
  width: 0.8em;
  height: 0.54em;
  margin-left: .25em;
  vertical-align: 0.18em;
  overflow: visible;
  filter:
    drop-shadow(0 4px 10px rgba(0, 87, 184, .45))
    drop-shadow(0 0 6px rgba(255, 213, 0, .25));
  animation: uaFlagSway 4s ease-in-out infinite;
  transform-origin: 10% 60%;
}
@keyframes uaFlagSway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

/* Universal nowrap helper */
.nowrap { white-space: nowrap; }

/* Telegram-section title — slightly smaller so it never wraps awkwardly */
.tg-split-title { font-size: clamp(28px, 4vw, 46px) !important; }
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 44px;
}

.stats-strip {
  display: grid; grid-template-columns: auto auto 1fr; gap: 22px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  align-items: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.stat-label { font-size: 10px; letter-spacing: .18em; color: var(--text-dim); font-weight: 700; text-transform: uppercase; }
.stat-value {
  font-family: 'Russo One', sans-serif;
  font-size: 28px;
  color: var(--text);
}
.status-text { font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px currentColor;
  transition: background .3s;
}
.status-dot.online { background: #22c55e; color: #22c55e; }
.status-dot.offline { background: #ef4444; color: #ef4444; }
.stat-ip { min-width: 0; }
.ip-copy {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 213, 0, .08);
  border: 1px solid rgba(255, 213, 0, .3);
  border-radius: 10px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 700; font-size: 16px;
  color: var(--ua-yellow);
  transition: background .2s, transform .15s;
}
.ip-copy:hover { background: rgba(255, 213, 0, .15); transform: translateY(-1px); }
.ip-copy svg { width: 16px; height: 16px; }

/* Tags */
.tag {
  padding: 6px 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Hero CTAs — bigger, more prominent, with icon-circle */
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin: 36px 0 36px;
}
.btn-lg {
  padding: 8px 28px 8px 8px;
  font-size: 15px; letter-spacing: .1em;
  border-radius: 14px;
  gap: 14px;
}
.btn-iconcircle {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.btn-outline.btn-lg .btn-iconcircle {
  background: rgba(76, 201, 255, .12);
  color: var(--hytale-cyan);
}
.btn-iconcircle svg { width: 18px; height: 18px; }

/* Stats strip — center it under hero CTA, 3 columns: status / players / ip */
.hero-titleblock .stats-strip {
  max-width: 640px; margin: 0 auto;
  grid-template-columns: 1fr 1fr 1.4fr;
}

/* New stats-pill (replaces stats-strip in hero) */
.stats-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px;
  background: rgba(0, 6, 18, .55);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(34, 197, 94, .12);
  margin: 8px auto 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.stats-pill-segment {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}
.stats-pill-segment svg { width: 14px; height: 14px; }
/* Status segment — green pill */
.stats-pill-status {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 0 18px rgba(34, 197, 94, .35);
}
.stats-pill-status .status-dot {
  width: 8px; height: 8px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}
.stats-pill-status .status-dot.offline { background: #fecaca; box-shadow: 0 0 8px #fca5a5; }
/* Players segment — neutral */
.stats-pill-players {
  color: var(--text);
  font-weight: 700;
}
.stats-pill-players strong {
  font-weight: 900;
  color: var(--hytale-cyan);
}
/* IP segment — yellow */
.stats-pill-ip {
  background: rgba(255, 213, 0, .12);
  border: 1px dashed rgba(255, 213, 0, .35);
  color: var(--ua-yellow);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.stats-pill-ip:hover { background: rgba(255, 213, 0, .2); border-color: rgba(255, 213, 0, .55); }

/* Static decorative scroll arrow inside hero (kept for layout) */
.scroll-arrow {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border-strong); border-radius: 50%;
  color: var(--text-mute);
  animation: bobDown 2s ease-in-out infinite;
  opacity: .5;
}
.scroll-arrow svg { width: 18px; height: 18px; }
@keyframes bobDown {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 8px); }
}

/* =========================================================
   HOWTO / LICENSE
   ========================================================= */
.howto { padding-top: 60px; }
.howto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.howto-card {
  position: relative;
  padding: 36px 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
}
.howto-card-license {
  border-color: rgba(34, 197, 94, .35);
  background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(20, 26, 50, .6));
}
.howto-card-license .howto-card-bg {
  position: absolute; right: -40px; top: -20px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34, 197, 94, .25), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.howto-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(34, 197, 94, .35);
}
.howto-card-icon svg { width: 30px; height: 30px; }
.howto-card-content { display: flex; flex-direction: column; gap: 14px; }
.howto-card h3 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.howto-card p { color: var(--text-mute); font-size: 15px; }
.howto-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 8px;
}

/* Success button (green) */
.btn-success {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 24px 8px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(34, 197, 94, .3), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s, box-shadow .2s;
}
.btn-success .btn-iconcircle { background: rgba(255,255,255,.22); width: 36px; height: 36px; }
.btn-success .btn-iconcircle svg { width: 16px; height: 16px; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34, 197, 94, .45); }

/* Ghost (outline) inside cards */
.btn-ghost-card {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 24px 8px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 800; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.btn-ghost-card .btn-iconcircle { background: rgba(76, 201, 255, .14); color: var(--hytale-cyan); width: 36px; height: 36px; }
.btn-ghost-card .btn-iconcircle svg { width: 16px; height: 16px; }
.btn-ghost-card:hover { border-color: var(--hytale-cyan); background: rgba(76, 201, 255, .08); }

/* Video / how-to card */
.howto-card-video {
  background: linear-gradient(135deg, rgba(76, 201, 255, .06), rgba(20, 26, 50, .6));
  border-color: var(--border-strong);
}
.howto-card-head {
  display: flex; align-items: center; gap: 12px;
}
.howto-card-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: pulse 1.6s infinite;
}
.howto-thumb {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #131a36, #050814);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  margin-top: auto;
}
.howto-thumb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(76, 201, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 255, .18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 95%);
}
.howto-thumb-bg {
  position: absolute; inset: 0; margin: auto;
  width: 36%; opacity: .25; filter: blur(2px);
}
.howto-thumb-overlay {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 18px;
  text-align: center;
}
.howto-thumb-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 4px 14px rgba(0,0,0,.7);
}
.howto-thumb-sub {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-grad);
  border-radius: 999px;
  font-family: 'Russo One', sans-serif;
  font-size: 13px; letter-spacing: .14em;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 255, .4);
}
.howto-thumb-steps {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.howto-thumb-step {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(76, 201, 255, .15);
  border: 1px solid rgba(76, 201, 255, .35);
  border-radius: 50%;
  font-family: 'Russo One', sans-serif;
  font-size: 12px; color: var(--hytale-cyan);
}
.howto-thumb-stepline {
  width: 14px; height: 2px;
  background: rgba(76, 201, 255, .25);
  border-radius: 2px;
}
.howto-thumb:hover .howto-thumb-step {
  background: rgba(76, 201, 255, .3);
  box-shadow: 0 0 12px rgba(76, 201, 255, .5);
}

/* =========================================================
   TELEGRAM SPLIT
   ========================================================= */
.tg-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.tg-split-text .section-label { margin-bottom: 18px; display: inline-block; }
.tg-split-text .section-title {
  text-align: left;
  margin-bottom: 22px;
}
.tg-lead {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 14px;
}
.tg-split-text p { color: var(--text-mute); margin-bottom: 14px; font-size: 16px; }
.tg-split-text p strong { color: var(--text); font-weight: 700; }
.tg-split-text .btn { margin-top: 18px; }
.tg-split-embed {
  position: relative;
  min-height: 320px;
}
.tg-embed-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.tg-embed-frame iframe { border-radius: var(--radius-lg) !important; min-height: 380px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(76, 201, 255, .04), rgba(255, 213, 0, .03));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}
.about-text .section-label { margin-bottom: 16px; display: inline-block; }
.about-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.about-title-line { display: block; }
.about-lead { font-size: 17px; color: var(--text); margin-bottom: 16px; font-weight: 500; }
.about-text p { color: var(--text-mute); font-size: 15px; margin-bottom: 14px; }
.about-text p strong { color: var(--text); }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.about-stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.about-stat-num {
  font-family: 'Russo One', sans-serif;
  font-size: 32px;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-stat-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700;
}
.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
}
.about-image img { width: 100%; height: auto; display: block; }
.about-image-glow {
  position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, rgba(76,201,255,.5), rgba(255,213,0,.5), rgba(76,201,255,.5));
  filter: blur(16px); opacity: .25; z-index: -1;
}
.about-image-tags {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.about-image-tags .tag { background: rgba(0,0,0,.55); }

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4cc9ff 0%, #2563ff 60%, #7b5cff 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37, 99, 255, .5), 0 0 0 1px rgba(76, 201, 255, .3);
  opacity: 0; transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s;
  z-index: 150;
}
.scroll-top svg { width: 22px; height: 22px; position: relative; z-index: 2; }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { box-shadow: 0 16px 40px rgba(37, 99, 255, .65); }
.scroll-top:hover .scroll-top-ring { opacity: 1; }
.scroll-top-ring {
  position: absolute; inset: -6px;
  border: 2px dashed rgba(76, 201, 255, .55);
  border-radius: 50%;
  opacity: .6;
  animation: spinSlow 8s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* =========================================================
   SECTION COMMON
   ========================================================= */
section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-label {
  display: inline-block;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--hytale-cyan); font-weight: 700;
  padding: 6px 14px;
  border: 1px solid rgba(76, 201, 255, .3); border-radius: 999px;
  background: rgba(76, 201, 255, .06);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-desc { color: var(--text-mute); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* =========================================================
   CLASSES
   ========================================================= */
.class-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.class-card {
  position: relative;
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.class-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-grad);
  opacity: .5; transform: scaleX(.4); transform-origin: left;
  transition: transform .3s ease, opacity .25s;
}
.class-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.class-card:hover::before { transform: scaleX(1); opacity: 1; }
.class-icon {
  font-size: 38px; line-height: 1; margin-bottom: 18px;
  filter: drop-shadow(0 4px 12px rgba(76, 201, 255, .4));
}
.class-card h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 22px; letter-spacing: .04em;
  margin-bottom: 10px;
}
.class-card p { color: var(--text-mute); font-size: 15px; margin-bottom: 18px; }
.class-stats {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ua-yellow);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  width: 100%;
}

/* =========================================================
   MAP
   ========================================================= */
.map-frame-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}
.map-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  padding: 6px 8px 14px;
}
.map-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.map-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-mute);
}
.map-players-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(76, 201, 255, .1);
  border: 1px solid rgba(76, 201, 255, .25);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--hytale-cyan);
}
.map-players-pill svg { width: 14px; height: 14px; }
.map-toolbar-right { display: flex; gap: 8px; }
.map-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  font-size: 13px; font-weight: 600; color: var(--text);
  transition: background .2s, border-color .2s;
}
.map-btn:hover { background: rgba(76, 201, 255, .1); border-color: var(--hytale-cyan); }
.map-btn svg { width: 14px; height: 14px; }

.map-frame-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.map-frame { width: 100%; height: 100%; border: 0; display: block; }
.map-frame.hidden { display: none; }

.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center;
}
.map-placeholder.hidden { display: none; }
.map-placeholder-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(76, 201, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 255, .12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 95%);
}
.map-placeholder-btn { position: relative; z-index: 1; }
.map-placeholder-hint { position: relative; z-index: 1; color: var(--text-dim); font-size: 13px; }

.players-panel {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
}
.players-panel-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.players-panel-head h3 {
  font-family: 'Russo One', sans-serif; font-size: 18px; letter-spacing: .04em;
}
.players-panel-count {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hytale-cyan);
}
.players-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.player-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(76, 201, 255, .08);
  border: 1px solid rgba(76, 201, 255, .22);
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.player-chip-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.players-empty { color: var(--text-dim); font-size: 14px; }

/* =========================================================
   CONNECT (steps)
   ========================================================= */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num {
  font-family: 'Russo One', sans-serif;
  font-size: 56px; line-height: 1; letter-spacing: .04em;
  background: var(--primary-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 10px;
  opacity: .9;
}
.step h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 20px; margin-bottom: 8px; letter-spacing: .04em;
}
.step p { color: var(--text-mute); font-size: 15px; }
.step-ip {
  margin-top: 14px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 213, 0, .08);
  border: 1px dashed rgba(255, 213, 0, .35);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 15px;
  color: var(--ua-yellow);
  transition: background .2s;
}
.step-ip:hover { background: rgba(255, 213, 0, .14); }
.step-ip svg { width: 14px; height: 14px; }

/* =========================================================
   COMMUNITY
   ========================================================= */
.community-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.comm-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, background .25s;
  overflow: hidden;
}
.comm-card::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--accent-color, rgba(76, 201, 255, .25));
  filter: blur(50px); opacity: .35; transition: opacity .3s;
}
.comm-card:hover { transform: translateY(-6px); border-color: var(--accent-color, var(--hytale-cyan)); }
.comm-card:hover::after { opacity: .6; }
.comm-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  margin-bottom: 18px;
  color: var(--accent-color, var(--hytale-cyan));
}
.comm-icon svg { width: 30px; height: 30px; }
.comm-card h3 { font-family: 'Russo One', sans-serif; font-size: 24px; letter-spacing: .04em; margin-bottom: 8px; }
.comm-card p { color: var(--text-mute); font-size: 15px; margin-bottom: 14px; }
.comm-cta { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent-color, var(--hytale-cyan)); text-transform: uppercase; }

.comm-tg   { --accent-color: #29b6f6; }
.comm-dc   { --accent-color: #5865F2; }
.comm-mono { --accent-color: #ffd500; }

/* =========================================================
   FEATURES
   ========================================================= */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  padding: 36px 30px;
  background: linear-gradient(180deg, rgba(76, 201, 255, .06), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-num {
  display: inline-block;
  font-family: 'Russo One', sans-serif;
  font-size: 14px; letter-spacing: .15em;
  padding: 6px 12px;
  background: rgba(255, 213, 0, .12);
  border: 1px solid rgba(255, 213, 0, .3);
  border-radius: 999px;
  color: var(--ua-yellow);
  margin-bottom: 18px;
}
.feature-card h3 { font-family: 'Russo One', sans-serif; font-size: 22px; margin-bottom: 10px; letter-spacing: .04em; }
.feature-card p { color: var(--text-mute); font-size: 15px; }

/* =========================================================
   RULES
   ========================================================= */
.rules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.rule {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: border-color .2s;
}
.rule:hover { border-color: var(--border-strong); }
.rule-num {
  font-family: 'Russo One', sans-serif;
  font-size: 28px; line-height: 1;
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--primary-grad);
  color: #fff;
}
.rule h3 { font-family: 'Russo One', sans-serif; font-size: 18px; margin-bottom: 4px; letter-spacing: .04em; }
.rule p { color: var(--text-mute); font-size: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 20, .7);
  margin-top: 60px;
  padding-top: 60px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand {
  display: flex; gap: 14px; align-items: center;
}
.footer-title { font-family: 'Russo One', sans-serif; font-size: 20px; letter-spacing: .04em; }
.footer-sub { color: var(--text-mute); font-size: 14px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-col h4 {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--hytale-cyan);
  margin-bottom: 14px;
}
.footer-col a {
  display: block; margin-bottom: 10px;
  color: var(--text-mute); font-size: 14px; transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-ip {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 213, 0, .08);
  border: 1px solid rgba(255, 213, 0, .25);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  color: var(--ua-yellow); margin-bottom: 10px;
}
.footer-muted { color: var(--text-dim); font-size: 13px; display: block; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-mute);
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 50px);
  padding: 14px 22px;
  background: rgba(20, 26, 50, .95);
  border: 1px solid rgba(76, 201, 255, .4);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(76, 201, 255, .15);
  font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 200;
  backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-stage .hero-scene { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .class-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .class-chip { flex: 1 1 calc(33% - 12px); min-width: 130px; }
  .class-chips-right .class-chip { flex-direction: row; justify-content: flex-start; text-align: left; }
  .class-grid, .community-grid, .features-grid, .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .howto-grid, .tg-split, .about-card { grid-template-columns: 1fr; gap: 28px; }
  .about-card { padding: 32px; }
  .tg-split-text .section-title { text-align: center; }
}

@media (max-width: 720px) {
  section { padding: 70px 0; }
  .hero { padding: 40px 0 30px; }
  .header-inner { padding: 12px 16px; gap: 8px; }
  .lang-pill { display: none; }
  .brand-text { display: none; }
  .brand-logo { height: 38px; }

  .hero-title {
    font-size: clamp(40px, 13vw, 64px);
    line-height: .95;
  }
  .hero-title-line { white-space: nowrap; }

  /* Stats-pill: smaller, tighter, allow wrap */
  .stats-pill {
    padding: 4px;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stats-pill-segment {
    padding: 7px 12px;
    font-size: 11px;
    letter-spacing: .05em;
    gap: 6px;
  }
  .stats-pill-segment svg { width: 12px; height: 12px; }
  .stats-pill-ip { font-size: 12px; }

  /* Scroll arrow at bottom of hero overlaps stats-pill on mobile — hide it */
  .hero .scroll-arrow { display: none; }

  /* Map: stack toolbar vertically and let placeholder button wrap */
  .map-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .map-toolbar-left,
  .map-toolbar-right { justify-content: center; flex-wrap: wrap; }
  .map-placeholder { padding: 18px; }
  .map-placeholder-btn {
    width: 100%; max-width: 320px;
    padding: 12px 18px;
    font-size: 12px;
    letter-spacing: .04em;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .map-placeholder-btn .btn-iconcircle { width: 32px; height: 32px; }
  .map-placeholder-hint { font-size: 11px; padding: 0 12px; }

  /* About title — fits properly on mobile */
  .about-title {
    font-size: clamp(22px, 6.5vw, 32px);
    line-height: 1.15;
  }
  .about-title-line { display: block; }
  .about-card { padding: 22px; }

  /* About image — tags BELOW image, not overlapping */
  .about-image-tags {
    position: static;
    margin-top: 10px;
    padding: 0;
    justify-content: flex-start;
  }
  .about-image-tags .tag { background: rgba(20, 26, 50, .7); }

  .kicker {
    font-size: 10px;
    padding: 6px 12px;
    letter-spacing: .08em;
    line-height: 1.4;
  }
  .kicker-fullip { display: none; }

  .hero-stage { gap: 20px; margin-bottom: 36px; }
  .hero-scene-logo { width: 40%; margin-bottom: 50px; }
  .class-chip { padding: 12px 14px; font-size: 13px; gap: 10px; }
  .class-chip-icon { width: 30px; height: 30px; }
  .class-chip-icon svg { width: 14px; height: 14px; }

  .players-pill { padding: 3px; }
  .players-pill-count { padding: 7px 11px; font-size: 11px; }
  .players-pill-cta { padding: 7px 12px 7px 8px; font-size: 11px; }

  .hero-cta { gap: 12px; flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; padding: 6px 22px 6px 6px; font-size: 13px; gap: 10px; }
  .btn-iconcircle { width: 40px; height: 40px; }

  .stats-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    padding: 14px;
  }
  .stat { min-width: 0; }
  .stat-value { font-size: 22px; }
  .ip-copy { font-size: 14px; padding: 6px 10px; }
  .stat-ip { grid-column: span 2; min-width: 0; }

  .class-grid, .community-grid, .features-grid, .rules-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }

  .howto-card { padding: 28px 22px; }
  .howto-actions { flex-direction: column; align-items: stretch; }
  .howto-actions .btn-success, .howto-actions .btn-ghost-card { justify-content: flex-start; }

  .about-card { padding: 24px; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .about-stat-num { font-size: 24px; }

  .tg-embed-frame iframe { min-height: 300px; }

  .scroll-top { bottom: 16px; right: 16px; width: 46px; height: 46px; }
  .scroll-top svg { width: 18px; height: 18px; }

  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .kicker { font-size: 9.5px; }
  .header-inner .btn-ghost-sm { display: none; }
}

/* When mobile menu open */
.main-nav.open {
  position: fixed; inset: 64px 0 auto 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  background: rgba(5, 8, 20, .98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
