/* ============================================================
   KNIGHTHOOD — STYLES (mobile-first)
   ============================================================ */
:root {
  --bg: #0b0d17;
  --bg2: #11152a;
  --card: #161b31;
  --card2: #1d2340;
  --line: #2a3156;
  --text: #eef0fa;
  --muted: #9aa3c7;
  --gold: #e9c46a;
  --gold2: #f4d58d;
  --good: #3ddc97;
  --bad: #ff5d73;
  --accent: #7b8cff;
  --radius: 16px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1000px 500px at 50% -10%, #23295a 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 100%, #1a1238 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}
body.authed { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
a { color: var(--gold2); text-decoration: none; }
h1, h2, .title, .page-title, .name, .lu-title { font-family: Cinzel, Georgia, serif; letter-spacing: .02em; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 26px 0 10px; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.view { max-width: 680px; margin: 0 auto; padding: 14px 16px 24px; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); }
.page-title { font-size: 26px; margin: 6px 0 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.row2 > :only-child { grid-column: span 2; }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.big { font-size: 15px; padding: 40px 16px; margin-top: 16px; }
.foot { text-align: center; margin: 30px 0 6px; color: var(--muted); }
.back { display: inline-block; margin: 2px 0 10px; color: var(--muted); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(11, 13, 23, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-family: Cinzel, serif; font-weight: 800; font-size: 18px; letter-spacing: .06em; }
.brand-mark { color: var(--gold); }
.top-right { display: flex; gap: 8px; align-items: center; }
.lvl-pill { font-size: 12px; font-weight: 700; background: var(--card); border: 1px solid var(--line); padding: 5px 10px; border-radius: 99px; color: var(--text); }
.demo-pill { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #111; background: var(--gold); padding: 3px 7px; border-radius: 6px; }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(14, 17, 32, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.bottom-nav .ni { font-size: 21px; line-height: 1; filter: grayscale(.7); opacity: .75; transition: .2s; }
.bottom-nav a.active { color: var(--gold2); }
.bottom-nav a.active .ni { filter: none; opacity: 1; transform: translateY(-2px) scale(1.1); }
.bottom-nav a.active::before { content: ''; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.badge { position: absolute; top: 7px; left: calc(50% + 6px); background: var(--bad); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
@media (min-width: 720px) {
  .bottom-nav { max-width: 520px; left: 50%; transform: translateX(-50%); bottom: 14px; border: 1px solid var(--line); border-radius: 20px; height: var(--nav-h); padding: 0; }
}

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); font-weight: 700; text-align: center;
  transition: transform .1s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; font-size: 13px; padding: 0 12px; }
.btn.primary { background: linear-gradient(180deg, var(--gold2), #d4a83e); color: #1a1405; border-color: #b8902f; box-shadow: 0 4px 18px rgba(233, 196, 106, .25); }
.btn.gold { background: linear-gradient(180deg, #ffb35c, #e8891f); color: #1a0f02; border-color: #c46d10; }
.btn.ghost { background: transparent; }
.btn.good { background: linear-gradient(180deg, #4de8a6, #22b877); color: #04140c; border-color: #1a9862; }
.btn.bad { background: transparent; color: var(--bad); border-color: rgba(255, 93, 115, .45); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 6px; font-size: 13px; }
.link.danger { color: var(--bad); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 0; }
input, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: #0d1124; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font: 16px Inter, sans-serif; outline: none; resize: vertical;
}
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 196, 106, .15); }
.err { color: var(--bad); font-size: 14px; margin: 12px 0 0; }
.field-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 0 8px; }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 0 auto; padding-top: 10px; }
.auth-hero { text-align: center; }
.auth-knights { display: flex; justify-content: center; align-items: flex-end; height: 230px; margin-bottom: -6px; }
.auth-knights .knight { width: 190px; flex: none; }
.auth-knights .knight.side { width: 140px; margin: 0 -40px; opacity: .7; filter: saturate(.8) brightness(.8); }
.auth-knights .knight.flip { transform: scaleX(-1); }
.title { font-size: 40px; font-weight: 800; margin: 4px 0 0; background: linear-gradient(180deg, #fff6d6, var(--gold) 60%, #a87a12); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 2px 0 18px; color: var(--muted); }
.auth-card { padding: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #0d1124; border-radius: 12px; padding: 4px; gap: 4px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 9px; color: var(--muted); font-weight: 700; }
.tabs button.on { background: var(--card2); color: var(--text); box-shadow: 0 1px 0 var(--line); }
#auth-form .btn { margin-top: 18px; }
#auth-form .link { display: block; margin: 8px auto 0; }
.demo-note { font-size: 13px; color: var(--muted); background: rgba(233, 196, 106, .08); border: 1px solid rgba(233, 196, 106, .25); border-radius: 12px; padding: 10px 12px; margin: 16px 0 0; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 44% 1fr; gap: 8px; padding: 14px 14px 16px 6px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(240px 260px at 22% 55%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%); pointer-events: none; }
.hero-knight { position: relative; align-self: center; }
.hero-info { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.name { font-size: 22px; margin: 8px 0 0; line-height: 1.15; word-break: break-word; }
.epithet { color: var(--muted); font-style: italic; font-size: 14px; }
.lvl-row { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin: 12px 0 5px; font-size: 12px; }
.lvl { font-family: Cinzel, serif; font-weight: 800; font-size: 20px; color: var(--rc); }
.hero-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.hero-meta b { color: var(--text); }
.next { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.rank-badge {
  display: inline-block; font-family: Cinzel, serif; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 8px; color: var(--rc);
  background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--rc) 60%, transparent);
}
@media (min-width: 560px) { .hero { grid-template-columns: 240px 1fr; padding: 18px 22px 18px 10px; } .name { font-size: 28px; } }

/* ---------- bars ---------- */
.bar { width: 100%; height: 8px; background: #0b0e1e; border-radius: 99px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .04); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--bc, var(--gold)) 70%, #000), var(--bc, var(--gold))); box-shadow: 0 0 10px var(--bc, var(--gold)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar.big { height: 12px; }

/* ---------- stats grid ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; }
.stat.zero { opacity: .62; }
.stat-top { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.stat-icon { font-size: 17px; }
.stat-name { flex: 1; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-lvl { font-family: Cinzel, serif; font-weight: 800; color: var(--cc); font-size: 16px; }
.stat .bar { height: 6px; }
.stat-xp { font-size: 11px; color: var(--muted); margin-top: 5px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- lists ---------- */
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ach { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--cc); border-radius: 12px; padding: 10px 12px; }
.ach.rejected { opacity: .55; }
.ach-icon { font-size: 22px; width: 32px; text-align: center; padding-top: 2px; }
.ach-av { flex: none; width: 42px; height: 44px; border-radius: 10px; background: #0d1124; overflow: hidden; display: block; border: 1px solid var(--line); }
.ach-av .knight { width: 100%; height: 100%; display: block; }
.ach-body { flex: 1; min-width: 0; }
.ach-title { font-weight: 700; }
.ach-sub { font-size: 12px; color: var(--muted); }
.ach-sub a { color: var(--text); font-weight: 600; }
.ach-desc { font-size: 13px; color: #c5cbe6; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.ach-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.xp { font-weight: 800; color: var(--gold2); font-size: 14px; white-space: nowrap; }
.xp.big { font-size: 18px; }
.chip { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; background: #22284a; color: var(--muted); white-space: nowrap; display: inline-block; }
.chip.approved { background: rgba(61, 220, 151, .14); color: var(--good); }
.chip.rejected { background: rgba(255, 93, 115, .14); color: var(--bad); }
.chip.pending { background: rgba(233, 196, 106, .14); color: var(--gold2); }

/* ---------- log form ---------- */
.form { padding: 4px 14px 16px; margin-top: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: #0d1124; transition: .15s; }
.cat span { font-size: 22px; }
.cat small { font-size: 11px; line-height: 1.2; color: var(--muted); text-align: center; }
.cat.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 16%, #0d1124); box-shadow: 0 0 0 1px var(--cc) inset, 0 0 16px color-mix(in srgb, var(--cc) 35%, transparent); }
.cat.on small { color: var(--text); }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.tier { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #0d1124; display: flex; flex-direction: column; gap: 2px; }
.tier small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.tier.on { border-color: var(--gold); background: rgba(233, 196, 106, .1); box-shadow: 0 0 0 1px var(--gold) inset; }
.tier.t-legendary.on { border-color: #c77dff; background: rgba(199, 125, 255, .12); box-shadow: 0 0 0 1px #c77dff inset, 0 0 20px rgba(199, 125, 255, .3); }
.tier.t-legendary .xp { color: #d9a6ff; }

/* ---------- verify ---------- */
.vlist { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.vcard { padding: 14px; border-top: 3px solid var(--cc); }
.vhead { display: flex; align-items: center; gap: 10px; }
.vhead > div { flex: 1; min-width: 0; }
.vname { font-weight: 700; color: var(--text); }
.vcat { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--cc); text-transform: uppercase; letter-spacing: .06em; }
.vtitle { font-size: 18px; font-weight: 700; margin-top: 2px; }

/* ---------- leaderboard ---------- */
.scroll-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.scroll-tabs::-webkit-scrollbar { display: none; }
.scroll-tabs button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--muted); }
.scroll-tabs button.on { background: var(--gold); color: #1a1405; border-color: var(--gold); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 18px 0 14px; }
.pod { flex: 1; max-width: 150px; display: flex; flex-direction: column; align-items: center; color: var(--text); }
.pod-k { width: 100%; }
.pod.p1 .pod-k { width: 118%; }
.pod-name { font-weight: 700; font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pod-lvl { font-size: 12px; color: var(--rc); font-weight: 700; }
.pod-block { width: 100%; margin-top: 6px; border-radius: 10px 10px 4px 4px; display: grid; place-items: center; font-family: Cinzel, serif; font-weight: 800; font-size: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 35%, var(--card2)), var(--card)); border: 1px solid color-mix(in srgb, var(--rc) 45%, var(--line)); }
.pod.p1 .pod-block { height: 64px; color: var(--gold2); }
.pod.p2 .pod-block { height: 46px; }
.pod.p3 .pod-block { height: 34px; }
.lb li a { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; color: var(--text); }
.lb li.me a { border-color: var(--gold); background: rgba(233, 196, 106, .07); }
.pos { width: 22px; font-family: Cinzel, serif; font-weight: 800; color: var(--muted); text-align: center; }
.lb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-body small, .lb-right small { font-size: 12px; color: var(--muted); }
.lb-right { display: flex; flex-direction: column; align-items: flex-end; }

/* ---------- forge ---------- */
.forge { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.forge-preview {
  position: sticky; top: 58px; z-index: 5; padding: 8px 12px 12px;
  display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(260px 220px at 50% 45%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 70%), linear-gradient(180deg, var(--card2), var(--card));
}
#forge-knight { width: min(40vw, 180px); }
.forge-actions { display: flex; gap: 8px; width: 100%; justify-content: center; }
.forge-actions .btn { flex: 1; max-width: 160px; }
.forge-sec .field-label { margin-top: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--line); background: var(--card); padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.opt.on { border-color: var(--gold); background: rgba(233, 196, 106, .14); color: var(--gold2); }
.opt.locked { opacity: .45; }
.opt small { font-size: 10px; color: var(--muted); font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); padding: 0; margin: 0; position: relative; }
.sw.on { border-color: #fff; box-shadow: 0 0 0 3px var(--gold); }
.sw.custom { display: grid; place-items: center; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); overflow: hidden; }
.sw.custom span { font-weight: 800; color: #fff; text-shadow: 0 0 3px #000; pointer-events: none; }
.sw.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
@media (min-width: 640px) {
  .forge { flex-direction: row; align-items: flex-start; }
  .forge-preview { width: 260px; flex: none; top: 72px; }
  #forge-knight { width: 220px; }
  .forge-opts { flex: 1; }
}

/* ---------- knight animation ---------- */
.knight { display: block; width: 100%; height: auto; overflow: visible; }
.kh-anim .kh-body { animation: kh-bob 3.2s ease-in-out infinite; transform-origin: 120px 280px; }
.kh-anim .kh-eyes { animation: kh-blink 5s infinite; }
.kh-aura { animation: kh-pulse 3s ease-in-out infinite; transform-origin: 120px 150px; }
.kh-wings { animation: kh-flap 3.2s ease-in-out infinite; transform-origin: 120px 140px; }
.kh-fire, .kh-flames { animation: kh-flicker .5s ease-in-out infinite alternate; }
.kh-runes { animation: kh-glow 2s ease-in-out infinite alternate; }
.kh-halo { animation: kh-float 3s ease-in-out infinite; }
@keyframes kh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes kh-blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: .15; } }
@keyframes kh-pulse { 0%, 100% { opacity: .75; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes kh-flap { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.06) translateY(-3px); } }
@keyframes kh-flicker { from { opacity: .85; } to { opacity: 1; } }
@keyframes kh-glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes kh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .knight * { animation: none !important; } }

/* ---------- modal & level up ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4, 5, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: 100%; max-width: 380px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.levelup { text-align: center; position: relative; }
.lu-burst { position: absolute; left: 50%; top: 90px; width: 300px; height: 300px; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 30%, transparent) 0 10deg, transparent 10deg 20deg); border-radius: 50%; mask: radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 14s linear infinite; pointer-events: none; }
.lu-k { width: 160px; margin: 0 auto; position: relative; }
.lu-title { font-size: 32px; font-weight: 800; color: var(--gold2); text-shadow: 0 0 20px rgba(233, 196, 106, .6); position: relative; }
.lu-lvl { font-size: 16px; color: var(--muted); }
.lu-lvl b { color: var(--text); font-size: 20px; }
.lu-rank { margin-top: 10px; }
.lu-unlocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.lu-unlocks .field-label { width: 100%; text-align: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- toast ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: #22284a; border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); animation: pop .3s; transition: .3s; max-width: 100%; }
.toast.good { border-color: rgba(61, 220, 151, .5); }
.toast.bad { border-color: rgba(255, 93, 115, .6); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- loading ---------- */
.loading { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin2 .8s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
