@font-face {
  font-family:FusionPixel;
  src:url(../assets/fusion-pixel-12-zh-hans.woff2) format("woff2");
  font-style:normal;
  font-weight:400;
  font-display:block;
}
:root {
  --ink:#1e2436;
  --edge:#232b42;
  --paper:#fbf7ec;
  --card:#f2ead8;
  --blue:#3a7bd5;
  --gold:#e6a82e;
  --green:#3e9b63;
  --red:#b5353b;
  --shade:#161b2e;
  --scale:1;
  color:var(--ink);
  background:#232b42;
  --frame:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%23232b42' d='M1 0h7v1h1v7H8v1H1V8H0V1h1z'/%3E%3Cpath fill='%23a98c63' d='M2 1h5v1h1v5H7v1H2V7H1V2h1z'/%3E%3Cpath fill='%23fff8e2' d='M2 2h5v5H2z'/%3E%3C/svg%3E");
  font:11px/1.42 FusionPixel, monospace;
  font-synthesis:none;
}
* { box-sizing:border-box; }
html,body { width:100%; height:100%; margin:0; overflow:hidden; }
button,input { color:inherit; font:inherit; }
button { cursor:pointer; border-radius:0; }
button:disabled { cursor:default; opacity:.55; }
button:focus-visible,input:focus-visible { outline:2px dashed #215495; outline-offset:1px; }
button:active:not(:disabled) { transform:translate(1px,1px); }
h1,h2,h3,p { margin:0; }
small { font-size:inherit; }
img,canvas { image-rendering:pixelated; }
img { max-width:100%; vertical-align:middle; }
.icon { flex:none; vertical-align:middle; shape-rendering:crispEdges; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
[hidden] { display:none !important; }

#viewport { position:fixed; inset:0; padding-inline:env(safe-area-inset-left) env(safe-area-inset-right); }
#extension { position:fixed; inset:0; --location:url(../assets/gallery.webp);
  background:#263248 var(--location) calc(50% - var(--camera,0px) * var(--scale)) center / max(100vw,calc(810px * var(--scale))) max(100vh,calc(270px * var(--scale))) no-repeat;
  image-rendering:pixelated; }
#game { position:absolute; left:50%; top:50%; width:480px; height:270px; overflow:hidden;
  transform:translate(-50%,-50%) scale(var(--scale)); transform-origin:center; isolation:isolate; }
