/* =========================================================
   Aura Kingdom Starfall
   ========================================================= */
:root {
  --night: #081234;
  --night-2: #0e1d4f;
  --sky: #5cc8ff;
  --sky-2: #a9e4ff;
  --sky-dark: #2f7fe0;
  --pink: #ff5d8f;
  --pink-dark: #d23b6c;
  --gold: #ffd56b;
  --ink: #1b2552;
  --paper: #f5f8ff;
  --accent: #ff7fa8;           /* muda com a classe */

  --f-title: "M PLUS Rounded 1c", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-body: "Zen Kaku Gothic New", "M PLUS Rounded 1c", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-body);
  color: #fff;
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

/* ---------------- Cena (tela única) ---------------- */
.scene {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "top top" "intro stage" "dock dock";
  isolation: isolate;
}

.bg {
  position: absolute; inset: 0; z-index: -3;
  background: url(img/bg.webp) center 30% / cover no-repeat;
  animation: bgdrift 40s ease-in-out infinite alternate;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 52, .92) 0%, rgba(8, 18, 52, .62) 32%, rgba(8, 18, 52, .1) 62%, rgba(8, 18, 52, .25) 100%),
    linear-gradient(0deg, rgba(6, 13, 40, .96) 0%, rgba(6, 13, 40, 0) 30%);
}
@keyframes bgdrift { to { transform: scale(1.08) translateX(-1.5%); } }

