/* Site do Valmora: fantasia escura com dourado, igual à interface do jogo. */
:root {
  --bg: #120d18;
  --bg-2: #1b1424;
  --panel: rgba(34, 26, 44, 0.78);
  --panel-solid: #221a2c;
  --line: rgba(226, 178, 70, 0.28);
  --gold: #e6b24c;
  --gold-2: #ffd27a;
  --text: #f1e9dc;
  --muted: #b9aec2;
  --live: #7fe08a;
  --soon: #9fb6ff;
  --danger: #ff8a7a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); text-align: center; }
h3 { font-size: 1.15rem; }

/* ---------- navegação */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(18, 13, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 178, 70, 0.14);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-2); text-decoration: none; font-family: "Cinzel", serif; font-weight: 800; letter-spacing: 0.12em; }
.brand img { filter: drop-shadow(0 2px 8px rgba(230, 178, 76, 0.35)); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--gold-2); }
.nav-links .nav-cta { color: #1b1206; background: var(--gold); padding: 6px 14px; border-radius: 999px; opacity: 1; }
.nav-links .nav-cta:hover { color: #1b1206; background: var(--gold-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.3rem; border-radius: 8px; padding: 2px 10px; cursor: pointer; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #6b6275; box-shadow: 0 0 0 3px rgba(107, 98, 117, 0.25); }
.status.is-online i { background: var(--live); box-shadow: 0 0 0 3px rgba(127, 224, 138, 0.25), 0 0 12px var(--live); }
.status.is-offline i { background: var(--danger); }

/* ---------- topo */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: hidden; padding: 80px clamp(16px, 6vw, 80px) 180px; }
.hero-bg {
  position: absolute; inset: -4%;
  background: url("/img/shot_hero_bg.jpg") center / cover no-repeat;
  filter: saturate(1.1);
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(18, 13, 24, 0.2), rgba(18, 13, 24, 0.85) 70%),
    linear-gradient(180deg, rgba(18, 13, 24, 0.35) 0%, rgba(18, 13, 24, 0.1) 40%, var(--bg) 100%);
}
.hero-embers {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 80%, rgba(255, 210, 122, 0.9), transparent),
    radial-gradient(2px 2px at 60% 90%, rgba(255, 180, 90, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 80% 70%, rgba(255, 230, 160, 0.8), transparent),
    radial-gradient(2px 2px at 35% 95%, rgba(255, 200, 110, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 90% 85%, rgba(255, 220, 140, 0.8), transparent);
  background-size: 100% 100%;
  animation: embers 9s linear infinite;
  opacity: 0.8;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.24em; font-weight: 800; font-size: 0.8rem; margin: 0 0 8px; }
.hero h1.logo { margin: 0 0 4px -2%; }
.hero h1.logo img { width: min(560px, 100%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); }
.subtitle { font-family: "Cinzel", serif; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--text); margin: 0 0 18px; letter-spacing: 0.1em; }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #e4dbe9; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.platforms { color: var(--muted); font-size: 0.9rem; margin-top: 14px; letter-spacing: 0.08em; }

.hero-party { position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; height: 170px; display: flex; justify-content: center; gap: clamp(8px, 4vw, 60px); pointer-events: none; }
.walker { width: 144px; height: 168px; background-repeat: no-repeat; background-size: 864px 168px; animation: walk 0.9s steps(6) infinite; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
.walker-knight { background-image: url("/img/walk_knight.png"); animation-delay: -0.2s; }
.walker-paladin { background-image: url("/img/walk_paladin.png"); animation-delay: -0.5s; }
.walker-sorcerer { background-image: url("/img/walk_sorcerer.png"); animation-delay: -0.1s; }
.walker-druid { background-image: url("/img/walk_druid.png"); animation-delay: -0.7s; }

/* ---------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.btn-gold { color: #1b1206; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 26px rgba(230, 178, 76, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(230, 178, 76, 0.45); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn.is-disabled, .btn:disabled { opacity: 0.5; pointer-events: none; box-shadow: none; }

/* ---------- seções */
.section { padding: clamp(64px, 9vw, 110px) clamp(16px, 5vw, 40px); }
.section-dark { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid rgba(226, 178, 70, 0.08); }
.wrap { max-width: 1140px; margin: 0 auto; }
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 44px; font-size: 1.05rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(226, 178, 70, 0.16); transition: transform 0.2s, border-color 0.2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line); }
.feature h3 { color: var(--gold-2); }
.feature p { color: var(--muted); margin: 0; }
.badge { display: inline-block; margin-bottom: 10px; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.badge-live { color: #0d2410; background: var(--live); }
.badge-soon { color: #0e1530; background: var(--soon); }

.classes, .islands, .bosses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.class-card { position: relative; padding: 20px 22px 24px; border-radius: var(--radius); background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--panel-solid); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); text-align: center; overflow: hidden; transition: transform 0.2s; }
.class-card:hover { transform: translateY(-5px); }
.class-art { height: 220px; display: grid; place-items: center; }
.class-art img { width: 178px; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); transition: transform 0.3s; }
.class-card:hover .class-art img { transform: scale(1.06) translateY(-4px); }
.class-emblem { position: absolute; top: 16px; left: 16px; opacity: 0.9; }
.class-card h3 { color: var(--accent); margin-top: 6px; }
.class-tag { font-weight: 800; color: var(--text); margin: -4px 0 8px; font-size: 0.95rem; }
.class-card p:last-child { color: var(--muted); margin: 0; font-size: 0.95rem; }

