/* ============ 4 ДЕРЖАВЫ — Minecraft theme ============ */

:root {
  --bg: #0b0d10;
  --panel: #17191e;
  --panel-2: #1f2228;
  --slot: #26282d;
  --border: #000;
  --bevel-light: rgba(255, 255, 255, 0.14);
  --bevel-dark: rgba(0, 0, 0, 0.45);
  --text: #e8e6e3;
  --text-dim: #a0a09a;
  --green: #54c054;
  --green-deep: #3c8527;
  --gold: #ffaa00;
  --xp: #7efc20;
  --danger: #e5534b;

  --ice: #6ec6ff;
  --sand: #e8b64c;
  --forest: #54c05a;
  --nether: #ff5545;

  --px-font: 'Press Start 2P', 'Courier New', monospace;
  --body-font: 'Rubik', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(84, 192, 84, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(255, 170, 0, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  image-rendering: pixelated;
}

::selection { background: var(--green-deep); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: #3a3d44;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover { background: var(--green-deep); }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--xp); }

/* particles canvas */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

/* ============ NAV ============ */

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid #000;
  box-shadow: 0 3px 0 rgba(84, 192, 84, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav .logo {
  font-family: var(--px-font);
  font-size: 14px;
  color: var(--green);
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(84, 192, 84, 0.4);
  letter-spacing: 1px;
}
.nav .logo a { color: inherit; }
.nav .logo a::before, footer.site-footer .foot-logo::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: linear-gradient(#6cbf43 32%, #79553a 32%);
  border: 2px solid #000;
  margin-right: 10px;
  vertical-align: -2px;
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-links span { font-size: 13px; }

/* ============ BUTTONS (Minecraft style) ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--px-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 20px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  background: linear-gradient(#6e6e6e, #565656 45%, #454545);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -4px 0 var(--bevel-dark),
    0 4px 0 rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: filter 0.1s, transform 0.05s, box-shadow 0.05s;
  user-select: none;
}
.btn:hover { filter: brightness(1.18); color: #fff; }
.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 2px 2px 0 var(--bevel-dark),
    inset -3px -4px 0 var(--bevel-dark),
    0 1px 0 rgba(0, 0, 0, 0.55);
}
.btn.primary {
  background: linear-gradient(#5cbb3d, #3c8527 45%, #2e6b1e);
}
.btn.danger {
  background: linear-gradient(#c04a44, #8b2e2e 45%, #6e2323);
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.big { font-size: 13px; padding: 20px 32px; }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 100px;
  overflow: hidden;
}

.hero-badge {
  font-family: var(--px-font);
  font-size: 9px;
  color: var(--gold);
  background: rgba(255, 170, 0, 0.08);
  border: 2px solid rgba(255, 170, 0, 0.4);
  padding: 10px 16px;
  margin-bottom: 36px;
  text-shadow: 1px 1px 0 #000;
}

.hero-title-wrap { position: relative; display: inline-block; }

.hero h1 {
  font-family: var(--px-font);
  font-size: clamp(30px, 6.5vw, 64px);
  line-height: 1.25;
  margin: 0 0 8px;
  background: linear-gradient(#ffffff 30%, #b8c0b8 70%, #8a948a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 30px rgba(84, 192, 84, 0.35));
}

.splash {
  position: absolute;
  right: -30px;
  bottom: -22px;
  font-family: var(--px-font);
  font-size: clamp(8px, 1.4vw, 12px);
  color: #ffff55;
  text-shadow: 2px 2px 0 #3f3f00;
  transform: rotate(-12deg);
  animation: splash-pulse 0.9s ease-in-out infinite;
  white-space: nowrap;
  pointer-events: none;
}
@keyframes splash-pulse {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(-12deg) scale(1.08); }
}

.hero .subtitle {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 58px 0 36px;
}
.hero .subtitle b { color: var(--text); }

.server-ip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--bevel-light), inset -2px -2px 0 var(--bevel-dark), 0 4px 0 rgba(0,0,0,.5);
  padding: 14px 18px;
  margin-bottom: 36px;
  cursor: pointer;
  transition: filter 0.1s;
}
.server-ip:hover { filter: brightness(1.15); }
.server-ip .label {
  font-family: var(--px-font);
  font-size: 9px;
  color: var(--text-dim);
}
.server-ip .ip {
  font-family: var(--px-font);
  font-size: 13px;
  color: var(--xp);
  text-shadow: 0 0 12px rgba(126, 252, 32, 0.5);
}
.server-ip .copy-hint {
  font-family: var(--px-font);
  font-size: 8px;
  color: var(--text-dim);
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.online-badge .dot {
  width: 10px;
  height: 10px;
  background: var(--xp);
  box-shadow: 0 0 10px var(--xp);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.online-badge b { color: var(--xp); }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* floating cubes */
.cube {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 3px solid #000;
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.22), inset -5px -6px 0 rgba(0, 0, 0, 0.4);
  animation: float 7s ease-in-out infinite;
  opacity: 0.9;
  z-index: -1;
}
.cube.grass { background: linear-gradient(#6cbf43 28%, #79553a 28%); }
.cube.diamond { background: #4fd0e4; }
.cube.gold { background: #f5c542; }
.cube.redstone { background: #b02e26; }
.cube.emerald { background: #17c544; }
.cube.c1 { top: 16%; left: 8%; animation-delay: 0s; }
.cube.c2 { top: 62%; left: 13%; width: 36px; height: 36px; animation-delay: -2.2s; }
.cube.c3 { top: 22%; right: 10%; animation-delay: -4s; }
.cube.c4 { top: 66%; right: 7%; width: 40px; height: 40px; animation-delay: -1.4s; }
.cube.c5 { top: 42%; right: 20%; width: 28px; height: 28px; animation-delay: -3s; opacity: 0.6; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-26px) rotate(5deg); }
}

/* grass divider strip */
.grass-divider {
  height: 18px;
  background:
    repeating-linear-gradient(90deg,
      #6cbf43 0 12px, #5da838 12px 24px, #74c94c 24px 36px);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  box-shadow: 0 6px 0 #79553a, 0 9px 0 #000;
  margin-bottom: 12px;
}

/* ============ SECTIONS ============ */

section.block {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-head { text-align: center; margin-bottom: 56px; }

.section-head .kicker {
  font-family: var(--px-font);
  font-size: 9px;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--px-font);
  font-size: clamp(18px, 3.4vw, 30px);
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 3px 3px 0 #000, 0 0 24px rgba(84, 192, 84, 0.25);
  line-height: 1.4;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* xp-bar under section title */
.xp-bar {
  width: 220px;
  height: 8px;
  margin: 22px auto 0;
  background: #1a1a1a;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}
.xp-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--xp), #4fdc10);
  box-shadow: 0 0 12px rgba(126, 252, 32, 0.6);
  animation: xp-fill 2.4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes xp-fill {
  0% { transform: scaleX(0.15); }
  60% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0.7; }
}

/* ============ PANELS / CARDS ============ */

.panel {
  background: var(--panel);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -3px 0 var(--bevel-dark),
    8px 8px 0 rgba(0, 0, 0, 0.55);
  padding: 28px;
}

/* about split */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--px-font);
  font-size: 14px;
  color: var(--green);
  text-shadow: 2px 2px 0 #000;
  margin: 0 0 18px;
  line-height: 1.6;
}
.about-text p {
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 15.5px;
  margin: 0 0 16px;
}
.about-text p b { color: var(--text); }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  font-family: var(--px-font);
  font-size: 8px;
  padding: 8px 12px;
  background: var(--slot);
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 var(--bevel-light), inset -1px -1px 0 var(--bevel-dark);
  color: var(--gold);
}

/* mc chat window */
.mc-chat {
  background: rgba(0, 0, 0, 0.72);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), 8px 8px 0 rgba(0,0,0,.55);
  padding: 18px 20px;
  font-family: var(--px-font);
  font-size: 9.5px;
  line-height: 2.3;
}
.mc-chat .line { white-space: normal; text-shadow: 1px 1px 0 #000; }
.mc-chat .nick { color: #55ffff; }
.mc-chat .nick.n2 { color: #ffaa00; }
.mc-chat .nick.n3 { color: #ff5555; }
.mc-chat .nick.n4 { color: #55ff55; }
.mc-chat .sys { color: #ffff55; }
.mc-chat .me { color: #ff55ff; font-style: italic; }
.mc-chat .txt { color: #e8e6e3; }
.mc-chat .chat-input {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #3a3d44;
  color: var(--text-dim);
}
.mc-chat .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ STATES (4 державы) ============ */

.states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.state-card {
  background: var(--panel);
  border: 3px solid #000;
  border-top: 6px solid var(--sc, var(--green));
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -3px 0 var(--bevel-dark),
    6px 6px 0 rgba(0, 0, 0, 0.55);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.state-card:hover {
  transform: translate(-3px, -6px);
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -3px 0 var(--bevel-dark),
    10px 12px 0 rgba(0, 0, 0, 0.55),
    0 0 34px var(--glow, rgba(84, 192, 84, 0.25));
}

.state-card .emblem {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-family: var(--px-font);
  color: var(--sc, var(--green));
  text-shadow: 2px 2px 0 #000;
  overflow: hidden;
  background: var(--slot);
  border: 3px solid #000;
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.5),
    inset -3px -3px 0 rgba(255, 255, 255, 0.08),
    0 0 22px var(--glow, transparent);
}
.state-card .emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.state-card h3 {
  font-family: var(--px-font);
  font-size: 11px;
  color: var(--sc, var(--green));
  text-shadow: 2px 2px 0 #000;
  margin: 0 0 6px;
  line-height: 1.6;
}
.state-card .motto {
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.state-card .desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.state-card .perk {
  font-family: var(--px-font);
  font-size: 8px;
  color: var(--sc, var(--green));
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #000;
  padding: 8px 10px;
  display: inline-block;
  line-height: 1.7;
  margin-top: auto;
}

.state-card.frost { --sc: var(--ice); --glow: rgba(110, 198, 255, 0.3); }
.state-card.sand { --sc: var(--sand); --glow: rgba(232, 182, 76, 0.3); }
.state-card.forest { --sc: var(--forest); --glow: rgba(84, 192, 90, 0.3); }
.state-card.nether { --sc: var(--nether); --glow: rgba(255, 85, 69, 0.3); }

/* ============ FEATURES — путь достижений ============ */

.adv-track {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.adv-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 4px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--gold) 0 10px, transparent 10px 22px);
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
}

.adv-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 50%;
  margin-bottom: 34px;
}
.adv-item:nth-child(odd) {
  left: 0;
  padding-right: 34px;
}
.adv-item:nth-child(even) {
  left: 50%;
  flex-direction: row-reverse;
  padding-left: 34px;
}
.adv-item::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid #000;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}
.adv-item:nth-child(odd)::after { right: -10px; }
.adv-item:nth-child(even)::after { left: -10px; }

.adv-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slot);
  border: 3px solid #000;
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.5),
    inset -3px -3px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(255, 170, 0, 0.25);
}
.adv-icon svg {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.adv-card {
  flex: 1;
  background: var(--panel);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -3px 0 var(--bevel-dark),
    6px 6px 0 rgba(0, 0, 0, 0.55);
  padding: 16px 18px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.adv-item:hover .adv-card {
  transform: translateY(-4px);
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -3px 0 var(--bevel-dark),
    6px 10px 0 rgba(0, 0, 0, 0.55),
    0 0 24px rgba(255, 170, 0, 0.2);
}

.adv-tag {
  display: block;
  font-family: var(--px-font);
  font-size: 7px;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.adv-card h3 {
  font-family: var(--px-font);
  font-size: 10px;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.6;
}
.adv-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ============ STEPS ============ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--bevel-light), inset -3px -3px 0 var(--bevel-dark), 6px 6px 0 rgba(0,0,0,.55);
  padding: 26px 22px;
  position: relative;
}
.step-card .num {
  font-family: var(--px-font);
  font-size: 24px;
  color: var(--gold);
  text-shadow: 3px 3px 0 #000, 0 0 18px rgba(255, 170, 0, 0.4);
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--px-font);
  font-size: 10px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin: 0 0 12px;
  line-height: 1.7;
}
.step-card p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* ============ STATS + CTA ============ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 70px;
}
.stat-card {
  text-align: center;
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--bevel-light), inset -3px -3px 0 var(--bevel-dark), 6px 6px 0 rgba(0,0,0,.55);
  padding: 30px 16px;
}
.stat-card .value {
  font-family: var(--px-font);
  font-size: clamp(18px, 3vw, 28px);
  color: var(--xp);
  text-shadow: 3px 3px 0 #000, 0 0 20px rgba(126, 252, 32, 0.45);
  margin-bottom: 14px;
}
.stat-card .label {
  font-family: var(--px-font);
  font-size: 8px;
  color: var(--text-dim);
  line-height: 1.8;
}

.final-cta {
  text-align: center;
  padding: 60px 30px;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(84, 192, 84, 0.12), transparent),
    var(--panel);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--bevel-light), inset -3px -3px 0 var(--bevel-dark), 8px 8px 0 rgba(0,0,0,.55);
}
.final-cta h2 {
  font-family: var(--px-font);
  font-size: clamp(16px, 3vw, 26px);
  color: #fff;
  text-shadow: 3px 3px 0 #000;
  margin: 0 0 20px;
  line-height: 1.5;
}
.final-cta p { color: var(--text-dim); margin: 0 0 32px; font-size: 15.5px; }

/* ============ FOOTER ============ */

footer.site-footer {
  border-top: 3px solid #000;
  box-shadow: inset 0 3px 0 rgba(84, 192, 84, 0.2);
  padding: 56px 24px 0;
  background: #08090b;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .foot-logo {
  font-family: var(--px-font);
  font-size: 13px;
  color: var(--green);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 16px;
}
.footer-tagline {
  color: #7a7e86;
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 320px;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: #7a7e86;
  margin-bottom: 20px;
}
.footer-meta span { display: inline-flex; align-items: center; gap: 8px; }
.footer-meta b { color: var(--text-dim); font-weight: 500; }
.meta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #5b5e63;
}

.footer-tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--px-font);
  font-size: 9px;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  background: linear-gradient(#3aa3e0, #1c7fc2 45%, #16659c);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -4px 0 var(--bevel-dark),
    0 4px 0 rgba(0, 0, 0, 0.55);
  padding: 12px 16px;
  transition: filter 0.1s, transform 0.05s;
}
.footer-tg:hover { filter: brightness(1.15); color: #fff; }
.footer-tg:active { transform: translateY(3px); box-shadow: inset 2px 2px 0 var(--bevel-dark); }
.footer-tg .tg-icon { font-size: 12px; }

.footer-col h4 {
  font-family: var(--px-font);
  font-size: 9px;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: #9a9ea6;
  font-size: 13.5px;
  transition: color 0.1s;
}
.footer-col a:hover { color: var(--green); }

.footer-actions {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 0 40px;
}

.footer-bottom {
  border-top: 2px solid #1c1f26;
  padding: 22px 24px;
  text-align: center;
}
.footer-bottom p {
  color: #4a4d53;
  font-size: 12px;
  margin: 4px 0;
}

/* ============ REVEAL ANIMATION ============ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ AUTH / DASHBOARD ============ */

.auth-wrap {
  max-width: 440px;
  margin: 70px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--panel);
  border: 3px solid #000;
  box-shadow:
    inset 2px 2px 0 var(--bevel-light),
    inset -3px -3px 0 var(--bevel-dark),
    8px 8px 0 rgba(0, 0, 0, 0.55);
  padding: 32px;
}

.card h2 {
  font-family: var(--px-font);
  font-size: 15px;
  margin: 0 0 26px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--px-font);
  font-size: 8px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 12px;
  border: 2px solid #000;
  background: #0d0f12;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6), inset -1px -1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  font-family: var(--body-font);
}
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6), 0 0 12px rgba(84, 192, 84, 0.3);
}
.field input:disabled { opacity: 0.55; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-msg {
  font-size: 13px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 2px solid #000;
  display: none;
}
.form-msg.error {
  display: block;
  background: rgba(229, 83, 75, 0.14);
  color: #ff8a83;
  box-shadow: inset 0 0 0 1px rgba(229, 83, 75, 0.4);
}
.form-msg.success {
  display: block;
  background: rgba(126, 252, 32, 0.1);
  color: #9fe870;
  box-shadow: inset 0 0 0 1px rgba(126, 252, 32, 0.35);
}

.card .switch {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.dash-wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}
.dash-header h1 {
  margin: 0;
  font-family: var(--px-font);
  font-size: 17px;
  color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(84, 192, 84, 0.3);
  line-height: 1.6;
}
.dash-header .greeting {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}

.section-title {
  font-family: var(--px-font);
  font-size: 10px;
  margin: 0 0 20px;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card + .card { margin-top: 24px; }

/* ============ LEGAL PAGES ============ */

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 90px;
  position: relative;
  z-index: 1;
}

.legal-wrap .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.legal-wrap .back-link:hover { color: var(--green); }

.legal-wrap h1 {
  font-family: var(--px-font);
  font-size: clamp(15px, 3vw, 20px);
  color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(84, 192, 84, 0.25);
  margin: 0 0 10px;
  line-height: 1.6;
}

.legal-wrap .updated {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0 0 36px;
}

.legal-wrap h2 {
  font-family: var(--px-font);
  font-size: 11px;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
  margin: 36px 0 14px;
  line-height: 1.7;
}

.legal-wrap p, .legal-wrap li {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.75;
}

.legal-wrap ul, .legal-wrap ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-wrap li { margin-bottom: 8px; }

.legal-wrap strong { color: var(--text); }

.legal-wrap .legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--bevel-light), inset -3px -3px 0 var(--bevel-dark);
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .adv-track::before { left: 27px; }
  .adv-item,
  .adv-item:nth-child(odd),
  .adv-item:nth-child(even) {
    width: 100%;
    left: 0;
    flex-direction: row;
    padding-left: 58px;
    padding-right: 0;
  }
  .adv-item:nth-child(odd)::after,
  .adv-item:nth-child(even)::after {
    left: 19px;
    right: auto;
  }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  header.nav { padding: 14px 16px; }
  .nav .logo { font-size: 11px; }
  .nav-links .btn { padding: 10px 12px; font-size: 8px; }
  .states-grid, .steps-grid, .stats-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  section.block { padding: 60px 18px; }
  .cube { display: none; }
  .splash { right: 0; bottom: -28px; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; display: flex; flex-direction: column; }
  .footer-tagline { max-width: none; }
  .footer-actions { flex-direction: column; }
  .adv-icon { width: 52px; height: 52px; }
  .adv-icon svg { width: 28px; height: 28px; }
}
