:root {
  --ink: #07080a;
  --paper: #f4f6f2;
  --muted: #9aa39a;
  --line: rgba(255, 255, 255, 0.1);
  --acid: #39ff14;
  --acid-dim: #1f8f12;
  --acid-glow: rgba(57, 255, 20, 0.35);
  --sand: #f2c14e;
  --tomato: #e23b2c;
  --desert: #c47a2c;
  --cube-red: #ff2b42;
  --cube-cyan: #3ad4ff;
  --font-studio: "Chakra Petch", sans-serif;
  --font-game: "Lilita One", cursive;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: var(--acid);
  color: #041;
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

/* ========== NAV ========== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 6, 0.78);
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #111, 0 0 18px var(--acid-glow);
}
.brand b {
  font-family: var(--font-studio);
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: #c9d2c6;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.on {
  color: #041804;
  background: var(--acid);
}

/* ========== STUDIO HERO ========== */
.studio-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(57,255,20,0.16), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(57,255,20,0.06), transparent 30%),
    #050705;
}
.studio-hero::after {
  content: "";
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}
.studio-logo-hero {
  width: min(280px, 62vw);
  height: auto;
  margin: 0 auto 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #0b140b, 0 0 60px var(--acid-glow);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-family: var(--font-studio);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}
.studio-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 86px);
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin-bottom: 16px;
}
.studio-hero h1 em {
  font-style: normal;
  color: var(--acid);
}
.studio-hero p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #b7c2b4;
  font-size: 17px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-acid { background: var(--acid); color: #041804; box-shadow: 0 8px 24px var(--acid-glow); }
.btn-ghost { background: rgba(255,255,255,0.06); border-color: var(--line); color: #fff; }
.btn-tomato { background: linear-gradient(180deg,#ff6a3d,#e23b2c); color: #fff; }
.btn-cube { background: linear-gradient(180deg,#ff6372,#ff2b42); color: #fff; }
.btn-play { background: #fff; color: #111; }

/* ========== WORLD PORTALS ========== */
.world {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-top: 1px solid var(--line);
}
.world-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.world-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world-frutas .world-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(18,10,4,.92) 0%, rgba(18,10,4,.55) 52%, rgba(18,10,4,.2) 100%);
}
.world-cubos .world-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(8,2,6,.93) 0%, rgba(8,2,6,.62) 50%, rgba(8,2,6,.25) 100%);
}
.world-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0;
}
.world-copy .game-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.game-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  background: #111;
}
.world-frutas .game-icon { box-shadow: 0 0 0 3px #f2c14e, 0 12px 30px rgba(226,59,44,.35); }
.world-cubos .game-icon { box-shadow: 0 0 0 3px #ff2b42, 0 12px 30px rgba(255,43,66,.4); }
.game-logo-row h2 {
  font-family: var(--font-game);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.95;
}
.tagline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.world-frutas .tagline { color: #ffd36a; }
.world-cubos .tagline { color: var(--cube-cyan); }
.world-copy p {
  color: #ddd3c6;
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 18px;
}
.world-cubos .world-copy p { color: #d7cdd2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
}
.world-art {
  display: grid;
  gap: 12px;
}
.world-art .cast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cast figure {
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 12px 8px 10px;
  text-align: center;
}
.cast img {
  height: 92px;
  width: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.55));
}
.cast figcaption {
  font-size: 12px;
  font-weight: 800;
}
.wordmark {
  width: min(420px, 100%);
  margin-bottom: 8px;
}

/* ========== SECTIONS ========== */
.section { padding: 72px 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 8px;
}
.section .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar {
  background: #101410;
  border: 1px solid rgba(57,255,20,.12);
  border-radius: 18px;
  padding: 22px;
}
.pillar h3 {
  font-family: var(--font-studio);
  margin: 8px 0;
}
.pillar p { color: var(--muted); font-size: 14px; }

/* ========== GAME PAGE ========== */
.game-page-frutas { background: #120c07; }
.game-page-cubos { background: #09060a; }

.game-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.game-hero img.bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-hero .veil {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(8,6,4,.35) 45%, rgba(8,6,4,.92) 86%);
}
.game-hero-copy {
  position: relative;
  z-index: 2;
  padding: 48px 0 56px;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}
.game-hero-copy .icon-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 14px;
}
.game-hero-copy h1 {
  font-family: var(--font-game);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.92;
}
.game-hero-copy p {
  max-width: 640px;
  color: #e8ddd0;
  font-size: 18px;
  margin: 12px 0 22px;
}

.loadout {
  position: relative;
  height: 168px;
  margin: 0 auto 10px;
}
.loadout img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.55));
}
.loadout .unit-back {
  top: 4px;
  height: 118px;
  width: auto;
  z-index: 1;
  opacity: .95;
}
.loadout .unit-body {
  top: 28px;
  height: 118px;
  width: auto;
  z-index: 2;
}
.loadout .unit-gun {
  top: 58px;
  left: 62%;
  height: 72px;
  width: auto;
  z-index: 3;
  transform: none;
}
.cube-loadout .unit-body { top: 36px; height: 96px; }
.cube-loadout .unit-gun { top: 52px; left: 58%; height: 64px; }

.roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.roster article {
  background: #1a120c;
  border: 1px solid rgba(255,200,80,.14);
  border-radius: 20px;
  padding: 18px 14px 16px;
  text-align: center;
}
.roster > article > img {
  height: 120px;
  width: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.6));
}
.roster h3 { font-family: var(--font-game); font-size: 22px; }
.roster span { display: block; color: #ffd36a; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 4px 0 8px; }
.roster p { color: #cbb8a4; font-size: 13px; }

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mode {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid rgba(255,255,255,.1);
}
.mode img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mode .cap {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.mode h3 { font-family: var(--font-game); font-size: 26px; }
.mode p { color: #ddd; font-size: 14px; }

.guns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gun {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #1a120c;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
}
.gun img { width: 92px; height: 70px; object-fit: contain; }
.gun h3 { font-family: var(--font-game); font-size: 20px; }
.gun p { color: #cbb8a4; font-size: 13px; }

.arena-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.arena-frame img { width: 100%; max-height: 420px; object-fit: cover; }
.arena-frame .txt { padding: 22px; background: #15100c; }
.arena-frame h3 { font-family: var(--font-game); font-size: 28px; margin-bottom: 8px; }

.specs {
  background: #14110f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
}
.specs h3 { font-family: var(--font-game); margin-bottom: 12px; }
.specs p { color: #c8bdb3; margin-bottom: 6px; }
.specs a { color: #ffd36a; }

.cubos-panel { background: #140b10; border-color: rgba(255,43,66,.2); }
.cubos-panel h3 { color: #fff; }
.roster.cubos-roster article { background: #140b10; border-color: rgba(255,43,66,.18); }
.roster.cubos-roster span { color: var(--cube-cyan); }

/* ========== FOOTER ========== */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.foot a:hover { color: var(--acid); }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ========== LEGAL ========== */
.legal { max-width: 760px; margin: 0 auto; padding: 20px 0 70px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 54px); letter-spacing: .03em; }
.legal h2 { font-family: var(--font-studio); color: var(--acid); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 1.2em; }
.meta {
  background: #101410;
  border: 1px solid rgba(57,255,20,.15);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0;
}
.meta p { color: #e8eee6; margin-bottom: 6px; }
.meta strong { color: var(--acid); }
.en { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .world-inner { grid-template-columns: 1fr; min-height: auto; padding: 48px 0; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .modes, .guns, .pillars { grid-template-columns: 1fr; }
  .cast { grid-template-columns: repeat(3, 1fr); }
  .brand small { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .game-hero { min-height: 88vh; }
  .foot { flex-direction: column; }
}
