/* BagPerps · look A "Bag Tag" (DESIGN.md). Black ground, cool-white tags, tag green for longs and the action, red for
   shorts and losses only. Smooch Sans for headlines and codes, Host Grotesk for text and every figure, B612 Mono for tag
   labels and flaps. All three self-hosted, OFL 1.1 (licences beside the files). */
@font-face { font-family: "Smooch Sans"; src: url(/assets/fonts/SmoochSans-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Smooch Sans"; src: url(/assets/fonts/SmoochSans-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url(/assets/fonts/HostGrotesk-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url(/assets/fonts/HostGrotesk-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url(/assets/fonts/HostGrotesk-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url(/assets/fonts/HostGrotesk-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url(/assets/fonts/B612Mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url(/assets/fonts/B612Mono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #0a0b0b; --surface: #121414; --surface-2: #191c1b; --board: #050606;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #f1f3f2; --ink-2: #a3aaa7; --muted: #6c7471;
  --tag: #eef1ef; --tag-ink: #0b0c0c; --tag-dim: #5d6461;
  --go: #2fe07f; --go-ink: #04140a; --short: #ff5b4f;
  --display: "Smooch Sans", "Arial Narrow", sans-serif; --text: "Host Grotesk", system-ui, sans-serif; --mono: "B612 Mono", ui-monospace, monospace;
  --wrap: 1320px; --gut: 32px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up { color: var(--go); } .down { color: var(--short); }
.r { text-align: right; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.link { color: var(--go); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.d { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.012em; line-height: .86; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: rgba(255,255,255,.3); }
.btn.g { background: var(--go); color: var(--go-ink); border-color: var(--go); }
.btn.g:hover { background: #45e98e; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.wide { width: 100%; margin-top: 18px; }

/* header */
.top { border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.nav { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .mk { width: 30px; height: 30px; }
.brand .wm { height: 22px; width: auto; }
.links { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.sp { flex: 1; }
.acts { display: flex; align-items: center; gap: 10px; position: relative; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 6px; background: none; }
.ca i { font-style: normal; color: var(--ink); }
.ca.on { border-style: solid; border-color: var(--go); }
/* launch day: the full contract address above the header, on every page and every width */
.cabar { background: var(--go); color: var(--go-ink); font-size: 13px; }
.cabar .wrap { display: flex; align-items: center; gap: 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.cabar b { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: .01em; }
.cabar code { font-family: var(--mono); font-size: 12px; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.cabar .cabtn { display: flex; gap: 8px; margin-left: auto; flex: none; }
.cabar button, .cabar a { height: 28px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(4,20,10,.35); background: transparent; color: var(--go-ink); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; }
.cabar a { background: var(--go-ink); color: var(--go); border-color: var(--go-ink); }
/* the house coin, at the foot of the home page */
.sec.house { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; padding: 28px 32px; margin-top: 56px; margin-bottom: 56px; }
.house h2 { font-size: 52px; margin-bottom: 10px; }
.house p { color: var(--ink-2); line-height: 1.55; max-width: 46ch; }
.house p.fine { margin-top: 8px; color: var(--muted); }
.house .addr { display: grid; gap: 12px; }
.house code { font-family: var(--mono); font-size: 13px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 8px; overflow-wrap: anywhere; color: var(--ink); }
.house .abtn { display: flex; gap: 10px; flex-wrap: wrap; }
.menu { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: none; }
.menu span, .menu span::before, .menu span::after { display: block; width: 16px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.menu span::before { position: absolute; top: -5px; } .menu span::after { position: absolute; top: 5px; }
.pick { position: absolute; right: 0; top: 48px; width: 280px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: grid; gap: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.pick p { font-size: 13px; color: var(--ink-2); line-height: 1.45; padding: 2px 4px 6px; }
.pick button, .pick a { display: flex; justify-content: space-between; align-items: center; text-align: left; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }
.pick small { color: var(--muted); font-weight: 500; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 48px 0 28px; }
.kick { font-family: var(--mono); font-size: 12px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.kick .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--go); }
.kick .dot.off { background: var(--muted); }
.hero h1 { font-size: clamp(64px, 9.4vw, 132px); }
.hero h1 em { font-style: normal; color: var(--go); }
.lede { margin-top: 26px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.lede b { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.note { font-size: 13px; color: var(--muted); max-width: 240px; line-height: 1.45; }

/* the hanging tag */
.tagstage { position: relative; height: 640px; display: flex; justify-content: center; }
.tagstage .string { position: absolute; top: -48px; left: 50%; width: 2px; height: 124px; background: linear-gradient(var(--ink-2), var(--muted)); transform: translateX(-50%); }
.swing { position: absolute; top: 58px; transform-origin: 50% 2%; transform: rotate(-5deg); }
.swing.go { animation: swing 1.4s cubic-bezier(.3,.6,.4,1) both; }
@keyframes swing { 0% { transform: rotate(9deg); } 30% { transform: rotate(-9deg); } 55% { transform: rotate(-2deg); } 78% { transform: rotate(-6.2deg); } 100% { transform: rotate(-5deg); } }
.tagsvg { width: 290px; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); }
.tagcap { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* sections */
.sec { padding: 34px 0 20px; border-top: 1px solid var(--line); }
.sechead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.sechead h2 { font-family: var(--display); font-weight: 800; font-size: 46px; text-transform: uppercase; letter-spacing: -.005em; line-height: 1; }
.sechead p { color: var(--ink-2); font-size: 15px; }
.sechead .right { margin-left: auto; }

/* Departures */
.bhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.bsearch input { height: 38px; width: 260px; max-width: 100%; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 14px var(--text); }
.board { background: var(--board); border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px 10px; }
.brow { display: grid; grid-template-columns: minmax(150px, 210px) 1fr 140px 100px 110px 130px; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rows .brow:last-child { border-bottom: 0; }
.brow.h { min-height: 34px; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.brow.on { background: rgba(47,224,127,.06); margin: 0 -16px; padding: 0 16px; }
.flaps { display: flex; gap: 3px; }
.flap { width: 22px; height: 32px; background: #151817; border-radius: 3px; display: grid; place-items: center; font: 700 17px var(--mono); color: var(--ink); position: relative; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--board); }
.cls { font-size: 14px; color: var(--ink-2); }
.px, .chg, .lev { font-variant-numeric: tabular-nums; }
.px { font-size: 17px; font-weight: 600; }
.px.flip { animation: flip .45s ease-out; }
@keyframes flip { 0% { transform: rotateX(80deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.chg { font-size: 15px; font-weight: 500; }
.lev { font-size: 14px; color: var(--ink-2); }
.act { justify-self: end; }
.pickbtn { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2); background: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pickbtn:hover { border-color: var(--go); }
.pickbtn[aria-pressed="true"] { background: var(--go); color: var(--go-ink); border-color: var(--go); }
.bnote { padding: 18px 0; color: var(--ink-2); font-size: 15px; }
.bfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 2px 0; }
.bstat { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bstat.bad { color: var(--short); }

/* Baggage claim */
.claim { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.belt { position: relative; min-height: 220px; border-radius: 12px; background: repeating-linear-gradient(90deg, #141716 0 58px, #0f1211 58px 60px); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: 24px; }
.belt .empty { font-size: 17px; color: var(--ink-2); text-align: center; line-height: 1.5; background: var(--ground); padding: 16px 22px; border-radius: 10px; border: 1px solid var(--line); max-width: 420px; }
.belt .empty b { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.toplist { list-style: none; }
.toplist li { display: grid; grid-template-columns: 22px 36px 1fr auto 74px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.toplist li:last-child { border-bottom: 0; }
.toplist .n { font: 12px var(--mono); color: var(--muted); }
.toplist img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.toplist .nm { display: flex; flex-direction: column; min-width: 0; }
.toplist .nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toplist .nm small { font-size: 12px; color: var(--muted); }
.toplist .mc { font-weight: 600; font-size: 14px; }
.toplist .ch { font-size: 13px; text-align: right; }
.panel .fine { margin-top: 10px; }

/* coin cards: small tags on the belt */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; width: 100%; }
.tcard { display: block; transition: transform .2s; }
.tcard:hover { transform: rotate(-2deg) translateY(-3px); }
.tcard .tagsvg { width: 100%; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 24px; }
.step .n { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .8; color: var(--go); }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 32px; text-transform: uppercase; margin: 10px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 26px; padding-bottom: 36px; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot a:hover { color: var(--ink); }

/* page heads */
.phead { padding: 40px 0 24px; }
.phead h1 { font-size: clamp(54px, 7vw, 96px); }
.phead p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 680px; line-height: 1.55; }
.back { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.back::before { content: "← "; }

/* launch */
.lgrid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.card > legend, .card > h2 { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; padding: 0 4px; }
fieldset.card { border: 1px solid var(--line); }
.sub { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 4px 0 14px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--ground); color: var(--ink); font: 15px var(--text); }
.field textarea { resize: vertical; min-height: 84px; }
.field.bad input, .field.bad textarea, .field.bad .drop { border-color: var(--short); }
.ferr { font-size: 13px; color: var(--short); min-height: 0; }
.ferr:empty { display: none; }
.opt { font-weight: 400; color: var(--muted); }
.prefix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--ground); }
.prefix span { padding-left: 12px; color: var(--muted); }
.prefix input { border: 0; background: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px dashed var(--line-2); border-radius: 8px; cursor: pointer; }
.drop input { display: none; }
.drop .ph { width: 52px; height: 52px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; color: var(--muted); overflow: hidden; flex: none; }
.drop .ph img { width: 100%; height: 100%; object-fit: cover; }
.drop strong { font-size: 14px; display: block; }
.drop small { font-size: 12px; color: var(--muted); }
.side { justify-self: start; display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.side button { height: 42px; padding: 0 22px; background: none; border: 0; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.side button[aria-checked="true"][data-v="long"] { background: var(--go); color: var(--go-ink); }
.side button[aria-checked="true"][data-v="short"] { background: var(--short); color: #1a0503; }
.levs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.levs button { height: 46px; border-radius: 8px; border: 1px solid var(--line-2); background: none; font: 800 22px var(--display); color: var(--ink-2); }
.levs button[aria-checked="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.levs button[disabled] { opacity: .3; cursor: not-allowed; }
.kv { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kv dt { color: var(--ink-2); } .kv dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.levnote { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.lside { position: sticky; top: 20px; }
.lside .tagwrap { display: flex; justify-content: center; padding: 10px 0 18px; }
.lside .tagsvg { width: 250px; }
.fmsg { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.fmsg.err { color: var(--short); }
.honest { margin-top: 14px; font-size: 14px; color: var(--ink-2); border-left: 3px solid var(--go); padding: 4px 0 4px 12px; line-height: 1.5; }
.lsteps { list-style: none; display: grid; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.lsteps li::before { content: "○ "; } .lsteps li.done { color: var(--ink-2); } .lsteps li.done::before { content: "● "; color: var(--go); }
.lsteps li.now { color: var(--ink); font-weight: 600; } .lsteps li.now::before { content: "◐ "; color: var(--go); }
.pp .board { max-height: 420px; overflow: auto; }
.pp .brow { grid-template-columns: minmax(130px, 180px) 1fr 110px 80px 90px 76px; }

/* coin page */
.coinhead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 30px 0 18px; }
.coinhead img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.coinhead h1 { font-size: clamp(44px, 6vw, 72px); }
.coinhead p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.cgrid { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.cgrid .tagwrap .tagsvg { width: 100%; }
.chart { position: relative; height: 300px; }
.chart svg { width: 100%; height: 100%; }
.chart .tagl { position: absolute; right: 8px; transform: translateY(-50%); font: 600 12px var(--text); padding: 3px 8px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
.chart .tagl.liq { color: var(--short); } .chart .tagl.en { right: auto; left: 8px; } .chart .tagl.mk { background: var(--ink); color: var(--ground); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }
.legend i.le { background: var(--ink-2); } .legend i.ll { background: var(--short); }
.sec.gap { margin-top: 22px; }
.sechead h2.h3 { font-size: 32px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.facts dt { font-size: 12px; color: var(--muted); } .facts dd { font-size: 19px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.path { list-style: none; }
.path li { display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.path .k { font: 700 12px var(--mono); text-transform: uppercase; color: var(--ink-2); }
.path .k.liquidated { color: var(--short); } .path .k.opened, .path .k.added, .path .k.bought { color: var(--go); }
.path time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.addrs { display: grid; gap: 10px; }
.addrs div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.addrs dt { color: var(--ink-2); } .addrs dd { font-family: var(--mono); font-size: 12px; word-break: break-all; }

/* how it works */
.rules { list-style: none; display: grid; gap: 10px; }
.rules li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.rules li b { color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 760px; }

/* 404 */
.d.huge { font-size: clamp(64px, 10vw, 140px); }
.lost { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; padding: 60px 0; overflow-x: clip; }
.lost .tagsvg { width: 100%; transform: rotate(8deg); }

/* phones and narrow */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .tagstage { height: 560px; }
  .claim { grid-template-columns: 1fr; }
  .lgrid { grid-template-columns: 1fr; }
  .lside { position: static; }
  .cgrid { grid-template-columns: 1fr; }
  .cgrid .tagwrap { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 860px) {
  :root { --gut: 16px; }
  .links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gut); }
  .links.open { display: flex; }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu { display: block; }
  .acts .lbtn { display: none; }
  .nav { gap: 12px; }
  .brow { grid-template-columns: 1fr auto; grid-template-areas: "code px" "cls chg" "lev act"; gap: 4px 12px; padding: 10px 0; }
  .brow.h { display: none; }
  .brow .code { grid-area: code; } .brow .px { grid-area: px; } .brow .cls { grid-area: cls; } .brow .chg { grid-area: chg; } .brow .lev { grid-area: lev; text-align: left; } .brow .act { grid-area: act; }
  .pp .brow { grid-template-columns: 1fr auto; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .sechead h2 { font-size: 38px; }
  .lost { grid-template-columns: 1fr; }
  .lost .tagsvg { max-width: 240px; margin: 0 auto; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 520px) {
  .hero { padding-top: 28px; }
  .lede { font-size: 17px; }
  .tagstage { height: 548px; }
  .tagsvg { width: 240px; }
  .ca { display: none; }
  .cabar .wrap { flex-wrap: wrap; gap: 6px 12px; }
  .cabar code { order: 3; flex: 1 0 100%; font-size: 11px; }
  .sec.house { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .house h2 { font-size: 42px; }
  .flap { width: 18px; height: 28px; font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .toplist li { grid-template-columns: 20px 32px 1fr auto; }
  .toplist .ch { display: none; }
  .path li { grid-template-columns: 1fr auto; }
  .path li > span:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .bsearch input { width: 100%; }
  .bsearch { width: 100%; }
}
@media (max-width: 360px) {
  .brand .wm { height: 18px; }
  .acts .btn.sm { padding: 0 12px; }
  .flap { width: 16px; height: 26px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .swing.go, .px.flip { animation: none; }
  .tcard { transition: none; }
}
