/* Wildcat CEO, 1952 edition. Tokens live in theme.css. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--ink); font-family: var(--type); font-size: 13.5px; }
body {
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #4b6a45 0%, var(--felt) 55%, var(--felt2) 100%);
}
p { font-family: var(--fell); font-size: 14.5px; line-height: 1.45; }
button { font: inherit; font-family: var(--type); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255,255,255,0.25); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 4px 10px; cursor: pointer; line-height: 1.3; }
button:hover { background: rgba(43,36,24,0.08); }
button:active { transform: translateY(1px); }
button.primary { color: var(--red); border-color: var(--red); background: rgba(168,50,42,0.06); font-weight: 700; box-shadow: 0 0 0 1px rgba(168,50,42,0.25) inset; }
button.primary:hover { background: rgba(168,50,42,0.14); }
button.danger { border-style: dashed; border-color: var(--red); color: var(--red); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
button.small { padding: 1px 6px; font-size: 10.5px; border-width: 1.5px; }
select, input[type=text], input[type=number] { font: inherit; font-family: var(--type); font-size: 13px; background: #faf5e6; color: var(--ink); border: 1px solid var(--ink2); border-radius: 2px; padding: 3px 6px; }
input[type=range] { width: 100%; accent-color: var(--red); }
a { color: var(--blue); }
h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 8px; color: var(--ink); font-weight: 700; letter-spacing: 0.01em; }
h3 { font-size: 11.5px; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
h3:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.good { color: var(--green); } .bad { color: var(--red); } .warn { color: #8a5f12; }
.right { text-align: right; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink2); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child th { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); text-transform: none; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.card { overflow-x: hidden; background: var(--paper3); border: 1px solid var(--line); padding: 10px 12px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(43,36,24,0.25), 0 4px 10px rgba(43,36,24,0.12); position: relative; }
.card:nth-child(odd) { transform: rotate(-0.25deg); }
.card:nth-child(even) { transform: rotate(0.2deg); }
.bar { height: 9px; background: var(--paper); border: 1px solid var(--ink2); overflow: hidden; display: inline-block; width: 120px; vertical-align: middle; }
.bar > i { display: block; height: 100%; background: var(--green); }
.bar.amber > i { background: var(--gold); } .bar.red > i { background: var(--red); } .bar.blue > i { background: var(--blue); }
.pill { display: inline-block; padding: 0 6px; border-radius: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; background: transparent; border: 1.5px solid var(--ink2); color: var(--ink2); margin-right: 3px; transform: rotate(-1.5deg); }
.pill.green { border-color: var(--green); color: var(--green); } .pill.red { border-color: var(--red); color: var(--red); } .pill.amber { border-color: var(--gold); color: #8a5f12; } .pill.blue { border-color: var(--blue); color: var(--blue); }
.stars { color: var(--gold); letter-spacing: -1px; font-size: 12px; }
.stars .off { color: var(--line); }

/* Masthead */
#topbar { display: flex; align-items: center; gap: 12px; padding: 6px 14px; background: linear-gradient(#f4ecdc, #e6dac0); border-bottom: 3px double var(--ink); flex: none; flex-wrap: wrap; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
#topbar .brand { font-family: var(--serif); font-weight: 900; color: var(--ink); font-size: 26px; letter-spacing: 0.12em; line-height: 1; margin-right: 6px; }
#topbar .brand small { display: block; font-family: var(--type); font-weight: 400; color: var(--ink2); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
#topbar .stat { display: flex; flex-direction: column; line-height: 1.15; min-width: 74px; padding: 3px 8px 2px; background: linear-gradient(#d8b65a, var(--brass) 40%, var(--brass2)); border: 1px solid #6b5218; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4); }
#topbar .stat b { font-family: var(--type); font-size: 13.5px; font-weight: 700; color: #2a1f0c; text-shadow: 0 1px 0 rgba(255,255,255,0.35); }
#topbar .stat b.good { color: #1f4a1b; } #topbar .stat b.bad { color: #7a1a12; } #topbar .stat b.warn { color: #6a3d05; }
#topbar .stat span { font-size: 8.5px; color: #4a3a12; text-transform: uppercase; letter-spacing: 0.12em; }
#topbar .stat .sparkline { vertical-align: middle; }
#topbar .stat.checklist { min-width: 0; }
#topbar .stat.checklist b { font-size: 12px; letter-spacing: 0.02em; }
#topbar .stat.checklist i { font-style: normal; font-weight: 700; margin: 0 2px 0 6px; }
#topbar .stat.checklist i:first-child { margin-left: 0; }
#topbar .stat.checklist i.ok { color: #1f4a1b; } #topbar .stat.checklist i.no { color: #7a1a12; }
#topbar .stat.absent { background: linear-gradient(#5a5a5a, #3a3a3a); border-color: #1b1812; }
#topbar .stat.absent b { color: #f4efe2; text-shadow: none; font-size: 12px; } #topbar .stat.absent span { color: #d8d0c0; }
#topbar .spacer { flex: 1; }
#topbar .controls { display: flex; gap: 6px; align-items: center; }
#topbar .date { display: flex; flex-direction: column; align-items: center; min-width: 66px; background: #fbf7ea; border: 1px solid var(--ink2); box-shadow: 0 2px 3px rgba(0,0,0,0.35); overflow: hidden; font-family: var(--type); line-height: 1; }
#topbar .date .cal-m { display: block; width: 100%; text-align: center; background: var(--red); color: #fbf7ea; font-size: 10px; letter-spacing: 0.2em; padding: 3px 6px 2px; text-transform: uppercase; }
#topbar .date .cal-y { display: block; font-size: 17px; font-weight: 700; padding: 4px 6px 3px; color: var(--ink); }

