@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700;900&family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Ma+Shan+Zheng&family=JetBrains+Mono:wght@400;500&display=swap');

/* ════════════════════════════════════════════════════════
   TOKENS
   ════════════════════════════════════════════════════════ */
:root {
  --lacquer-0: #1a0407; --lacquer-1: #2a060c; --lacquer-2: #3a0a12;
  --lacquer-3: #4a0d18; --lacquer-4: #5e1320;
  --cinnabar:  #C8102E; --cinnabar-d: #9A0C22; --cinnabar-x: #6E0A1A;
  --gold:      #F6C53D; --gold-2: #E0B24A; --gold-3: #C9920A; --gold-4: #8a6212;
  --imperial:  #FFCC33;
  --jade:      #4FB286; --jade-d: #2E7D5B;
  --ivory:     #F6E8C8; --ivory-2: #D9BD92; --ivory-3: #AE9168;
  --ink-on-gold: #3a1606;
  --danger:    #E8633F;

  --font-display: "Noto Serif SC", serif;
  --font-body:    "Noto Sans", system-ui, sans-serif;
  --font-brush:   "Ma Shan Zheng", cursive;
  --font-mono:    "JetBrains Mono", monospace;

  --sp-1:4px; --sp-2:8px; --sp-3:14px; --sp-4:20px; --sp-5:28px; --sp-6:40px;
  --maxw: 1120px;
  --r-sm:4px; --r-md:7px; --r-lg:12px;
  --frame: 0 0 0 1px var(--gold-4), 0 0 0 4px rgba(0,0,0,.45);
  --shadow-panel: 0 24px 60px -28px rgba(0,0,0,.9);
  --glow-gold: 0 0 24px -2px rgba(246,197,61,.5);
  --rail-w: 288px;
}

/* ════════════════════════════════════════════════════════
   RESET / BASE
   ════════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  background:
    radial-gradient(1000px 640px at 50% -6%, rgba(246,197,61,.10), transparent 60%),
    radial-gradient(900px 800px at 90% 8%, rgba(200,16,46,.30), transparent 55%),
    radial-gradient(1100px 900px at 8% 18%, rgba(200,16,46,.22), transparent 55%),
    linear-gradient(180deg, var(--lacquer-1) 0%, var(--lacquer-0) 80%);
  background-attachment: fixed;
  color: var(--ivory);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(45deg, rgba(246,197,61,.04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(246,197,61,.04) 0 1px, transparent 1px 22px);
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, button { font-size: inherit; }
.hanzi { font-family: var(--font-brush); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* ════════════════════════════════════════════════════════
   STAMP LAYER
   ════════════════════════════════════════════════════════ */
#stamp-layer {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 9999; pointer-events: none;
  font-family: var(--font-brush); font-size: 140px;
  color: var(--cinnabar); text-shadow: 0 0 60px rgba(200,16,46,.7);
  opacity: 0;
}
#stamp-layer.stamp-active { animation: stampHit .9s ease-out forwards; }
@keyframes stampHit {
  0%   { opacity:1; transform: scale(2.4) rotate(-18deg); }
  30%  { opacity:1; transform: scale(1)   rotate(0deg); }
  70%  { opacity:1; transform: scale(1)   rotate(0deg); }
  100% { opacity:0; transform: scale(.9)  rotate(0deg); }
}

/* ════════════════════════════════════════════════════════
   OVERLAYS
   ════════════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(10,1,2,.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.overlay-card {
  background: var(--lacquer-2); border: 1px solid var(--gold-4);
  border-radius: var(--r-lg); padding: var(--sp-6);
  max-width: 420px; width: 90%; text-align: center;
  box-shadow: var(--shadow-panel);
}
.overlay-card h2 { font-family: var(--font-display); color: var(--gold); margin-bottom: var(--sp-3); }
.overlay-card p  { color: var(--ivory-2); margin-bottom: var(--sp-4); }

/* Rite overlay */
.rite-scroll {
  background: linear-gradient(160deg, #2a1505, #1a0d03);
  border: 2px solid var(--gold-3); border-radius: var(--r-lg);
  padding: 48px 40px; max-width: 480px; width: 92%; text-align: center;
  box-shadow: 0 0 80px rgba(200,16,46,.4);
  animation: scrollIn .5s cubic-bezier(.22,.9,.36,1) both;
}
@keyframes scrollIn { from { opacity:0; transform: scaleY(.85) translateY(20px); } }
.rite-eyebrow { font-family: var(--font-mono); font-size:11px; letter-spacing:.2em; color: var(--ivory-3); text-transform:uppercase; margin-bottom: 28px; }
.rite-writing { font-family: var(--font-brush); font-size: 72px; color: var(--gold); min-height: 90px; line-height: 1; margin-bottom: 16px; letter-spacing: 8px; }
.rite-sub { font-style: italic; color: var(--ivory-2); margin-bottom: 28px; }

/* offline banner */
.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  background: var(--danger); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 20px; font-weight: 600; font-size: 13px;
}

