/* CELESTIAIS - beta release notes (celestiais.com/novidades). Colors and type from packages/brand
   (tokens v0.2.0-neon-orbital). Static page: no scripts, served by Caddy (deploy/caddy/Caddyfile). */

@font-face {
  font-family: 'Exo 2';
  src: url('/novidades/fonts/exo-2-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/novidades/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --space-950: #060b1f;
  --space-900: #0a1230;
  --space-800: #101c45;
  --panel: rgba(14, 26, 64, 0.72);
  --panel-strong: rgba(10, 20, 52, 0.9);
  --border: rgba(110, 200, 255, 0.22);
  --border-strong: rgba(120, 220, 255, 0.55);
  --text: #eaf2ff;
  --muted: #a9bce0;
  --dim: #8197c4;
  --accent: #3fe0ff;
  --accent-strong: #11b8f0;
  --glow: rgba(63, 224, 255, 0.35);
  --gold: #f2c14e;
  --success: #55e39a;
  --warning: #ffb547;
  --danger: #ff5d73;
  --violet: #7a4bff;
  --magenta: #d946ef;
  --display: 'Exo 2', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--space-950);
  /* Nebulae and a light star field, drawn with gradients only. */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 42%, rgba(207, 230, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 36%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 74%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 66%, rgba(207, 230, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 88%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(60rem 36rem at 85% -10%, rgba(122, 75, 255, 0.28), transparent 70%),
    radial-gradient(50rem 30rem at -10% 20%, rgba(63, 224, 255, 0.14), transparent 70%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(217, 70, 239, 0.12), transparent 70%);
  background-attachment: fixed;
  background-size: 420px 420px, 520px 520px, 610px 610px, 380px 380px, 470px 470px, 560px 560px, 640px 640px, auto, auto, auto;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8eefff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--space-950); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(920px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- top bar ---------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 11, 31, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 28px; height: 28px; }
.brand span { font-family: var(--display); font-weight: 700; letter-spacing: 0.24em; font-size: 14px; }
.topnav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px;
}
.topnav a:hover { color: var(--text); background: rgba(63, 224, 255, 0.08); }
.topnav .play { color: var(--space-950); background: var(--accent); }
.topnav .play:hover { color: var(--space-950); background: #8eefff; }
@media (max-width: 560px) { .brand span { display: none; } .topnav a:not(.play) { padding: 8px 9px; } }

/* ---- hero ------------------------------------------------------------------------------- */
.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(32px, 6vw, 56px); }
.hero .logo { width: min(340px, 78%); height: auto; display: block; margin-bottom: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -0.01em; max-width: 18ch; }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 60ch; margin: 18px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none;
  border: 1px solid var(--border-strong); color: var(--text);
}
.btn.primary { background: linear-gradient(180deg, #5ce7ff, var(--accent-strong)); color: var(--space-950); border-color: transparent; box-shadow: 0 6px 24px var(--glow); }
.btn.primary:hover { color: var(--space-950); filter: brightness(1.08); }
.btn:hover { color: var(--text); background: rgba(63, 224, 255, 0.08); }
.btn.primary:hover { background: linear-gradient(180deg, #8eefff, #3fd2ff); }
.current {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 15px; color: var(--dim);
}
.current strong { color: var(--text); }

/* ---- sections --------------------------------------------------------------------------- */
section { padding: clamp(40px, 7vw, 72px) 0 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 62ch; }

/* ---- release timeline ------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(122, 75, 255, 0.5) 60%, rgba(122, 75, 255, 0.05));
}
.release { position: relative; padding-left: 44px; margin-bottom: 22px; }
.release::before {
  content: ''; position: absolute; left: 4px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--space-900); border: 2px solid var(--accent);
}
.release.latest::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(63, 224, 255, 0.15), 0 0 18px var(--accent); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.release.latest .card { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(63, 224, 255, 0.1), 0 18px 48px rgba(0, 0, 0, 0.35); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; font-size: 14px; color: var(--dim); }
.version {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 999px; color: var(--accent); background: rgba(63, 224, 255, 0.1); border: 1px solid rgba(63, 224, 255, 0.35);
}
.badge-now { font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--space-950); background: var(--success); padding: 3px 9px; border-radius: 999px; }
.release h3 { font-size: clamp(20px, 3vw, 24px); font-weight: 800; }
.summary-text { color: var(--muted); margin: 8px 0 16px; }

.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.changes li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.tag {
  margin-top: 3px; min-width: 84px; text-align: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; border: 1px solid;
}
.tag.new { color: var(--accent); border-color: rgba(63, 224, 255, 0.45); background: rgba(63, 224, 255, 0.08); }
.tag.better { color: #c4a8ff; border-color: rgba(180, 140, 255, 0.45); background: rgba(122, 75, 255, 0.12); }
.tag.fix { color: var(--warning); border-color: rgba(255, 181, 71, 0.45); background: rgba(255, 181, 71, 0.08); }
.tag.infra { color: var(--success); border-color: rgba(85, 227, 154, 0.4); background: rgba(85, 227, 154, 0.08); }
.changes strong { color: var(--text); }
@media (max-width: 480px) {
  .changes li { grid-template-columns: 1fr; gap: 4px; }
  .tag { justify-self: start; min-width: 0; }
  .release { padding-left: 34px; }
  .timeline::before { left: 7px; }
  .release::before { left: 0; }
}

/* Older releases fold away: native <details>, keyboard and screen-reader friendly. */
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .row { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
details.card > summary .chev {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted); transition: transform 160ms ease;
}
details.card[open] > summary .chev { transform: rotate(180deg); }
details.card > summary .hint { color: var(--dim); font-size: 14px; margin-top: 4px; }
details.card[open] > summary .hint { display: none; }
details.card > .body { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { details.card > summary .chev { transition: none; } }

.base-list { columns: 2 260px; column-gap: 28px; margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.base-list li { break-inside: avoid; margin-bottom: 6px; }
.base-list strong { color: var(--text); }

/* ---- planned ---------------------------------------------------------------------------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.fixing { background: var(--warning); box-shadow: 0 0 10px rgba(255, 181, 71, 0.7); }
.dot.building { background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.dot.planned { background: #b48cff; }
.dot.later { background: var(--dim); }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.group h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.group h3 .icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(63, 224, 255, 0.1); color: var(--accent); font-size: 16px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.items li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: start; }
.items .dot { margin-top: 9px; }
.items strong { display: block; color: var(--text); font-weight: 800; line-height: 1.4; }
.items span.desc { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.status { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--dim); text-transform: uppercase; margin-left: 6px; white-space: nowrap; }

.note { margin-top: 18px; font-size: 15px; color: var(--dim); }

/* ---- report ----------------------------------------------------------------------------- */
.report { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .report { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checklist li::before {
  content: '✓'; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 14px; color: var(--space-950); background: var(--success);
}
.tip { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; color: var(--muted); }
.tip strong { color: var(--gold); }

/* ---- footer ----------------------------------------------------------------------------- */
footer { margin-top: clamp(56px, 9vw, 96px); padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.base-intro { margin-top: 18px; }

/* ---- hero with the three worlds (concept art by the owner, docs/visual-references/planets) ---- */
.hero { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 761px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero .worlds { order: 2; }
}
.worlds { position: relative; margin: 0; aspect-ratio: 1 / 0.96; width: min(100%, 440px); justify-self: center; }
.worlds img {
  position: absolute; display: block; height: auto; border-radius: 50%;
  border: 1px solid rgba(120, 220, 255, 0.35);
  box-shadow: 0 0 0 6px rgba(63, 224, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 60px rgba(122, 75, 255, 0.25);
}
.worlds .w-main { width: 72%; top: 0; left: 14%; z-index: 2; }
.worlds .w-left { width: 40%; left: 0; bottom: 8%; z-index: 3; }
.worlds .w-right { width: 40%; right: 0; bottom: 2%; z-index: 1; }
.worlds figcaption { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: 12.5px; color: var(--dim); letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .worlds { width: min(82%, 360px); margin-bottom: 18px; }
  .hero { padding-top: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .worlds .w-main { animation: drift 9s ease-in-out infinite; }
  .worlds .w-left { animation: drift 11s ease-in-out -3s infinite; }
  .worlds .w-right { animation: drift 10s ease-in-out -6s infinite; }
}
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero .logo { width: min(300px, 72%); margin-bottom: 22px; }
@media (max-width: 600px) { .topnav .wide-only { display: none; } }
@media (max-width: 700px) { .brand span { display: none; } }
@media (max-width: 380px) { .topnav { gap: 0; } .topnav a:not(.play) { padding: 8px 6px; font-size: 13px; } .topnav .play { padding: 8px 10px; } }

/* ---- report form (posted to the feedback service, deploy/feedback) --------------------------- */
.report { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 820px) { .report { grid-template-columns: minmax(0, 1fr); } }
.feedback { display: grid; gap: 16px; min-width: 0; }
.feedback > *, .feedback fieldset { min-width: 0; }
.feedback fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.feedback legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.feedback .kind label {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(6, 11, 31, 0.5); font-weight: 700;
}
.feedback .kind label:has(input:checked) { border-color: var(--accent); background: rgba(63, 224, 255, 0.12); color: var(--text); }
.feedback .kind input { accent-color: var(--accent); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-weight: 800; font-size: 15px; }
.field .req, .field .opt { font-weight: 600; font-size: 12.5px; color: var(--dim); margin-left: 4px; }
.field .req { color: var(--accent); }
.field .hint { font-weight: 500; font-size: 13.5px; color: var(--dim); }
.feedback input[type="text"], .feedback textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--text); background: rgba(6, 11, 31, 0.65);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; line-height: 1.5;
}
.feedback textarea { resize: vertical; min-height: 130px; }
.feedback input::placeholder, .feedback textarea::placeholder { color: var(--dim); opacity: 0.85; }
.feedback input[type="text"]:focus, .feedback textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 224, 255, 0.18); }
.feedback input[type="file"] { font: inherit; font-size: 14px; color: var(--muted); width: 100%; max-width: 100%; }
.feedback input[type="file"]::file-selector-button {
  font: inherit; font-weight: 800; color: var(--text); background: rgba(63, 224, 255, 0.1);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer;
}
.feedback .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .feedback .two { grid-template-columns: 1fr; } }
.feedback .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback button { justify-self: start; cursor: pointer; font-family: inherit; }
.privacy { margin: 0; font-size: 13.5px; color: var(--dim); }
.tips-title { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.report .tip { margin-top: 18px; }

/* ---- pages answered by the feedback service ---------------------------------------------------- */
.report-result { max-width: 640px; }
.report-result h2 { font-size: 26px; margin-bottom: 8px; }
.report-result .btn { margin: 6px 8px 0 0; }
article.report-item { margin-bottom: 16px; }
.report-text { white-space: pre-wrap; margin: 8px 0 12px; }
.report-meta { font-size: 14px; color: var(--dim); margin: 0 0 12px; }
.report-meta strong { color: var(--muted); }
.report-images { display: flex; flex-wrap: wrap; gap: 10px; }
.report-images img { width: 220px; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }

/* ---- screenshots inside a release card ---------------------------------------------------- */
.release-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.release-shots.bosses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .release-shots.bosses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.release-shots figure { margin: 0; }
.release-shots figure.wide { grid-column: 1 / -1; }
.release-shots img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--space-900); }
.release-shots figcaption { margin-top: 6px; font-size: 13.5px; color: var(--dim); }
