/* Nyx — heynyx.net · tema nocturno */
:root {
  --bg: #07060b;
  --bg-2: #0d0b14;
  --surface: rgba(20, 16, 30, .82);
  --surface-solid: #14101e;
  --surface-2: #1c1729;
  --border: rgba(167, 139, 250, .16);
  --border-strong: rgba(167, 139, 250, .38);
  --text: #efeaf8;
  --muted: #a69fbd;
  --faint: #6c6585;
  --accent: #9b6bff;
  --accent-hover: #8a57f7;
  --accent-soft: #c9b4ff;
  --glow: rgba(155, 107, 255, .45);
  --gold: #f3dfa2;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); line-height: 1.6;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(124, 58, 237, .20), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(124, 58, 237, .08), transparent 60%),
    var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent-soft); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
main { flex: 1; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
html[lang="en"] [data-lang="es"], html[lang="es"] [data-lang="en"] { display: none !important; }

/* ---------- tipografía ---------- */
.eyebrow { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-soft); font-weight: 600; }
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.02; }
.display em { font-style: normal; font-weight: 600; color: var(--accent); text-shadow: 0 0 28px var(--glow); }
.hand { font-family: var(--hand); color: var(--accent-soft); opacity: .8; transform: rotate(-8deg); font-size: 1.6rem; line-height: 1.1; }