/* ════════════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════════════ */
.page-landing {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
  background: radial-gradient(80vw 60vh at 50% 30%, rgba(200,16,46,.18) 0%, transparent 70%);
}
.landing-card {
  max-width: 560px; width: 100%; text-align: center;
  background: linear-gradient(160deg, rgba(42,6,12,.97), rgba(26,4,7,.97));
  border: 1px solid var(--gold-4); border-radius: var(--r-lg);
  padding: 56px 44px;
  box-shadow: var(--shadow-panel), var(--glow-gold);
}
.seal-big {
  width: 96px; height: 96px; margin: 0 auto 24px;
  background: linear-gradient(145deg, var(--cinnabar), var(--cinnabar-x));
  border: 3px solid var(--gold-3); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: var(--gold);
  box-shadow: 0 0 40px rgba(200,16,46,.5);
}
.landing-card h1 {
  font-family: var(--font-display); font-weight: 900; font-size: 46px;
  color: var(--gold); letter-spacing: 1px; margin-bottom: 6px;
}
.hz-sub { font-family: var(--font-brush); font-size: 26px; color: var(--ivory-2); margin-bottom: 18px; }
.tagline { color: var(--ivory-2); line-height: 1.6; margin-bottom: 32px; font-size: 15px; }
.btn-discord {
  display: inline-flex; align-items: center; gap: 12px;
  background: #5865F2; color: #fff;
  padding: 14px 28px; border-radius: var(--r-md); font-size: 15px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .15s, transform .1s;
  margin-bottom: 24px;
}
.btn-discord:hover { background: #4752C4; }
.btn-discord:active { transform: translateY(1px); }
.btn-discord svg { width: 22px; height: 22px; fill: #fff; }
.decree-strip {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 20px;
}
.decree-strip span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  border: 1px solid var(--gold-4); color: var(--gold-3);
  padding: 4px 10px; border-radius: 999px;
}
.fine { font-size: 11px; color: var(--ivory-3); }

/* ════════════════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, #240509, #160305);
  border-bottom: 1px solid var(--gold-4);
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.brand .seal {
  width: 54px; height: 54px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--cinnabar), var(--cinnabar-x));
  border: 2px solid var(--gold-3); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--gold); cursor: pointer;
}
.brand-title {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  color: var(--gold); letter-spacing: 1px;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ivory-2); letter-spacing: .22em; text-transform: uppercase; margin-top: 2px;
}
.user-box { display: flex; align-items: center; gap: 12px; }
.coletivo-status {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ivory-2);
  cursor: pointer; transition: background .15s;
}
.coletivo-status:hover { background: rgba(255,255,255,.1); }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}
.status-dot.online { background: var(--jade); }
.status-dot.offline { background: var(--danger); animation: none; }
@keyframes statusPulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.user-info { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.user-name { color: var(--ivory); font-weight: 600; font-size: 15px; }
.user-alias { font-family: var(--font-brush); color: var(--gold); font-size: 18px; line-height: 1; }
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold-3); object-fit: cover;
}
.btn-ghost {
  background: transparent; color: var(--ivory-2);
  border: 1px solid rgba(246,197,61,.35); border-radius: var(--r-md);
  padding: 6px 14px; font-size: 13px; transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--gold-3); color: var(--gold); }
.btn-ghost-sm {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-sm);
  padding: 4px 10px; font-size: 12px;
}

/* ════════════════════════════════════════════════════════
   SUBBAR
   ════════════════════════════════════════════════════════ */
.subbar {
  position: sticky; top: 79px; z-index: 90;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #1a0306, #120204);
  border-bottom: 1px solid var(--gold-4);
  overflow: hidden;
}
.gamenav { display: flex; align-items: stretch; flex-shrink: 0; }
.navtab {
  display: flex; align-items: center; gap: 7px;
  padding: 15px 17px 12px; border-bottom: 3px solid transparent;
  color: var(--gold-3); font-size: 13px; font-weight: 500;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.navtab svg { width: 20px; height: 20px; }
.navtab:hover { color: var(--ivory); background: rgba(246,197,61,.07); }
.navtab.active {
  color: var(--gold); border-bottom-color: var(--gold);
  background: rgba(246,197,61,.08);
}
@media (max-width: 620px) { .navtab-label { display: none; } .navtab { padding: 14px 14px 12px; } .navtab svg { width: 22px; height: 22px; } }

/* HUD */
.hud {
  display: flex; align-items: center; margin-left: auto; flex-shrink: 0;
  padding-right: clamp(12px, 2vw, 20px);
}
.hud-item {
  display: flex; align-items: center; gap: 6px;
  padding: 0 var(--sp-3);
  border-left: 1px solid rgba(201,146,10,.3);
}
.hud-item svg { width: 20px; height: 20px; color: var(--gold-3); flex-shrink: 0; }
.hud-val {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--ivory); transition: color .3s;
}
.hud-item.imperial .hud-val { color: var(--imperial); }
.hud-unit { font-family: var(--font-mono); font-size: 10px; color: var(--ivory-3); align-self: flex-end; margin-bottom: 2px; }
.hud-val.tick-up   { color: var(--jade) !important; animation: tickFlash .6s ease-out; }
.hud-val.tick-down { color: var(--danger) !important; animation: tickFlash .6s ease-out; }
@keyframes tickFlash { 0%{opacity:.6;transform:scale(1.15)} 100%{opacity:1;transform:scale(1)} }
@media (max-width: 900px) { .hud { display: none; } }

/* ════════════════════════════════════════════════════════
   LAYOUT BODY + RAIL
   ════════════════════════════════════════════════════════ */
.layout-body { display: flex; min-height: calc(100vh - 140px); }
.wrap {
  flex: 1; max-width: var(--maxw); margin: 0 auto;
  padding: var(--sp-5) clamp(16px, 3vw, 32px);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.leader-rail {
  position: sticky; top: 140px; align-self: flex-start;
  width: var(--rail-w); flex-shrink: 0;
  max-height: calc(100vh - 140px); overflow-y: auto;
  background: linear-gradient(180deg, #220608, #150304);
  border-left: 1px solid var(--gold-4);
  padding: var(--sp-4);
  display: none;
}
@media (min-width: 1180px) { .leader-rail { display: block; } }
.leader-card { margin-bottom: var(--sp-4); }
.leader-eyebrow { font-family: var(--font-brush); font-size: 17px; color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; text-align: center; }
.leader-portrait {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-md);
  overflow: hidden; border: 2px solid var(--gold-3); margin-bottom: 10px;
  background: var(--lacquer-3); display: flex; align-items: center; justify-content: center;
}
.leader-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .1s ease; transform-origin: center bottom; }
.leader-portrait img.talking { animation: leaderTalk .6s ease-out; }
@keyframes leaderTalk {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.07) translateY(-4px); }
  40%  { transform: scale(1.04) translateY(-2px); }
  60%  { transform: scale(1.07) translateY(-4px); }
  80%  { transform: scale(1.03) translateY(-1px); }
  100% { transform: scale(1); }
}
.portrait-fallback-rail, .portrait-fallback {
  font-family: var(--font-brush); font-size: 80px; color: var(--gold-3);
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.leader-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--gold); text-align: center; margin-bottom: 6px; }
.leader-quote { font-size: 12px; color: var(--ivory-3); text-align: center; font-style: italic; line-height: 1.5; }
.rail-rank-header {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; color: var(--gold-2);
  font-weight: 600; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--gold-4);
}
.rail-rank-header svg { width: 18px; height: 18px; color: var(--gold-3); }
.rail-rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 9px; border-radius: var(--r-sm);
  font-size: 12px; transition: background .15s;
}
.rank-row + .rank-row { border-top: 1px solid rgba(201,146,10,.14); }
.rank-row.me { background: linear-gradient(90deg, rgba(246,197,61,.16), rgba(246,197,61,.04)); box-shadow: inset 0 0 0 1px rgba(246,197,61,.4); }
.rank-row.me .rank-name { color: var(--gold); font-weight: 600; }
.rank-medal { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.rank-name { flex: 1; color: var(--ivory-2); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small { color: var(--ivory-3); }
.rank-meters { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.rail-total { font-size: 11px; color: var(--ivory-3); margin-top: 8px; font-family: var(--font-mono); }

/* ════════════════════════════════════════════════════════
   PAGE HEAD
   ════════════════════════════════════════════════════════ */
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: var(--sp-3);
}
.ph-left { display: flex; align-items: center; gap: 14px; }
.ph-glyph { color: var(--gold-3); }
.ph-glyph svg { width: 28px; height: 28px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: var(--gold); letter-spacing: .5px;
}
.ph-sub { font-size: 12px; color: var(--ivory-3); margin-top: 2px; }
.ph-aside { font-family: var(--font-mono); font-size: 12px; color: var(--ivory-3); white-space: nowrap; }
.ph-aside b { color: var(--ivory); }

/* ════════════════════════════════════════════════════════
   PANEL
   ════════════════════════════════════════════════════════ */
.panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(246,197,61,.06), transparent 60%),
    linear-gradient(180deg, var(--lacquer-3), var(--lacquer-2));
  border: 1px solid var(--gold-4);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-panel), var(--frame);
}
.panel::before {
  content: ''; position: absolute; inset: 6px; border-radius: 7px;
  border: 1px solid rgba(201,146,10,.45);
  pointer-events: none;
}
.watermark {
  position: absolute; top: -10px; right: 10px;
  font-family: var(--font-brush); font-size: 120px; line-height: 1;
  color: rgba(246,197,61,.04); pointer-events: none; user-select: none;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2); border-bottom: 1px solid rgba(138,98,18,.4);
}
.panel-head svg { width: 20px; height: 20px; color: var(--gold-3); flex-shrink: 0; }
.panel-head h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ivory);
}
.head-rule { flex: 1; height: 1px; background: rgba(138,98,18,.3); }
.head-aside { font-family: var(--font-mono); font-size: 11px; color: var(--ivory-3); }
.panel-caption { color: var(--ivory-3); font-size: 13px; line-height: 1.6; margin-bottom: var(--sp-3); }

