/* Borro on Arbitrum One. The same brand as borro.markets: neutral white surfaces, ink type, hairline structure, and
   the logo's sunset used sparingly, as one thin rule and the bars that carry data. */

:root {
  --canvas: #FBFBFA;
  --surface: #FFFFFF;
  --sunk: #F4F4F2;
  --ink: #0D0D0F;
  --text-2: #4A4B52;
  --text-3: #6E6F76;
  --line: #E7E7E3;
  --line-2: #D8D8D3;
  --gold: #EDB25A;
  --orange: #DC7440;
  --red: #C4453A;
  --maroon: #682936;
  --accent: #B5481B;
  --live: #13805A;
  --amber: #A66A00;
  --sunset: linear-gradient(90deg, var(--gold) 0%, var(--orange) 38%, var(--red) 70%, var(--maroon) 100%);
  --display: 'Archivo', 'Archivo Fallback', system-ui, sans-serif;
  --ui: 'Instrument Sans', 'Instrument Sans Fallback', system-ui, sans-serif;
  --r1: 8px;
  --r2: 12px;
  --r3: 16px;
  --shadow: 0 1px 2px rgba(13, 13, 15, .04), 0 12px 32px -16px rgba(13, 13, 15, .18);
  --gutter: clamp(16px, 3vw, 40px);
}

@font-face { font-family: 'Instrument Sans Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400 500; size-adjust: 100.5%; ascent-override: 96.5%; descent-override: 24.9%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 800; size-adjust: 97.8%; ascent-override: 99.2%; descent-override: 25.6%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 500 900; size-adjust: 98.6%; ascent-override: 89.2%; descent-override: 21.3%; line-gap-override: 0%; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
h1, h2, h3, p, dl, dd, dt, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 1500px; margin-inline: auto; }
.rule { height: 3px; background: var(--sunset); flex: none; }

/* Buttons: ink for the one thing to do, outline for the rest. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: #26262B; border-color: #26262B; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); background: transparent; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn.block { width: 100%; height: 50px; font-size: 16px; }
.btn:disabled { background: var(--sunk); border-color: var(--line); color: var(--text-3); cursor: not-allowed; }
.btn.warn { border-color: var(--accent); color: var(--accent); }
.x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1; color: var(--text-3); cursor: pointer; }
.x:hover { background: var(--sunk); color: var(--ink); }
.fine { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.fine a { color: var(--text-2); }

/* ------------------------------------------------------------------ header */
.head { position: sticky; top: 0; z-index: 20; flex: none; background: rgba(251, 251, 250, .9); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand > img { height: 22px; width: auto; }
.chain { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.chain img { width: 15px; height: 15px; }
.nav { display: flex; gap: 2px; min-width: 0; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); font-weight: 600; }
.nav .out { display: none; }
.head-end { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: none; }
.out { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.out::after { content: '\2197'; margin-left: 4px; font-size: 12px; color: var(--text-3); }
.out:hover { color: var(--ink); }

/* ------------------------------------------------------------------ banners */
#banners { flex: none; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--surface); font-size: 14px; }
.banner p { flex: 1 1 280px; }
.banner.warn { border-color: #E9C98E; background: #FFF9EC; }
.banner.bad { border-color: #E6B5AE; background: #FEF4F2; }

/* ------------------------------------------------------------------ price strip */
.main { flex: 1 0 auto; padding: 12px 0 20px; }
.strip { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; min-height: 58px; padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); }
.strip:empty { display: none; }
.strip-who { display: flex; align-items: center; gap: 12px; }
.strip-who b { display: block; font-weight: 650; line-height: 1.25; }
.strip-who span { display: block; font-size: 13px; color: var(--text-3); }
.strip-px { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.strip-px > b { font: 700 26px/1.1 var(--display); font-stretch: 104%; letter-spacing: -.02em; }
.age { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.age em { font-style: normal; }
.age i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.age.fresh i { background: var(--live); box-shadow: 0 0 0 4px rgba(19, 128, 90, .14); }
.age.stale i { background: var(--gold); box-shadow: 0 0 0 4px rgba(237, 178, 90, .2); }
.age.stopped i { background: var(--red); box-shadow: 0 0 0 4px rgba(196, 69, 58, .16); }
.age.stopped { color: var(--red); font-weight: 600; }
.strip-src { margin-left: auto; font-size: 13px; color: var(--text-3); text-decoration: none; white-space: nowrap; }
.strip-src:hover { color: var(--ink); text-decoration: underline; }
.pills { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--sunk); }
.pills button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.pills button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

.logo { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.none::after { content: attr(data-fallback); font: 700 13px var(--display); color: var(--text-2); }

/* ------------------------------------------------------------------ views */
.view { margin-top: 12px; }
.loading { padding: 80px 0; text-align: center; color: var(--text-3); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); }
.intro h1 { font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--display); font-stretch: 106%; letter-spacing: -.03em; }
.intro p { margin-top: 8px; max-width: 62em; color: var(--text-2); }

.v-lend, .v-earn, .v-borrow, .v-short { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 20px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.col > .intro { padding: 6px 2px 2px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 18px 20px 16px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.kpi b { display: block; margin-top: 6px; font: 700 28px/1.1 var(--display); font-stretch: 104%; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi small { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); }

.pos { padding: 18px 20px 8px; }
.pos h2, .sheet h2 { font: 700 18px/1.2 var(--display); font-stretch: 104%; letter-spacing: -.01em; }
.rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows > div:first-child { border-top: 0; }
.rows dt { color: var(--text-2); }
.rows dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.rows a { color: var(--accent); }
.pos .rows { margin-top: 6px; }

.health { margin-top: 14px; padding: 14px 16px; border-radius: var(--r2); background: var(--sunk); }
.health > div { display: flex; align-items: baseline; justify-content: space-between; }
.health span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.health b { font: 700 24px/1 var(--display); font-stretch: 104%; }
.meter { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: #E4E4DF; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--live); transition: width .3s; }
.health.warn .meter i { background: var(--gold); }
.health.bad .meter i { background: var(--red); }
.health.bad b { color: var(--red); }
.health small { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }

/* The ticket: what the visitor does. */
.ticket { padding: 16px 20px 16px; box-shadow: var(--shadow); border-top: 3px solid transparent; border-image: none; position: relative; overflow: hidden; }
.ticket::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sunset); }
.side { position: sticky; top: 74px; }
.seg { display: grid; gap: 4px; padding: 4px; background: var(--sunk); border-radius: 10px; }
.seg.n2 { grid-template-columns: repeat(2, 1fr); }
.seg.n3 { grid-template-columns: repeat(3, 1fr); }
.seg.n4 { grid-template-columns: repeat(4, 1fr); }
.seg button { height: 36px; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(13, 13, 15, .08), 0 0 0 1px var(--line); }
.field { margin-top: 12px; }
.field label, .opt > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.input { display: flex; align-items: center; gap: 10px; margin-top: 6px; height: 50px; padding: 0 10px 0 16px; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 13, 15, .06); }
.input input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font: 600 20px var(--ui); color: var(--ink); }
.input input::placeholder { color: #B9B9B4; }
.unit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.unit .logo { width: 22px; height: 22px; border: 0; }
.max { height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.max:hover { border-color: var(--ink); color: var(--ink); }
.hint { min-height: 19px; margin-top: 5px; font-size: 13px; color: var(--text-3); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.chips { display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--sunk); }
.chips button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chips button:disabled { opacity: .4; cursor: not-allowed; }
.chips.two { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.chips.two button { height: 32px; }
.ticket .rows { margin-top: 12px; padding: 2px 14px; border-radius: var(--r2); background: var(--sunk); }
.ticket .rows > div { padding: 6px 0; font-size: 14px; border-color: #E4E4DF; }
.ticket .rows:empty { display: none; }
.ticket .btn.block { margin-top: 12px; height: 48px; }
.said { min-height: 19px; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.said.why { color: var(--accent); }

/* ------------------------------------------------------------------ markets */
.v-markets, .v-positions { display: grid; gap: 16px; }
.v-markets .intro, .v-positions .intro { padding: 6px 2px 0; }
.table-card { overflow: hidden; }
table.mk { width: 100%; border-collapse: collapse; }
.mk thead th { padding: 12px 20px; text-align: right; font-size: 13px; font-weight: 600; color: var(--text-3); background: #FCFCFB; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mk td, .mk tbody th { padding: 14px 20px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 400; vertical-align: middle; }
.mk tbody tr:last-child td, .mk tbody tr:last-child th { border-bottom: 0; }
.mk thead th:first-child, .mk tbody th { text-align: left; }
.mk td b { display: block; font-weight: 650; font-size: 16px; }
.mk td small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3); }
.mk td b.apr { font: 700 20px/1.2 var(--display); font-stretch: 104%; color: var(--live); }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-weight: 650; font-size: 16px; color: var(--ink); }
.who small { display: block; font-size: 13px; color: var(--text-3); }
.bar { display: block; width: 110px; height: 5px; margin: 8px 0 0 auto; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--sunset); background-size: 110px 100%; transition: width .3s; }
.acts { width: 1%; }
.mk td.acts { display: table-cell; }
.acts .btn + .btn { margin-left: 8px; }

.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.way { display: flex; flex-direction: column; padding: 18px 20px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.way:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.way small { font-size: 13px; font-weight: 600; color: var(--text-2); }
.way strong { margin: 4px 0 14px; font: 700 30px/1.1 var(--display); font-stretch: 104%; letter-spacing: -.02em; }
.way b { font: 700 18px/1.2 var(--display); font-stretch: 104%; letter-spacing: -.01em; }
.way p { margin: 8px 0 14px; font-size: 14px; color: var(--text-2); }
.way span { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.way span::after { content: ' \2192'; }

.empty { display: grid; justify-items: start; gap: 10px; padding: 28px 24px; }
.empty b { font: 700 20px/1.2 var(--display); font-stretch: 104%; }
.empty p { color: var(--text-2); }
.wallet-line { padding: 0 2px; }
#posBody { display: grid; gap: 14px; }

/* ------------------------------------------------------------------ footer */
.foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 0 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.foot a { margin-left: 18px; color: var(--text-2); text-decoration: none; }
.foot p:last-child a:first-child { margin-left: 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.noscript { padding: 24px 0; }

/* ------------------------------------------------------------------ activity */
.activity { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(400px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r3); background: var(--surface); box-shadow: 0 2px 4px rgba(13, 13, 15, .06), 0 24px 48px -16px rgba(13, 13, 15, .28); }
.act-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.act-head b { font: 700 16px/1.25 var(--display); font-stretch: 104%; }
.act-head .x { margin: -6px -8px -6px 0; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { margin-top: 10px; }
.step { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.step:first-child { border-top: 0; }
.step i { width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; border: 2px solid var(--line-2); }
.step em { font-style: normal; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.step em a { color: var(--accent); }
.step.checking i, .step.wallet i, .step.pending i { border-color: var(--gold); background: var(--gold); animation: pulse 1s ease-in-out infinite; }
.step.wallet em { color: var(--ink); font-weight: 600; }
.step.done i { border-color: var(--live); background: var(--live); }
.step.skipped i { border-color: var(--line-2); background: var(--line-2); }
.step.failed i { border-color: var(--red); background: var(--red); }
.step.failed em { color: var(--red); font-weight: 600; }
@keyframes pulse { 50% { opacity: .35; } }
.act-note { margin-top: 10px; padding: 10px 12px; border-radius: var(--r1); background: #EEF7F2; color: #0E5E43; font-size: 14px; }
.act-note.bad { background: #FEF4F2; color: #8F2A21; }
.activity:not(.good):not(.bad) .act-note { background: var(--sunk); color: var(--text-2); }

/* ------------------------------------------------------------------ dialogs */
.sheet { width: min(440px, calc(100vw - 32px)); padding: 22px 24px 24px; border: 1px solid var(--line-2); border-radius: var(--r3); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px -16px rgba(13, 13, 15, .4); }
.sheet::backdrop { background: rgba(13, 13, 15, .42); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head .x { margin: -6px -8px -6px 0; }
.picker-list { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--surface); text-align: left; cursor: pointer; }
.pick:hover { border-color: var(--ink); }
.pick img, .pick-blank { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.pick-blank { background: var(--sunk); border: 1px solid var(--line); }
.pick b { font-weight: 600; font-size: 16px; }
.sheet .fine { margin-top: 14px; }
.sheet .btn.block { margin-top: 14px; height: 46px; }
.note-list { display: grid; gap: 12px; }
.note-list li { position: relative; padding-left: 18px; color: var(--text-2); }
.note-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.lost { display: grid; justify-items: start; gap: 20px; padding: 80px 0; }
.lost img { height: 28px; width: auto; }
.lost h1 { font: 700 32px/1.1 var(--display); font-stretch: 106%; letter-spacing: -.03em; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1240px) {
  .head-end .wide { display: none; }
  .nav .out { display: inline; }
}
@media (max-width: 1080px) {
  .head-in { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 10px; }
  .brand { height: 40px; }
  .head-end { height: 40px; }
  .nav { order: 3; flex: 1 0 100%; margin: 6px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .side { position: static; }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .v-lend, .v-earn, .v-borrow, .v-short { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* One column: the numbers, then the ticket, then the position. */
  .col:not(.side) { display: contents; }
  .col > .intro { order: 1; }
  .col > .kpis { order: 2; }
  .side { order: 3; }
  .col > .pos { order: 4; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi { padding: 14px 16px 12px; }
  .kpi b { font-size: 22px; }

  /* The tables become one card a market. */
  .mk thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mk, .mk tbody { display: block; }
  .mk tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px; border-bottom: 1px solid var(--line); }
  .mk tbody tr:last-child { border-bottom: 0; }
  .mk td, .mk tbody th { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .mk tbody th, .mk td.acts { grid-column: 1 / -1; }
  .mk td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--text-3); }
  .mk:not(.pos-table) td small { display: none; }
  .mk td b.apr { font-size: 18px; }
  .bar { margin: 6px 0 0; }
  .mk td.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: auto; }
  .acts .btn + .btn { margin-left: 0; }
  .pos-table td.acts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .head-in { gap: 0 8px; }
  .brand { gap: 8px; }
  .brand > img { height: 17px; }
  .chain { height: 24px; gap: 5px; padding: 0 8px 0 6px; font-size: 12px; }
  .chain img { width: 13px; height: 13px; }
  .head-end .btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
  .main { padding-top: 12px; }
  .strip { padding: 10px 14px; gap: 8px 12px; }
  .strip-who { gap: 10px; min-width: 0; }
  .strip-px { margin-left: auto; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
  .strip-px > b { font-size: 22px; }
  .age { font-size: 13px; }
  .strip-src { display: none; }
  #pokeBtn { flex: 1 0 100%; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ticket { padding: 16px 16px 18px; }
  .seg button { font-size: 13px; }
  .activity { right: 16px; bottom: 16px; }
  .foot { display: block; }
  .foot p + p { margin-top: 8px; }
  .intro p { font-size: 14px; }
}