/* Ticker tape */
#ticker { flex: none; background: #1b1812; padding: 3px 0; box-shadow: inset 0 3px 6px rgba(0,0,0,0.6); }
#ticker .tape { display: flex; white-space: nowrap; overflow: hidden; background: var(--paper3); color: var(--ink); font-family: var(--type); font-size: 12px; letter-spacing: 0.05em; height: 22px; line-height: 22px; border-top: 2px dotted #1b1812; border-bottom: 2px dotted #1b1812; }
#ticker .run { flex: none; padding-left: 20px; animation: tape var(--tape-dur, 80s) linear infinite; }
#ticker .run b { font-weight: 400; }
#ticker .run b:first-child, #ticker .run b:nth-child(3), #ticker .run b:nth-child(5) { font-weight: 700; }
#ticker .sep { font-style: normal; padding: 0 12px; color: var(--red); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-100%); } }
#ticker:hover .run { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { #ticker .run { animation: none; } #ticker .run[aria-hidden] { display: none; } #ticker .tape { overflow-x: auto; } }

/* Layout: the stage hosts one screen at a time (office, plat map, town canvas, an interior, the field).
   The drawer (folder tabs + panel) slides over the stage from the right; on the map screen it is docked
   open beside the plat, which reproduces the two-column layout. */
#stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#screen { position: absolute; inset: 0; overflow: hidden; }
:root { --chrome-h: 272px; }
#stage[data-screen="map"] { display: flex; }
#stage[data-screen="map"] #screen { position: static; flex: 0 0 auto; width: min(58%, calc((100vh - var(--chrome-h)) * 1.29)); padding: 12px 8px 12px 14px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
#map { position: relative; flex: none; }
#drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(660px, 100%); display: flex; flex-direction: column; padding: 8px 14px 14px; transform: translateX(104%); transition: transform 0.25s ease; z-index: 5; }
#drawer.open { transform: translateX(0); box-shadow: -14px 0 34px rgba(0,0,0,0.45); background: linear-gradient(90deg, rgba(20,30,20,0.55), rgba(20,30,20,0.75)); }
#stage[data-screen="map"] #drawer { position: static; flex: 1; min-width: 0; transform: none; transition: none; padding: 14px 14px 14px 4px; box-shadow: none; background: transparent; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; flex: none; }
.drawer-title { font-family: var(--type); font-size: 11px; letter-spacing: 0.2em; color: var(--paper3); text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
#stage[data-screen="map"] .drawer-head { display: none; }
#topbar .nav { display: flex; gap: 3px; margin-left: 6px; }
#topbar .nav button { border: 1px solid #a88a4a; border-radius: 6px; background: var(--manila); font-size: 10.5px; padding: 4px 10px; }
#topbar .nav button.active { background: var(--manila2); font-weight: 700; color: var(--red); }
.plat { width: 100%; height: auto; display: block; background: var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4); transform: rotate(-0.3deg); }
.plat .hand { font-family: var(--hand); }
.plat .type { font-family: var(--type); }
.plat .serif { font-family: var(--serif); }
.plat g:not(.hits) { pointer-events: none; }
.plat .hit { fill: transparent; cursor: pointer; }
.plat .hit:hover { fill: rgba(168,50,42,0.09); stroke: var(--red); stroke-width: 1.5; }
.plat .sel { pointer-events: none; }
/* Three fat manila folders, then the sheets inside the open one. Nothing scrolls sideways. */
#tabs { flex: none; padding: 0 8px; }
#tabs .folders { display: flex; align-items: flex-end; gap: 4px; }
#tabs .folders .folder { flex: 1; border: 1px solid #a88a4a; border-bottom: none; border-radius: 9px 9px 0 0; background: linear-gradient(var(--manila), #d9c48e); padding: 8px 12px 7px; font-family: var(--type); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 -2px 4px rgba(0,0,0,0.15); color: var(--ink2); }
#tabs .folders .folder.active { background: var(--manila2); color: var(--ink); font-weight: 700; margin-top: 0; padding-top: 11px; position: relative; top: 1px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
#tabs .sheets { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 7px 12px 0; background: var(--manila2); border: 1px solid #a88a4a; border-bottom: none; }
#tabs .sheets .sheet { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 3px 2px 4px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); box-shadow: none; }
#tabs .sheets .sheet:hover { color: var(--ink); }
#tabs .sheets .sheet.active { color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
#tabs button .n { background: var(--red); color: #fff; border-radius: 8px; padding: 0 5px; font-size: 10px; margin-left: 4px; }
#panel { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 14px 12px; background: var(--manila2); border: 1px solid #a88a4a; border-top: 1px dashed rgba(168,138,74,0.6); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
/* Sheets and columns still scroll with the wheel, but no scrollbar is drawn on the paper. */
#panel, #news .column, #modal .box { scrollbar-width: none; -ms-overflow-style: none; }
#panel::-webkit-scrollbar, #news .column::-webkit-scrollbar, #modal .box::-webkit-scrollbar { display: none; }

/* The Dry Fork Clarion */
#news { flex: none; height: 196px; overflow: hidden; background: var(--newsprint); border-top: 1px solid var(--ink); padding: 4px 14px 6px; font-size: 14px; font-family: var(--fell); box-shadow: 0 -4px 12px rgba(0,0,0,0.4); }
#news .clarion { height: 100%; display: flex; flex-direction: column; }
#news .mh { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
#news .mh .mh-name { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
#news .mh .mh-date { font-family: var(--type); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink2); }
#news .cols { display: grid; grid-template-columns: 1.3fr 2fr 0.8fr; gap: 0 14px; flex: 1; min-height: 0; }
#news .headline { border-right: 1px solid var(--ink2); padding-right: 12px; overflow: hidden; }
#news .headline h4 { font-family: var(--serif); font-size: 18px; line-height: 1.15; margin: 0 0 4px; text-transform: uppercase; }
#news .headline p { margin: 0; font-size: 14px; line-height: 1.4; }
#news .headline .dateline { font-family: var(--type); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink2); }
#news .column { overflow: auto; column-count: 2; column-gap: 14px; column-rule: 1px solid var(--rule); font-size: 13px; line-height: 1.35; }
#news .item { padding: 1px 0; break-inside: avoid; }
#news .item .d { font-family: var(--type); color: var(--ink2); font-size: 11px; margin-right: 4px; }
#news .item.wells .d { color: #7a4a10; } #news .item.env .d { color: var(--green); } #news .item.gov .d { color: var(--purple); } #news .item.market .d { color: var(--blue); } #news .item.land .d { color: #8a6a1a; } #news .item.staff .d { color: #8a3a5a; } #news .item.company .d { color: var(--red); }
#news .item.new { background: rgba(168,50,42,0.07); }
#news .ad { border: 3px double var(--ink); padding: 6px 8px; text-align: center; font-family: var(--fell); font-size: 13px; line-height: 1.3; align-self: start; }
#news .ad b { display: block; font-family: var(--serif); font-size: 13px; text-transform: uppercase; margin-bottom: 3px; }
#news .ad i { display: block; font-size: 10px; font-family: var(--type); margin-top: 4px; color: var(--ink2); letter-spacing: 0.1em; }