#rotate-screen { display:none; }
@media (orientation:portrait) {
  #rotate-screen { position:absolute; inset:0; z-index:1; display:grid; place-items:center; outline:none; background:#141b32a8;
    padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  .rotate-card { width:min(100%,310px); padding:18px 14px; text-align:center; }
  .rotate-card h1 { font-size:20px; line-height:1.2; }
  .rotate-card p { margin-top:8px; font-size:12px; }
  .rotate-icon { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:10px; color:#294b70; font:25px/1 monospace; }
  .rotate-icon::before,.rotate-icon::after { content:''; width:16px; height:25px; border:3px solid currentColor; background:#d2e8f2; }
  .rotate-icon::after { width:25px; height:16px; }
}
#app,#game-main,#stage,#hud,#scrim,#performance,#show-stage,#show-hud { position:absolute; inset:0; width:100%; height:100%; }
#game[data-performing] #app { visibility:hidden; }
#performance { z-index:2; background:#212944; }
#show-hud { pointer-events:none; outline:none; }
.performance-top,.performance-bottom { position:absolute; display:flex; align-items:center; justify-content:space-between;
  left:var(--safe-left,12px); right:var(--safe-right,12px); gap:6px; padding:2px 5px; }
.performance-top { top:4px; }
.performance-bottom { bottom:5px; }
.auction-score > div { flex:1; display:grid; gap:1px; }
.auction-score > div span { display:flex; gap:3px; justify-content:space-between; white-space:nowrap; font-size:9px; }
.auction-score i { height:3px; background:linear-gradient(to right,#ad7724 var(--bid),#d9c9a8 var(--bid)); }
.auction-score i.rival { background:linear-gradient(to right,#5376a8 var(--bid),#d9c9a8 var(--bid)); }
#performance[data-phase="hammer"] .performance-bottom { background:#ffd87f; }
.audition-score span { white-space:nowrap; }
.venue-meter > div { flex:1; display:grid; gap:1px; }
.venue-meter > div span { display:flex; gap:2px; justify-content:space-between; white-space:nowrap; font-size:9px; }
.venue-meter progress { appearance:none; display:block; width:100%; height:3px; border:0; background:#d9c9a8; }
.venue-meter progress::-webkit-progress-bar { background:#d9c9a8; }
.venue-meter progress::-webkit-progress-value { background:#4274a2; }
.venue-meter div:last-child progress::-webkit-progress-value { background:#a97026; }
.venue-meter progress::-moz-progress-bar { background:#4274a2; }
#game-main { background:#263248; }
#stage { display:block; touch-action:none; cursor:grab; }
#stage:active { cursor:grabbing; }
#hud { pointer-events:none; }
.hud-top,.hud-bottom { position:absolute; display:flex; align-items:flex-start; justify-content:space-between;
  gap:5px; left:var(--safe-left,12px); right:var(--safe-right,12px); }
.hud-top { top:4px; }
.hud-bottom { bottom:5px; align-items:end; }
.hud-top > *, .hud-bottom > * { pointer-events:auto; }
.pixel-box,.btn { border:2px solid var(--edge); border-image:var(--frame) 3 stretch; box-shadow:2px 2px 0 var(--shade); background:var(--paper); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:20px; padding:2px 6px; white-space:nowrap; }
.btn:hover:not(:disabled) { background:#fffdf8; }
.btn.primary { background:#f8cd64; }
.btn.primary:hover:not(:disabled) { background:#ffdf8c; }
.btn.blue,.dialog-head .btn { color:#fffaf1; background:#346fbd; }
.btn.blue:hover:not(:disabled),.dialog-head .btn:hover:not(:disabled) { background:#275991; }
.btn.danger { color:#fffaf1; background:var(--red); }
.btn.danger:hover:not(:disabled) { background:#9a2d31; }
.btn.micro { min-width:18px; min-height:17px; padding:0 2px; box-shadow:none; }
.btn.text-btn { text-decoration:underline; }
.btn.hud-key { min-height:25px; padding:1px 8px; }
.calendar-plaque { min-width:113px; padding:1px 4px 2px; }
.calendar-line { display:flex; align-items:center; gap:3px; white-space:nowrap; }
.clock-controls { display:flex; gap:1px; margin-left:2px; }
.clock-controls .btn { min-width:17px; min-height:15px; font-size:9px; }
.clock-controls .btn[aria-pressed="true"] { background:#d2e8f2; color:#1f4880; }
#week-progress { display:block; appearance:none; width:100%; height:3px; border:0; background:#d4c6a6; margin-top:1px; }
#week-progress::-webkit-progress-bar { background:#d4c6a6; }
#week-progress::-webkit-progress-value { background:#5987ac; }
#week-progress::-moz-progress-bar { background:#5987ac; }
.hud-funds { min-height:25px; display:flex; align-items:center; gap:4px; padding:1px 3px 1px 5px; white-space:nowrap; }
.btn.micro.fullscreen-button { min-height:21px; padding-inline:4px; gap:2px; }
.fullscreen-button[aria-pressed="true"] { background:#d2e8f2; color:#1f4880; }
.hud-funds > .icon { color:#7d501d; }
.hud-funds > .icon:nth-of-type(2) { color:#2d7251; }
.hud-funds b { font-variant-numeric:tabular-nums; }
.inspiration-funds { display:inline-flex; align-items:center; gap:1px; padding-inline:3px; border-inline:1px solid #c8ae74; color:#734e16; }
.follower-funds { display:inline-flex; align-items:center; gap:2px; color:#24634c; }
.hud-chart { position:absolute; bottom:42px; left:50%; transform:translateX(-50%); pointer-events:auto; min-height:25px;
  background:#f7e5a7; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:5px; align-items:center; max-width:214px; }
.hud-chart:active:not(:disabled) { transform:translate(calc(-50% + 1px),1px); }
.hud-chart-copy { min-width:0; text-align:left; line-height:1.12; }
.hud-chart-copy span { display:block; overflow:hidden; text-overflow:ellipsis; }
.hud-chart-copy small { color:#5c491f; font-size:8px; }
.hud-chart .chart-bars { width:25px; height:12px; }
.cash-received #cash-value { color:#805114; animation:coin-received .46s steps(1,end); }
@keyframes coin-received { 20%,55% { transform:translateY(-2px); } 40%,70% { transform:translateY(1px); } }
.hud-badges { position:absolute; top:31px; left:50%; transform:translateX(-50%); display:flex; gap:4px; white-space:nowrap; }
.hud-badges > span { padding:1px 4px; box-shadow:1px 1px 0 #b58147; }
.branch-label { color:#ffedd4; background:#263047; }
.season-focus { color:#422e0d; background:#f7db94; }
.offer-plaque { position:absolute; right:var(--safe-right,12px); bottom:34px; pointer-events:auto; }
.artist-dock { min-height:32px; padding:2px; display:flex; align-items:center; gap:3px; background:#f7eacb; }
.artist-readout { display:flex; min-width:102px; align-items:center; gap:3px; padding:0; border:0; text-align:left; background:none; }
.artist-readout img { width:23px; height:23px; border:1px solid #826e83; background:#b2d0d1; }
.artist-readout strong,.artist-readout small { display:block; line-height:1.15; white-space:nowrap; }
.artist-readout small { font-size:8px; }
.energy-track,.progress { display:block; overflow:hidden; height:4px; background:#dfd2ab; border:1px solid #927a54; }
.energy-track { margin-top:1px; }
.energy-track i,.progress i { display:block; height:100%; background:#54a771; }
#scrim { background:#141b326b; z-index:3; }
#modal { position:absolute; z-index:4; inset:0; margin:auto; padding:0; width:min(382px,calc(100% - 34px)); max-height:235px; overflow:hidden;
  border:3px solid var(--edge); border-image:var(--frame) 3 stretch; background:var(--paper); color:var(--ink); box-shadow:3px 3px 0 var(--shade); }
#modal[open] { display:flex; flex-direction:column; }
.dialog-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:5px; min-height:25px; padding:2px 4px;
  background:#294b70; color:#fff5d6; border-bottom:2px solid var(--edge); }
.dialog-head h2 { flex:1; font-size:13px; outline:none; }
.dialog-head .btn { border-color:#d5e2e1; }
.facility-list,.encounter-choices { margin-top:4px; }
.dialog-body { flex:1 1 auto; overscroll-behavior:contain; overflow:auto; min-height:0; padding:6px 8px 7px; scrollbar-color:#4c6a89 var(--card); scrollbar-width:thin; scroll-padding-block:5px; }
.dialog-body > :first-child { margin-top:0; }
.dialog-body h3 { margin:6px 0 3px; font-size:11px; }
.dialog-footer { flex:0 0 auto; display:flex; justify-content:flex-end; align-items:center; gap:5px; padding:4px 7px 5px;
  border-top:1px solid #b6a17e; background:#eee4cb; }
.footer-note { margin-right:auto; color:#59472f; font-size:8px; }
.panel-tabs { display:flex; align-items:center; gap:4px; margin:3px 0 5px; border-bottom:1px solid #ad9a7b; }
.panel-tabs .tab { box-shadow:none; padding:1px 7px; min-height:17px; border-image:none; border-width:1px; background:#ece0c3; }
.panel-tabs .tab[aria-pressed="true"] { background:#d9ecdc; border-color:#43634f; }
.dialog-feedback { padding:4px; margin-bottom:4px; background:#ffe2d9; border:1px solid var(--red); color:#7d2525; }
.menu-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; padding:3px; }
.menu-grid .btn { min-height:42px; flex-direction:column; background:#f1e7cc; padding:3px; }
.menu-grid .btn .icon { color:#2d6494; width:17px; height:17px; }
.menu-grid .btn:hover { background:#e4f0fd; }
.menu-grid .btn:disabled { color:#565066; background:#e6dfd0; }
.menu-grid .btn:disabled .icon { color:#65677c; }
.roster-groups { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); align-items:start; gap:5px; }
.roster-groups > section { min-width:0; }
.roster-card { padding:3px 4px; border-bottom:1px solid #c6bb9e; background:#fffaf0; min-width:0; }
.roster-card:last-child { border-bottom:0; }
.roster-profile { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:4px; }
.roster-profile .portrait { width:21px; height:21px; background:#e4e7dd; border:1px solid #849989; }
.roster-profile h3 { margin:0; font-size:11px; line-height:1.15; }
.roster-profile h3 small { font-size:8px; color:#5b4c3a; }
.roster-profile div > small { display:block; color:#385e54; font-size:8px; line-height:1.2; }
.compact-role-actions { display:flex; gap:2px; }
.compact-role-actions .btn { padding-inline:3px; font-size:9px; min-height:19px; box-shadow:none; }
.roster-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:3px; margin-top:4px; }
.roster-actions .btn { padding-inline:2px; font-size:9px; min-height:19px; box-shadow:none; }
.department-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.department-card { display:flex; flex-direction:column; align-items:start; gap:4px; padding:5px; min-width:0; }
.department-card p { font-size:10px; }
.department-card.selected { outline:1px dashed #346fbd; outline-offset:-3px; }
.department-card > div { display:flex; flex-wrap:wrap; align-items:center; gap:3px; }
.department-card small { color:#78571e; }
.department-card .btn { width:100%; margin-top:auto; white-space:normal; }
.launch-form { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 7px; margin-top:5px; padding:4px 6px; border:1px solid #bab18f; background:#f5eacb; }
.launch-form label { display:flex; align-items:center; gap:4px; }
.launch-form input { appearance:none; display:grid; place-items:center; width:12px; height:12px; margin:0; border:1px solid #33435c; background:#fffaf0; cursor:pointer; }
.launch-form input:checked { background:#2d7254; color:#fffdf3; }
.launch-form input:checked::after { content:'✓'; line-height:1; }
.launch-form input:disabled { opacity:.45; cursor:default; }
.launch-form small { color:#674a20; font-size:9px; }
.price-factors { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; margin:4px 0; }
.price-factors span { display:grid; justify-items:center; background:#eee7d7; border:1px solid #c4b697; font-size:8px; }
.price-factors b { font-size:11px; }
.walk-in-line { margin-top:5px; }
.combo-readout.venue-scores { grid-template-columns:repeat(4,minmax(0,1fr)); }
.info-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.info-buttons .btn { min-height:25px; }
.save-status { margin-top:5px; color:#4c6958; font-size:9px; }
.advisor-dialog { display:grid; grid-template-columns:46px 1fr; gap:7px; align-items:start; }
.advisor-portrait { border:2px solid #486183; width:46px; height:46px; flex:none; }
.advisor-dialog strong { color:#234c73; }
.advisor-dialog p { margin-top:2px; line-height:1.65; }
#toast { position:absolute; z-index:5; max-width:295px; left:50%; transform:translateX(-50%); top:51px;
  border:2px solid var(--edge); padding:3px 6px; background:#e6f6d8; box-shadow:2px 2px 0 var(--shade); opacity:0; pointer-events:none; }
#toast.visible { opacity:1; }
#toast.is-error { background:#ffdcd7; }

.view-title { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-bottom:6px; }
.view-title h1 { display:none; }
.view-title p,.empty,.helper { color:#4f5562; }
.block-title { font-size:11px; margin:7px 0 3px; }
.panel,.artist-card,.art-card,.wall-panel,.inset-list,.artist-stats.padded,.expansion-list article { background:var(--card); border:1px solid #8c8273; }
.section-head { display:flex; align-items:center; justify-content:space-between; padding:3px 5px; background:#e8debd; border-bottom:1px solid #aea18c; }
.section-head h2 { font-size:10px; }
.page-section { margin-top:6px; }
.empty { padding:5px; }
.stack { display:grid; gap:4px; }
.badge { display:inline-block; padding:0 3px; font-size:8px; background:#e9ecff; border:1px solid #9dadd0; white-space:nowrap; }
.badge.gold { background:#ffe9af; border-color:#bb8c3b; }
.badge.mint { background:#dff2d9; border-color:#77a983; }
.artist-grid,.collector-grid,.art-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.art-grid { padding:4px; }
.artist-card,.art-card { min-width:0; overflow:hidden; }
.artist-card { display:flex; flex-direction:column; }
.person-art { height:44px; position:relative; background:#d4c7da; }
.rank-B .person-art { background:#c9dfd6; }
.rank-S .person-art { background:#e1cfaf; }
.person-art .portrait { width:100%; height:100%; object-fit:contain; }
.person-art .badge { position:absolute; right:3px; top:3px; }
.person-info,.collector-card,.art-meta { padding:4px; }
.person-info { flex:1; display:flex; flex-direction:column; min-width:0; }
.person-info h2,.collector-card h2,.row-person h2,.fair-detail h2 { font-size:11px; }
.candidate .person-info > p { font-size:9px; }
.candidate .person-art { height:37px; }
.candidate .person-actions { padding-top:2px; }
.artist-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; padding:3px 0; }
.artist-stats span { display:grid; font-size:8px; }
.artist-stats b { font-size:10px; }
.artist-stats.padded { padding:4px; }
.artist-profile { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); align-items:start; gap:7px; }
.artist-profile .dialog-person { align-items:start; margin-bottom:5px; }
.artist-profile .artist-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
.artist-profile .panel-tabs { margin-top:0; }
.artist-profile .inset-list > div { padding:1px 0; }
.artist-profile .inset-list .btn { min-height:18px; }
.recruit-pages { margin-right:auto; display:flex; align-items:center; gap:4px; }
.person-actions,.row-buttons { display:flex; flex-wrap:wrap; align-items:center; gap:3px; }
.person-actions { justify-content:space-between; margin-top:auto; padding-top:4px; }
.studio-row,.fair-row { display:grid; grid-template-columns:minmax(85px,1fr) minmax(45px,.65fr) auto; align-items:center; gap:5px; padding:4px; }
.row-person,.market-banner,.dialog-person { display:flex; align-items:center; gap:5px; }
.row-person img,.person-line img { width:26px; height:26px; }
.row-person p,.studio-status,.fair-detail p,.fair-detail small { font-size:8px; }
.market-banner { background:#e6edda; border:1px solid #83a483; padding:4px; margin-bottom:4px; }
.painting { width:100%; object-fit:cover; aspect-ratio:1.36; }
.art-poster { position:relative; display:block; width:100%; padding:0; border:0; }
.art-poster .painting { aspect-ratio:2.1; }
.art-poster .badge { position:absolute; top:1px; right:1px; }
.art-meta { display:grid; }
.art-meta .btn { justify-self:start; }
.art-meta small,.art-meta > span { font-size:8px; }
.art-meta > span { color:#71500f; }
.wall-header,.wall-footer { display:flex; align-items:center; justify-content:space-between; gap:4px; padding:4px; }
.wall-header h2 { font-size:11px; }
.wall-header p,.wall-note,.inline-meta { font-size:8px; }
.hanging-wall { display:grid; grid-template-columns:repeat(var(--wall-columns,3),minmax(0,1fr)); gap:4px; background:#e7d7ae; border-block:1px solid #a98e61; padding:4px; }
.wall-slot { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; }
.wall-slot .frame { width:min(83px,100%); padding:2px; background:#cc9f59; border:2px solid #75512a; }
.wall-slot .painting { display:block; max-height:34px; }
.wall-slot small { font-size:8px; }
.wall-slot.vacant { border:1px dashed #9d8365; min-height:55px; }
.slot-controls,.inline-meta { display:flex; flex-wrap:wrap; justify-content:center; gap:3px; }
.slot-controls .btn { min-height:14px; padding:0 2px; font-size:8px; box-shadow:none; }
.wall-note { margin:0 4px 3px; }
.collector-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; }
.collector-card { display:flex; flex-direction:column; padding:3px; }
.collector-fans { display:block; font-size:9px; padding:3px 0 2px; text-align:center; border-block:1px solid #af9b75; margin-top:3px; }
.collector-card dl { margin:1px 0; font-size:8px; line-height:1.18; }
.collector-card dl div { margin-top:2px; }
.collector-card dl .collector-stat { display:flex; justify-content:space-between; gap:2px; }
.collector-card dd { margin:0; }
.collector-card dt { color:#5f5447; }
.collector-card h2 { display:grid; justify-items:center; gap:1px; font-size:10px; line-height:1.14; text-align:center; }
.collector-icon { display:inline-flex; flex:none; }
.fair-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fair-row { grid-template-columns:17px minmax(0,1fr); grid-template-rows:1fr auto; gap:2px 4px; padding:2px; }
.fair-symbol { display:grid; justify-items:center; align-self:start; font-size:8px; color:#6e481b; }
.fair-detail p,.fair-detail small { display:block; line-height:1.25; }
.fair-symbol .icon { width:16px; height:16px; }
.fair-action { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:end; gap:2px; }
.fair-action > span { margin-right:auto; font-size:8px; }
.fair-action .btn { min-height:16px; font-size:9px; padding:1px 3px; }
.venue-list,.league-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
.venue-card { display:grid; gap:1px; padding:2px 4px; }
.venue-card > div:first-child strong { display:block; font-size:10px; line-height:1.15; }
.venue-card small,.league-list small { display:block; font-size:8px; line-height:1.2; }
.venue-card > div:last-child,.venue-picks,.venue-forecast { display:flex; justify-content:space-between; align-items:center; gap:4px; }
.venue-card > div:last-child > span { color:#684616; font-size:9px; }
.venue-card .btn { min-height:16px; padding:0 4px; font-size:9px; }
.venue-plan { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); align-items:start; gap:6px; }
.venue-forecast { display:grid; gap:1px; padding:3px; border:1px solid #a98e61; background:#f1e3bd; font-size:9px; }
.venue-forecast b { color:#795117; font-size:13px; }
.venue-picks { margin:0 0 2px; }
.venue-stock .btn { min-height:18px; }
.league-list > article { padding:3px 4px; }
.support-list { margin-top:4px; }
.support-actions { display:grid; justify-items:end; gap:2px; flex:none; }
.support-actions .btn { min-height:16px; font-size:9px; }
.hall-records { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; margin:4px 0; }
.hall-records .empty { grid-column:1/-1; }
.hall-record { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:2px 5px; padding:3px; }
.hall-record small { grid-column:2; }
.fan-bar-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; }
.fan-bar-grid > div { display:grid; grid-template-rows:auto 26px auto; align-items:end; justify-items:center; gap:2px;
  background:#f0e7cc; border:1px solid #9e8e72; padding:2px; text-align:center; }
.fan-bar-grid small { font-size:8px; }
.fan-bar { display:flex; align-items:end; width:12px; height:100%; border-bottom:1px solid #72593e; }
.fan-bar i { display:block; width:100%; height:var(--fan-height); background:var(--fan-ink,#6b96ba); }
.fan-bar-grid > :nth-child(1) { --fan-ink:#966a9e; }
.fan-bar-grid > :nth-child(2) { --fan-ink:#b56152; }
.fan-bar-grid > :nth-child(4) { --fan-ink:#bc812d; }
.fan-bar-grid > :nth-child(5) { --fan-ink:#5a8964; }
.campaign-heading { display:flex; align-items:center; gap:6px; background:#f3e5ba; padding:5px; }
.campaign-heading strong { font-size:13px; }
.auction-cover { min-height:90px; padding:6px; color:#fff4da; background:#212436 url(../assets/auction.webp) center/cover; border:2px solid var(--edge); }
.auction-cover-content { width:max-content; max-width:80%; background:#272c46; padding:3px; }
.auction-stats,.rank-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; margin-top:4px; }
.rank-grid { grid-template-columns:1.5fr 1fr; }
.big-value { display:block; padding:3px 4px; color:#6f4a10; font-size:14px; }
.big-value.small { font-size:10px; }
.score-list { list-style:none; padding:0; margin:0; }
.score-list li { display:grid; grid-template-columns:14px 1fr auto; gap:2px; padding:2px 3px; border-bottom:1px solid #bbad96; }
.rank-grid .section-head { padding-block:2px; }
.rank-grid .score-list li { padding:1px 3px; line-height:1.08; font-size:10px; }
.score-list .player { background:#d9efdc; }
.place-chip { color:#7d500f; }
.trophy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px; padding:3px; }
.trophy-grid > div { display:grid; justify-items:center; border:1px dashed #a7a698; font-size:8px; padding:2px; }
.trophy-grid .icon { width:18px; height:18px; }
.trophy-grid .earned { background:#fbe4a4; border-color:#bb8b37; }
.archive-list { display:flex; flex-wrap:wrap; gap:3px; padding:3px; }
.log-list > div { display:flex; align-items:center; gap:4px; padding:3px 0; border-bottom:1px solid #c3b59c; }
.log-list small { margin-left:3px; }
.dialog-person { margin-bottom:3px; }
.dialog-person img { width:42px; height:42px; background:#ced8df; }
.dialog-person p { font-size:9px; }
.form-grid,.combo-readout { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.cycle-field { display:grid; gap:2px; margin:2px 0; min-width:0; }
.cycle-control { display:grid; grid-template-columns:19px minmax(0,1fr) 19px; align-items:stretch; min-height:21px;
  border:1px solid var(--edge); background:#fff9e7; text-align:center; }
.cycle-control output { display:grid; place-items:center; padding:1px 2px; overflow-wrap:anywhere; }
.cycle-control .micro { min-width:0; border-image:none; border:0; background:#ddddeb; color:#252d65; }
.cycle-control .micro:hover:not(:disabled) { background:#c4ddf3; }
.project-artist,.inspiration-heading,.chart-earnings { display:flex; justify-content:space-between; align-items:center; gap:3px; }
.project-artist { border-bottom:1px solid #c7ba9b; padding-bottom:2px; margin-bottom:2px; }
.project-artist small,.inspiration-heading span,.chart-earnings { font-size:9px; }
.inspiration-heading { color:#72501d; padding:2px 0; }
.point-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
.point-control { display:grid; grid-template-columns:minmax(0,1fr) 18px 17px 18px; gap:2px; align-items:center;
  padding:2px; border:1px solid #b09869; background:#f5e8c5; min-width:0; }
.point-control small { display:block; font-size:8px; color:#665840; line-height:1.12; }
.point-control > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 4px; }
.point-control strong { font-size:10px; }
.point-control output { text-align:center; color:#72501d; font-variant-numeric:tabular-nums; }
.point-control .btn { min-width:0; }
.recipe-list,.closing-offers,.chart-other { margin-top:5px; }
.chart-other { display:flex; flex-wrap:wrap; gap:4px; }
.chart-history { display:flex; justify-content:space-between; align-items:center; gap:5px; border:1px solid #a98e61; background:#efe2bc; padding:4px; }
.chart-history p { font-size:9px; }
.exhibition-details .work-detail .painting { max-height:50px; }
.chart-history .chart-bars { height:22px; }
.chart-bars { display:inline-grid; grid-template-columns:repeat(6,minmax(0,1fr)); align-items:end;
  width:60px; height:25px; gap:1px; padding-bottom:1px; border-bottom:1px solid #977c44; }
.chart-bars i { display:block; height:var(--bar); background:#507fa9; border-top:1px solid #294e71; }
.chart-bars i:last-child { background:#c48326; border-top-color:#80581e; }
.chart-earnings { margin:4px 0; }
#modal[data-panel="project"],#modal[data-panel="venue"],#modal[data-panel="reveal"],#modal[data-panel="departments"],#modal[data-page="artists"] { max-height:250px; }
#modal[data-panel="project"] .dialog-body { padding-block:4px; scroll-padding-block:2px; }
#modal[data-panel="venue"] .dialog-body { padding-block:4px; }
#modal[data-page="artists"] .dialog-body { padding-block:3px; }
#modal[data-page="artists"] .panel-tabs { margin:1px 0 4px; }
#modal[data-panel="project"] .cycle-field { margin:1px 0; gap:1px; }
#project-forecast .combo-readout { margin:2px 0; }
#project-forecast .combo-readout > div { display:flex; justify-content:space-between; align-items:center; gap:2px; }
#project-forecast .combo-readout span,#project-forecast .helper { font-size:9px; }
.triangle { width:0; height:0; border-block:4px solid transparent; border-left:5px solid currentColor; }
.triangle.left { transform:rotate(180deg); }
.combo-readout { margin:4px 0; }
.combo-readout div { display:grid; border:1px solid #a79678; background:var(--card); padding:3px; }
.combo-readout strong { color:#785100; font-size:12px; }
.inset-list { padding:0 4px; }
.inset-list > div { display:flex; align-items:center; justify-content:space-between; gap:3px; padding:2px 0; border-bottom:1px solid #baae94; }
.inset-list > div:last-child { border-bottom:0; }
.inset-list small { display:block; font-size:8px; }
.work-detail { display:grid; grid-template-columns:1fr 1.5fr; gap:4px; align-items:center; }
.work-detail .painting { max-height:55px; border:1px solid #987544; }
.offer-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; margin-top:5px; }
.offer-comparison article { background:var(--card); border:1px solid #9c8e77; padding:3px 5px 5px; }
.offer-comparison h3 { margin:1px 0; }
.offer-comparison p { margin-bottom:4px; font-size:9px; }
.mini-frames { display:flex; gap:2px; }
.mini-frames img { width:13%; border:1px solid #987544; }
.check-label { display:flex; align-items:center; gap:2px; margin:4px 0; }
.check-label input { accent-color:#4274a9; }
.expansion-list { display:grid; gap:3px; }
.expansion-list article { display:grid; grid-template-columns:65px 1fr; gap:4px; align-items:center; padding:2px; }
.expansion-list article.current { background:#dce9d5; }
.expansion-list img { width:65px; height:26px; object-fit:cover; }
.expansion-list small { display:block; font-size:8px; }
.reveal-banner { display:flex; align-items:center; gap:5px; background:#dbecdf; border:2px solid #43634f; padding:3px 5px; }
.reveal-banner > span { margin-left:auto; white-space:nowrap; font-size:13px; }
.reveal-banner.masterpiece { background:#ffde78; border-color:#936221; color:#632c21; }
.reveal-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:8px; align-items:center; padding-top:6px; }
.reveal-frame { position:relative; padding:3px; border:2px solid #653d2b; background:#d59b55; box-shadow:2px 2px 0 #655638; animation:unveil .5s steps(8,end) both; }
.master-seal { position:absolute; right:7px; bottom:7px; color:#fff9ea; background:#c93b3b; border:2px solid #f0bb57;
  padding:1px 5px; box-shadow:2px 2px #431f1b; animation:seal-fall .40s .34s steps(5,end) both; }
#modal[data-dramatic="masterpiece"] { animation:reveal-bump .24s .58s steps(3,end) both; }
.reveal-frame img { display:block; max-height:86px; margin-inline:auto; }
.reveal-metrics { display:grid; gap:4px; }
.reveal-metric { display:grid; grid-template-columns:38px minmax(0,1fr) 20px; gap:3px; align-items:center; }
.reveal-metric > span { white-space:nowrap; }
.reveal-metric .progress { height:6px; }
.reveal-metric .progress i { width:var(--score); transform-origin:left; animation:score-up .85s steps(12,end) both; }
#game:has(#modal[open][data-dramatic="masterpiece"])::after { content:""; position:absolute; z-index:5; inset:0;
  background:#ffe9a1; pointer-events:none; animation:masterpiece-glint .42s steps(7,end) both; }
@keyframes unveil { from { clip-path:inset(0 0 100%); } to { clip-path:inset(0); } }
@keyframes seal-fall { 0% { opacity:0; transform:translateY(-8px) scale(1.9); } 75% { opacity:1; transform:translateY(1px) scale(.92); } 100% { opacity:1; transform:none; } }
@keyframes reveal-bump { 25% { transform:translate(2px,-1px); } 55% { transform:translate(-1px,1px); } }
@keyframes score-up { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes masterpiece-glint { from { opacity:.62; } to { opacity:0; } }
@media (prefers-reduced-motion:reduce) {
  .reveal-frame,.reveal-metric .progress i,.master-seal,#modal[data-dramatic="masterpiece"] { animation:none; }
  .cash-received #cash-value { animation:none; }
  #game:has(#modal[open][data-dramatic="masterpiece"])::after { display:none; }
}
.win-message { padding:5px; text-align:center; background:#f6e7ba; }
.win-message h3 { font-size:13px; }
.help-list,.result-sales { padding-left:13px; }
