/* AnooraMC — site principal. Mesmo céu noturno dourado da loja. */
:root {
  --bg-0: #070b26;
  --bg-1: #0b1137;
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --text: #f1f4ff;
  --text-soft: #b3bde3;
  --text-dim: #8590c0;
  --sun: #ffc93d;
  --sun-2: #ff9b21;
  --sun-soft: #ffe6a3;
  --ok: #4ade80;
  --discord: #5865f2;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background-color: var(--bg-0);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(143, 123, 255, .16), transparent 60%),
              radial-gradient(900px 500px at 10% 0%, rgba(95, 184, 255, .12), transparent 60%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-0));
  background-attachment: fixed;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sun); color: var(--bg-0); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, strong.display { font-family: var(--font-display); letter-spacing: -.02em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--sun); color: var(--bg-0); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Céu ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky .stars {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #cfe0ff, transparent),
    radial-gradient(1.4px 1.4px at 200px 160px, #fff, transparent), radial-gradient(1px 1px at 300px 40px, #ffe9b0, transparent),
    radial-gradient(1px 1px at 360px 220px, #fff, transparent), radial-gradient(1.6px 1.6px at 80px 260px, #fff, transparent);
  background-size: 400px 300px; opacity: .55; animation: twinkle 6s ease-in-out infinite alternate;
}
.sky .stars.s2 { background-size: 620px 470px; opacity: .35; animation-duration: 9s; animation-delay: -3s; translate: 90px 40px; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .65; } }
.shooting { position: absolute; top: 12%; left: 72%; width: 140px; height: 2px; border-radius: 2px; rotate: -18deg; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 233, 176, 0), #fff3c4); animation: shoot 11s linear infinite; }
.shooting.s2 { top: 34%; left: 22%; animation-delay: 6.5s; animation-duration: 14s; }
@keyframes shoot { 0%, 88% { opacity: 0; translate: 0 0; } 90% { opacity: 1; } 100% { opacity: 0; translate: -420px 140px; } }

/* ---------- Barra do topo ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(9, 13, 44, .72); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand b { color: var(--sun); }
.brand img { filter: drop-shadow(0 4px 10px rgba(255, 201, 61, .35)); }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { position: relative; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--text-soft); transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--sun); scale: 0 1; transition: scale .3s var(--ease); }
.links a:hover { color: var(--text); }
.links a:hover::after { scale: 1 1; }
.ip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 201, 61, .4); background: rgba(255, 201, 61, .1); color: var(--sun-soft); font-weight: 800; font-size: .92rem; cursor: pointer; transition: background .2s, border-color .2s; }
.ip-chip:hover { background: rgba(255, 201, 61, .18); border-color: var(--sun); }
.dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--text-dim); }
.dot.on { background: var(--ok); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 46px 16px 210px;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.hero::before { content: ""; position: absolute; left: 50%; top: 30px; width: 980px; height: 640px; translate: -50% 0; z-index: -2;
  background: radial-gradient(closest-side, rgba(255, 201, 61, .24), rgba(255, 155, 33, .08) 55%, transparent); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .65; scale: 1.06; } }
.sun { position: absolute; left: 50%; top: -190px; width: 900px; height: 900px; translate: -50% 0; z-index: -1; pointer-events: none;
  background: url(../img/logo.png) center / contain no-repeat; opacity: .2; animation: spin 180s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.hero h1 { margin: 0; animation: rise 1s var(--ease) both; }
.banner { width: min(760px, 100%); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.lead { max-width: 46ch; margin: 6px auto 28px; color: var(--text-soft); font-size: 1.18rem; font-weight: 600; animation: rise 1s .15s var(--ease) both; }
.join { display: grid; justify-items: center; gap: 12px; animation: rise 1s .3s var(--ease) both; }
.ip-big {
  display: grid; gap: 2px; padding: 16px 34px 18px; border-radius: 20px; cursor: pointer;
  border: 0; background: linear-gradient(180deg, #ffe08a, var(--sun) 45%, var(--sun-2)); color: #2a1600;
  box-shadow: 0 14px 34px -10px rgba(255, 170, 40, .65), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.ip-big:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px -10px rgba(255, 170, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .7); }
.ip-big:active { transform: scale(.98); }
.ip-k { font-size: .8rem; font-weight: 800; opacity: .7; }
.ip-v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.01em; line-height: 1.1; }
.online { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-soft); font-weight: 700; }
@keyframes rise { from { opacity: 0; translate: 0 24px; filter: blur(6px); } }
.clouds { position: absolute; left: 0; right: 0; bottom: -2px; height: 190px; pointer-events: none; background: url(../img/clouds-night.svg) 0 100% / 1600px 100% repeat-x; animation: drift 70s linear infinite; }
.clouds.back { height: 240px; bottom: 30px; opacity: .5; background-size: 2100px 100%; background-position-x: 700px; animation: drift-r 110s linear infinite; }
@keyframes drift { to { background-position-x: -1600px; } }
@keyframes drift-r { to { background-position-x: 2800px; } }

/* ---------- Portas: Loja, Blog, Wiki ---------- */
.doors { position: relative; z-index: 2; margin-top: -150px; padding-bottom: 80px; }
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 40, 100, .78), rgba(14, 20, 62, .82)); border: 1px solid var(--line);
  backdrop-filter: blur(12px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
  transition: transform .45s var(--spring), border-color .25s, box-shadow .3s;
  animation: rise .9s var(--ease) both;
}
.door:nth-child(1) { animation-delay: .45s; }
.door:nth-child(2) { animation-delay: .55s; }
.door:nth-child(3) { animation-delay: .65s; }
.door:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c, #ffc93d) 60%, transparent); box-shadow: 0 34px 60px -24px color-mix(in srgb, var(--c, #ffc93d) 45%, #000); }
.door-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--c, #ffc93d) 70%, #ffffff) 0, color-mix(in srgb, var(--c, #ffc93d) 38%, #0b1137) 52%, #0b1137 100%);
}
.door-art::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .09) 0 8deg, transparent 8deg 20deg); animation: spin 60s linear infinite; }
.door-art svg { position: relative; width: 46%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); transition: transform .6s var(--spring); }
.door:hover .door-art svg { transform: scale(1.1) rotate(-6deg); }
.door-body { display: grid; gap: 6px; padding: 18px 22px 22px; }
.door-body strong { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.1; }
.door-body > span:not(.door-cta) { color: var(--text-soft); font-weight: 600; }
.door-cta { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--sun); }
.door-cta::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: width .3s var(--ease); }
.door:hover .door-cta::after { width: 30px; }
.door.soon .door-cta { color: var(--text-soft); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: rgba(9, 13, 44, .78); border: 1px solid var(--line-2); color: var(--sun-soft); backdrop-filter: blur(6px); }