/* Cross-section: an ink drawing on the parcel sheet */
.xsec { width: 100%; max-width: 680px; height: auto; aspect-ratio: 600 / 130; background: var(--paper3); border: 1px solid var(--line); display: block; }
.xsec .type { font-family: var(--type); }
.xsec-key { font-size: 11px; margin-top: 2px; }
.xsec-key i { display: inline-block; width: 14px; height: 8px; vertical-align: middle; border: 1px solid var(--ink); margin: 0 3px 0 6px; }
.xsec-key i.sand { background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px); opacity: 0.7; }
.xsec-key i.wet { background: repeating-linear-gradient(0deg, var(--blue) 0 1px, transparent 1px 3px); }
.xsec-key i.shale { background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 4px); }
.xsec-key i.bore { width: 2px; background: var(--red); border: none; height: 12px; }

/* Modal: paper form on the desk blotter */
#modal[hidden], #toast[hidden] { display: none !important; }
#modal { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(47,74,45,0.55), rgba(15,25,14,0.9)); display: flex; align-items: center; justify-content: center; z-index: 10; }
#modal .box { background: var(--paper3); border: 1px solid var(--line); width: min(820px, 94vw); max-height: 92vh; overflow: auto; padding: 18px 22px; box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.4); background-image: linear-gradient(rgba(43,36,24,0.035) 1px, transparent 1px); background-size: 100% 24px; }
#modal .box.narrow { width: min(580px, 94vw); }
#modal h2 { margin-bottom: 4px; }
#modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.designer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.designer label { display: block; font-size: 10.5px; color: var(--ink2); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.designer select { width: 100%; }
.estimate { background: var(--paper); border: 1px solid var(--line); padding: 10px; font-size: 13px; }
.estimate .big { font-family: var(--type); font-size: 20px; font-weight: 700; }
.note { font-size: 12px; color: #8a5f12; margin-top: 4px; font-family: var(--fell); }
.event .opt { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 9px 12px; text-transform: none; letter-spacing: 0; font-size: 13px; font-family: var(--fell); }
.event p { font-size: 15px; line-height: 1.45; }

/* Newspaper front page (new game) */
.front { font-family: var(--fell); }
.front .nameplate { text-align: center; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 6px 0 4px; margin-bottom: 4px; }
.front .nameplate .paper-name { font-family: var(--serif); font-weight: 900; font-size: 36px; letter-spacing: 0.03em; line-height: 1; }
.front .ears { display: flex; justify-content: space-between; font-family: var(--type); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink2); border-bottom: 1px solid var(--ink); padding: 2px 0 3px; margin-bottom: 10px; }
.front h1 { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin: 0 0 6px; text-transform: uppercase; text-align: center; }
.front .subhead { text-align: center; font-style: italic; font-size: 15px; margin: 0 0 12px; }
.front .body { column-count: 2; column-gap: 18px; column-rule: 1px solid var(--rule); font-size: 13.5px; line-height: 1.4; }
.front .body p { margin: 0 0 8px; font-size: 13.5px; }
.front .body p:first-child::first-letter { font-family: var(--serif); font-size: 34px; float: left; line-height: 0.8; padding: 4px 4px 0 0; }
.front .coupon { border: 2px dashed var(--ink); padding: 10px 12px; margin-top: 12px; font-family: var(--type); }
.front .coupon .grid2 label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink2); margin-bottom: 2px; }
.front .coupon input { border: none; border-bottom: 1.5px solid var(--ink); background: transparent; border-radius: 0; font-size: 15px; padding: 2px 0; }
.front .coupon input:focus { outline: none; border-bottom-color: var(--red); }

