/* Noir art deco theme for Lớp Vĩ Mô, loaded after styles-macro-crime-ui.css.
   1930s crime-drama mood (sepia, brass, oxblood, painted portraits), own assets in img/vimo/ only. */
.mw {
  --lacquer: #0d0906; --panel: #1a120b; --panel-2: #231810; --line: #4a3826; --ink: #efe2c4; --muted: #b09a78;
  --gold: #d4ab5a; --gold-soft: rgba(212, 171, 90, .5); --cinnabar: #b3302c; --blood: #5e1414; --jade: #a9c873;
  --brass: linear-gradient(#f3dc9a, #d4ab5a 45%, #8a6424); --frame: inset 0 0 0 1px #000, inset 0 0 0 3px rgba(212, 171, 90, .28);
  --f-body: "Be Vietnam Pro", system-ui, sans-serif; --f-display: "Playfair Display", Georgia, serif; --f-deco: "Big Shoulders Display", "Be Vietnam Pro", sans-serif;
  --good: #a9c873; --near: #e0b45a; --bad: #d9544c;
  background: linear-gradient(rgba(10, 6, 3, .78), rgba(10, 6, 3, .9)), url(img/vimo/tex-leather.jpg) center / cover fixed, #0d0906;
  color: var(--ink); font-size: 13px; font-variant-numeric: lining-nums;
}
/* Top bar: oxblood band between brass hairlines */
.mw .topbar { background: linear-gradient(#3a0d0b, #170605); border-bottom: 0; box-shadow: 0 1px 0 #000, 0 3px 0 #b48a3e, 0 4px 0 #000, 0 10px 24px #000; }
.mw .seal { background: var(--brass); color: #2a1a07; border: 1px solid #000; box-shadow: 0 0 0 2px #2a1a07, 0 0 0 3px var(--gold); border-radius: 2px; }
.mw h1 { font: italic 700 26px/1 var(--f-display); color: #f6e6bd; text-shadow: 0 2px 0 #000, 0 0 14px rgba(212, 171, 90, .35); }
.mw .sub { color: var(--gold); font: 600 12px var(--f-deco); letter-spacing: .14em; text-transform: uppercase; }
/* Buttons: smoked wood, brass for the main action */
.mw .btn { background: linear-gradient(#3b2a1b, #1d140c); color: var(--ink); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 230, 180, .15), inset 0 0 0 1px rgba(212, 171, 90, .25); border-radius: 2px; }
.mw .btn:hover:not(:disabled) { background: linear-gradient(#4a3522, #241910); }
.mw .btn.ghost { background: linear-gradient(#2a1e14, #160f09); }
.mw .btn.primary { background: var(--brass); color: #241503; border: 1px solid #3a2608; font-family: var(--f-deco); font-size: 15px; letter-spacing: .12em; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px #000, 0 3px 0 #000; }
.mw .btn.primary:hover:not(:disabled) { background: linear-gradient(#fff0bd, #e4bd6c 45%, #9a7130); }
/* HUD */
.mw .hud-stat { background: linear-gradient(#24180f, #110b06); box-shadow: var(--frame); border-radius: 2px; }
.mw .hud-ic { background: radial-gradient(circle at 35% 30%, #6b4d26, #160e06); box-shadow: 0 0 0 1px var(--gold); }
.mw .hud-body small { font: 600 10.5px var(--f-deco); letter-spacing: .12em; color: var(--muted); }
.mw .hud-stat.cash b { color: var(--jade); font-family: var(--f-display); }
.mw .hud-rank { font-family: var(--f-display); }
/* Title bars and panels: deco frame (black line, brass hairline) */
.mw .mw-title, .mw .pane h3, .mw .vm-feed-h, .mw .card-box .eyebrow, .mw .start-card .eyebrow {
  background: linear-gradient(#6e1714, #2e0807); border-top: 1px solid #c69a4b; border-bottom: 1px solid #c69a4b;
  font-family: var(--f-deco); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f6e6bd;
}
.mw .mw-title { border-radius: 0; font-size: 14px; } .mw .pane h3, .mw .vm-feed-h { font-size: 12.5px; }
.mw .mw-title .progress { background: #1a0504; } .mw .mw-title .progress i { background: var(--brass); }
.mw .kpi-strip, .mw .vm-chart, .mw-box, .mw .gauge, .mw .act-card, .mw .hud-stat.lone { background: linear-gradient(rgba(36, 24, 15, .94), rgba(19, 12, 7, .96)); box-shadow: var(--frame); border-color: #000; border-radius: 2px; }
.mw .side { background: rgba(14, 9, 5, .88); border-left: 1px solid #000; box-shadow: inset 1px 0 0 rgba(212, 171, 90, .3); }
.mw .tabs { background: linear-gradient(#24180f, #120b06); border-bottom: 2px solid #b48a3e; }
.mw .tabs button { font: 700 13px var(--f-deco); letter-spacing: .12em; color: var(--muted); }
.mw .tabs button[aria-selected="true"] { background: linear-gradient(#6e1714, #3a0b09); color: #f6e6bd; }
.mw .vm-forecast { background: linear-gradient(#3a2a10, #1b1307); border-color: #8a6424; }
/* Gauges */
.mw .gauge { border-left-width: 5px; }
.mw .g-name { font-family: var(--f-display); font-size: 14px; } .mw .g-val b { font-family: var(--f-display); color: #f6e6bd; }
/* Advisor feed as pages of the ledger: dark ink on aged paper */
.mw .vm-feed li { background: linear-gradient(rgba(240, 226, 192, .9), rgba(226, 205, 160, .92)), url(img/vimo/tex-paper.jpg) center / cover; color: #2b1a0c; box-shadow: inset 0 0 0 1px #7b5a2c, inset 0 0 24px rgba(110, 70, 20, .35), 0 2px 8px #000; border: 0; border-radius: 1px; }
.mw .vm-feed .ex b { color: #2b1a0c; font-family: var(--f-display); font-size: 14px; } .mw .vm-feed .ex p { color: #4a3420; }
.mw .vm-feed li.old summary, .mw .vm-feed .when, .mw .vm-feed p, .mw .vm-feed .muted { color: #6b4d26; }
.mw .vm-feed .when { font: 800 12px var(--f-deco); letter-spacing: .12em; text-transform: uppercase; color: #6e1714; }
/* Action cards */
.mw .act { background: linear-gradient(#3b2a1b, #1d140c); border-color: #000; color: var(--ink); border-radius: 2px; }
.mw .act[aria-pressed="true"] { background: var(--brass); color: #241503; box-shadow: 0 0 0 2px #f6e6bd; }
.mw .job-ic { background: linear-gradient(#3b2a1b, #120b06); box-shadow: inset 0 0 0 1px var(--gold); }
.mw .howto { background: rgba(58, 42, 16, .6); border-color: #8a6424; }
.mw .chain span, .mw .eff { background: #241810; border-color: #4a3826; }

/* Portraits: painted image in a brass ring, initial underneath as fallback */
.has-pic { position: relative; overflow: hidden; }
.has-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mw .mono-av { width: 64px; height: 64px; border: 2px solid #000; box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px #000, 0 6px 14px #000; }

/* Slides: leather desk, framed painted scene with a stamped year */
.mw .deck-layer { background: radial-gradient(circle at 30% 20%, rgba(70, 20, 12, .55), rgba(5, 3, 2, .92) 70%), url(img/vimo/tex-leather.jpg) center / cover; }
.mw .slide { background: linear-gradient(rgba(30, 20, 12, .96), rgba(14, 9, 5, .97)); border: 1px solid #000; border-radius: 2px; box-shadow: inset 0 0 0 4px #120b06, inset 0 0 0 5px rgba(212, 171, 90, .55), 0 24px 70px #000; }
.mw .slide.k-story, .mw .slide.k-idea, .mw .slide.k-mission { border-top: 1px solid #000; }
.mw .slide-art { background: #0b0704; border-radius: 2px; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px rgba(212, 171, 90, .45); }
.mw .slide-text h2 { font: italic 700 clamp(26px, 3.3vw, 40px)/1.12 var(--f-display); color: #f6e6bd; text-shadow: 0 2px 0 #000; }
.mw .slide-body { color: #e7d8b8; }
.mw .kind { font: 700 12px var(--f-deco); letter-spacing: .16em; background: #2a1d12; border: 1px solid #6b4d26; border-radius: 2px; }
.mw .k-mission .kind { background: var(--cinnabar); color: #f6e6bd; }
.mw .points div { background: rgba(42, 29, 18, .9); border-color: #4a3826; border-left-color: var(--gold); border-radius: 2px; }
.mw .dots i.on { background: var(--gold); } .mw .dots i.past { background: #7a5a2a; }
.mw .story-after { background: rgba(58, 42, 16, .5); color: #f0e2bd; }
.scene { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1px; animation: scene-in 1.2s ease-out both; }
.scene img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.15) contrast(1.05); animation: ken 18s ease-in-out infinite alternate; }
.scene::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, .75); pointer-events: none; }
.year-stamp { position: absolute; right: 14px; bottom: 12px; z-index: 1; padding: 2px 12px; font: 800 30px/1 var(--f-deco); letter-spacing: .08em; color: #f6e6bd; background: rgba(110, 23, 20, .85); border: 1px solid #c69a4b; box-shadow: 0 0 0 3px rgba(0, 0, 0, .6); transform: rotate(-3deg); }
@keyframes ken { to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes scene-in { from { opacity: 0; filter: brightness(.3); } }

/* Lesson list: painted era cards */
.mw .start-card { background: linear-gradient(rgba(28, 19, 11, .97), rgba(13, 8, 4, .98)); box-shadow: inset 0 0 0 4px #120b06, inset 0 0 0 5px rgba(212, 171, 90, .5), 0 20px 60px #000; border-radius: 2px; }
.mw .start-card h2 { font: italic 700 34px var(--f-display); color: #f6e6bd; text-shadow: 0 2px 0 #000; }
.mw .lesson { padding: 0 0 12px; overflow: hidden; background: linear-gradient(#24180f, #130c07); box-shadow: var(--frame); border-radius: 2px; }
.mw .lesson > :not(.lesson-pic) { margin-inline: 14px; }
.mw .lesson:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px var(--gold), 0 8px 20px #000; transform: translateY(-2px); }
.mw .lesson:hover:not(:disabled) .lesson-pic { filter: none; }
.mw .lesson:disabled .lesson-pic { filter: grayscale(1) brightness(.5); }
.lesson-pic { position: relative; display: block; height: 118px; margin-bottom: 6px; background: #1a120b center / cover; filter: sepia(.35) brightness(.85); transition: filter .3s; box-shadow: inset 0 -40px 40px -10px rgba(10, 6, 3, .95); }
.mw .lesson .lesson-pic .era { position: absolute; left: 84px; bottom: 8px; font: 800 30px/1 var(--f-deco); letter-spacing: .06em; color: #f6e6bd; font-style: normal; text-shadow: 0 2px 4px #000; }
.lesson-av { position: absolute; left: 12px; bottom: -4px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font: 700 22px var(--f-display); color: #111; border: 2px solid #000; box-shadow: 0 0 0 2px var(--gold), 0 4px 10px #000; }
.mw .lesson .st { z-index: 1; top: 8px; right: 8px; padding: 2px 8px; background: rgba(10, 6, 3, .8); border: 1px solid #6b4d26; border-radius: 2px; }
.mw .lesson .t { font: 700 15px var(--f-display); color: #f6e6bd; }
.mw .toast { background: linear-gradient(#2a1d12, #120b06); border: 1px solid var(--gold); box-shadow: 0 0 0 3px #000, 0 8px 24px #000; color: #f6e6bd; border-radius: 2px; }
.mw .card-box { background: linear-gradient(rgba(28, 19, 11, .97), rgba(13, 8, 4, .98)); box-shadow: inset 0 0 0 4px #120b06, inset 0 0 0 5px rgba(212, 171, 90, .5), 0 20px 60px #000; border-radius: 2px; }
@media (max-width: 860px) { .mw .mono-av { width: 52px; height: 52px; } .year-stamp { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .scene, .scene img { animation: none !important; } }
/* Tokens the newer panels (quarter loop, side stories, picker) expect, mapped onto the noir palette. */
.mw {
  --bg: #0d0906; --line-strong: #6b5236; --navy: #3a0d0b; --navy-2: #5e1414; --info: #d4ab5a;
  --good-bg: rgba(169, 200, 115, .12); --near-bg: rgba(224, 180, 90, .12); --bad-bg: rgba(217, 84, 76, .14); --info-bg: rgba(212, 171, 90, .1);
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --r: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .5); color-scheme: dark;
}
html:has(.mw), body:has(.mw) { margin: 0; background: #0d0906; }
/* Feed entries are paper sheets in this skin: give everything inside them ink-on-parchment tokens. */
.mw .vm-feed li {
  --ink: #2b1a0c; --muted: #5e4426; --line: #b89c6c; --line-strong: #8a6a3e; --panel: rgba(255, 248, 230, .55); --panel-2: rgba(120, 80, 30, .08);
  --good: #3f5f17; --near: #8a5a12; --bad: #9b1c1c; --gold: #7a4e10; --navy: #5e1414; --info: #6e1714; --info-bg: rgba(110, 23, 20, .07); --good-bg: rgba(63, 95, 23, .1); --bad-bg: rgba(155, 28, 28, .08);
}
.mw .vm-feed li .num-board, .mw .vm-feed li .side-story { background: var(--panel); color: var(--ink); }
