/* ── Salino Games — identidade: pixel-art medieval fantasy ─────────────── */

:root {
  --bg: #050507;
  --bg-card: #0b0e16;
  --navy: #1a2340;
  --gold: #c9b37e;
  --gold-dim: #8a744d;
  --gold-bright: #e8d9ae;
  --moon: #e8dfa8;
  --purple: #8b5fc0;
  --green: #46d379;
  --cyan: #46c8f0;
  --ink: #d8d2c4;
  --muted: #8f8977;
  --frame: #2b2418;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }

/* ── Topbar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(#050507ee, #05050700);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 1.02rem;
}

.brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-dim); }

.lang {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid #c9b37e33;
  border-radius: 999px;
  background: #0b0e16cc;
  backdrop-filter: blur(6px);
}

.lang button {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang button:hover { color: var(--gold-bright); }

.lang button.active {
  color: #14100a;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-dim));
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, #1a234066 0%, transparent 65%),
    var(--bg);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #e8dfa8cc, transparent),
    radial-gradient(1px 1px at 28% 8%, #d8d2c4aa, transparent),
    radial-gradient(2px 2px at 41% 31%, #e8dfa8bb, transparent),
    radial-gradient(1px 1px at 55% 12%, #d8d2c499, transparent),
    radial-gradient(1.5px 1.5px at 67% 26%, #e8dfa8cc, transparent),
    radial-gradient(1px 1px at 78% 7%, #d8d2c4aa, transparent),
    radial-gradient(2px 2px at 89% 19%, #e8dfa8bb, transparent),
    radial-gradient(1px 1px at 8% 55%, #d8d2c488, transparent),
    radial-gradient(1.5px 1.5px at 93% 47%, #e8dfa899, transparent),
    radial-gradient(1px 1px at 17% 76%, #d8d2c477, transparent),
    radial-gradient(1.5px 1.5px at 84% 72%, #e8dfa888, transparent),
    radial-gradient(1px 1px at 48% 62%, #d8d2c466, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}

.stars--far {
  background-image:
    radial-gradient(1px 1px at 5% 35%, #d8d2c455, transparent),
    radial-gradient(1px 1px at 22% 44%, #d8d2c444, transparent),
    radial-gradient(1px 1px at 36% 18%, #d8d2c455, transparent),
    radial-gradient(1px 1px at 61% 41%, #d8d2c444, transparent),
    radial-gradient(1px 1px at 73% 55%, #d8d2c455, transparent),
    radial-gradient(1px 1px at 95% 30%, #d8d2c444, transparent),
    radial-gradient(1px 1px at 44% 82%, #d8d2c433, transparent),
    radial-gradient(1px 1px at 66% 88%, #d8d2c444, transparent);
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 5rem 1.25rem 3rem;
}

/* brilho circular atrás da logo (drop-shadow geraria um halo quadrado) */
.hero-inner::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(80vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #c9b37e24 0%, transparent 65%);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: min(72vw, 400px);
  height: auto;
  margin: 0 auto 1.4rem;
}

.tagline {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.pixel-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-top: 1.1rem;
}

.scroll-cue {
  display: inline-block;
  margin-top: 2.6rem;
  font-size: 1.5rem;
  color: var(--gold-dim);
  text-decoration: none;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ── Seções ─────────────────────────────────────────────────────────────── */

.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--gold);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.9rem auto 3rem;
  color: var(--gold-dim);
  font-size: 0.8rem;
}

.ornament span {
  display: block;
  width: min(140px, 28vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.ornament span:last-child {
  background: linear-gradient(270deg, transparent, var(--gold-dim));
}

/* ── Cards de jogos ─────────────────────────────────────────────────────── */

.games {
  max-width: 960px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 2rem;
}

.game-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: center;
  margin-bottom: 3.5rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  background: linear-gradient(160deg, #0d1220 0%, #08090f 70%);
  border: 1px solid #c9b37e2b;
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #c9b37e66;
  box-shadow: 0 12px 50px -18px #c9b37e40;
}

/* card inteiro clicável: o ::after do CTA se estica sobre o card */
.game-card--linked { position: relative; }

.game-card--linked .cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.shot {
  height: 420px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--frame);
  box-shadow: 0 0 0 3px #0d1220, 0 0 0 4px #c9b37e2e, 0 18px 40px -18px #000;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card--glowmory .shot img { object-position: 50% 62%; }
.game-card--uaiq     .shot img { object-position: 50% 32%; }

.info .tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.9rem;
}

.game-card--glowmory .tag { color: var(--green); }
.game-card--uaiq     .tag { color: var(--cyan); }

.info h3 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  line-height: 1.15;
}