/* Clippings file on the Clarion tab: a newspaper page of headlines */
.clippings .paper { background: var(--newsprint); border: 1px solid var(--ink); padding: 6px 12px 10px; }
.clippings .mh { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.clippings .mh-name { font-family: var(--serif); font-weight: 900; font-size: 22px; }
.clippings .mh-date { font-family: var(--type); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink2); }
.clippings .clipcols { column-count: 3; column-gap: 16px; column-rule: 1px solid var(--rule); }
.clippings .clip { break-inside: avoid; padding: 4px 0 6px; border-bottom: 1px dotted var(--rule); }
.clippings .clip h4 { font-family: var(--serif); font-size: 13.5px; line-height: 1.15; margin: 2px 0 2px; text-transform: uppercase; }
.clippings .clip.bad h4 { color: var(--red); } .clippings .clip.good h4 { color: var(--green); } .clippings .clip.rival h4 { color: var(--blue); }
.clippings .clip .d, .clippings .clip .k { font-family: var(--type); font-size: 10px; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.08em; }
.articles h2 { font-family: var(--serif); text-align: center; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.articles input { border: none; border-bottom: 1.5px solid var(--ink); background: transparent; border-radius: 0; font-family: var(--serif); }
.articles label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }
@media (max-width: 1300px) { .clippings .clipcols { column-count: 2; } }

#toast { position: fixed; bottom: 210px; left: 50%; transform: translateX(-50%) rotate(-1deg); background: #f5e7a0; color: var(--ink); border: 1px solid #c9b35a; padding: 8px 14px; z-index: 20; max-width: 600px; box-shadow: 0 6px 20px rgba(0,0,0,0.45); font-family: var(--type); font-size: 13px; }
/* The month memo: a wider yellow slip with a heading and a few lines */
#toast.memo { left: auto; right: 24px; transform: rotate(0.6deg); width: min(440px, 90vw); max-width: none; padding: 10px 14px 10px; font-family: var(--fell); font-size: 14px; line-height: 1.4; }
#toast.memo .memo-head { font-family: var(--type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid #c9b35a; padding-bottom: 4px; margin-bottom: 6px; display: flex; justify-content: space-between; }
#toast.memo .memo-head span { color: var(--ink2); letter-spacing: 0.08em; text-transform: none; font-family: var(--hand); font-size: 15px; }
#toast.memo ul { margin: 0; padding-left: 18px; }
#toast.memo li { margin: 2px 0; }
#toast.memo i { font-style: normal; font-family: var(--type); font-size: 12px; } #toast.memo i.bad, #toast.memo li.bad { color: var(--red); } #toast.memo i.good { color: var(--green); }
#topbar .clock { display: inline-block; min-width: 38px; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(0,0,0,0.18); font-family: var(--type); font-size: 11px; letter-spacing: 0.08em; font-weight: 400; }

.svg-chart { width: 100%; height: 120px; display: block; }
.sparkline { vertical-align: middle; }

@media (max-width: 1300px) { #stage[data-screen="map"] #screen { width: min(52%, calc((100vh - var(--chrome-h)) * 1.29)); } #topbar .brand { font-size: 20px; } #news .cols { grid-template-columns: 1.2fr 2fr; } #news .ad { display: none; } }
@media (max-width: 860px) {
  #stage[data-screen="map"] { flex-direction: column; overflow: auto; }
  #stage[data-screen="map"] #screen { flex: none; width: auto; padding: 10px; }
  #stage[data-screen="map"] #drawer { padding: 0 10px 10px; }
  #drawer { width: 100%; }
  #panel { min-height: 320px; }
  #news { height: 150px; }
  #toast { bottom: 160px; }
  #topbar .nav { display: none; }
}
