/* "Niên giám" skin for Sơn Hà 2045 (usaciv-like almanac look): deep navy panels, thin gold hairlines,
   serif small-caps titles, blue sea. Loaded only when picked; "Sơn mài" (lacquer) stays the default.
   Tokens first, then a few chrome details. Yield colours are shared with the lacquer skin. */
:root {
  --lacquer: #0d1726; --panel: #13223a; --panel-2: #1a2c49; --line: #2b4166; --ink: #e9eef6; --muted: #9db0ca;
  --gold: #d9b45a; --gold-soft: rgba(217, 180, 90, .5); --cinnabar: #e0705f; --jade: #73c79a;
  --sea: #0c2b47; --sea-line: rgba(160, 200, 240, .07); --fog: rgba(9, 16, 30, .6); --coastline: rgba(220, 235, 250, .55);
  --hair: linear-gradient(90deg, transparent, rgba(217, 180, 90, .7) 15%, rgba(217, 180, 90, .7) 85%, transparent);
}
body { background: var(--lacquer); }

/* Top bar: navy gradient with a gold hairline underneath */
.topbar { background: linear-gradient(#1a2e4d, #11203a); border-bottom: 0; box-shadow: 0 1px 0 rgba(217, 180, 90, .55), 0 6px 18px rgba(0, 0, 0, .35); position: relative; z-index: 2; }
.seal { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2c4a78, #13223a 70%); color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 3px #0d1726; writing-mode: horizontal-tb; font-size: 11px; }
h1 { font-variant: small-caps; letter-spacing: .08em; color: #f3ead2; }
.sub { color: var(--muted); }

/* Buttons and tabs: quiet navy, gold for the one primary action */
.btn { background: linear-gradient(#1f3456, #172a46); border-color: #34507c; border-radius: 4px; }
.btn:hover:not(:disabled) { border-color: var(--gold-soft); }
.btn.primary { background: linear-gradient(#e6c46e, #c59a3c); color: #1a1408; border-color: #8a6a24; }
.tabs button[aria-selected="true"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }

/* Side panel and cards: hairline frames, serif small-caps section heads */
.side { background: linear-gradient(#13223a, #101d33); border-left: 1px solid #2b4166; }
.side h3, .cmp h3 { font-family: var(--f-display); font-variant: small-caps; text-transform: none; letter-spacing: .1em; color: var(--gold); font-size: 14px; }
.prov-head h2, .card-box h2, .start-card h2 { font-variant: small-caps; letter-spacing: .04em; }
.card-box, .start-card, .legend, .toast { border-radius: 6px; border-color: #34507c; box-shadow: 0 12px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(217, 180, 90, .25); }
.cmp-tile { background: #172a46; border-color: #2e4770; }
.chip { border-radius: 3px; }