/* ════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cinnabar); color: #fff;
  border: 1px solid var(--cinnabar-d); border-radius: var(--r-md);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  transition: background .15s, transform .08s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--cinnabar-d); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold-3); color: var(--ink-on-gold); border-color: var(--gold-4); }
.btn.gold:hover { background: var(--gold-2); }
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink-on-gold); border: none; border-radius: var(--r-md);
  padding: 12px 28px; font-size: 14px; font-weight: 700;
  transition: opacity .15s; cursor: pointer;
}
.btn-gold:hover { opacity: .9; }
.btn-rite {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: linear-gradient(135deg, var(--cinnabar-d), var(--cinnabar-x));
  color: var(--gold); border: 2px solid var(--gold-4); border-radius: var(--r-md);
  padding: 14px 28px; font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: .5px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  margin: 8px 0;
}
.btn-rite:hover { border-color: var(--gold); box-shadow: var(--glow-gold); }
.btn-rite svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════════════════
   FORM CONTROLS
   ════════════════════════════════════════════════════════ */
.dec-controls { display: flex; gap: 8px; margin-bottom: var(--sp-2); }
.dec-controls input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.05); color: var(--ivory);
  border: 1px solid var(--gold-4); border-radius: var(--r-sm);
  padding: 10px 14px; font-family: var(--font-mono);
  transition: border-color .15s;
}
.dec-controls input:focus { outline: none; border-color: var(--gold-3); }
.dec-controls input::placeholder { color: var(--ivory-3); }
.receita-preview { font-size: 12px; color: var(--ivory-3); margin-bottom: var(--sp-2); min-height: 18px; }
.receita-preview b { color: var(--imperial); }
.dec-error { font-size: 13px; color: var(--danger); margin-top: var(--sp-2); min-height: 20px; display: none; }
.dec-error.visible { display: block; }
.dec-error.shake { animation: shake .4s ease-in-out; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ════════════════════════════════════════════════════════
   GRID LAYOUTS
   ════════════════════════════════════════════════════════ */
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 880px) { .home-grid { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════
   SNAP CARDS (home)
   ════════════════════════════════════════════════════════ */
.snap-card { cursor: pointer; transition: box-shadow .2s; }
.snap-card:hover { box-shadow: var(--shadow-panel), var(--frame), var(--glow-gold); }
.snap-body { padding: var(--sp-2) 0 var(--sp-3); }
.snap-big {
  font-family: var(--font-display); font-size: 46px; font-weight: 900;
  color: var(--ivory); line-height: 1; font-variant-numeric: tabular-nums;
}
.snap-big.up { color: var(--jade); }
.snap-big.down { color: var(--danger); }
.snap-big.gold {
  background: linear-gradient(180deg, #fff0c2, var(--gold) 50%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
}
.snap-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(138,98,18,.2);
  font-size: 13px; color: var(--ivory-2);
}
.snap-row b { color: var(--ivory); }
.snap-trend { font-size: 12px; }
.snap-link { display: block; text-align: right; font-size: 12px; color: var(--gold-3); margin-top: var(--sp-2); }
.snap-link:hover { color: var(--gold); }
.snap-idle, .snap-grow, .snap-ready { font-size: 13px; color: var(--ivory-2); }
.snap-ready { color: var(--jade); font-weight: 600; }
.snap-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.snap-fill { height: 100%; background: linear-gradient(90deg, var(--jade), var(--gold)); border-radius: 4px; transition: width .4s; }
.wall-bar-sm { height: 6px; background: rgba(255,255,255,.1); border-radius: 4px; margin: 8px 0; overflow: hidden; }
.wall-mine-sm { height: 100%; background: linear-gradient(90deg, var(--cinnabar), var(--gold-3)); border-radius: 4px; }

/* Welcome panel */
.welcome-panel { display: flex; align-items: center; gap: 20px; }
.welcome-seal {
  width: 64px; height: 64px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--cinnabar), var(--cinnabar-x));
  border: 2px solid var(--gold-3); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--gold);
}
.welcome-text h2 { font-family: var(--font-display); color: var(--gold); margin-bottom: 4px; }

