:root {
  --paper: #f1eadc;
  --paper-2: #e4dbc8;
  --paper-3: #fbf8f1;
  --accent: #17120e;
  --accent-ink: #fbf8f1;
  --ink: #17120e;
  --ink-2: #4a3f36;
  --ink-3: #75675a;
  --rule: #c7bba6;
  --red: #a8201a;
  --green: #0f6233;
  --gold: #8a5c00;
  --gold-bg: #efd28d;
  --head: 'Playfair Display', 'Times New Roman', serif;
  --serif: 'PT Serif', Georgia, serif;
  --sans: 'PT Serif', Georgia, serif;
  --mono: 'PT Serif', Georgia, serif;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  color-scheme: light;
}
/* every rubric is its own newspaper, on its own paper */
:root[data-sec="dash"], :root[data-sec="career"] { --accent: #c2281d; }
:root[data-sec="stocks"] { --paper: #f8dfcd; --paper-2: #f1c9ae; --paper-3: #fff4ea; --rule: #d3a88a; --accent: #a11d12; }
:root[data-sec="crypto"] { --paper: #f7dc3c; --paper-2: #ecc91c; --paper-3: #fff6b8; --rule: #a98f1c; --ink-2: #3b3211; --ink-3: #5a4d17; --accent: #17120e; --red: #a3130d; --green: #0a5228; }
:root[data-sec="bets"] { --paper: #d6e8bd; --paper-2: #c0d99e; --paper-3: #f4f9e6; --rule: #97b277; --accent: #137a43; --ink-3: #566a48; }
:root[data-sec="team"], :root[data-sec="broker"], :root[data-sec="infra"] { --paper: #d5ebe6; --paper-2: #bcdcd5; --paper-3: #f2faf7; --rule: #8db8ae; --accent: #007064; --ink-3: #4d6b64; }
:root[data-sec="rating"], :root[data-sec="shady"] { --paper: #eadff0; --paper-2: #dccbe6; --paper-3: #faf5fc; --rule: #b9a2c7; --accent: #5e2a86; --ink-3: #66557a; }
:root[data-sec="profile"], :root[data-sec="skills"] { --paper: #f6efd9; --paper-2: #ebe0bf; --paper-3: #fffbef; --rule: #d3c69d; --accent: #b0491a; }
:root[data-sec="help"] { --paper: #f7f6f2; --paper-2: #e8e6df; --paper-3: #ffffff; --rule: #cbc8bf; }

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper); }
html, body { margin: 0; height: 100%; color: var(--ink); font: 14px/1.4 var(--sans); }
body { background: var(--paper); transition: background 0.35s; }
button, input { font: inherit; color: inherit; border-radius: 0; }
button { transition: background 0.14s, color 0.14s, transform 0.1s; }
h1, h2, h3, p { margin: 0; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12px; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.term { border-bottom: 1px dotted currentColor; cursor: help; }
.term:hover { background: var(--ink); color: var(--paper-3); }

.shell { display: grid; grid-template: auto auto minmax(0, 1fr) 26px / minmax(0, 1fr) 280px; height: 100vh; }
.mast { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 7px 16px; min-width: 0; background: var(--paper-3); }
.logo { font: 700 34px/1 var(--head); text-transform: uppercase; white-space: nowrap; }
.clock { font-family: var(--serif); font-size: 13px; line-height: 1.25; white-space: nowrap; border-left: 1px solid var(--ink); padding-left: 12px; }
.clock small { display: block; color: var(--ink-2); font-size: 12px; font-style: italic; }
.speeds { display: flex; border: 1px solid var(--ink); }
.speeds button { background: none; border: 0; border-right: 1px solid var(--ink); width: 36px; padding: 5px 0; font: 700 11px var(--mono); cursor: pointer; }
.speeds button:last-child { border-right: 0; }
.speeds button:hover { background: var(--paper-2); }
.speeds button.on { background: var(--ink); color: var(--paper-3); }
.iconbtn { background: none; border: 1px solid var(--ink); height: 30px; padding: 0 9px; cursor: pointer; font-weight: 700; }
.iconbtn:hover { background: var(--ink); color: var(--paper-3); }
.kpis { display: flex; gap: 20px; margin-left: auto; min-width: 0; align-items: flex-end; }
.kpi { line-height: 1.15; white-space: nowrap; }
.kpi > .term, .kpi > label { display: block; width: fit-content; font-size: 11px; color: var(--ink-2); }
.kpi b { font: 400 15px var(--mono); display: block; width: 104px; overflow: hidden; }
.kpi.lead b { font: 700 25px/1 var(--head); width: 150px; }
.meter { width: 64px; height: 7px; border: 1px solid var(--ink); margin: 5px 0 3px; }
.meter i { display: block; height: 100%; background: var(--ink); transition: width 0.5s var(--ease); }
.meter.hot i { background: var(--red); }

.nav { grid-column: 1 / -1; background: var(--ink); }
.nav-main { display: flex; padding: 0 16px; overflow-x: auto; scrollbar-width: none; align-items: stretch; }
.nav-main::-webkit-scrollbar, .nav-sub::-webkit-scrollbar { display: none; }
.nav-main > button { background: none; border: 0; color: #e9e2d2; padding: 6px 18px; font: 600 16px var(--head); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.nav-main > button:hover { background: #3a332c; }
.nav-main > button.on { background: var(--accent); color: var(--accent-ink); }
.nav-sub { display: flex; background: var(--accent); padding: 0 16px; overflow-x: auto; scrollbar-width: none; min-height: 28px; }
.nav-sub button { background: none; border: 0; color: var(--accent-ink); padding: 4px 14px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; opacity: 0.85; }
.nav-sub button:hover { opacity: 1; background: rgba(0, 0, 0, 0.18); }
.nav-sub button.on { background: var(--paper); color: var(--ink); opacity: 1; }
.nav-sub button.locked { opacity: 0.55; }
.nav .count { font: 400 11px var(--mono); margin-left: 5px; }
.newdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ffd21f; margin-left: 6px; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); vertical-align: 1px; }
.navrank { margin-left: auto; align-self: center; font: italic 13px var(--serif); white-space: nowrap; padding-left: 14px; color: #e9e2d2; }
.navrank b { font: 600 14px var(--head); letter-spacing: 0.03em; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

.main { overflow-y: auto; overflow-x: hidden; padding: 14px 16px 26px; min-width: 0; scrollbar-gutter: stable; }
.page { animation: pageIn 0.28s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

.rubric { display: flex; align-items: center; gap: 14px; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; margin-bottom: 14px; }
.rubric .art { width: 96px; height: 80px; flex: none; }
.rubric h1 { font: 700 44px/1 var(--head); text-transform: uppercase; }
.rubric p { font: italic 15px var(--serif); color: var(--ink-2); }
.rub-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.art { display: block; }

.feed { border-left: 1px solid var(--ink); display: flex; flex-direction: column; min-height: 0; background: var(--paper-2); transition: background 0.35s; }
.feed h2 { font: 600 13px var(--head); letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink); color: var(--paper-3); padding: 3px 12px; }
.feed-sec { display: flex; flex-direction: column; min-height: 0; flex: none; }
.feed-sec.open { flex: 1 1 0; }
.feed-sec.live.open.both { flex: 0 0 150px; }
.feed-sec.cal.open { flex: none; }
.feed-sec.cal.open.solo { flex: 1 1 0; }
.feed-head { display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--ink); color: var(--paper-3); border: 0; border-bottom: 1px solid #4a3f36; padding: 4px 12px; cursor: pointer; font: 600 13px var(--head); letter-spacing: 0.06em; text-transform: uppercase; flex: none; }
.feed-head:hover { background: #3a332c; }
.feed-head i { font-style: normal; display: inline-block; transition: transform 0.2s var(--ease); }
.feed-sec.open .feed-head i { transform: rotate(90deg); }
.feed-list { overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; padding: 0 12px 90px; flex: 1; min-height: 0; }
.news { padding: 7px 0; border-bottom: 1px solid var(--rule); font: 13px/1.3 var(--serif); animation: slideDown 0.4s var(--ease); overflow: hidden; }
.news .meta { display: flex; gap: 8px; font: 11px var(--mono); color: var(--ink-3); margin-bottom: 2px; }
.news .tag { color: var(--ink); font-weight: 700; }
.news.pos .tag { color: var(--green); }
.news.neg .tag { color: var(--red); }
.news.mine { background: var(--gold-bg); box-shadow: -12px 0 0 var(--gold-bg), 12px 0 0 var(--gold-bg), -12px 0 0 0 var(--gold) inset; border-left: 0; }
.news.mine .mineflag { font: 700 10px var(--mono); background: var(--ink); color: var(--gold-bg); padding: 0 4px; }
.news[data-act] { cursor: pointer; }
.news[data-act]:hover { text-decoration: underline; }
.dock { padding: 0 12px; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; flex: 1; min-height: 0; }
.dock-m { border-bottom: 1px solid var(--rule); padding: 5px 0; cursor: pointer; font-size: 12px; animation: slideDown 0.4s var(--ease); }
.dock-m.mine { background: var(--gold-bg); box-shadow: -5px 0 0 var(--gold-bg), 5px 0 0 var(--gold-bg); }
.dock-m .row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@keyframes slideDown { from { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; } to { max-height: 120px; opacity: 1; } }

.tape { grid-column: 1 / -1; overflow: hidden; background: var(--ink); color: #f1eadc; font: 12px/26px var(--mono); white-space: nowrap; }
.tape-run { display: inline-block; animation: tape 160s linear infinite; will-change: transform; }
.tape:hover .tape-run { animation-play-state: paused; }
.tape span { display: inline-block; width: 168px; cursor: pointer; }
.tape b { margin-right: 6px; }
.tape .up { color: #9fd9a8; }
.tape .down { color: #f5a79e; }
@keyframes tape { to { transform: translateX(-50%); } }

.grid { display: grid; gap: 16px 20px; min-width: 0; }
.g2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gmarket { grid-template-columns: 380px minmax(0, 1fr); }
.gcrypto { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.gbets { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
.panel { min-width: 0; }
.panel > h2, .ph { background: var(--accent); color: var(--accent-ink); font: 600 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 8px; margin-bottom: 8px; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph .num { font: 400 12px var(--mono); text-transform: none; }
.ph .btn { color: var(--ink); }
.ph .term:hover { background: var(--accent-ink); color: var(--accent); }
.sheet { background: var(--paper-3); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 0 10px 10px; }
.sheet > h2, .sheet > .ph { margin: 0 -10px 8px; }
.inv { background: var(--ink); color: var(--paper-3); padding: 12px 14px; }
.inv .term:hover { background: var(--paper-3); color: var(--ink); }
.inv .up { color: #8fdca0; }
.inv .down { color: #f59a8f; }
.heroblock { display: flex; align-items: center; gap: 14px; }
.heroblock .art { width: 110px; height: 92px; flex: none; background: var(--paper-3); }
.hero { font: 700 66px/1 var(--head); }
.herosub { font: italic 15px var(--serif); margin-top: 3px; }
.stat { font: 700 26px/1.1 var(--head); }
.stat-l { font-size: 12px; color: var(--ink-2); }
.statcard { background: var(--paper-3); border-left: 5px solid var(--accent); padding: 6px 10px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.fixed { table-layout: fixed; }
th { font: 400 11px var(--sans); color: var(--ink-2); text-align: left; padding: 3px 6px; border-bottom: 2px solid var(--ink); white-space: nowrap; overflow: hidden; }
td { padding: 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; overflow: hidden; }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.28); }
tr[data-key] { animation: rowIn 0.32s var(--ease); }
@keyframes rowIn { from { opacity: 0; } }
tr.leaving { opacity: 0; transition: opacity 0.25s; }
th.right, td.right { text-align: right; }
tr.pick { cursor: pointer; }
tr.pick:hover td { background: var(--paper-2); }
tr.sel td { background: var(--ink) !important; color: var(--paper-3); }
tr.sel .assetcell small, tr.sel .up, tr.sel .down { color: var(--paper-3); }
.sector td { background: var(--accent) !important; color: var(--accent-ink); font: 600 12px var(--head); text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 6px; }
.scroll-x { overflow-x: auto; }
.sticky-list { max-height: calc(100vh - 190px); overflow-y: auto; }
.quiet .news, .quiet .match, .quiet .live-card, .quiet .contract, .quiet .bl, .quiet tr[data-key], .quiet .coin, .quiet .upcard, .quiet .ct { animation: none; }

.ava { display: inline-block; flex: none; width: 30px; height: 30px; overflow: hidden; }
.ava svg { display: block; width: 100%; height: 100%; }
.crest { display: inline-block; flex: none; width: 18px; height: 21px; }
.crest svg { display: block; width: 100%; height: 100%; }
.ava.round { border-radius: 50%; }
.ava.sm { width: 22px; height: 22px; }
.assetcell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.assetcell b { font: 700 13px var(--mono); display: block; line-height: 1.15; }
.assetcell small { display: block; color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn { background: var(--paper-3); border: 1px solid var(--ink); padding: 6px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper-3); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { color: var(--ink-3); border-color: var(--rule); background: none; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: var(--paper-3); }
.btn.primary:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:disabled { background: none; color: var(--ink-3); }
.btn.sm { padding: 2px 8px; font-size: 12px; }
.btn.buy { background: var(--green); border-color: var(--green); color: #fff; font: 600 16px var(--head); text-transform: uppercase; }
.btn.buy:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.btn.sell { background: var(--red); border-color: var(--red); color: #fff; font: 600 16px var(--head); text-transform: uppercase; }
.btn.sell:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.btn.buy:disabled, .btn.sell:disabled { background: none; border-color: var(--rule); color: var(--ink-3); }
.seg { display: inline-flex; border: 1px solid var(--ink); flex-wrap: wrap; background: var(--paper-3); }
.seg button { background: none; border: 0; border-right: 1px solid var(--ink); padding: 3px 9px; font-size: 12px; font-weight: 700; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button:hover:not(:disabled) { background: var(--paper-2); }
.seg button:disabled { color: var(--rule); cursor: not-allowed; }
.seg button.on { background: var(--ink); color: var(--paper-3); }
input.field { width: 100%; background: #fff; border: 1px solid var(--ink); padding: 6px 8px; font-family: var(--mono); outline: none; transition: box-shadow 0.14s; }
input.field:focus { box-shadow: 0 0 0 2px var(--ink); }
.formline { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.formline > span:first-child { color: var(--ink-2); }
.formline > span:last-child { font-family: var(--mono); text-align: right; }
.lab { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 3px; width: fit-content; }

.cv { display: block; width: 100%; }
.cvwrap { background: var(--paper-3); border: 1px solid var(--ink); padding: 6px 4px 4px; }
.spark { display: block; }

/* horizontal rails scroll with the wheel, by dragging or with the arrows */
.hrail { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding: 2px 4px 6px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.hrail::-webkit-scrollbar { display: none; }
.hrail.drag { cursor: grabbing; user-select: none; }
.live-rail { height: 236px; }
.rail-wrap { margin-bottom: 16px; }
.live-empty { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; font: italic 16px var(--serif); color: var(--ink-2); border: 1px dashed var(--ink-3); }
.live-empty .art { width: 96px; height: 80px; }
.live-card { flex: 0 0 300px; background: var(--paper-3); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; animation: cardIn 0.42s var(--ease); overflow: hidden; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.live-card.leaving { flex-basis: 0 !important; min-width: 0; opacity: 0; margin-right: -12px; border-width: 0; box-shadow: none; transition: flex-basis 0.4s var(--ease), opacity 0.25s, margin 0.4s var(--ease); }
.live-card.mine { outline: 3px solid var(--gold); outline-offset: -3px; }
.board { background: var(--ink); color: #fbf8f1; padding: 5px 8px; }
.board .lg { display: flex; justify-content: space-between; font-size: 11px; color: #cfc6b4; }
.scoreline { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 4px; align-items: center; min-height: 40px; }
.scoreline .nm { font-size: 12px; font-weight: 700; line-height: 1.1; }
.scoreline .nm:last-child { text-align: right; }
.score { font: 700 28px/1 var(--head); text-align: center; white-space: nowrap; }
.livebody { padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; }
.probbar { display: flex; height: 6px; background: var(--rule); }
.probbar i { display: block; transition: flex-grow 0.7s var(--ease); flex-basis: 0; min-width: 1px; }
.probbar .p0 { background: var(--ink); }
.probbar .p1 { background: var(--rule); }
.probbar .p2 { background: var(--red); }
.mybet { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 5px; min-height: 30px; }
.liveflag { background: var(--red); color: #fff; font: 700 10px var(--mono); padding: 0 4px; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.6; } }

.match { display: grid; grid-template-columns: 70px minmax(120px, 1fr) 232px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule); animation: slideDown 0.38s var(--ease); overflow: hidden; }
.match .when { font: 11px/1.3 var(--mono); color: var(--ink-2); }
.match .lg { font: 700 10px var(--sans); color: var(--ink); }
.soon { color: var(--red); font-weight: 700; }
.leaving-block { transition: height 0.32s var(--ease), opacity 0.22s, padding 0.32s var(--ease), margin 0.32s var(--ease), transform 0.32s var(--ease); overflow: hidden; opacity: 0; padding-top: 0 !important; padding-bottom: 0 !important; border-width: 0 !important; }
.team { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 1px 0; }
.team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.form { display: inline-flex; gap: 2px; font: 700 9px var(--mono); }
.form i { font-style: normal; width: 12px; height: 12px; line-height: 12px; text-align: center; background: var(--paper-2); color: var(--ink-2); }
.form i.W { background: var(--green); color: #fff; }
.form i.L { background: var(--red); color: #fff; }
.inj { color: var(--red); font-size: 11px; font-weight: 400; }
.odds { display: flex; gap: 4px; justify-content: flex-end; }
.odd { flex: 1; min-width: 0; background: var(--paper-3); border: 1px solid var(--ink); padding: 2px 3px; text-align: center; cursor: pointer; line-height: 1.15; }
.odd:hover:not(:disabled) { background: var(--ink); color: var(--paper-3); }
.odd:hover:not(:disabled) small { color: var(--paper-3); }
.odd:disabled { opacity: 0.45; cursor: not-allowed; }
.odd.sel { background: var(--ink); color: var(--paper-3); }
.odd.sel small { color: var(--paper-3); }
.odd.value { background: #c6dca4; box-shadow: inset 0 0 0 1px var(--green); }
.odd b { display: block; font: 700 14px var(--mono); }
.odd small { display: block; font-size: 10px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.match-more { grid-column: 1 / -1; }
.bl { padding: 4px 0; border-bottom: 1px dotted var(--rule); animation: slideDown 0.34s var(--ease); overflow: hidden; }
.tag-chip { display: inline-block; font: 700 10px var(--mono); padding: 0 4px; border: 1px solid currentColor; }
.tag-chip.arb { color: var(--green); }
.tag-chip.meme { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bar { height: 7px; border: 1px solid var(--ink); background: #fff; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width 0.5s var(--ease); }
.bar.warn i { background: var(--red); }

/* crypto is a tabloid: coins as loud cards on a rail, memes on their own board */
.coin { flex: 0 0 156px; background: var(--paper-3); border: 2px solid var(--ink); padding: 7px 8px; cursor: pointer; text-align: left; animation: cardIn 0.35s var(--ease); }
.coin:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.coin.sel { background: var(--ink); color: var(--paper); }
.coin.sel small, .coin.sel .up, .coin.sel .down { color: var(--paper); }
.coin b { font: 700 16px var(--head); display: block; line-height: 1; }
.coin small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .pr { font: 700 13px var(--mono); margin-top: 3px; }
.tabloid-title { font: 700 58px/0.95 var(--head); text-transform: uppercase; letter-spacing: -0.01em; }
.memeboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.memecard { background: var(--ink); color: var(--paper); padding: 8px 10px; cursor: pointer; transform: rotate(-0.6deg); animation: cardIn 0.35s var(--ease); }
.memecard:nth-child(even) { transform: rotate(0.6deg); }
.memecard:hover { transform: rotate(0) scale(1.02); }
.memecard b { font: 700 22px/1 var(--head); display: block; }
.memecard .up { color: #8fdca0; }
.memecard .down { color: #f59a8f; }
.calendar .formline b { font-family: var(--mono); }

.movers td { padding: 2px 4px; border-bottom: 1px dotted var(--rule); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.movers tr:hover td { background: var(--paper-2); }
.dv { position: relative; height: 10px; }
.dv::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink); }
.dv i { position: absolute; top: 0; bottom: 0; transition: width 0.6s var(--ease), left 0.6s var(--ease); }
.dv i.u { left: 50%; background: var(--green); }
.dv i.d { background: var(--red); }

.alloc { display: flex; height: 26px; border: 1px solid var(--ink); margin-bottom: 8px; background: #fff; }
.alloc i { display: block; transition: flex-grow 0.6s var(--ease); flex-basis: 0; border-right: 1px solid var(--ink); }
.alloc i:last-child { border-right: 0; }
.tx0 { background: var(--ink); }
.tx1 { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, #fff 2px 5px); }
.tx2 { background: repeating-linear-gradient(90deg, var(--ink) 0 1px, #fff 1px 4px); }
.tx3 { background: radial-gradient(var(--ink) 1.1px, #fff 1.3px) 0 0 / 5px 5px; }
.tx4 { background: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, var(--ink) 0 1px, #fff 1px 4px); }
.swatch { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--ink); flex: none; }
.ali { display: flex; align-items: center; gap: 7px; padding: 2px 0; font-size: 13px; }
.ali span:nth-of-type(1) { flex: 1; }

.cartoon { background: var(--paper-3); border: 1px solid var(--ink); text-align: center; padding: 8px; }
.cartoon .art { width: 100%; height: 130px; }
.cartoon p { font: italic 14px/1.25 var(--serif); margin-top: 4px; }
.goal, .contract { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.contract { animation: slideDown 0.38s var(--ease); overflow: hidden; }
.contract .txt, .goal .txt { font: 700 13px/1.25 var(--serif); }
.reward { font: 700 14px var(--mono); color: var(--green); white-space: nowrap; }
.upcard { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.upcard.owned { opacity: 0.55; }
.scene { width: 100%; display: block; border: 1px solid var(--ink); }
.term-card { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.term-card b { font-family: var(--serif); }
.rep-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.rep-row:hover { background: var(--paper-2); }
.rep-row.sel { background: var(--ink); color: var(--paper-3); }
.rep-row.sel .up, .rep-row.sel .down { color: var(--paper-3); }
.subtabs { margin-bottom: 14px; }

.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(23, 18, 14, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: var(--paper-3); border: 2px solid var(--ink); padding: 22px; width: 500px; max-width: 100%; box-shadow: 8px 8px 0 var(--ink); animation: cardIn 0.3s var(--ease); }
.modal h2 { font: 700 30px/1.05 var(--head); text-transform: uppercase; margin-bottom: 10px; }
.modal p { font-family: var(--serif); margin-bottom: 14px; }
.modal ul { font-family: var(--serif); padding-left: 18px; margin: 0 0 14px; }
.modal li { margin-bottom: 7px; }
.modal .kicker { font: 600 13px var(--head); text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); margin-bottom: 4px; }

.watch { background: var(--paper-3); border: 2px solid var(--ink); width: 980px; max-width: 100%; max-height: calc(100vh - 32px); box-shadow: 8px 8px 0 var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr); animation: cardIn 0.3s var(--ease); overflow: hidden; }
.watch-head { grid-column: 1 / -1; background: var(--ink); color: #fbf8f1; padding: 8px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.watch-head .nm { font: 600 20px/1.1 var(--head); text-transform: uppercase; }
.watch-head .nm.r { text-align: right; }
.watch-score { font: 700 44px/1 var(--head); text-align: center; white-space: nowrap; }
.watch-score small { display: block; font: 12px var(--mono); color: #cfc6b4; }
.watch-field { padding: 10px; min-width: 0; }
.watch-side { border-left: 1px solid var(--ink); display: flex; flex-direction: column; min-height: 0; }
.comm { flex: 1; overflow-y: auto; padding: 6px 10px; min-height: 180px; }
.comm div { font: 13px/1.3 var(--serif); padding: 4px 0; border-bottom: 1px dotted var(--rule); animation: slideDown 0.36s var(--ease); overflow: hidden; }
.comm .ev { font-weight: 700; background: var(--gold-bg); padding: 4px 5px; }
.comm i { font: 11px var(--mono); color: var(--ink-3); margin-right: 5px; font-style: normal; }

/* the phone is the one modern object on the desk */
.phone-fab { position: fixed; right: 20px; bottom: 38px; z-index: 32; width: 46px; height: 88px; background: #1c1c1e; border: 2px solid #48484a; border-radius: 12px; cursor: pointer; padding: 3px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42); transition: transform 0.18s var(--ease); }
.phone-fab:hover { transform: translateY(-4px) rotate(-3deg); }
.phone-fab .sc { display: block; width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(170deg, #e7cba8, #b6775a 55%, #4a2c3f); position: relative; }
.phone-fab .sc::before { content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 14px; height: 4px; background: #000; border-radius: 3px; }
.phone-fab .sc::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; background: #fff; border-radius: 2px; }
.fab-badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #ff3b30; color: #fff; font: 700 13px/22px -apple-system, 'Segoe UI', sans-serif; text-align: center; border: 2px solid var(--paper); }
.phone-fab.ring { animation: ring 0.6s ease-in-out; }
@keyframes ring { 15%, 45%, 75% { transform: rotate(-7deg); } 30%, 60%, 90% { transform: rotate(7deg); } }

.phone { --sf: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; position: fixed; right: 20px; bottom: 34px; z-index: 34; width: 348px; height: min(712px, calc(100vh - 56px)); background: #0b0b0c; border-radius: 52px; padding: 10px; box-shadow: 0 0 0 2px #3a3a3c, 0 26px 60px rgba(0, 0, 0, 0.5); font: 14px/1.3 var(--sf); color: #000; transition: transform 0.42s var(--ease), opacity 0.25s; }
.phone.closed { transform: translateY(calc(100% + 60px)); opacity: 0; pointer-events: none; }
.ip-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #f2f2f7; display: flex; flex-direction: column; }
.ip-island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 104px; height: 29px; background: #000; border-radius: 16px; z-index: 5; }
.ip-status { flex: none; height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 8px 26px 0; font-weight: 600; font-size: 14px; z-index: 4; }
.ip-status svg { display: block; }
.ip-status.light { color: #fff; }
.ip-homebar { flex: none; height: 24px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; width: 100%; padding: 0; }
.ip-homebar i { display: block; width: 124px; height: 5px; border-radius: 3px; background: #000; }
.ip-homebar.light i { background: #fff; }
.ip-wall { position: absolute; inset: 0; background: linear-gradient(170deg, #e8cfae 0%, #c8896a 42%, #6d3c4f 78%, #2a1f33 100%); }
.ip-home { position: relative; flex: 1; display: flex; flex-direction: column; color: #fff; min-height: 0; z-index: 1; }
.ip-clock { text-align: center; margin: 6px 0 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.ip-clock b { display: block; font-size: 62px; font-weight: 300; line-height: 1; letter-spacing: -1px; }
.ip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 0; padding: 0 12px; }
.ip-app { background: none; border: 0; color: #fff; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; position: relative; transition: transform 0.14s; }
.ip-app:hover { transform: scale(1.06); }
.ip-ic { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.ip-badge { position: absolute; top: -5px; right: 2px; min-width: 20px; height: 20px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; padding: 0 5px; }
.ip-dock { margin: auto 10px 2px; background: rgba(255, 255, 255, 0.28); border-radius: 28px; padding: 10px; display: flex; justify-content: space-around; }
.ip-nav { flex: none; display: flex; align-items: center; gap: 2px; padding: 2px 8px 6px; min-height: 40px; }
.ip-back { background: none; border: 0; color: #007aff; font-size: 16px; cursor: pointer; display: flex; align-items: center; padding: 0; }
.ip-title { font-size: 32px; font-weight: 700; padding: 0 16px 8px; letter-spacing: -0.4px; }
.ip-body { flex: 1; overflow-y: auto; min-height: 0; scrollbar-color: #c7c7cc transparent; }
.ip-body::-webkit-scrollbar-thumb { background: #c7c7cc; border: 2px solid #f2f2f7; border-radius: 4px; }
.ip-ava { width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden; display: block; }
.ip-ava svg { display: block; width: 100%; height: 100%; }
.ct { display: flex; gap: 10px; padding: 9px 14px; background: #fff; cursor: pointer; align-items: center; position: relative; animation: slideDown 0.36s var(--ease); overflow: hidden; }
.ct::after { content: ''; position: absolute; left: 70px; right: 0; bottom: 0; height: 1px; background: #e5e5ea; }
.ct:hover { background: #f2f2f7; }
.ct b { display: flex; justify-content: space-between; gap: 6px; font-weight: 600; line-height: 1.25; }
.ct b small { font-weight: 400; color: #8e8e93; font-size: 12px; }
.ct p { color: #8e8e93; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct .dotu { width: 10px; height: 10px; border-radius: 50%; background: #007aff; flex: none; }
.ip-chathead { flex: none; display: flex; flex-direction: column; align-items: center; padding: 0 0 7px; background: rgba(249, 249, 249, 0.95); border-bottom: 1px solid #d1d1d6; position: relative; font-size: 11px; }
.ip-chathead .ip-back { position: absolute; left: 8px; top: 8px; }
.ip-chathead .ip-ava { width: 40px; height: 40px; font-size: 14px; margin-bottom: 2px; }
.msgs { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-height: 0; background: #fff; scrollbar-color: #c7c7cc transparent; }
.msgs::-webkit-scrollbar-thumb { background: #c7c7cc; border: 2px solid #fff; border-radius: 4px; }
.msg { max-width: 78%; padding: 7px 12px; border-radius: 18px; font-size: 15px; line-height: 1.26; animation: bubble 0.28s var(--ease); flex: none; }
@keyframes bubble { from { opacity: 0; transform: translateY(8px) scale(0.92); } }
.msg.them { background: #e9e9eb; align-self: flex-start; border-bottom-left-radius: 5px; transform-origin: left bottom; }
.msg.me { background: #007aff; color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; transform-origin: right bottom; }
.msg-t { text-align: center; color: #8e8e93; font-size: 11px; margin: 7px 0 3px; flex: none; }
.replies { flex: none; padding: 7px 10px; display: flex; flex-direction: column; gap: 5px; background: #f9f9f9; border-top: 1px solid #d1d1d6; }
.replies button { background: #fff; color: #007aff; border: 1px solid #d1d1d6; border-radius: 18px; padding: 7px 12px; cursor: pointer; font-size: 14px; font-weight: 500; }
.replies button:hover:not(:disabled) { background: #007aff; color: #fff; border-color: #007aff; }
.replies button:disabled { opacity: 0.4; cursor: not-allowed; }
.replies small { color: #8e8e93; text-align: center; font-size: 11px; }
.ip-sec { padding: 14px 18px 5px; font-size: 13px; color: #6d6d72; }
.ip-group { background: #fff; border-radius: 11px; margin: 0 12px; overflow: hidden; }
.ip-row { display: flex; align-items: center; gap: 8px; padding: 10px 13px; font-size: 14px; position: relative; }
.ip-row + .ip-row::before { content: ''; position: absolute; left: 13px; right: 0; top: 0; height: 1px; background: #e5e5ea; }
.tog { background: #e9e9ea; border: 0; border-radius: 16px; width: 46px; height: 28px; position: relative; cursor: pointer; flex: none; padding: 0; transition: background 0.22s; }
.tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: left 0.22s var(--ease); }
.tog.on { background: #34c759; }
.tog.on::after { left: 20px; }
.pz { background: none; border: 0; padding: 3px 7px; border-radius: 7px; font-size: 12px; cursor: pointer; color: #8e8e93; flex: none; }
.pz.on { background: #ff3b30; color: #fff; }
.pz.del { color: #ff3b30; }
.nc { position: absolute; inset: 0; display: flex; flex-direction: column; background: rgba(28, 28, 30, 0.86); color: #fff; z-index: 2; }
.nc-card { margin: 0 10px 8px; background: rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 10px 13px; font-size: 13px; animation: bubble 0.3s var(--ease); }
.nc-card .h { display: flex; justify-content: space-between; color: rgba(255, 255, 255, 0.7); font-size: 12px; margin-bottom: 2px; }
.nc-card b { display: block; font-weight: 600; font-size: 14px; }

#ios { position: fixed; top: 10px; right: 14px; z-index: 60; width: 366px; max-width: calc(100vw - 20px); display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.notif { pointer-events: auto; font: 14px/1.28 -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; color: #000; background: rgba(245, 245, 245, 0.92); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border-radius: 22px; padding: 10px 14px 11px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3); animation: notifIn 0.5s cubic-bezier(0.2, 1.25, 0.4, 1); overflow: hidden; }
.notif[data-act] { cursor: pointer; }
.notif.out { animation: notifOut 0.3s ease-in forwards; }
.n-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6c6c70; margin-bottom: 3px; }
.n-ic { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; flex: none; }
.n-app { text-transform: uppercase; letter-spacing: 0.02em; flex: 1; }
.notif b { display: block; font-weight: 600; }
.notif p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-110%) scale(0.94); } }
@keyframes notifOut { to { opacity: 0; transform: translateY(-60%) scale(0.96); max-height: 0; margin-bottom: -7px; padding-top: 0; padding-bottom: 0; } }

#gtip { position: fixed; z-index: 70; pointer-events: none; background: #17120e; color: #f1eadc; padding: 8px 11px; width: 280px; max-width: calc(100vw - 16px); font: 13px/1.35 var(--serif); }
#gtip b { display: block; font: 600 14px var(--head); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
#toasts { position: fixed; bottom: 36px; left: 16px; z-index: 50; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; pointer-events: none; width: min(380px, calc(100vw - 32px)); }
.toast { background: #fbf8f1; color: #17120e; border: 1px solid #17120e; border-left: 5px solid #17120e; padding: 5px 10px; font: 13px var(--serif); box-shadow: 3px 3px 0 #17120e; max-width: 100%; animation: rise 0.3s var(--ease); }
.toast.pos { border-left-color: #0f6233; }
.toast.neg { border-left-color: #a8201a; }
.toast.out { animation: riseOut 0.3s ease-in forwards; }
@keyframes rise { from { transform: translateX(-24px); opacity: 0; } }
@keyframes riseOut { to { transform: translateX(-24px); opacity: 0; } }
.floater { position: fixed; z-index: 58; transform: translateX(-50%); font: 700 20px var(--head); pointer-events: none; animation: floatup 1.5s var(--ease) forwards; background: #fbf8f1; border: 1px solid #17120e; padding: 0 6px; }
.floater.pos { color: #0f6233; }
.floater.neg { color: #a8201a; }
@keyframes floatup { 0% { opacity: 0; margin-top: 14px; } 14% { opacity: 1; margin-top: 0; } 75% { opacity: 1; } 100% { opacity: 0; margin-top: 26px; } }
.stampmark { position: fixed; z-index: 59; top: 38%; left: 50%; pointer-events: none; padding: 8px 22px; border: 6px double currentColor; text-align: center; font-family: var(--head); text-transform: uppercase; animation: stamp 2.1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; background: rgba(251, 248, 241, 0.78); }
.stampmark.pos { color: #0f6233; }
.stampmark.neg { color: #a8201a; }
.stampmark.neu { color: #17120e; }
.stampmark small { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.stampmark b { display: block; font-size: 50px; font-weight: 700; line-height: 1.05; white-space: nowrap; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(2.2); } 10% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); } 80% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(1.04); } }
.shake { animation: shake 0.4s ease-out; }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 45% { transform: translate(4px, -2px); } 70% { transform: translate(-2px, 1px); } }

.start { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.start-box { width: 840px; max-width: 100%; }
.start .dateline { display: flex; justify-content: space-between; font: italic 13px var(--serif); border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin-bottom: 8px; }
.start-top { display: flex; align-items: center; justify-content: center; gap: 12px; }
.start-top .art { width: 130px; height: 110px; flex: none; }
.start h1 { font: 700 112px/0.95 var(--head); text-transform: uppercase; text-align: center; }
.start .rule { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); margin: 10px 0 16px; padding: 5px 0; text-align: center; font: italic 17px var(--serif); }
.bgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 14px 0 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.bgcard { background: none; border: 0; border-right: 1px solid var(--rule); padding: 12px; text-align: left; cursor: pointer; }
.bgcard:last-child { border-right: 0; }
.bgcard:hover { background: var(--paper-2); }
.bgcard.on { background: var(--ink); color: var(--paper-3); }
.bgcard b { display: block; font: 600 19px var(--head); text-transform: uppercase; }
.bgcard .num { display: block; margin: 2px 0 6px; font-weight: 700; }
.bgcard small { display: block; font: 13px/1.3 var(--serif); }

.dyn { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--paper-3); margin-bottom: 6px; }
.dyn div { padding: 3px 8px; border-right: 1px solid var(--rule); }
.dyn div:last-child { border-right: 0; }
.dyn small { display: block; font-size: 11px; color: var(--ink-2); }
.dyn b { font: 700 15px var(--mono); }
.inv .dyn { color: var(--ink); }
.chartbar { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.final { background: var(--gold-bg); color: var(--ink); font: 700 10px var(--mono); padding: 0 4px; margin-left: 4px; }
.teamstat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; font-size: 12px; }
.skilltree { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.br-head { display: flex; align-items: center; gap: 8px; }
.br-head .art { width: 72px; height: 60px; flex: none; }
.br-head b { font: 700 24px var(--head); text-transform: uppercase; }
.skill { position: relative; border: 2px solid var(--ink); background: var(--paper-3); padding: 7px 10px; margin-top: 16px; animation: none; }
.skill::before { content: ''; position: absolute; left: 50%; top: -18px; height: 16px; border-left: 2px solid var(--ink); }
.skill:first-of-type::before { display: none; }
.skill.locked { opacity: 0.55; border-style: dashed; }
.skill.owned { background: var(--ink); color: var(--paper-3); }
.skill.owned .muted { color: var(--rule); }
.skill b { font: 600 15px var(--head); text-transform: uppercase; display: block; }
.me-row td { background: var(--gold-bg) !important; font-weight: 700; }
.place { font: 700 18px var(--head); }

.pin { display: inline-block; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-3); padding: 2px; user-select: none; }
.pin:hover { color: var(--ink); }
.pin.on { color: var(--red); }
tr.sel .pin, .coin.sel .pin { color: var(--paper-3); }
.pinrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 70px 80px 62px 20px; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.pinrow:hover { background: var(--paper-2); }
.mypos { background: var(--gold-bg); border: 1px solid var(--ink); padding: 8px 10px; margin-bottom: 14px; }
.mypos .hd { font: 600 15px var(--head); text-transform: uppercase; margin-bottom: 4px; }
.mypos .ln { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.mypos .ln b { font-family: var(--mono); }
.mypos .acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mypos + .mypos { margin-top: -8px; }
.cal-box { padding: 4px 10px 8px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--head); text-transform: uppercase; margin-bottom: 3px; }
.cal-head button { background: none; border: 0; cursor: pointer; font-size: 16px; padding: 0 7px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-grid span { text-align: center; font-size: 10px; color: var(--ink-2); }
.cal-d { position: relative; height: 22px; background: var(--paper-3); border: 0; padding: 0; font: 11px var(--mono); cursor: pointer; }
.cal-d:hover { outline: 1px solid var(--ink); }
.cal-d.off { background: repeating-linear-gradient(45deg, var(--paper-3) 0 3px, var(--rule) 3px 4px); }
.cal-d.today { background: var(--ink); color: var(--paper-3); }
.cal-d.sel { outline: 2px solid var(--red); outline-offset: -1px; }
.cal-d i { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 5px; height: 3px; }
.cal-d i.pay { background: var(--red); }
.cal-d i.inc { background: var(--green); }
.cal-d i.info { background: var(--gold); }
.cal-ev { font-size: 12px; line-height: 1.25; max-height: 74px; overflow-y: auto; margin-top: 5px; }
.cal-ev div { padding: 1px 0; }
.shadycard .art { width: 80px; height: 66px; }
.modeline { border: 2px solid var(--ink); background: var(--paper-3); padding: 6px 10px; }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); margin-bottom: 12px; }
.modes button { background: none; border: 0; border-right: 1px solid var(--rule); padding: 6px 8px; text-align: left; cursor: pointer; font-size: 12px; }
.modes button:last-child { border-right: 0; }
.modes button b { display: block; font: 600 14px var(--head); text-transform: uppercase; }
.modes button.on { background: var(--ink); color: var(--paper-3); }

.tokenlog { max-height: 150px; overflow-y: auto; font-size: 12px; line-height: 1.3; }
.tokenlog div { padding: 2px 0; border-bottom: 1px dotted var(--rule); animation: slideDown 0.3s var(--ease); overflow: hidden; }
.tokenlog i { font: 11px var(--mono); color: var(--ink-3); font-style: normal; }

/* career */
.chapter { border-width: 2px; }
.chgoal { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--rule); }
.chgoal:last-of-type { border-bottom: 0; }
.chgoal b { font: 700 14px/1.25 var(--serif); }
.chgoal.done b { text-decoration: line-through; opacity: 0.6; }
.tick { flex: none; width: 18px; height: 18px; border: 2px solid var(--ink); text-align: center; line-height: 14px; font-weight: 700; margin-top: 1px; }
.chgoal.done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.clockchip { font: 600 12px var(--sans); text-transform: none; letter-spacing: 0; padding: 1px 7px; background: var(--accent-ink); color: var(--ink); }
.clockchip.down { background: #ffd21f; color: #17120e; }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rm { display: flex; gap: 8px; align-items: flex-start; padding: 7px; background: var(--paper-3); border: 1px solid var(--rule); }
.rm > span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); background: var(--paper-2); }
.rm.done > span { background: var(--green); color: #fff; }
.rm.now { border: 2px solid var(--accent); }
.rm.now > span { background: var(--accent); color: var(--accent-ink); }
.rm b { font: 600 14px var(--head); text-transform: uppercase; }
.need { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px dashed var(--ink); padding: 6px 8px; margin-top: 8px; }
.need b { font: 700 13px/1.2 var(--sans); }
.stars { color: #d98a00; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--rule); }
.person { display: flex; gap: 10px; padding: 8px; background: var(--paper-3); border: 1px solid var(--rule); margin-bottom: 6px; animation: slideDown 0.34s var(--ease); overflow: hidden; }
.ava.big { width: 52px; height: 52px; }
.person b { font-size: 14px; }
.person .role { font-weight: 700; color: var(--accent); }
.people { display: flex; gap: 3px; min-height: 26px; align-items: center; margin: 5px 0; flex-wrap: wrap; }
.seats { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.seats i { width: 14px; height: 14px; border: 1px solid var(--ink); background: #fff; }
.seats i.on { background: var(--accent); }
.teambar { background: var(--paper-3); border: 1px solid var(--ink); padding: 8px 10px; }
.effect { font: 700 11px var(--mono); margin-top: 2px; }
.issue { background: var(--paper-3); border: 2px solid var(--ink); padding: 8px 12px; }
.issue-top { display: flex; justify-content: space-between; font: 600 12px var(--head); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 3px double var(--ink); padding-bottom: 3px; margin-bottom: 5px; }
.issue h3 { font: 700 24px/1.1 var(--head); text-transform: uppercase; margin-bottom: 6px; }
.issue-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font: 13px/1.35 var(--serif); }
.modal.front { width: 560px; text-align: left; }
.front-top { display: flex; justify-content: space-between; font: 600 13px var(--head); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 3px double var(--ink); padding-bottom: 4px; margin-bottom: 10px; }
.modal.front h2 { font-size: 36px; }
.modal.front .art { float: right; width: 120px; height: 100px; margin: 0 0 6px 12px; }
.modal.front ul { clear: none; }
.opens { background: #ffd21f; padding: 5px 9px; color: #17120e; }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.trophy { border: 2px dashed var(--rule); padding: 8px 10px; opacity: 0.55; }
.trophy.got { border: 3px double var(--accent); opacity: 1; background: var(--paper-3); transform: rotate(-0.5deg); }
.trophy b { display: block; font: 600 15px var(--head); text-transform: uppercase; }
.trophy span { font-size: 12px; color: var(--ink-2); }
.assethead { font: 600 18px/1.1 var(--head); text-transform: uppercase; }
.assethead span { font: italic 14px var(--serif); text-transform: none; }
.assetprice { font: 700 30px/1.05 var(--head); }
.assetprice span { font-size: 17px; }
.msg-who { display: block; font-size: 11px; font-weight: 700; color: #6c5ce7; margin-bottom: 1px; }
.msg-go { display: block; margin-top: 4px; background: none; border: 0; padding: 0; color: #007aff; font: 600 13px -apple-system, 'Segoe UI', sans-serif; cursor: pointer; }
.typing { display: flex; gap: 3px; padding: 10px 12px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
.tape-run.still { animation: none; padding-left: 16px; }
.formline > span:last-child { white-space: nowrap; }
.herosub { font: 14px/1.3 var(--sans); }
.heroblock { padding: 10px 14px; }
.heroblock .hero { font-size: 58px; }
.chartbar { background: var(--paper-3); border: 1px solid var(--ink); border-top: 0; padding: 5px 6px 0; margin: 0; }
.chartbar + .cvwrap { border-top: 0; }

/* one newspaper voice: Playfair for headlines, PT Serif for everything else */
* { font-variant-numeric: lining-nums tabular-nums !important; }
.logo { font-size: 30px; font-weight: 900; letter-spacing: 0.02em; }
.hero, .heroblock .hero { font-size: 50px; font-weight: 900; }
.rubric h1 { font-size: 38px; font-weight: 900; }
.tabloid-title { font-size: 44px; font-weight: 900; }
.stat { font-size: 23px; font-weight: 800; }
.kpi.lead b { font-size: 22px; font-weight: 900; }
.kpi b { font-size: 15px; }
.assetprice { font-size: 26px; font-weight: 800; }
.assethead { font-size: 16px; font-weight: 800; }
.score { font-size: 25px; font-weight: 900; }
.watch-score { font-size: 38px; font-weight: 900; }
.nav-main > button { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; }
.nav-sub button { font-weight: 700; }
.panel > h2, .ph, .sheet > h2, .sheet > .ph { font-size: 14px; font-weight: 800; letter-spacing: 0.03em; }
.modal.front h2 { font-size: 30px; font-weight: 900; }
.modal h2 { font-weight: 900; font-size: 26px; }
.issue h3 { font-size: 21px; font-weight: 900; }
.start h1 { font-size: 84px; font-weight: 900; }
.btn.buy, .btn.sell { font-size: 15px; font-weight: 800; }
.stampmark b { font-weight: 900; font-size: 44px; }
.floater { font-weight: 900; font-size: 18px; }
.coin b, .memecard b { font-weight: 800; font-size: 15px; }
th { font-size: 12px; font-style: italic; }
.small { font-size: 12.5px; }
/* every sheet header is a proper band with its own padding */
.sheet > h2, .sheet > .ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-transform: uppercase; padding: 4px 10px; margin: 0 -10px 8px; }
.sheet > h2 .term:hover, .sheet > .ph .term:hover { background: var(--accent-ink); color: var(--accent); }
.sheet .panel > h2 { margin: 0 -10px 8px; padding: 4px 10px; }
/* match card */
.match.open { background: var(--paper-3); box-shadow: 0 0 0 1px var(--ink); padding-left: 8px; padding-right: 8px; }
.detail { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--ink); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 10px; }
.vs h4 { margin: 0 0 3px; font: 800 15px var(--head); display: flex; align-items: center; gap: 6px; }
.stline { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dotted var(--rule); padding: 2px 0; }
.logline { display: grid; grid-template-columns: 18px minmax(0, 1fr) 44px; gap: 6px; font-size: 12.5px; padding: 1px 0; }
.logline i { font-style: normal; font-weight: 700; text-align: center; color: #fff; background: var(--ink-3); }
.logline i.W { background: var(--green); }
.logline i.L { background: var(--red); }
.markets { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.mkgrid th, .mkgrid td { padding: 3px 6px; }
.oddbtn { background: var(--paper-3); border: 1px solid var(--ink); padding: 2px 8px; font-weight: 700; cursor: pointer; min-width: 52px; }
.oddbtn:hover:not(:disabled), .oddbtn.sel { background: var(--ink); color: var(--paper-3); }
.oddbtn:disabled { opacity: 0.4; cursor: not-allowed; }
.oddbtn.best { box-shadow: inset 0 0 0 2px var(--green); }
.bookrow { padding: 6px 0; border-bottom: 1px dotted var(--rule); }
.bookrow.main { background: var(--gold-bg); box-shadow: -10px 0 0 var(--gold-bg), 10px 0 0 var(--gold-bg); }
.leg { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; padding: 3px 0; border-bottom: 1px dotted var(--rule); }
@media (max-width: 760px) { .cpanel.ghost, .cpanel.past { display: none; } }
/* comic */
.comic { width: 860px; max-width: 100%; background: #fbf8f1; border: 3px solid #17120e; padding: 14px; box-shadow: 8px 8px 0 #17120e; }
.comic-top { display: flex; justify-content: space-between; font: 800 13px var(--head); text-transform: uppercase; border-bottom: 3px double #17120e; padding-bottom: 4px; margin-bottom: 10px; }
.comic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cpanel { position: relative; border: 3px solid #17120e; background: #fff; animation: cardIn 0.4s var(--ease); overflow: hidden; }
.cpanel.ghost { background: repeating-linear-gradient(45deg, #efe9dc 0 3px, #fbf8f1 3px 8px); min-height: 150px; animation: none; }
.cpanel svg { display: block; width: 100%; height: auto; }
.cpanel .cap { background: #17120e; color: #fbf8f1; font: italic 13px/1.25 var(--serif); padding: 4px 7px; }
.cpanel .say { position: absolute; left: 8px; top: 8px; max-width: 72%; background: #fff; border: 2px solid #17120e; border-radius: 12px; padding: 3px 8px; font: 700 13px/1.2 var(--serif); }
.cpanel .say::after { content: ''; position: absolute; left: 18px; bottom: -9px; width: 12px; height: 9px; background: #fff; border: 2px solid #17120e; border-top: 0; border-left: 0; transform: skewX(-30deg); }

@media (max-width: 1320px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .feed { display: none; }
  .kpis .opt { display: none; }
}
@media (max-width: 1040px) {
  .g2, .g2e, .g3, .gmarket, .gbets, .gcrypto, .skilltree, .modes { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-list { max-height: 320px; }
  .hero { font-size: 48px; }
  .navrank { display: none; }
  .roadmap, .issue-cols, .vs, .comic-grid { grid-template-columns: minmax(0, 1fr); }
  .watch { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .watch-side { border-left: 0; border-top: 1px solid var(--ink); }
}
@media (max-width: 720px) {
  .shell { height: auto; min-height: 100vh; grid-template: auto auto minmax(0, 1fr) 26px / minmax(0, 1fr); }
  .mast { flex-wrap: wrap; gap: 6px 10px; }
  .logo { font-size: 26px; }
  .clock { display: none; }
  .kpis { margin-left: 0; width: 100%; justify-content: space-between; }
  .main { overflow: visible; }
  .match { grid-template-columns: minmax(0, 1fr); }
  .bgs { grid-template-columns: minmax(0, 1fr); }
  .bgcard { border-right: 0; border-bottom: 1px solid var(--rule); }
  .start h1 { font-size: 58px; }
  .start-top .art { display: none; }
  .rubric .art { width: 64px; height: 54px; }
  .rubric h1, .tabloid-title { font-size: 30px; }
  .heroblock .art { display: none; }
  .phone { right: 0; bottom: 0; width: 100%; height: 92vh; border-radius: 40px 40px 0 0; }
  .ip-screen { border-radius: 32px 32px 0 0; }
  .stampmark b { font-size: 30px; }
  .watch-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .watch-score { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .tape-run { animation: none; }
}