.info h3 small {
  display: block;
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.badge {
  display: inline-block;
  vertical-align: middle;
  font-family: 'Press Start 2P', monospace;
  font-style: normal;
  font-size: 0.42rem;
  letter-spacing: 0.15em;
  color: var(--purple);
  border: 1px solid #8b5fc066;
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  margin-left: 0.5rem;
  transform: translateY(-4px);
}

.info .desc { margin: 1.1rem 0 0.4rem; max-width: 46ch; }

.info .free {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #14100a;
  background: linear-gradient(160deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dim) 100%);
  border: 1px solid var(--gold-bright);
  border-radius: 8px;
  padding: 0.75rem 1.6rem;
  box-shadow: 0 4px 18px -6px #c9b37e66, inset 0 1px 0 #fff5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px -6px #c9b37e99, inset 0 1px 0 #fff5;
}

/* ── Página de jogo (ex.: /glowmory/) ───────────────────────────────────── */

.game-hero { min-height: auto; padding: 7.5rem 1.25rem 3rem; }

.game-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(1.6rem, 5vw, 3.2rem);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.shot--page { height: 460px; }

.back {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 1.2rem;
  transition: color 0.2s;
}

.back:hover { color: var(--gold-bright); }

.tag--green { color: var(--green); }

.game-hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  line-height: 1.1;
}

.game-tagline {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 0.5rem;
}

.features {
  list-style: none;
  margin-top: 1.3rem;
}

.features li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.8rem;
}

/* ── Plataformas / lojas ────────────────────────────────────────────────── */

.platforms {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5.5rem;
  text-align: center;
}

.platforms-sub {
  color: var(--muted);
  margin: -1.6rem auto 2.4rem;
  max-width: 52ch;
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 220px;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(160deg, #0d1220 0%, #08090f 70%);
  border: 1px solid #c9b37e33;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store:hover {
  transform: translateY(-3px);
  border-color: #c9b37e77;
  box-shadow: 0 10px 30px -14px #c9b37e55;
}

.store svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--gold);
}

.store .lines {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.store .lines small {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.store .lines strong {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  margin-top: 0.2rem;
}

/* botão da plataforma disponível (navegador) em destaque dourado */
.store--primary {
  background: linear-gradient(160deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dim) 100%);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 18px -6px #c9b37e66, inset 0 1px 0 #fff5;
}

.store--primary svg { color: #14100a; }
.store--primary .lines small { color: #4a3d24; }
.store--primary .lines strong { color: #14100a; }

.store--primary:hover {
  box-shadow: 0 8px 26px -6px #c9b37e99, inset 0 1px 0 #fff5;
}

/* ── Sobre + footer ─────────────────────────────────────────────────────── */

.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
  text-align: center;
}

.about p { color: var(--ink); }

footer {
  border-top: 1px solid #c9b37e22;
  padding: 1.6rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

footer .company {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  opacity: 0.75;
}

footer .legal-links {
  margin-top: 0.5rem;
  font-size: 0.78rem;
}

footer .legal-links a {
  color: var(--muted);
  text-decoration: none;
}

footer .legal-links a:hover { color: var(--gold); }

/* ── Páginas legais (privacidade / termos) ──────────────────────────────── */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 4rem;
}

.legal-page h1 {
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.12rem;
  margin: 2rem 0 0.6rem;
}

.legal-page p,
.legal-page li { margin-bottom: 0.8rem; }

.legal-page ul { padding-left: 1.3rem; }

/* ── Responsivo ─────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .game-card { grid-template-columns: 1fr; }
  .shot { height: 300px; max-width: 340px; margin: 0 auto; width: 100%; }
  .info { text-align: center; }
  .info .desc { margin-inline: auto; }
  .brand span { display: none; }
  .game-hero-inner { grid-template-columns: 1fr; }
  .shot--page { height: 320px; }
  .features { display: inline-block; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .stars, .stars--far, .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}