/* ════════════════════════════════════════════════════════
   DIÁRIO
   ════════════════════════════════════════════════════════ */
.diario { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.diario-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 12px; border-left: 2px solid var(--gold-4);
  background: rgba(255,255,255,.02); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px;
}
.diario-row.slide-in { animation: slideIn .3s ease-out; }
@keyframes slideIn { from { opacity:0; transform:translateY(-8px); } }
.diario-ts { font-family: var(--font-mono); font-size: 10px; color: var(--ivory-3); flex-shrink: 0; }
.diario-stamp { flex-shrink: 0; }
.diario-msg { color: var(--ivory-2); line-height: 1.4; }
.diario-row.ok .diario-msg { color: var(--jade); }
.diario-row.err .diario-msg { color: var(--danger); }

/* ════════════════════════════════════════════════════════
   DECRETO — PERGAMINHO SCROLL
   ════════════════════════════════════════════════════════ */
.decree-wrap { display: flex; flex-direction: column; align-items: center; padding: 0 0 32px; width: 100%; }
.scroll {
  position: relative; z-index: 1;
  width: min(720px, 100%);
  display: flex; flex-direction: column; align-items: center;
  --paper-w: 78%; --overlap: 5.3%;
}
.roller { position: relative; z-index: 3; display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 5px 7px rgba(0,0,0,.40)); }
.roller.top    { margin-bottom: calc(-1 * var(--overlap)); }
.roller.bottom { margin-top:    calc(-1 * var(--overlap)); }
.paper-clip {
  position: relative; z-index: 2; overflow: hidden;
  width: var(--paper-w); height: 0;
  transition: height 2600ms cubic-bezier(.22,.61,.30,1);
}
.paper { position: relative; padding: 74px 64px 82px; color: #4a2c1a; font-family: 'Noto Serif', Georgia, serif; }
@media (max-width: 600px) { .paper { padding: 52px 28px 60px; } }
.paper::before {
  content: ""; position: absolute; inset: 0 6px; z-index: -1;
  background:
    radial-gradient(80% 55% at 22% 18%, rgba(120,80,30,.10), transparent 60%),
    radial-gradient(70% 60% at 82% 75%, rgba(120,80,30,.12), transparent 60%),
    linear-gradient(180deg, #f7eed2 0%, #f1e3bd 48%, #ead7ac 100%);
  box-shadow: inset 0 0 70px rgba(150,110,50,.28), inset 0 0 0 1px rgba(150,110,50,.20);
  filter: url(#torn);
}
.paper::after { content: ""; position: absolute; left: 6px; right: 6px; top: 0; height: 30px; pointer-events: none; background: linear-gradient(180deg, rgba(70,40,15,.30), transparent); }
.botshade { position: absolute; left: 6px; right: 6px; bottom: 0; height: 28px; pointer-events: none; background: linear-gradient(0deg, rgba(70,40,15,.28), transparent); z-index: 1; }
.paper-inner { position: relative; opacity: 0; transition: opacity 900ms ease 900ms; }
.scroll.open .paper-inner { opacity: 1; }
.seal-line { text-align: center; color: #8c1c14; font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.seal-line .cn { font-family: 'Noto Serif SC', serif; }
.seal-line .lt { color: #9a5a2a; font-style: italic; }
.decree-crest { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 20px; }
.decree-crest .disc { width: 118px; height: 118px; border-radius: 50%; border: 3px solid #caa14a; box-shadow: 0 0 0 4px rgba(140,28,20,.25), 0 6px 16px rgba(0,0,0,.3); background: repeating-linear-gradient(135deg, #7d2a1c 0 10px, #6a2317 10px 20px); display: grid; place-items: center; color: #f3dd92; font-family: 'Noto Serif SC', serif; font-size: 32px; }
.decree-crest-portrait { width: 118px; height: 118px; border-radius: 50%; border: 3px solid #caa14a; box-shadow: 0 0 0 4px rgba(140,28,20,.25), 0 6px 16px rgba(0,0,0,.3); overflow: hidden; background: #d4b896; }
.decree-crest-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.decree-crest .role { font-family: 'Cinzel', serif; font-weight: 700; color: #8c1c14; letter-spacing: .05em; }
.paper h2.decree-title { text-align: center; font-family: 'Cinzel', serif; font-weight: 700; color: #8c1c14; font-size: clamp(26px,5vw,38px); margin: .1em 0 .3em; letter-spacing: .02em; }
.decree-rule { width: 120px; height: 2px; margin: 0 auto 28px; background: linear-gradient(90deg, transparent, #caa14a, transparent); }
.paper p { font-size: 17px; line-height: 1.85; margin: 0 0 1.1em; text-align: justify; }
.paper .lead { font-weight: 600; }
.paper strong { color: #8c1c14; }
.paper .decree-steps { list-style: none; padding: 0; margin: 0 0 1.1em; display: grid; gap: 10px; }
.paper .decree-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,250,235,.55); border: 1px solid rgba(138,98,18,.28); border-left: 4px solid #8a1622; border-radius: 4px; }
.paper .decree-steps svg { width: 20px; height: 20px; color: #8b3d12; flex-shrink: 0; }
.paper .decree-close { font-style: italic; color: #5a4216; border-top: 1px solid rgba(138,98,18,.3); padding-top: 18px; margin-top: 22px; margin-bottom: 0; }
.paper .decree-sign { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 20px; }
.paper .sign-zh { font-family: var(--font-brush); font-size: 26px; color: #7a0f18; line-height: 1.1; text-align: right; }
.paper .sign-pt { font-family: 'Cinzel', serif; font-weight: 600; font-size: 13px; color: #5a4216; }
.paper .decree-seal-stamp { width: 64px; height: 64px; flex: none; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff; background: radial-gradient(circle at 38% 32%, #d4172f, #8e0b1e); border-radius: 10px; transform: rotate(-8deg); box-shadow: 0 0 0 3px rgba(200,16,46,.25), 0 4px 12px rgba(0,0,0,.5); }
.decree-actions { position: relative; z-index: 2; margin-top: 28px; display: flex; gap: 14px; justify-content: center; }
.btn-scroll { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .08em; background: linear-gradient(180deg, #e8c878, #b8902f); color: #3a2208; border: 1px solid #6b4d17; border-radius: 6px; padding: 11px 22px; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 #6b4d17, 0 6px 12px rgba(0,0,0,.4); transition: transform .12s ease, box-shadow .12s ease; }
.btn-scroll:active { transform: translateY(3px); box-shadow: 0 0 0 #6b4d17, 0 3px 8px rgba(0,0,0,.4); }
.btn-scroll.ghost { background: transparent; color: #d9b24a; box-shadow: none; border-color: rgba(217,178,74,.4); }

/* ════════════════════════════════════════════════════════
   PERFIL
   ════════════════════════════════════════════════════════ */
.profile-hero { display: flex; gap: var(--sp-5); align-items: flex-start; flex-wrap: wrap; }
.ph-portrait {
  width: 124px; height: 124px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--cinnabar-d), var(--cinnabar-x));
  border: 2px solid var(--gold-3); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--gold);
}
.ph-details { flex: 1; min-width: 240px; }
.ph-name-zh { font-family: var(--font-brush); font-size: 52px; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.ph-name-orig { font-size: 14px; color: var(--ivory-3); font-style: italic; margin-bottom: 16px; }
.ph-anon { color: var(--ivory-2); line-height: 1.6; margin-bottom: 16px; }
.rank-block { margin-top: 8px; }
.rank-current { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ivory-2); margin-bottom: 8px; }
.rank-current b { color: var(--gold-2); font-family: var(--font-display); }
.rank-bar { height: 6px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.rank-fill { height: 100%; background: linear-gradient(90deg, var(--cinnabar), var(--gold)); border-radius: 4px; transition: width .6s ease; }
.rank-next { font-size: 12px; color: var(--ivory-3); }
.rank-next b { color: var(--ivory-2); }
.rite-done .snap-row { padding: 10px 0; }

/* ════════════════════════════════════════════════════════
   PLANTAÇÃO
   ════════════════════════════════════════════════════════ */
.planta { position: relative; padding: var(--sp-3) 0; }

/* Mutually exclusive states via [data-state] */
.planta[data-state="idle"]  .planta-grow,
.planta[data-state="idle"]  .planta-ready,
.planta[data-state="grow"]  .planta-idle,
.planta[data-state="grow"]  .planta-ready,
.planta[data-state="ready"] .planta-idle,
.planta[data-state="ready"] .planta-grow { display: none; }

.idle-art { font-size: 56px; margin-bottom: 10px; }
.idle-title { font-family: var(--font-display); font-size: 20px; color: var(--ivory); margin-bottom: 8px; }
.idle-sub { color: var(--ivory-2); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.btn-cycle { background: linear-gradient(135deg, var(--jade-d), var(--jade)); color: #fff; border: none; padding: 12px 28px; border-radius: var(--r-md); font-size: 15px; font-weight: 600; }
.btn-cycle:hover { filter: brightness(1.1); }

.grow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.grow-label { font-size: 16px; color: var(--ivory); }
.grow-label b { font-family: var(--font-display); font-size: 20px; color: var(--jade); }
.grow-timer { font-family: var(--font-mono); font-size: 24px; color: var(--gold); letter-spacing: .1em; }
.progress { height: 10px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--jade-d), var(--jade), var(--gold));
  transition: width .8s linear;
  position: relative; overflow: hidden;
}
.progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { from{transform:translateX(-100%)} to{transform:translateX(100%)} }
.grow-hint { font-size: 12px; color: var(--ivory-3); margin-top: 8px; }

.ready-title { font-family: var(--font-display); font-size: 22px; color: var(--jade); margin-bottom: 8px; animation: readyGlow 2s ease-in-out infinite alternate; }
@keyframes readyGlow { from{text-shadow:0 0 10px rgba(79,178,134,.4)} to{text-shadow:0 0 30px rgba(79,178,134,.9)} }
.ready-sub { color: var(--ivory-2); margin-bottom: 16px; }
.btn-harvest {
  background: linear-gradient(135deg, var(--jade-d), var(--jade));
  color: #fff; border: none; padding: 14px 36px;
  border-radius: var(--r-md); font-size: 16px; font-weight: 700;
  animation: pulseBtn 1.5s ease-in-out infinite;
  cursor: pointer;
}
@keyframes pulseBtn { 0%,100%{box-shadow:0 0 0 0 rgba(79,178,134,.5)} 50%{box-shadow:0 0 0 12px rgba(79,178,134,0)} }
.btn-harvest:hover { filter: brightness(1.12); }

/* ════════════════════════════════════════════════════════
   TECH TREE
   ════════════════════════════════════════════════════════ */
.tech-panel { padding-bottom: var(--sp-6); }
.tech-tree { display: flex; flex-direction: column; gap: var(--sp-5); margin-top: var(--sp-3); }
.loading-tech { color: var(--ivory-3); font-style: italic; text-align: center; padding: 32px; }

.tech-cat {
  border-left: 3px solid var(--gold-4); padding-left: var(--sp-4);
}
.tech-cat-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-3);
}
.tech-cat-head svg { width: 22px; height: 22px; color: var(--gold-3); }
.tc-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ivory); }
.tc-sub { font-family: var(--font-mono); font-size: 10px; color: var(--ivory-3); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

.tech-tier { margin-bottom: var(--sp-4); }
.tier-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory-3); margin-bottom: var(--sp-2);
  display: flex; align-items: center; gap: 6px;
}
.tier-lock-icon svg { width: 13px; height: 13px; color: var(--ivory-3); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--sp-3); }

.tech-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(138,98,18,.35);
  border-radius: var(--r-md); padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.tech-card.affordable { cursor: default; }
.tech-card.affordable:hover { border-color: var(--gold-3); box-shadow: 0 4px 20px rgba(201,146,10,.2); transform: translateY(-2px); }
.tech-card.owned { border-color: var(--gold-3); background: rgba(246,197,61,.06); }
.tech-card.poor { opacity: .8; }
.tech-card.locked { opacity: .45; filter: grayscale(.6); }

.tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tc-cardname { font-weight: 700; font-size: 14px; color: var(--ivory); }
.tc-badge { flex-shrink: 0; }
.tc-badge svg { width: 18px; height: 18px; color: var(--jade); }
.tc-badge.lk svg { color: var(--ivory-3); }

.tc-effects { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(201,146,10,.15); border: 1px solid rgba(201,146,10,.3);
  border-radius: 999px; padding: 3px 9px; font-size: 11px; color: var(--gold-2);
}
.tech-chip svg { width: 12px; height: 12px; }
.tech-chip.warn { background: rgba(232,99,63,.15); border-color: rgba(232,99,63,.3); color: var(--danger); }

.tc-quote { font-size: 12px; color: var(--ivory-3); font-style: italic; line-height: 1.4; flex: 1; }
.tc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: var(--sp-2); border-top: 1px solid rgba(138,98,18,.25);
  margin-top: auto;
}
.tc-cost { font-family: var(--font-mono); font-size: 13px; color: var(--imperial); }
.tc-cost.cant-afford { color: var(--danger); }
.locked-cost { font-size: 12px; color: var(--ivory-3); }
.tc-buy { background: var(--cinnabar); color: #fff; border-radius: var(--r-sm); padding: 6px 14px; font-size: 12px; font-weight: 600; flex-shrink: 0; transition: background .15s; }
.tc-buy:hover:not(:disabled) { background: var(--cinnabar-d); }
.tc-buy:disabled { opacity: .45; cursor: not-allowed; }
.tc-owned { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--jade); font-weight: 600; }
.tc-owned svg { width: 14px; height: 14px; }

/* ════════════════════════════════════════════════════════
   MERCADO
   ════════════════════════════════════════════════════════ */
.market-quote { display: flex; align-items: baseline; gap: 10px; margin: var(--sp-3) 0 var(--sp-2); }
.market-num {
  font-family: var(--font-display); font-size: 64px; font-weight: 900; color: var(--imperial);
  line-height: 1; transition: color .3s;
}
.market-num.flick { animation: flick .4s ease-out; }
@keyframes flick { 0%{opacity:.3; transform:scale(.95)} 50%{opacity:1; transform:scale(1.04)} 100%{opacity:1; transform:scale(1)} }
.market-unit { font-family: var(--font-mono); font-size: 14px; color: var(--ivory-3); }
.market-trend {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; margin-bottom: var(--sp-3);
  padding: 7px 14px; border-radius: 999px;
}
.market-trend.up   { color: var(--jade);    background: rgba(79,178,134,.14); border: 1px solid rgba(79,178,134,.4); }
.market-trend.down { color: var(--danger);  background: rgba(232,99,63,.14);  border: 1px solid rgba(232,99,63,.4); }
.market-trend.mid  { color: var(--gold-2);  background: rgba(224,178,74,.12); border: 1px solid rgba(224,178,74,.35); }
.market-spark {
  display: flex; align-items: flex-end; gap: 3px; height: 48px;
  margin: var(--sp-3) 0; padding: 0 2px;
}
.market-spark .bar { flex: 1; background: rgba(201,146,10,.4); border-radius: 2px 2px 0 0; transition: height .4s ease; }
.market-spark .bar.last { background: var(--gold-3); }

/* ════════════════════════════════════════════════════════
   MURALHA
   ════════════════════════════════════════════════════════ */
.wall-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-3); flex-wrap: wrap; }
.wall-total { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ivory); }
.wall-total span { font-size: 36px; }
.wall-total small { font-size: 13px; color: var(--ivory-3); font-family: var(--font-body); }
.wall-bar { height: 34px; background: rgba(255,255,255,.06); border-radius: var(--r-sm); overflow: hidden; margin-bottom: var(--sp-2); }
.wall-mine { height: 100%; background: repeating-linear-gradient(90deg, var(--gold-3) 0 17px, var(--gold) 17px 19px); box-shadow: 0 0 16px rgba(246,197,61,.4); border-radius: var(--r-sm); transition: width .6s ease; }
.wall-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ivory-3); }
.wall-legend b { color: var(--ivory); }

/* ════════════════════════════════════════════════════════
   ORDER BANNER
   ════════════════════════════════════════════════════════ */
.order-banner {
  display: flex; align-items: center;
  height: 36px; overflow: hidden;
  background: linear-gradient(90deg, #3a0a12, #5a1320, #3a0a12);
  border-bottom: 1px solid var(--gold-3);
  font-size: 13px; position: relative; z-index: 85;
}
/* fade masks on the edges */
.order-banner::before,
.order-banner::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.order-banner::before { left: 0;  background: linear-gradient(90deg, #3a0a12, transparent); }
.order-banner::after  { right: 0; background: linear-gradient(270deg, #3a0a12, transparent); }

.order-ticker {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: tickerScroll 56s linear infinite;
}
@keyframes tickerScroll {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.order-ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 60px;
}
.order-icon  { font-size: 16px; }
.order-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--gold); letter-spacing: .5px; }
.order-desc  { color: var(--ivory-2); font-size: 12px; }
.order-sep   { color: var(--gold-4); margin: 0 8px; }
.order-timer { font-family: var(--font-mono); font-size: 13px; color: var(--imperial); font-weight: 700; }

/* ════════════════════════════════════════════════════════
   ADMIN PAGE
   ════════════════════════════════════════════════════════ */
.admin-orders { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-3); }
.admin-order-card {
  border: 1px solid var(--gold-4); border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--lacquer-3), var(--lacquer-2));
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color .2s;
}
.admin-order-card.active { border-color: var(--gold); box-shadow: 0 0 20px -4px rgba(246,197,61,.35); }
.admin-order-card.blocked { opacity: .55; }
.aoc-head { display: flex; align-items: flex-start; gap: 14px; }
.aoc-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
.aoc-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--gold); margin-bottom: 4px; }
.aoc-eyebrow { font-size: 12px; color: var(--ivory-3); font-style: italic; }
.aoc-effects { display: flex; flex-direction: column; gap: 6px; }
.aoc-effect { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ivory-2); }
.aoc-effect svg { width: 15px; height: 15px; color: var(--jade); flex-shrink: 0; }
.aoc-effect.warn { color: var(--danger); }
.aoc-effect.warn svg { color: var(--danger); }
.aoc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: var(--sp-3); border-top: 1px solid rgba(138,98,18,.3); }
.aoc-duration { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--ivory-3); }
.aoc-duration svg { width: 14px; height: 14px; }
.aoc-active-label { font-family: var(--font-mono); font-size: 12px; color: var(--jade); font-weight: 700; }
.aoc-rem { color: var(--imperial); }
.btn-imperial { background: linear-gradient(135deg, var(--cinnabar-d), var(--cinnabar)); color: var(--gold); border: 1px solid var(--gold-4); }
.btn-imperial:hover { filter: brightness(1.1); }
.btn-danger { background: rgba(232,99,63,.2); color: var(--danger); border: 1px solid var(--danger); border-radius: var(--r-md); padding: 8px 16px; font-size: 13px; font-weight: 600; transition: background .15s; }
.btn-danger:hover { background: rgba(232,99,63,.35); }

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  text-align: center; padding: var(--sp-4) var(--sp-3);
  color: var(--ivory-3); font-size: 12px; font-family: var(--font-mono); letter-spacing: .1em;
  border-top: 1px solid rgba(138,98,18,.2);
  margin-top: auto;
}
.footer .hanzi { font-family: var(--font-brush); font-size: 18px; color: var(--gold-3); }
