/* ARTHAS WoW - tema gelo */
:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --panel: rgba(17, 27, 46, .78);
  --panel-solid: #111b2e;
  --line: rgba(120, 180, 230, .16);
  --line-strong: rgba(120, 190, 240, .35);
  --text: #dfe8f3;
  --muted: #8fa3bb;
  --ice: #7fd0ff;
  --ice-2: #4fb6f0;
  --ice-deep: #1b6fa8;
  --online: #4ade80;
  --offline: #f87171;
  --alliance: #5aa7ff;
  --horde: #ff5a5a;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font-head: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(79, 182, 240, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(27, 111, 168, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
}
main { flex: 1; padding-bottom: 64px; }
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
code { background: rgba(127, 208, 255, .1); color: #bfe6ff; padding: .1em .4em; border-radius: 6px; font-size: .92em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.eyebrow { color: var(--ice); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; margin-bottom: .8em; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: .06em; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--ice); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: #fff; background: rgba(127, 208, 255, .08); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(127, 208, 255, .14); }
.realm-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); white-space: nowrap;
}
.realm-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--offline); }
.realm-pill.is-online i { background: var(--online); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
.realm-pill b { color: var(--muted); font-weight: 600; }
.realm-pill b::before { content: "· "; }
.menu-toggle, .menu-button { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #8ad6ff, var(--ice-2)); color: #03121f; box-shadow: 0 10px 30px -10px rgba(79, 182, 240, .7); }
.btn-primary:hover { background: linear-gradient(180deg, #a5e0ff, #62c0f3); }
.btn-ghost { border-color: var(--line-strong); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--ice); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg)),
    repeating-linear-gradient(115deg, rgba(127, 208, 255, .035) 0 2px, transparent 2px 22px);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin-left: max(16px, calc((100% - 1120px) / 2 + 16px)); padding: 0 16px 0 0; }
.hero h1 {
  background: linear-gradient(180deg, #ffffff 30%, #9bdcff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(127, 208, 255, .15);
}
.lead { font-size: 1.15rem; color: #c3d2e3; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Status ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.stat { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.stat-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; }
.stat-value small { color: var(--muted); font-size: .9rem; margin: 0 4px; }
.bar { height: 5px; border-radius: 3px; background: var(--horde); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--alliance); }
.txt-online { color: var(--online); }
.txt-offline { color: var(--offline); }
.txt-alliance { color: var(--alliance); }
.txt-horde { color: var(--horde); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: #b9c8d9; }
.step {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(127, 208, 255, .12); color: var(--ice); border: 1px solid var(--line-strong);
  font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; flex: none;
}
.link { font-weight: 600; }
.copy { display: block; padding: 10px 12px; margin-top: 4px; user-select: all; word-break: break-all; }

/* ---------- Formulários ---------- */
.page-head { padding: 56px 16px 24px; }
.page-head > p:not(.eyebrow) { color: #b9c8d9; max-width: 680px; }
.page-head.center > p { margin-left: auto; margin-right: auto; }
.form-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding-top: 56px; align-items: start; }
.form-intro p { color: #b9c8d9; }
.tips { padding-left: 18px; color: var(--muted); }
.tips li { margin-bottom: 6px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; color: #c9d6e5; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; color: #fff;
  background: rgba(3, 8, 16, .6); border: 1px solid var(--line-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(127, 208, 255, .2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #b9c8d9; margin: 4px 0 20px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--ice-2); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 0; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: .95rem; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; }
.alert-ok { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .4); color: #bbf7d0; }
.alert-ok a { color: #fff; text-decoration: underline; }

/* ---------- Online ---------- */
.counts { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); }
.counts b { font-family: var(--font-head); font-size: 1.3rem; margin-right: 4px; }
.two-col { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.table-panel { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(127, 208, 255, .04); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.dot-a { background: var(--alliance); }
.dot-h { background: var(--horde); }
.empty { color: var(--muted); padding: 24px; margin: 0; text-align: center; }
.panel-title { margin-bottom: 14px; }
.ranking { list-style: none; margin: 0; padding: 0; }
.ranking li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ranking li:last-child { border-bottom: 0; }
.ranking .pos { width: 26px; font-family: var(--font-head); font-weight: 800; color: var(--muted); }
.ranking li:nth-child(1) .pos { color: #ffd76a; }
.ranking li:nth-child(2) .pos { color: #d7dde5; }
.ranking li:nth-child(3) .pos { color: #e0a36b; }
.ranking .who { display: flex; flex-direction: column; }
.ranking small { color: var(--muted); font-size: .8rem; }

/* Cores de classe */
.cls-warrior { color: #c79c6e; } .cls-paladin { color: #f58cba; } .cls-hunter { color: #abd473; }
.cls-rogue { color: #fff569; } .cls-priest { color: #ffffff; } .cls-dk { color: #c41f3b; }
.cls-mage { color: #69ccf0; } .cls-warlock { color: #9482c9; }
.cls-druid { color: #ff7d0a; }
.cls-shaman { color: #2f8fff; }

/* ---------- Como jogar ---------- */
.steps { display: grid; gap: 14px; }
.step-card { display: flex; gap: 18px; }
.step-card .step { margin: 0; }
.step-card p { color: #b9c8d9; }
.step-card p:last-child { margin-bottom: 0; }
.code { background: rgba(3, 8, 16, .7); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; color: #bfe6ff; overflow-x: auto; user-select: all; margin: 0 0 1em; }
.faq { margin-top: 40px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details p { color: #b9c8d9; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(3, 6, 12, .6); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer strong { font-family: var(--font-head); color: #fff; letter-spacing: .06em; }
.footer strong em { font-style: normal; color: var(--ice); }
.footer p { margin: 4px 0 0; }
.legal { max-width: 520px; font-size: .8rem; opacity: .8; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .form-page, .two-col { grid-template-columns: 1fr; }
  .form-page { gap: 8px; padding-top: 36px; }
  .menu-button {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 10px; cursor: pointer; order: 3;
  }
  .menu-button span, .menu-button span::before, .menu-button span::after {
    display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: "";
  }
  .menu-button span::before { position: absolute; top: -6px; }
  .menu-button span::after { position: absolute; top: 6px; }
  .realm-pill { margin-left: auto; order: 2; }
  .nav {
    display: none; order: 4; flex-basis: 100%; flex-direction: column; margin: 0 0 12px;
  }
  .menu-toggle:checked ~ .nav { display: flex; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 520px) {
  .hero { padding: 64px 0 64px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 1.35rem; }
  .field-row { grid-template-columns: 1fr; }
  .card, .panel { padding: 18px; }
  .brand span { font-size: 1.05rem; }
  .realm-pill b { display: none; }
  .table th, .table td { padding: 10px 12px; }
}

/* ---------- Download ---------- */
.download-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.download-card .btn { margin-bottom: 10px; }
.download-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.download-head h2 { margin: 0 0 4px; font-size: 1.4rem; }
.download-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.download-meta span { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.btn-lg { padding: 16px 22px; font-size: 1.1rem; }
.download-hint { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.download-steps { padding-left: 20px; margin: 0 0 12px; color: #b9c8d9; }
.download-steps li { margin-bottom: 12px; }
.download-steps .code { margin: 8px 0 0; }
.alert-info { background: rgba(127, 208, 255, .08); border: 1px solid var(--line-strong); color: #cfe9ff; margin: 0; }
.nav a { padding: 8px 10px; }
@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } }
