/* ============ Quito Roleplay — tema ============ */
:root {
  --bg: #0b0716;
  --bg-2: #120b22;
  --surface: rgba(28, 18, 50, 0.62);
  --surface-solid: #170f2b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5effc;
  --muted: #a99cc2;
  --dim: #6f6488;
  --pink: #ff3fa4;
  --orange: #ffad42;
  --purple: #9b4dff;
  --cyan: #3fd2ff;
  --good: #3ddc97;
  --bad: #ff5470;
  --grad: linear-gradient(90deg, var(--orange), var(--pink) 55%, var(--purple));
  --radius: 14px;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(155, 77, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 63, 164, 0.10), transparent 60%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, header, footer { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(11, 7, 22, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { filter: drop-shadow(0 0 10px rgba(255, 63, 164, 0.45)); }
.brand strong { display: block; font-weight: 800; letter-spacing: .02em; font-size: 17px; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--text); }
@media (max-width: 1080px) { .nav { gap: 18px; } .brand small { display: none; } }
@media (max-width: 900px) { .nav { display: none; } .chip-btn { margin-left: auto; } }
.chip-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); display: inline-block; }
.chip-btn[aria-pressed="false"] .dot { background: var(--dim); box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 140px);
  padding: 48px clamp(16px, 5vw, 64px) 32px;
  max-width: 1280px; margin: 0 auto;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--cyan);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(63, 210, 255, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 210, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 210, 255, 0); } }
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 9vw, 124px); line-height: .92; letter-spacing: .01em;
  margin: 18px 0 22px;
}
/* ---------- scanline title style (striped condensed letters) ---------- */
.scan { font-family: "Anton", var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.hero h1.scan { font-size: clamp(60px, 8.6vw, 128px); line-height: .9; }
.scan .silver, .scan .brandline {
  display: inline-block;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* horizontal scanlines cut into the letters */
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 .062em, transparent .062em .088em);
          mask-image: repeating-linear-gradient(180deg, #000 0 .062em, transparent .062em .088em);
  /* room above for accents (Ó, Ú) so the clipped background covers them */
  padding: .16em .02em .02em 0;
}
.hero h1.scan .silver, .hero h1.scan .brandline { margin-top: -.16em; }
.scan .silver {
  background-image: linear-gradient(180deg, #ffffff 0%, #e6e6ee 28%, #9c9caf 52%, #f2f2f7 72%, #b9b9c6 100%);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.scan .brandline {
  background-image: linear-gradient(90deg, #ffb347, #ff3fa4 45%, #b061ff 80%, #8a4dff);
  background-size: 200% 100%;
  animation: brandshift 8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(176, 97, 255, .35));
}
@keyframes brandshift { 50% { background-position: 100% 0; } }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { color: var(--orange); }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.primary { background: var(--grad); color: #1a0a1e; box-shadow: 0 10px 30px -8px rgba(255, 63, 164, .55); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(255, 63, 164, .7); }
.btn.ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; color: var(--muted); font-size: 12px; }
.stats b { font-family: var(--display); font-size: 30px; color: var(--text); font-weight: 400; margin-right: 8px; }
.stat-note { display: flex; align-items: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--line-strong); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-art .logo {
  position: relative; z-index: 2; width: min(420px, 82%); height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-14px) rotate(1.2deg); }
}
.halo {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 63, 164, .40), rgba(155, 77, 255, .22) 45%, transparent 70%);
  filter: blur(10px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.ring {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .12);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tag { position: absolute; z-index: 3; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.tag-left { left: 0; top: 24%; color: var(--cyan); }
.tag-right { right: 0; bottom: 26%; color: var(--orange); }
.hero-caption { position: absolute; bottom: -6px; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
.hero-caption b { color: var(--text); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; background: rgba(255, 255, 255, .015); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--display); font-size: 22px; letter-spacing: .08em; color: var(--dim); }
.marquee-track span:nth-child(4n+1) { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.rules-area, .guide { max-width: 1280px; margin: 0 auto; padding: 96px clamp(16px, 5vw, 64px) 40px; }
.section-head { margin-bottom: 30px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--pink); margin: 0 0 10px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.5vw, 68px); line-height: 1; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

.search {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 28px;
}
.search:focus-within { border-color: rgba(255, 63, 164, .5); box-shadow: 0 0 0 4px rgba(255, 63, 164, .12); }
.search-ic { color: var(--pink); font-size: 20px; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--dim); }
kbd { border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--muted); }