/* brilhos */
.sparkles i {
  position: absolute; z-index: -2; width: 14px; height: 14px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px var(--sky-2));
  animation: twinkle 3.2s ease-in-out infinite;
}
.sparkles i:nth-child(1) { top: 14%; left: 44%; }
.sparkles i:nth-child(2) { top: 24%; left: 90%; width: 10px; height: 10px; animation-delay: -1s; }
.sparkles i:nth-child(3) { top: 62%; left: 38%; width: 8px; height: 8px; animation-delay: -2s; }
.sparkles i:nth-child(4) { top: 9%;  left: 70%; width: 18px; height: 18px; animation-delay: -.5s; background: var(--gold); }
.sparkles i:nth-child(5) { top: 48%; left: 96%; animation-delay: -1.6s; }
.sparkles i:nth-child(6) { top: 36%; left: 6%;  width: 9px; height: 9px; animation-delay: -2.4s; }
.sparkles i:nth-child(7) { top: 72%; left: 56%; width: 11px; height: 11px; animation-delay: -.9s; background: var(--gold); }
.sparkles i:nth-child(8) { top: 18%; left: 26%; width: 7px; height: 7px; animation-delay: -2.8s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* estrelas cadentes */
.falling i {
  position: absolute; z-index: -2; top: -10%; width: 2px; height: 160px;
  background: linear-gradient(180deg, transparent, #fff);
  border-radius: 2px;
  transform: rotate(35deg);
  opacity: 0;
  animation: fall 8s linear infinite;
}
.falling i::after {
  content: ""; position: absolute; bottom: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 14px 4px var(--sky);
}
.falling i:nth-child(1) { left: 58%; }
.falling i:nth-child(2) { left: 84%; animation-delay: 3s; animation-duration: 10s; }
.falling i:nth-child(3) { left: 30%; animation-delay: 6s; animation-duration: 9s; }
@keyframes fall {
  0% { opacity: 0; transform: rotate(35deg) translateY(0); }
  3% { opacity: 1; }
  14% { opacity: 0; transform: rotate(35deg) translateY(620px); }
  100% { opacity: 0; transform: rotate(35deg) translateY(620px); }
}

.jp-side {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl;
  font: 700 .72rem var(--f-title); letter-spacing: .6em;
  color: rgba(169, 228, 255, .45);
}

/* ---------------- Cabeçalho ---------------- */
.top {
  grid-area: top;
  display: flex; align-items: center; gap: 32px;
  padding: 12px clamp(24px, 4vw, 64px);
  position: relative; z-index: 5;
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 72px; width: auto; filter: drop-shadow(0 4px 14px rgba(8, 18, 52, .6)); transition: transform .3s var(--ease); }
.logo:hover img { transform: scale(1.04) rotate(-1deg); }
.logo-star {
  width: 42px; height: 42px; fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 213, 107, .8));
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt small {
  font: 800 .62rem var(--f-title); letter-spacing: .38em; text-transform: uppercase; color: var(--sky-2);
  margin-left: 3px;
}
.logo-txt b {
  font: 800 1.9rem var(--f-title); letter-spacing: -.01em;
  transform: skewX(-8deg); transform-origin: left;
  background: linear-gradient(180deg, #fff 30%, var(--sky-2) 75%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(20, 50, 130, .9));
}

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav > * {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font: 700 .95rem var(--f-title); color: rgba(255, 255, 255, .82);
  transition: color .2s, background .2s;
}
.nav > *:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-discord { color: var(--sky-2) !important; }

.lang {
  display: flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
}
.lang button {
  min-width: 36px; height: 30px; padding: 0 8px; border-radius: 999px;
  font: 800 .75rem var(--f-title); letter-spacing: .06em; color: rgba(255, 255, 255, .7);
  transition: background .2s, color .2s;
}
.lang button:hover { color: #fff; }
.lang button.on { background: #fff; color: var(--night); }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px; border-radius: 999px;
  font: 800 1.05rem var(--f-title); letter-spacing: .02em; color: #fff;
  transition: transform .15s var(--ease), box-shadow .15s, filter .2s;
  white-space: nowrap;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(3px); }
.btn-sm { height: 42px; padding: 0 22px; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-sky {
  background: linear-gradient(180deg, #8ad8ff, var(--sky) 45%, #3a9cf0);
  box-shadow: 0 5px 0 var(--sky-dark), 0 12px 28px -6px rgba(92, 200, 255, .7);
  text-shadow: 0 1px 0 rgba(20, 70, 160, .5);
}
.btn-sky:active { box-shadow: 0 2px 0 var(--sky-dark), 0 6px 16px -6px rgba(92, 200, 255, .7); }
.btn-pink {
  background: linear-gradient(180deg, #ff8db0, var(--pink) 50%, #f04478);
  box-shadow: 0 4px 0 var(--pink-dark), 0 10px 24px -6px rgba(255, 93, 143, .7);
  text-shadow: 0 1px 0 rgba(140, 20, 60, .4);
}
.btn-pink:active { box-shadow: 0 1px 0 var(--pink-dark); }
.btn-line {
  border: 2px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn-line:hover { background: #fff; color: var(--night); border-color: #fff; }

/* ---------------- Texto principal ---------------- */
.intro {
  grid-area: intro; align-self: center;
  padding: 0 0 6vh clamp(40px, 7vw, 120px);
  max-width: 780px;
  position: relative; z-index: 3;
  animation: up .9s var(--ease) both;
}
@keyframes up { from { opacity: 0; transform: translateY(24px); } }

.online {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .88rem; color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
}
.online i { width: 9px; height: 9px; border-radius: 50%; background: #5cf0a8; box-shadow: 0 0 0 0 rgba(92, 240, 168, .6); animation: ping 2s infinite; }
.online b { color: #fff; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(92, 240, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 240, 168, 0); } }

.intro h1 {
  margin: 22px 0 18px;
  font: 800 clamp(2.5rem, 4.2vw, 4.6rem)/1.12 var(--f-title);
  white-space: nowrap;
  letter-spacing: -.01em;
  text-shadow: 0 4px 24px rgba(8, 18, 52, .6);
}
.intro h1 em {
  font-style: normal; position: relative; display: inline-block;
  color: var(--sky-2);
}
.intro h1 em::after {           /* traço de pincel */
  content: ""; position: absolute; left: -4px; right: -6px; bottom: .02em; height: .26em; z-index: -1;
  background: var(--pink); opacity: .85;
  border-radius: 60% 30% 50% 40% / 60% 50% 40% 50%;
  transform: rotate(-2deg);
}
.lead { font-size: 1.08rem; line-height: 1.75; color: rgba(235, 243, 255, .86); max-width: 470px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ---------------- Personagem ---------------- */
.stage {
  grid-area: stage;
  position: relative; z-index: 2;
}
.stage::before {                 /* brilho da cor da classe */
  content: ""; position: absolute; left: 40%; top: 48%; width: 70vh; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%);
  transition: background .6s;
}
.ghost-name {
  position: absolute; left: 44%; top: 44%; transform: translate(-50%, -50%);
  font: 800 clamp(5rem, 13vw, 13rem)/1 var(--f-title); letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .16);
  white-space: nowrap; pointer-events: none; z-index: -1;
}
.circle {
  position: absolute; left: 40%; top: 46%; width: min(78vh, 46vw); z-index: -1;
  transform: translate(-50%, -50%);
  fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1.2;
  animation: circle 60s linear infinite;
}
.circle .dash { stroke-dasharray: 3 9; stroke: color-mix(in srgb, var(--accent) 70%, #fff); stroke-width: 2; opacity: .6; }
@keyframes circle { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-char {
  position: absolute; left: 40%; bottom: -3vh;
  height: min(102%, 940px); max-width: 100%; width: auto; object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 40px rgba(4, 10, 35, .55)) drop-shadow(0 0 1px rgba(255, 255, 255, .6));
  animation: float 6s ease-in-out infinite;
}
.hero-char.swap { animation: enter .7s var(--ease) both, float 6s ease-in-out .7s infinite; }
@keyframes float { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(-50%) translateY(-12px); } }
@keyframes enter {
  from { opacity: 0; transform: translateX(-36%) scale(.96); filter: brightness(2.2) blur(4px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

.class-card {
  position: absolute; right: clamp(24px, 4vw, 64px); top: 18%;
  width: 250px; padding: 18px 20px 18px 22px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 18px 40px -12px rgba(4, 10, 35, .6);
}
.class-card::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 5px; border-radius: 0 4px 4px 0;
  background: var(--accent); transition: background .4s;
}
.class-card.swap { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.cc-num { font: 800 .72rem var(--f-title); letter-spacing: .2em; color: #8a95bd; }
.class-card h2 { font: 800 1.7rem/1.2 var(--f-title); margin: 2px 0 2px; }
.cc-meta { font-size: .85rem; font-weight: 700; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.cc-desc { font-size: .9rem; line-height: 1.6; color: #4a5584; margin: 10px 0 12px; }
.cc-diff { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; color: #8a95bd; letter-spacing: .08em; text-transform: uppercase; }
#ccDiff { letter-spacing: 2px; font-size: .95rem; color: var(--gold); text-shadow: 0 1px 0 #c79a2a; }

/* ---------------- Barra inferior ---------------- */
.dock {
  grid-area: dock; position: relative; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 clamp(24px, 4vw, 64px) 26px clamp(40px, 7vw, 120px);
}
.picker-label {
  display: block; margin-bottom: 14px;
  font: 800 .78rem var(--f-title); letter-spacing: .26em; text-transform: uppercase; color: var(--sky-2);
}
.faces {
  display: grid; grid-template-columns: repeat(11, 42px); gap: 20px 18px;
  padding: 4px 6px;
}
.face {
  position: relative; width: 42px; height: 42px; flex: none;
  transform: rotate(45deg);
  border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .35);
  background: var(--night-2);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.face img {
  width: 142%; max-width: none; height: 142%; margin: -21%;
  transform: rotate(-45deg);
  filter: saturate(.6) brightness(.8);
  transition: filter .25s;
}
.face:hover { transform: rotate(45deg) translate(-3px, -3px); border-color: #fff; }
.face:hover img { filter: none; }
.face.on {
  border-color: #fff;
  transform: rotate(45deg) scale(1.18) translate(-3px, -3px);
  box-shadow: 0 0 0 3px var(--c), 0 0 24px var(--c);
}
.face.on img { filter: none; }

.latest {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 18px 8px 8px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  max-width: 340px;
  transition: background .2s, transform .2s;
}
.latest:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.latest img { width: 92px; height: 56px; object-fit: cover; border-radius: 10px; }
.latest small { display: block; font: 800 .7rem var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.latest b { font-size: .95rem; line-height: 1.35; }

/* ---------------- Painéis ---------------- */
.backdrop {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(5, 10, 30, .5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.backdrop.on { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 30;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  box-shadow: -20px 0 60px -10px rgba(0, 0, 0, .5);
  transform: translateX(105%); transition: transform .45s var(--ease);
}
.panel::before {                /* faixa listrada no topo */
  content: ""; height: 6px; flex: none;
  background: repeating-linear-gradient(-45deg, var(--sky) 0 10px, var(--sky-2) 10px 20px);
}
.panel.on { transform: none; }
.panel > header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 14px;
}
.panel h3 { font: 800 1.6rem var(--f-title); display: flex; align-items: center; gap: 10px; }
.panel h3::before { content: "✦"; color: var(--pink); font-size: 1.1rem; }
.close {
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
  background: #e6ecfb; transition: background .2s, transform .2s;
}
.close:focus { outline: none; }
.close:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.close:hover { background: var(--pink); color: #fff; transform: rotate(90deg); }
.panel-body { flex: 1; overflow-y: auto; padding: 6px 26px 32px; }
.muted { color: #5d6894; line-height: 1.7; }

/* notícias */
.post { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #e1e7f6; cursor: pointer; }
.post img { width: 112px; height: 72px; object-fit: cover; border-radius: 12px; transition: transform .3s; }
.post:hover img { transform: scale(1.04); }
.post h4 { font: 700 1rem/1.4 var(--f-title); margin-top: 4px; }
.post time { font-size: .75rem; color: #8a95bd; margin-left: 8px; }
.post.big { display: block; border: 0; padding-top: 4px; position: relative; }
.post.big img { width: 100%; height: 190px; border-radius: 16px; margin-bottom: 12px; }
.post.big .tag { position: absolute; top: 18px; left: 12px; }
.post.big time { margin: 0; }
.post.big h4 { font-size: 1.25rem; }
.post.big p { font-size: .92rem; color: #5d6894; line-height: 1.6; margin-top: 6px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font: 800 .68rem var(--f-title); letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.tag.sky { background: var(--sky-dark); }
.tag.pink { background: var(--pink); }
.tag.gold { background: #e0a81e; }

/* download */
.dl-hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.dl-hero img { width: 100%; height: 170px; object-fit: cover; }
.dl-hero div {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff;
  background: linear-gradient(0deg, rgba(8, 18, 52, .9), transparent);
}
.dl-hero b { display: block; font: 800 1.3rem var(--f-title); }
.dl-hero small { opacity: .8; }
.mirrors { display: flex; gap: 8px; margin: 12px 0 24px; }
.mirrors a {
  flex: 1; text-align: center; padding: 10px; border-radius: 12px;
  font: 700 .85rem var(--f-title); background: #e6ecfb; transition: background .2s, color .2s;
}
.mirrors a:hover { background: var(--ink); color: #fff; }
.howto { list-style: none; counter-reset: h; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: .94rem; line-height: 1.55; color: #4a5584; }
.howto li::before {
  content: counter(h); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 800 .95rem var(--f-title); color: #fff; background: var(--sky-dark);
}
.howto b { color: var(--ink); }
.reqs { width: 100%; border-collapse: collapse; font-size: .85rem; }
.reqs th { text-align: left; font: 800 .7rem var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: #8a95bd; padding: 6px 8px; }
.reqs td { padding: 8px; border-top: 1px solid #e1e7f6; color: #4a5584; }
.reqs td:first-child { font-weight: 700; color: var(--ink); }

/* ranking */
.tabs { display: flex; gap: 6px; padding: 5px; background: #e6ecfb; border-radius: 999px; margin-bottom: 16px; }
.tabs button { flex: 1; padding: 9px; border-radius: 999px; font: 800 .88rem var(--f-title); color: #5d6894; transition: .2s; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(27, 37, 82, .15); }
.rank { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; gap: 8px; }
.rank li {
  counter-increment: r; display: grid; grid-template-columns: 26px 46px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 14px 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 #e1e7f6;
}
.rank li::before { content: counter(r); font: 800 1rem var(--f-title); color: #a6b0d4; text-align: center; }
.rank li:nth-child(1)::before { color: #e0a81e; font-size: 1.25rem; }
.rank li:nth-child(2)::before { color: #8ea0c8; font-size: 1.15rem; }
.rank li:nth-child(3)::before { color: #d98a5a; font-size: 1.1rem; }
.rank img, .rank .crest { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--night-2); }
.rank .crest { display: grid; place-items: center; color: var(--gold); font-size: 1.2rem; }
.rank span { font-weight: 700; line-height: 1.25; display: flex; flex-direction: column; }
.rank small { font-weight: 500; font-size: .78rem; color: #8a95bd; }
.rank b { font: 800 1.05rem var(--f-title); color: var(--sky-dark); }

/* registro */
.form { display: grid; gap: 14px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font: 700 .85rem var(--f-title); color: #5d6894; }
.form input:not([type=checkbox]) {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 2px solid #dbe3f6; background: #fff;
  font: 500 1rem var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(92, 200, 255, .25); }
.form .chk { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.form .chk input { width: 18px; height: 18px; accent-color: var(--pink); }
.form .chk a { color: var(--sky-dark); text-decoration: underline; }
.form .btn { margin-top: 8px; }
.done { margin-top: 20px; padding: 20px; border-radius: 16px; background: #e3f6ff; color: var(--ink); text-align: center; display: grid; gap: 14px; }
.done p { margin: 0; line-height: 1.6; color: #4a5584; }
.done b { font: 800 1.15rem var(--f-title); color: var(--sky-dark); }
.form small { font-weight: 500; font-size: .76rem; color: #8a95bd; }
.form .opt { font-style: normal; font-weight: 500; font-size: .85em; color: #8a95bd; text-transform: none; letter-spacing: 0; }
.form input[name="invite"] { text-transform: uppercase; letter-spacing: .12em; }
.form label.bad input { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 93, 143, .18); }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #ffe3ec; color: #9b1c47; font-size: .9rem; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 78px; }
.reg-login { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e1e7f6; text-align: center; color: #5d6894; font-size: .92rem; }
.reg-login a { color: var(--sky-dark); font-weight: 800; }
.top-login { margin-right: -14px; }

/* ---------------- Telas menores ---------------- */
@media (max-height: 760px) and (min-width: 901px) {
  .intro h1 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); margin: 16px 0 12px; }
  .lead { font-size: 1rem; }
  .actions { margin-top: 24px; }
  .class-card { top: 10%; }
  .cc-desc { display: none; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .latest { display: none; }
  .class-card { width: 220px; }
}
@media (max-width: 900px) {
  .scene {
    height: auto; min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 62vh auto;
    grid-template-areas: "top" "intro" "stage" "dock";
  }
  .bg::after { background: linear-gradient(180deg, rgba(8, 18, 52, .85), rgba(8, 18, 52, .45) 40%, rgba(6, 13, 40, .95)); }
  .top { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
  .logo img { height: 52px; }
  .lang { margin-left: auto; }
  .top-login { display: none; }
  .lang button { min-width: 30px; height: 28px; padding: 0 6px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .nav > * { padding: 8px 12px; font-size: .88rem; }
  .jp-side { display: none; }
  .intro { padding: 24px 24px 0; }
  .intro h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-char { left: 50%; height: 100%; }
  .actions .btn { flex: 1; padding: 0 20px; }
  .ghost-name { font-size: 22vw; }
  .circle { width: 90vw; }
  .class-card { right: 16px; top: auto; bottom: 16px; width: 200px; padding: 12px 14px 12px 18px; }
  .cc-desc { display: none; }
  .dock { padding: 20px 20px 28px; flex-direction: column; align-items: stretch; }
  .faces {
    grid-template-columns: none; grid-template-rows: repeat(2, 42px); grid-auto-flow: column; grid-auto-columns: 42px;
    gap: 20px 16px; overflow-x: auto; padding: 10px 10px 12px;
  }
  .latest { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .stage::before, .circle, .ghost-name { left: 50%; }
}
