/* Neon Cactus Interactive — site do estúdio e páginas dos jogos */
:root {
  --bg: #0b0a14;
  --bg2: #141225;
  --line: rgba(255, 255, 255, .08);
  --text: #ece9f5;
  --muted: #a9a3bf;
  --green: #3dff9a;
  --pink: #ff4fd8;
  --gold: #ffce54;
  --gold-deep: #c88c28;
  --radius: 14px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.px { font-family: 'Pixelify Sans', system-ui, sans-serif; }
.pixel { image-rendering: pixelated; }
section { padding: 88px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 0 40px; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 20, .78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: 'Pixelify Sans', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .5px; }
.brand img { width: 30px; height: 36px; }
.brand b { color: var(--green); text-shadow: 0 0 10px rgba(61, 255, 154, .6); font-weight: 600; }
.brand i { font-style: normal; color: var(--pink); text-shadow: 0 0 10px rgba(255, 79, 216, .6); }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 12px;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.neon { background: var(--green); color: #05140c; box-shadow: 0 0 0 1px var(--green), 0 0 24px rgba(61, 255, 154, .45); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.btn.gold {
  background: linear-gradient(#ffe08a, #f2b63a 55%, #c88c28); color: #3a2208; font-family: 'Cinzel', serif; font-size: 19px;
  box-shadow: 0 2px 0 #7a4f12, 0 0 30px rgba(255, 206, 84, .35); text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.btn small { display: block; font: 600 12px system-ui, sans-serif; opacity: .75; letter-spacing: 0; text-shadow: none; }

/* =========================================================
   Página do estúdio
   ========================================================= */
.studio-hero { position: relative; overflow: hidden; padding: 110px 0 120px; text-align: center; }
.studio-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 35%, rgba(61, 255, 154, .14), transparent 70%),
    radial-gradient(500px 260px at 70% 70%, rgba(255, 79, 216, .10), transparent 70%),
    linear-gradient(transparent 60%, var(--bg));
}
.grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -10px; height: 46%; z-index: -1; opacity: .45;
  background-image: linear-gradient(rgba(255, 79, 216, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 79, 216, .5) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(transparent, #000 40%);
}
.studio-hero .logo { width: 150px; height: 175px; margin: 0 auto 18px; animation: flicker 6s infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }
.studio-name { font-family: 'Pixelify Sans', sans-serif; font-weight: 600; font-size: clamp(44px, 8vw, 86px); line-height: 1; margin: 0; letter-spacing: 2px; }
.studio-name .n { color: var(--pink); text-shadow: 0 0 8px rgba(255, 79, 216, .9), 0 0 30px rgba(255, 79, 216, .6); }
.studio-name .c { color: var(--green); text-shadow: 0 0 8px rgba(61, 255, 154, .9), 0 0 30px rgba(61, 255, 154, .55); }
.studio-sub { font-family: 'Pixelify Sans', sans-serif; letter-spacing: 8px; text-transform: uppercase; color: var(--muted); margin: 10px 0 26px; font-size: 15px; }
.studio-tag { font-size: 21px; max-width: 620px; margin: 0 auto 34px; }
.studio-hero .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.games { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-card {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; border-radius: var(--radius);
  background: #0f0d1c; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, .45); text-decoration: none; color: var(--text);
}
.game-card .shot { position: relative; min-height: 320px; background: #000 center/cover; }
.game-card .shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #0f0d1c); }
.game-card .info { padding: 36px 36px 36px 20px; display: flex; flex-direction: column; justify-content: center; }
.game-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.tag.live { background: rgba(61, 255, 154, .14); color: var(--green); }
.game-card h3 { font-family: 'Cinzel Decorative', serif; font-weight: 900; font-size: 34px; line-height: 1.05; margin: 0 0 12px; color: var(--gold); text-shadow: 0 2px 0 #5a3a10; }
.game-card p { color: var(--muted); margin: 0 0 22px; }
.game-card .btn { align-self: flex-start; }
.soon { margin-top: 20px; padding: 26px; border-radius: var(--radius); border: 2px dashed rgba(255, 255, 255, .12); color: var(--muted); text-align: center; font-family: 'Pixelify Sans', sans-serif; }

.about .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); }
.about .pillars { display: grid; gap: 14px; }
.pillar { padding: 18px 20px; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.pillar b { display: block; font-family: 'Pixelify Sans', sans-serif; font-size: 19px; color: var(--green); }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }

/* =========================================================
   Página do Crown of Aureth
   ========================================================= */
.coa { --bg: #0a0b10; --bg2: #13141d; }
.coa .top .brand-game { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); font-family: 'Cinzel', serif; color: var(--gold); text-decoration: none; font-size: 15px; }
.coa-hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; text-align: center; }
.coa-hero .bg { position: absolute; inset: -20px; z-index: -2; background: #000 center/cover; filter: blur(3px) brightness(.45) saturate(1.1); transform: scale(1.04); }
.coa-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(10, 11, 16, .85) 85%), linear-gradient(transparent 70%, var(--bg)); }
.coa-hero .wrap { width: 100%; }
.coa-title { font-family: 'Cinzel Decorative', serif; font-weight: 900; font-size: clamp(52px, 10vw, 112px); line-height: .95; margin: 0;
  background: linear-gradient(#fff3c4, #ffce54 45%, #c88c28 80%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #3a2208) drop-shadow(0 0 30px rgba(255, 190, 80, .35)); }
.coa-title span { font-size: .55em; vertical-align: .25em; }
.coa-sub { font-family: 'Cinzel', serif; letter-spacing: 6px; text-transform: uppercase; color: #e8d9b0; margin: 14px 0 6px; font-size: 15px; }
.coa-tag { font-family: 'Cinzel', serif; font-size: clamp(18px, 2.4vw, 24px); margin: 0 auto 34px; color: #fff; text-shadow: 0 2px 10px #000; }
.coa-hero .cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-meta { font-size: 14px; color: #d8d1bd; text-shadow: 0 1px 6px #000; }
.dl-meta a { color: #ffe08a; }
/* os quadros dos sprites têm muito espaço vazio em volta do boneco: margens negativas aproximam os personagens */
.hero-cast { display: flex; justify-content: center; align-items: flex-end; margin: -40px auto -30px; }
.hero-cast .sprite { margin: 0 -70px; }
.kings .sprite { margin: -50px -55px -30px; }
.kings figure { position: relative; z-index: 1; }
.malgrath .sprite { flex: none; margin: -150px -150px -120px -150px; }

/* sprites animados (tira de quadros) */
.sprite { width: var(--w); height: var(--h); background: var(--img) 0 0 / calc(var(--w) * var(--n)) var(--h) no-repeat; image-rendering: pixelated; animation: frames var(--t, .9s) steps(var(--n)) infinite; }
@keyframes frames { to { background-position-x: calc(var(--w) * var(--n) * -1); } }
.sprite.flip { transform: scaleX(-1); }

.story { background: var(--bg2); }
.story .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story p { color: #cfc9da; }
.story p b { color: var(--gold); font-weight: 600; }
.kings { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4px; padding: 30px 10px 26px; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 80%, rgba(255, 206, 84, .16), transparent 60%), #0c0d14; box-shadow: inset 0 0 0 1px var(--line); }
.kings figure { margin: 0; text-align: center; }
.kings figcaption { font-family: 'Cinzel', serif; font-size: 13px; color: var(--gold); margin-top: 4px; }
.kings figcaption small { display: block; font-family: system-ui, sans-serif; color: var(--muted); font-size: 11px; }
.malgrath { margin-top: 18px; display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(160, 20, 30, .28), transparent); box-shadow: inset 0 0 0 1px rgba(255, 80, 60, .2); }
.malgrath p { margin: 0; font-size: 15px; }
.malgrath b { color: #ff7a5c !important; }

.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 24px; border-radius: var(--radius); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.feat .ico { font-size: 28px; }
.feat h3 { font-family: 'Cinzel', serif; font-size: 19px; margin: 8px 0 6px; color: #f3e6c0; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.feat .num { font-family: 'Cinzel', serif; color: var(--gold); }

.gallery .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .grid a { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); aspect-ratio: 5 / 3; }
.gallery .grid a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .9); cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px #000; }

.install { background: var(--bg2); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding: 22px; border-radius: var(--radius); background: #0c0d14; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: #cfc9da; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--gold); color: #3a2208; font-family: 'Cinzel', serif; font-weight: 700; }
.steps b { color: #fff; }
.note { margin-top: 22px; padding: 16px 20px; border-radius: 12px; background: rgba(255, 206, 84, .08); box-shadow: inset 0 0 0 1px rgba(255, 206, 84, .2); color: #e9dfc4; font-size: 15px; }
.reqs { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }
.reqs b { color: var(--text); }

.final { text-align: center; }
.final .btn { margin-top: 10px; }
.credits { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .top nav { gap: 14px; }
  .top nav a.hide-m { display: none; }
  .game-card, .about .cols, .story .cols { grid-template-columns: 1fr; }
  .game-card .shot { min-height: 220px; }
  .game-card .shot::after { background: linear-gradient(transparent 55%, #0f0d1c); }
  .game-card .info { padding: 24px; }
  .features .grid { grid-template-columns: 1fr 1fr; }
  .gallery .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .brand span.full { display: none; }
  .features .grid, .gallery .grid, .steps { grid-template-columns: 1fr; }
  .gallery .grid a:first-child { grid-column: auto; grid-row: auto; }
  /* personagens menores no celular (zoom reduz também o espaço que ocupam) */
  .hero-cast { zoom: .7; }
  .kings .sprite { zoom: .72; }
  .malgrath .sprite { zoom: .7; }
  .kings, .malgrath { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .sprite, .studio-hero .logo { animation: none; }
  html { scroll-behavior: auto; }
}