.rules-grid { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.sidebar { position: sticky; top: 96px; }
.side-label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.categories { display: flex; flex-direction: column; gap: 6px; }
.cat {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 14px 16px;
  font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s;
}
.cat:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.cat .ic { width: 20px; text-align: center; font-size: 16px; }
.cat .num { margin-left: auto; font-size: 11px; color: var(--dim); }
.cat.on { color: var(--text); background: linear-gradient(90deg, rgba(255, 63, 164, .16), rgba(155, 77, 255, .08)); border-color: rgba(255, 63, 164, .35); }
.cat.on .ic { color: var(--pink); }
.side-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-note b { color: var(--orange); margin-right: 6px; }

.reader { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; backdrop-filter: blur(6px); }
.reader-top { padding: 30px 30px 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.reader-top .kicker { color: var(--cyan); font-size: 11px; }
.reader-top h3 { font-size: 28px; margin: 0; letter-spacing: -.01em; }
.reader-top p { margin: 4px 0 0; color: var(--muted); }
.reader-ic { font-size: 30px; color: var(--pink); text-shadow: 0 0 18px rgba(255, 63, 164, .6); align-self: center; }
.callout {
  margin: 22px 30px 0; padding: 18px 22px; border-radius: 12px;
  border: 1px solid rgba(255, 173, 66, .28); border-left: 3px solid var(--orange);
  background: rgba(255, 173, 66, .06);
}
.callout h4 { margin: 0 0 10px; color: var(--orange); font-size: 15px; }
.callout ul { margin: 0; padding-left: 18px; }
.callout li { margin: 6px 0; font-size: 14px; }
.callout li::marker { color: var(--orange); }
.topics { padding: 22px 30px 4px; }
.topics .side-label { margin-bottom: 10px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips button, .seg button {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 14px; font-size: 13px; color: var(--muted); transition: .15s;
}
.topic-chips button:hover, .seg button:hover { color: var(--text); }
.topic-chips button.on { color: var(--text); border-color: rgba(63, 210, 255, .5); background: rgba(63, 210, 255, .08); }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 30px; margin-top: 18px; border-block: 1px solid var(--line); background: rgba(0, 0, 0, .12); }
.seg { display: flex; gap: 6px; }
.seg button { border-color: transparent; background: transparent; }
.seg button.on { background: rgba(255, 255, 255, .08); color: var(--text); border-color: var(--line-strong); }
#result-info { font-size: 12px; color: var(--muted); }

#content { padding: 10px 30px 30px; }
.topic-section { padding-top: 24px; }
.topic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.topic-head .kicker { color: var(--cyan); font-size: 11px; margin: 0 0 4px; }
.topic-head h4 { margin: 0; font-size: 21px; }
.topic-head span { font-size: 12px; color: var(--dim); }
.rule-card {
  position: relative; padding: 20px 22px; margin-bottom: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.rule-card:hover { border-color: var(--line-strong); }
.rule-card.is-important { border-left: 3px solid var(--pink); }
.rule-card.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 173, 66, .18); } }
.rule-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--dim); }
.badge { letter-spacing: .04em; font-size: 11px; color: var(--pink); background: rgba(255, 63, 164, .12); border: 1px solid rgba(255, 63, 164, .3); padding: 2px 8px; border-radius: 999px; }
.copy { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 12px; letter-spacing: .04em; font-weight: 600; padding: 2px 4px; }
.copy:hover { color: var(--text); }
.rule-card h5 { font-size: 17px; margin: 8px 0 6px; }
.rule-text p { margin: 0 0 8px; color: #d9cfea; font-size: 14.5px; }
mark { background: rgba(255, 173, 66, .3); color: var(--text); border-radius: 3px; padding: 0 2px; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ex { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }
.ex strong { display: block; font-size: 12px; letter-spacing: .06em; margin-bottom: 4px; }
.ex p { margin: 0; color: #d9cfea; }
.ex.good { background: rgba(61, 220, 151, .07); border: 1px solid rgba(61, 220, 151, .25); }
.ex.good strong { color: var(--good); }
.ex.bad { background: rgba(255, 84, 112, .07); border: 1px solid rgba(255, 84, 112, .25); }
.ex.bad strong { color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.search-cat { font-size: 11px; color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- guía ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.guide-card .kicker { color: var(--cyan); font-size: 11px; margin-bottom: 6px; }
.guide-card h3 { margin: 0 0 14px; font-size: 20px; }
.guide-card .ex { margin-top: 8px; }

/* ---------- whitelist ---------- */
.wl, .dc { max-width: 1280px; margin: 0 auto; padding: 96px clamp(16px, 5vw, 64px) 20px; }
.wl-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 26px; align-items: start; }
.wl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: sticky; top: 96px; }
.wl-steps li { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wl-steps b { font-family: "Anton", var(--display); font-weight: 400; font-size: 26px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-steps h4 { margin: 0 0 4px; font-size: 15px; }
.wl-steps p { margin: 0; font-size: 13px; color: var(--muted); }
.wl-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-height: 320px; backdrop-filter: blur(6px); }
.wl-loading { color: var(--muted); }
.wl-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.wl-user img { border-radius: 50%; border: 2px solid rgba(255, 63, 164, .5); }
.wl-user b { display: block; font-size: 15px; }
.wl-user span { font-size: 12px; color: var(--muted); }
.wl-logout { margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 12px; font-size: 12px; color: var(--muted); }
.wl-logout:hover { color: var(--text); }
.wl-state { text-align: center; max-width: 520px; margin: 10px auto; }
.wl-state h3 { font-size: 24px; margin: 8px 0; }
.wl-state p { color: var(--muted); }
.wl-ic { font-size: 40px; }
.wl-state.ok h3 { color: var(--good); }
.wl-state.bad h3 { color: var(--bad); }
.wl-state.wait h3 { color: var(--orange); }
.wl-reason { background: rgba(255, 84, 112, .07); border: 1px solid rgba(255, 84, 112, .25); border-radius: 10px; padding: 12px 14px; color: var(--text) !important; text-align: left; }
.wl-fine { font-size: 12px; color: var(--dim) !important; margin-top: 14px; }
.wl-error { background: rgba(255, 84, 112, .1); border: 1px solid rgba(255, 84, 112, .35); color: #ffc2cc; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.wl-track { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 22px 0 6px; font-size: 12px; }
.wl-track li { padding: 8px 14px; border: 1px solid var(--line); color: var(--dim); }
.wl-track li:first-child { border-radius: 9px 0 0 9px; }
.wl-track li:last-child { border-radius: 0 9px 9px 0; }
.wl-track li.done { color: var(--good); border-color: rgba(61, 220, 151, .35); }
.wl-track li.now { color: var(--orange); border-color: rgba(255, 173, 66, .45); background: rgba(255, 173, 66, .08); }
.btn.discord { background: #5865f2; color: #fff; box-shadow: 0 10px 28px -10px rgba(88, 101, 242, .8); }
.btn.discord:hover { background: #4752c4; transform: translateY(-2px); }
.wl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.wl-field { display: flex; flex-direction: column; gap: 7px; }
.wl-field.full { grid-column: 1 / -1; }
.wl-field label { font-size: 13px; font-weight: 600; }
.wl-field label i { color: var(--pink); font-style: normal; }
.wl-field label em { color: var(--dim); font-style: normal; font-weight: 400; }
.wl-field input, .wl-field textarea, .wl-field select {
  width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 14px; resize: vertical;
}
.wl-field select option { background: var(--surface-solid); }
.wl-field input:focus, .wl-field textarea:focus, .wl-field select:focus { outline: none; border-color: rgba(255, 63, 164, .6); box-shadow: 0 0 0 4px rgba(255, 63, 164, .12); }
.wl-field .invalid { border-color: var(--bad); }
.wl-field.check label { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--muted); }
.wl-field.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.wl-field.check a { color: var(--cyan); }
.wl-meta { display: flex; justify-content: space-between; }
.wl-help, .wl-count { font-size: 12px; color: var(--dim); }
.wl-submit { margin-top: 18px; }
.wl-sub { display: flex; align-items: center; gap: 12px; font-size: 18px; margin: 30px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.wl-form > .wl-sub:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.wl-sub span { font-family: "Anton", var(--display); font-weight: 400; font-size: 22px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qz-intro { color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.qz-intro a { color: var(--cyan); }
.qz-list { display: grid; gap: 12px; }
.qz-item { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: rgba(0, 0, 0, .18); transition: border-color .2s; }
.qz-item.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 84, 112, .12); }
.qz-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.qz-head p { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.qz-n { flex: 0 0 auto; font-family: "Anton", var(--display); font-size: 18px; line-height: 1; padding: 6px 8px; border-radius: 8px; background: rgba(255, 63, 164, .12); color: var(--pink); border: 1px solid rgba(255, 63, 164, .3); }
.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qz-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; color: #d9cfea; transition: .15s; }
.qz-opt:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
.qz-opt input { accent-color: var(--pink); width: 16px; height: 16px; flex: 0 0 auto; }
.qz-opt:has(input:checked) { border-color: rgba(255, 63, 164, .55); background: rgba(255, 63, 164, .1); color: var(--text); }
.qz-item textarea { width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
.qz-item textarea:focus { outline: none; border-color: rgba(255, 63, 164, .6); }
.qz-progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.qz-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wl-submit:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- discord card ---------- */
.dc-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 28px 32px; border-radius: 20px; border: 1px solid rgba(88, 101, 242, .35);
  background: linear-gradient(110deg, rgba(88, 101, 242, .18), rgba(155, 77, 255, .10) 50%, rgba(255, 63, 164, .08));
}
.dc-left { display: flex; align-items: center; gap: 18px; }
.dc-left img { border-radius: 22px; background: var(--surface-solid); }
.dc-left .kicker { color: #9aa4ff; margin-bottom: 4px; font-size: 11px; }
.dc-left h3 { margin: 0 0 6px; font-size: 24px; }
.dc-stats { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dc-stats b { color: var(--text); }
.on-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.dc-text { color: var(--muted); margin: 0; max-width: 420px; }

/* ---------- cierre & footer ---------- */
.closing { text-align: center; padding: 110px 20px 90px; }
.closing img { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 63, 164, .35)); }
.closing h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 76px); margin: 10px 0 6px; }
.closing p { color: var(--muted); margin: 0 0 28px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 5vw, 64px); border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.foot-tag b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.to-top { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-art { min-height: 360px; order: -1; }
  .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .rules-grid > * { min-width: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { overflow: hidden; }
  .sidebar { position: static; }
  .categories { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .cat { flex: 0 0 auto; }
  .cat .num { display: none; }
  .side-note { display: none; }
  .wl-grid { grid-template-columns: minmax(0, 1fr); }
  .wl-steps { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .chip-btn { margin-left: auto; }
  .reader-top, .callout, .topics, .filters, #content { padding-left: 18px; padding-right: 18px; }
  .callout { margin-left: 18px; margin-right: 18px; }
  .examples { grid-template-columns: 1fr; }
  .tag { display: none; }
  .reader-ic { display: none; }
  .reader-top { grid-template-columns: minmax(0, 1fr); }
  .guide-grid { grid-template-columns: 1fr; }
  .wl-steps { grid-template-columns: minmax(0, 1fr); }
  .wl-fields { grid-template-columns: minmax(0, 1fr); }
  .qz-opts { grid-template-columns: minmax(0, 1fr); }
  .wl-panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