/* ---------- barra beta ---------- */
.beta-bar { background: linear-gradient(90deg, rgba(124, 58, 237, .28), rgba(243, 223, 162, .10)); border-bottom: 1px solid var(--border); font-size: .85rem; text-align: center; padding: 7px 16px; }
.beta-bar strong { color: var(--gold); letter-spacing: .04em; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 6, 11, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px var(--glow)); }
.brand .word { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: .14em; }
.badge { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(243, 223, 162, .12); color: var(--gold); border: 1px solid rgba(243, 223, 162, .35); font-family: var(--sans); }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .94rem; }
.nav-links a:hover { color: var(--text); background: rgba(155, 107, 255, .08); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang select { appearance: none; background: transparent; color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 30px 8px 34px; font: inherit; font-size: .9rem; cursor: pointer; }
.lang::before { content: "🌐"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .85rem; pointer-events: none; }
.lang::after { content: "▾"; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .8rem; }
.lang select option { background: var(--surface-solid); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .brand .word { font-size: 1.35rem; letter-spacing: .1em; }
  .site-header .brand .badge { display: none; }
  .site-header .wrap { gap: 10px; }
  .nav-right { gap: 8px; }
  .nav-right .btn .txt-sm-hide { display: none; }
  .nav-right .btn-primary { padding: 9px 11px; }
  .lang select { padding: 8px 26px 8px 30px; }
}
html, body { overflow-x: hidden; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 26px var(--glow); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 10px 32px var(--glow); }
.btn-ghost { background: rgba(7, 6, 11, .4); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(155, 107, 255, .1); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0 0 0 30%; background: url("../img/hero.webp") 70% center / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 6, 11, .85) 22%, rgba(7, 6, 11, .2) 55%, rgba(7, 6, 11, .35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .wrap { position: relative; z-index: 1; padding: 80px 0; }
.hero-text { max-width: 560px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin: 18px 0 20px; }
.hero .lead { color: #d5cfe3; font-size: 1.1rem; max-width: 46ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .hand { position: absolute; right: 4%; top: 70px; z-index: 1; text-align: right; }
@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-art { inset: 0; opacity: .45; }
  .hero .hand { display: none; }
}

/* ---------- secciones ---------- */
section.block { padding: 70px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); margin: 10px 0 8px; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 60ch; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.card h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 8px 0 6px; color: var(--accent-soft); line-height: 1.1; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.feature { min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; }
.feature .art { mix-blend-mode: lighten; position: absolute; top: -10px; right: -10px; width: 62%; opacity: .55; mask-image: linear-gradient(200deg, #000 30%, transparent 85%); -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 85%); }
.feature .art.round { border-radius: 50%; }
.feature .ico-big { font-size: 2.2rem; position: relative; }
.feature > *:not(.art) { position: relative; }
.feature:hover { border-color: var(--border-strong); }

.mini-games { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 18px; }
.mini-games .card { padding: 16px; }
.mini-games h4 { margin: 4px 0 2px; font-size: 1rem; }
.mini-games p { font-size: .86rem; }

/* personalidades */
.personas { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.persona { margin: 0; padding: 0; transition: transform .2s ease, border-color .2s ease; }
.persona:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.persona img { width: 100%; aspect-ratio: 1; object-fit: cover; mask-image: linear-gradient(180deg, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.persona figcaption { padding: 0 22px 22px; margin-top: -26px; position: relative; }

/* colecciones */
.collect { display: grid; gap: 28px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.collect .pack { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.how { display: grid; gap: 12px; margin: 18px 0; }
.how .step { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.how .step img { mix-blend-mode: lighten; width: 58px; height: 58px; object-fit: contain; flex: none; border-radius: 10px; }
.how .step b { display: block; }
.how .step span { color: var(--muted); font-size: .9rem; }
.items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 28px; }
.item { text-align: center; padding: 16px; }
.item img { mix-blend-mode: lighten; width: 100%; max-width: 130px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 8px; border-radius: 12px; }
.item h4 { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: var(--accent-soft); }
.item p { font-size: .85rem; }
.soon-tag { display: inline-block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(243, 223, 162, .35); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 860px) { .collect { grid-template-columns: 1fr; } }

/* pasos */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; position: relative; }
.steps3 .s { position: relative; }
.steps3 .circle { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.7rem; background: radial-gradient(circle, rgba(155, 107, 255, .25), rgba(20, 16, 30, .9)); border: 1px solid var(--border-strong); box-shadow: 0 0 24px rgba(155, 107, 255, .25); }
.steps3 .num { position: absolute; left: calc(50% - 58px); top: 40px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-2); font-size: .8rem; display: grid; place-items: center; color: var(--accent-soft); }
.steps3 h3 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 4px; font-weight: 600; }
.steps3 p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .steps3 { grid-template-columns: 1fr; gap: 34px; } }

/* planes */
.plans-box { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(24px, 4vw, 44px); position: relative; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { background: rgba(7, 6, 11, .5); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(124, 58, 237, .25); }
.plan .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan h3 { font-family: var(--serif); font-size: 1.8rem; margin: 0; font-weight: 600; line-height: 1; }
.plan .sub { color: var(--muted); font-size: .85rem; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 8px; flex: 1; }
.plan li { font-size: .9rem; color: #d5cfe3; padding-left: 24px; position: relative; }
.plan li::before { content: "✦"; position: absolute; left: 2px; color: var(--accent); font-size: .8rem; top: 2px; }
.plan .tag { font-size: .68rem; background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.plans-hand { position: absolute; right: 40px; top: 40px; margin: 0; max-width: 190px; text-align: right; }
@media (max-width: 1100px) { .plans-hand { display: none; } }
.collect h3.display { font-size: 2.1rem; margin: 10px 0 4px; }
.items-title { font-size: 2rem; margin: 46px 0 0; }
.beta-gift { text-align: center; color: var(--gold); margin: 22px 0 0; font-size: .95rem; }

/* Sombra en la portada */
.sombra-peek { position: absolute; left: -10px; top: -96px; width: 150px; pointer-events: none; filter: drop-shadow(0 8px 20px rgba(0,0,0,.6)); }
@media (max-width: 700px) { .sombra-peek { width: 110px; top: -72px; } }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; color: var(--faint); font-size: .88rem; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.site-footer .fbrand { display: flex; flex-direction: column; gap: 6px; }
.site-footer .fbrand .brand .word { font-size: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- páginas legales ---------- */
.legal { padding: 50px 0; }
.legal article { max-width: 800px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); }
.legal h1 { margin: 0 0 6px; font-family: var(--serif); font-size: 2.8rem; font-weight: 600; line-height: 1.05; }
.legal h2 { font-size: 1.15rem; margin-top: 30px; color: var(--accent-soft); }
.legal p, .legal li { color: #d8d3e6; }
.legal .meta { color: var(--faint); font-size: .9rem; margin: 0 0 20px; }
.note { background: rgba(243, 223, 162, .07); border: 1px solid rgba(243, 223, 162, .28); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: .93rem; }
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 20px 0; }

/* ---------- panel ---------- */
.panel { padding: 34px 0 120px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; position: relative; }
.panel-head h1 { margin: 0; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1.05; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); display: grid; place-items: center; font-weight: 700; color: var(--accent-soft); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.guild-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.guild { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color .15s; }
.guild:hover { border-color: var(--border-strong); }
.guild .gicon { width: 54px; height: 54px; border-radius: 15px; font-size: 1.1rem; }
.guild .info { flex: 1; min-width: 0; }
.guild .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { font-size: .84rem; color: var(--muted); }
.status.on { color: var(--ok); }

.scene { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; max-width: 760px; margin: 30px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 4vw, 40px); }
.scene img { width: 210px; }
.scene img.portrait { width: 200px; border-radius: 18px; border: 1px solid var(--border-strong); box-shadow: 0 0 30px rgba(124, 58, 237, .25); }
.scene h2 { font-family: var(--serif); font-size: 2.3rem; margin: 0 0 8px; font-weight: 600; line-height: 1.05; }
.scene p { color: var(--muted); margin: 0 0 14px; }
.scene.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 620px) { .scene { grid-template-columns: 1fr; text-align: center; justify-items: center; } .scene img { width: 160px; } }

.back { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0; margin-bottom: 16px; }
.back:hover { color: var(--text); }
.cfg-sombra { position: absolute; right: 0; bottom: -22px; width: 150px; pointer-events: none; }
@media (max-width: 620px) { .cfg-sombra { display: none; } }
.settings { display: grid; gap: 16px; }
.setting { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.setting h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--accent-soft); }
.setting .hint { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
select.field, input.field, textarea { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 12px; font: inherit; }
select.field option { background: var(--surface-solid); }
input.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lbl { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.setting.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .setting.two, .three { grid-template-columns: 1fr; } }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }

.persona-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.persona-opt { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; background: rgba(7,6,11,.5); transition: border-color .15s, box-shadow .15s, transform .15s; text-align: left; padding: 0; color: inherit; font: inherit; }
.persona-opt:hover { transform: translateY(-2px); }
.persona-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.persona-opt .pname { padding: 10px 12px; font-weight: 600; }
.persona-opt .pname small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.persona-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--glow); }
.persona-opt[aria-checked="true"]::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.persona-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .persona-opt .pname small { display: none; } }

.cur-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.cur-emoji input { text-align: center; font-size: 1.3rem; }
.cur-preview { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.cur-preview b { color: var(--text); }

.sched { display: grid; gap: 8px; }
.sday { display: grid; grid-template-columns: 96px 1fr 120px auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(7,6,11,.45); }
.sday.off { opacity: .6; }
.sday .dname { font-weight: 600; }
.sday select.field { padding: 8px 10px; }
@media (max-width: 560px) { .sday { grid-template-columns: 1fr auto; } .sday .dname { grid-column: 1; } .sday .toggle { grid-row: 1; grid-column: 2; } .sday select { grid-column: 1 / -1; } }
.locked { opacity: .5; pointer-events: none; }

.idle-opts { display: grid; grid-template-columns: 160px 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 560px) { .idle-opts { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); cursor: pointer; font-size: .88rem; user-select: none; }
.chip input { accent-color: var(--accent); margin: 0; }
.chip:has(input:checked) { background: rgba(155,107,255,.18); border-color: var(--accent); }
select:focus-visible, textarea:focus-visible, .btn:focus-visible, .toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 130px; resize: vertical; }
.modules { display: grid; gap: 10px; }
.module { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(7, 6, 11, .45); }
.module .mtext { flex: 1; }
.module .mtitle { font-weight: 600; }
.module .mdesc { color: var(--muted); font-size: .87rem; }
.module.locked { opacity: .55; }
.toggle { position: relative; display: inline-block; width: 48px; height: 27px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle .track { position: absolute; inset: 0; background: #2b2440; border-radius: 999px; transition: background .15s; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + .track { background: var(--accent); box-shadow: 0 0 14px var(--glow); }
.toggle input:checked + .track::after { transform: translateX(21px); }
.toggle input:disabled { cursor: not-allowed; }
.savebar { position: sticky; bottom: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; padding: 12px; background: rgba(20, 16, 30, .94); border: 1px solid var(--border-strong); border-radius: var(--radius); backdrop-filter: blur(8px); z-index: 5; }
.savebar .dirty { margin-right: auto; align-self: center; color: var(--warn); font-size: .9rem; }

/* feedback / modal / toast */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 30; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 3, 8, .75); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { width: min(540px, 100%); background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.modal p { color: var(--muted); margin: 0 0 12px; }
.modal .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.modal .thanks { display: flex; gap: 16px; align-items: center; }
.modal .thanks img { width: 110px; border-radius: 14px; border: 1px solid var(--border-strong); }
.counter { color: var(--faint); font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 40px); }
.toast.ok { border-color: rgba(74, 222, 128, .5); }
.toast.bad { border-color: rgba(248, 113, 113, .6); }
.demo-flag { font-size: .8rem; color: var(--faint); text-align: center; margin-top: 30px; }