.island { border-radius: var(--radius); overflow: hidden; background: var(--panel-solid); border: 1px solid rgba(226, 178, 70, 0.16); transition: transform 0.2s; }
.island:hover { transform: translateY(-4px); }
.island img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.island-body { padding: 18px 20px 22px; }
.island-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.level { display: inline-block; font-size: 0.75rem; font-weight: 800; color: #1b1206; background: var(--gold); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }

.bosses { margin-top: 36px; }
.boss { margin: 0; text-align: center; padding: 10px 10px 18px; border-radius: var(--radius); background: radial-gradient(circle at 50% 45%, rgba(230, 110, 70, 0.18), transparent 65%), var(--panel-solid); border: 1px solid rgba(230, 120, 80, 0.2); }
.boss img { width: 100%; max-width: 240px; margin: 0 auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); }
.boss figcaption b { display: block; font-family: "Cinzel", serif; color: #ffb38a; font-size: 1.05rem; }
.boss figcaption span { color: var(--muted); font-size: 0.9rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; }
.shot img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s, filter 0.3s; }
.shot:hover img { transform: scale(1.05); filter: brightness(1.08); }
.shot span { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 800; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); font-size: 0.95rem; }
.shot-wide { grid-column: span 2; }
.shot:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.account { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.account h2 { text-align: left; }
.account-copy p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.checks li::before { content: "✦"; color: var(--gold); margin-right: 10px; }
.form { padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input { font: inherit; color: var(--text); background: rgba(10, 7, 14, 0.7); border: 1px solid rgba(226, 178, 70, 0.3); border-radius: 10px; padding: 11px 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 178, 76, 0.2); }
.form input.is-invalid { border-color: var(--danger); }
.form small { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.form-message { min-height: 1.4em; margin: 0; font-weight: 700; }
.form-message.is-ok { color: var(--live); }
.form-message.is-error { color: var(--danger); }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.download { padding: 28px; text-align: center; }
.download-icon { font-size: 2.6rem; color: var(--gold-2); line-height: 1; margin-bottom: 8px; }
.download-meta { color: var(--muted); margin: 0 0 16px; }
.download ol { text-align: left; color: var(--muted); margin: 20px 0 0; padding-left: 20px; font-size: 0.92rem; }
.controls { margin-top: 18px; padding: 24px 28px; }
.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.controls-grid b { display: block; color: var(--gold-2); }
.controls-grid span { color: var(--muted); font-size: 0.95rem; }

.footer { text-align: center; padding: 40px 16px 50px; border-top: 1px solid rgba(226, 178, 70, 0.1); }
.footer p { margin: 4px 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1280px); }
.lightbox::backdrop { background: rgba(6, 4, 10, 0.9); }
.lightbox img { border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.6rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes walk { from { background-position: 0 0; } to { background-position: -864px 0; } }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes embers { from { transform: translateY(0); opacity: 0.8; } to { transform: translateY(-140px); opacity: 0; } }

@media (max-width: 1040px) {
  .classes, .islands, .bosses { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .status { order: 2; margin-left: 8px; }
  .status b { display: none; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0 6px; margin: 0; }
  .nav.is-open .nav-links { display: flex; }
  .account { grid-template-columns: 1fr; }
  .account h2 { text-align: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .controls-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 150px; }
  .hero-party { height: 120px; gap: 0; }
  .walker { transform: scale(0.72); transform-origin: bottom center; margin: 0 -18px; }
  .gallery, .classes, .islands, .bosses, .features { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