.discord {
  display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 18px; margin-top: 22px; padding: 18px 22px;
  border-radius: var(--r-lg); text-decoration: none; background: linear-gradient(100deg, rgba(88, 101, 242, .28), rgba(88, 101, 242, .08));
  border: 1px solid rgba(88, 101, 242, .45); transition: transform .4s var(--spring), border-color .2s; animation: rise .9s .75s var(--ease) both;
}
.discord:hover { transform: translateY(-4px); border-color: rgba(140, 150, 255, .8); }
.discord svg { width: 54px; height: 54px; padding: 12px; border-radius: 16px; background: var(--discord); color: #fff; }
.discord strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.discord span span { color: var(--text-soft); font-weight: 600; }
.discord-cta { padding: 9px 16px; border-radius: 12px; background: var(--discord); color: #fff; font-weight: 800; white-space: nowrap; }

/* ---------- Páginas "em breve" ---------- */
.soon-page { display: grid; place-items: center; text-align: center; padding: 70px 16px 90px; }
.soon-page .soon-art { width: 170px; margin: 0 auto 10px; animation: float 4s ease-in-out infinite; }
.soon-page h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; animation: rise .9s var(--ease) both; }
.soon-page p { max-width: 44ch; margin: 0 auto 26px; color: var(--text-soft); font-weight: 600; font-size: 1.08rem; animation: rise .9s .1s var(--ease) both; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 14px; text-decoration: none; font-weight: 800; border: 1px solid var(--line-2); background: var(--glass-2); transition: transform .3s var(--spring), background .2s; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); }
.btn-sun { border: 0; background: linear-gradient(180deg, #ffe08a, var(--sun) 45%, var(--sun-2)); color: #2a1600; }
.btn-sun:hover { background: linear-gradient(180deg, #ffe8a6, #ffd257 45%, #ffa83a); }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: rise .9s .2s var(--ease) both; }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--line); background: rgba(5, 8, 28, .6); }
.foot-in { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 26px 0 30px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--text-soft); text-decoration: none; font-weight: 700; }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 0 0 0 auto; color: var(--text-dim); font-size: .85rem; font-weight: 600; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 50; padding: 12px 18px; border-radius: 14px; font-weight: 800;
  background: rgba(18, 26, 77, .95); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); animation: toast-in .45s var(--spring); }
.toast::before { content: "✦ "; color: var(--sun); }
@keyframes toast-in { from { opacity: 0; translate: -50% 16px; scale: .9; } }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .door-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .door { flex-direction: row; align-items: stretch; }
  .door-art { aspect-ratio: auto; width: 38%; flex: none; }
  .door-art svg { width: 70%; }
  .door-body { align-content: center; padding: 16px 18px; }
  .door-body strong { font-size: 1.4rem; }
  .discord { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .links { display: none; }
  .bar-in { justify-content: space-between; }
  .hero { padding-top: 26px; padding-bottom: 190px; }
  .lead { font-size: 1.05rem; }
  .doors { margin-top: -140px; }
  .door-body > span:not(.door-cta) { font-size: .92rem; line-height: 1.45; }
  .discord { grid-template-columns: 46px 1fr; gap: 14px; }
  .discord svg { width: 46px; height: 46px; padding: 10px; }
  .discord-cta { grid-column: 1 / -1; text-align: center; }
  .foot p { margin-left: 0; }
}
@media (max-width: 400px) {
  .ip-chip span:last-child { display: none; }
  .ip-chip::after { content: "Copiar IP"; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
