/* Customs launchpad skin. Tokens are measured from meme.cooking (dark board, green ticker, yellow primary). */
:root {
  --canvas: #222222; --card: #1f2937; --pad: #4b535f; --slip: #172030; --line: #374151;
  --text: #ffffff; --soft: #d1d5db; --muted: #9ca3af;
  --green: #31c891; --mint: #72e3b6; --yellow: #f6ef00; --ink: #000000; --red: #fb7185;
  --sans: "Schibsted", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--canvas); color-scheme: dark; }
body { font: 400 15px/1.45 var(--sans); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
button:disabled { cursor: not-allowed; opacity: .55; }
ul, ol { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--mono); }
.tk { color: var(--green); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 850; font-size: 25px; letter-spacing: -.04em; }
.brand span { font: 400 12px var(--mono); letter-spacing: 0; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 6px 12px; font-weight: 550; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--ink); background: var(--mint); }
.nav a.cta { color: var(--ink); background: var(--yellow); font-weight: 700; margin-left: 6px; }
.search { margin-left: auto; }
.search input { width: 300px; height: 36px; padding: 0 12px; font: 400 13px var(--mono); background: var(--canvas); border: 1px solid var(--line); color: var(--text); }
.search input::placeholder { color: var(--muted); }
.connect { height: 36px; padding: 0 16px; background: var(--green); color: var(--ink); font-weight: 700; }
.tabs { display: none; }

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.strip div { padding: 12px 24px 11px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.strip div:last-child { border: 0; }
.strip .lead b { color: var(--yellow); }
.strip b { font-size: 26px; font-weight: 850; letter-spacing: -.03em; white-space: nowrap; }
.strip span { font-size: 13px; line-height: 1.3; color: var(--muted); }
@media (min-width: 701px) {
  .strip { grid-template-columns: 1.9fr 1fr 1fr 1fr; }
  .strip .lead b { font-size: 44px; line-height: 1; }
  .strip .lead span { font-size: 15px; color: var(--soft); max-width: 30ch; }
  .strip div:not(.lead) b { font-size: 20px; color: var(--soft); font-weight: 750; }
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 14px 24px 40px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 30px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--card); }
.chip span { font: 400 12px var(--mono); margin-left: 4px; }
.chip.on { background: var(--mint); color: var(--ink); }
.asof { font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }
.mobile-search { display: none; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--card); display: flex; flex-direction: column; cursor: pointer; transition: transform .12s ease; min-width: 0; }
.card:hover { transform: translateY(-2px); }
.card-main { display: flex; gap: 12px; padding: 12px 12px 0; }
.pic { width: 92px; height: 92px; object-fit: cover; flex: none; background: var(--pad); display: block; }
.pic.fallback { background: hsl(var(--h, 200) 28% 20%); }
.id { min-width: 0; }
.badge { display: inline-block; font: 700 12px/1 var(--sans); padding: 4px 7px; color: var(--ink); }
.badge.cooked { background: var(--green); }
.badge.cooking { background: var(--yellow); }
.badge.spoiled { background: var(--red); }
.status { font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.status a { color: var(--soft); }
.card h3 { font-size: 21px; line-height: 1.1; font-weight: 850; letter-spacing: -.025em; margin: 5px 0 3px; overflow-wrap: break-word; }
.card h3 .tk { margin-right: 2px; }
.by { font: 400 13px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.by b { color: var(--soft); font-weight: 400; }
.raise { padding: 10px 12px; }
.raise p { font-size: 13px; color: var(--muted); }
.raise p b { color: var(--text); font: 600 14px var(--mono); }
.raise .mini { font: 400 12px var(--mono); margin-top: 6px; color: var(--muted); }
.meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; height: 10px; margin-top: 6px; }
.meter b { background: var(--green); }
.meter s { background: var(--slip); }

.slip { margin-top: auto; padding: 10px 12px 12px; background: var(--slip); border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.slip p { font-size: 13px; line-height: 1.4; color: var(--soft); }
.slip p.fact { color: var(--soft); }
.slip[data-kind="funded"] p.fact { color: var(--text); font-weight: 500; }
.slip[data-kind="funded"] { background: color-mix(in srgb, var(--red) 10%, var(--slip)); }
.slip p b { font-weight: 600; color: var(--text); }
.slip .verdict { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.slip .verdict p { min-width: 0; }
.slip[data-kind="clean"] .verdict p { color: var(--green); }
.slip[data-kind="funded"] { border-left-color: var(--red); }
.slip[data-kind="funded"] .verdict p { color: var(--red); }
.slip[data-kind="funded"] .verdict p a { color: var(--red); }
.slip[data-kind="unread"] .verdict p { color: var(--muted); }
.ghost { flex: none; height: 32px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 13px; color: var(--text); }
.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.linkbtn { text-decoration: underline; text-underline-offset: 2px; font-size: inherit; color: inherit; }
.tx { font: 400 12px var(--mono); color: var(--soft); white-space: nowrap; text-underline-offset: 2px; }
.tx i { font-style: normal; font-size: 12px; margin-left: 1px; }

/* the bonded card spans two columns, slip sits to the right */
.card.bonded { grid-column: span 2; flex-direction: row; cursor: default; }
.card.bonded:hover { transform: none; }
.card.bonded .card-main { flex: 1; flex-direction: column; padding: 14px; min-width: 0; }
.card.bonded .pic { width: 120px; height: 120px; }
.card.bonded h3 { font-size: 30px; margin: 6px 0; }
.card.bonded .slip { width: 320px; flex: none; margin: 0; background: var(--yellow); color: var(--ink); padding: 14px 16px; border: 0; display: flex; flex-direction: column; }
.card.bonded .slip dl { display: grid; gap: 8px; }
.card.bonded .slip dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.card.bonded .slip dd { font: 800 20px var(--sans); letter-spacing: -.02em; }
.card.bonded .slip dd.sub { font: 400 12px var(--sans); letter-spacing: 0; color: #3a3a00; margin-top: 1px; }
.card.bonded .slip dl div { display: block; }
.huntbtn { width: 100%; height: 48px; margin-top: 14px; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 17px; }
.huntbtn:hover:not(:disabled) { background: #1a1a1a; }
.card.bonded .slip p.last { margin-top: 10px; font-size: 12px; line-height: 1.4; color: #3a3a00; }
.card.bonded .slip p.last b { color: var(--ink); }
.card.bonded .slip p.last .tx { color: var(--ink); }
.card.bonded .slip .retry { color: var(--ink); }
.facts { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.facts b { color: var(--soft); font-weight: 600; }

/* hunt lifecycle (replaces the button while a hunt runs) */
.huntsteps { margin-top: 14px; display: grid; gap: 8px; }
.huntsteps li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14px; line-height: 1.35; color: #3a3a00; }
.huntsteps li i { width: 20px; height: 20px; display: grid; place-items: center; font: 700 12px var(--sans); font-style: normal; box-shadow: inset 0 0 0 2px #3a3a00; color: #3a3a00; }
.huntsteps li[data-state="run"] { color: var(--ink); font-weight: 650; }
.huntsteps li[data-state="run"] i { box-shadow: inset 0 0 0 2px var(--ink); animation: pulse 1.1s ease-in-out infinite; }
.huntsteps li[data-state="done"] { color: var(--ink); }
.huntsteps li[data-state="done"] i { background: var(--ink); color: var(--yellow); box-shadow: none; }
.huntsteps li[data-state="reject"], .huntsteps li[data-state="error"] { color: #7a1020; font-weight: 650; }
.huntsteps li[data-state="reject"] i, .huntsteps li[data-state="error"] i { box-shadow: inset 0 0 0 2px #7a1020; color: #7a1020; }
.huntsteps a { color: var(--ink); margin-left: 6px; }
@keyframes pulse { 50% { opacity: .35; } }

/* the hunt panel in the token rail uses the same steps on yellow */
.result { margin-top: 12px; font-size: 14px; line-height: 1.45; }
.result b.payoff { font: 850 36px/1 var(--sans); letter-spacing: -.03em; display: block; margin-bottom: 4px; }
.result .retry { text-decoration: underline; text-underline-offset: 2px; font-weight: 650; }
.dim { color: var(--muted); }

/* rail */
.rail section { margin-bottom: 20px; }
.rail h2 { font-size: 14px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.rail li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rail .r1 { font-size: 14px; line-height: 1.35; color: var(--soft); }
.rail .r1 b { font-weight: 650; color: var(--text); }
.rail .r1 .amt { color: var(--yellow); font-weight: 750; }
.rail .r2 { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.rail .r3 { font: 400 12px var(--mono); color: var(--muted); margin-top: 3px; }
.rail .log li.lost .r1 { color: var(--muted); }
.rail .note { font-size: 13px; color: var(--muted); padding-top: 10px; line-height: 1.45; }
.rail .empty { color: var(--muted); font-size: 13px; padding: 10px 0; }

/* token view */
.tok-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.back { font: 400 13px var(--mono); color: var(--muted); text-decoration: none; }
.back::before { content: "\2190  "; }
.tok-head .pic.big { width: 72px; height: 72px; }
.tok-id h1 { font-size: 34px; font-weight: 850; letter-spacing: -.035em; line-height: 1.05; }
.tok-id .by { margin-top: 4px; white-space: normal; }
.metrics { display: flex; flex-wrap: wrap; row-gap: 10px; }
.metrics div { padding: 0 18px; border-left: 1px solid var(--line); }
.metrics dt { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.metrics dd { font-size: 24px; font-weight: 850; letter-spacing: -.03em; white-space: nowrap; }
.metrics dd small { font: 400 12px var(--mono); color: var(--muted); letter-spacing: 0; }
.tok-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 18px 24px 40px; }
.panel { background: var(--card); padding: 18px 20px 20px; margin-bottom: 16px; min-width: 0; }
.panel h2 { font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.panel h3.sub { font-size: 14px; font-weight: 800; margin: 20px 0 10px; }
.txline { font-size: 13px; color: var(--muted); margin-top: 8px; }
.chart { display: block; width: 100%; height: 240px; margin-top: 10px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font: 400 12px var(--mono); }
.chart .step { fill: none; stroke: var(--green); stroke-width: 2; }
.chart .tick { stroke: var(--red); stroke-width: 2; }
.chart .dot { fill: var(--red); }

/* transit-line path */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; padding-top: 18px; margin-top: 8px; }
.stop { position: relative; padding-top: 28px; padding-right: 12px; min-width: 0; }
.stop::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 6px; background: var(--soft); }
.stop:last-child::before { right: auto; width: 14px; }
.stop::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 16px; background: var(--card); box-shadow: inset 0 0 0 4px var(--soft); }
.stop.hot::after { box-shadow: inset 0 0 0 4px var(--red); }
.stop .acct { display: block; font: 600 13px var(--mono); overflow-wrap: anywhere; }
.stop .role { display: block; font-size: 13px; color: var(--muted); }
.stop .hop { position: absolute; top: -18px; left: 34%; display: flex; gap: 8px; align-items: baseline; font-size: 13px; background: var(--card); padding: 0 6px; white-space: nowrap; }
.stop .hop span { color: var(--muted); }
.track.false .stop::before { background: repeating-linear-gradient(90deg, var(--muted) 0 10px, transparent 10px 16px); }
.track.false .stop::after { box-shadow: inset 0 0 0 4px var(--muted); }
.track.false .stop.deadend::after { width: 6px; height: 26px; top: -1px; background: var(--muted); box-shadow: none; }
.track.false .acct { color: var(--muted); }

.bondline { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; align-items: center; gap: 14px; }
.bondline .end b { display: block; font: 600 13px var(--mono); overflow-wrap: anywhere; }
.bondline .end small { display: block; font-size: 13px; color: var(--muted); }
.bondline .right { text-align: right; }
.rail-line { position: relative; height: 34px; background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat; }
.rail-line .block { position: absolute; top: 0; height: 34px; padding: 0 14px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 800 16px var(--sans); white-space: nowrap; animation: travel 1.8s cubic-bezier(.6, 0, .2, 1) .4s both; }
@keyframes travel { from { left: 0; transform: translateX(0); } to { left: 100%; transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .rail-line .block { animation: none; left: 100%; transform: translateX(-100%); } .huntsteps li[data-state="run"] i { animation: none; } }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.mono { font-size: 13px; overflow-wrap: anywhere; }
.tbl .res-clean { color: var(--green); }
.tbl .res-funded { color: var(--red); }
.tbl .res-wait { color: var(--muted); }
.tbl em { font: 600 12px var(--mono); font-style: normal; background: var(--red); color: var(--ink); padding: 1px 5px; margin-left: 4px; }
.tbl-wrap { overflow-x: auto; }

/* right rail on the token view */
.buybox, .huntcard, .cbox { background: var(--card); padding: 18px; margin-bottom: 12px; }
.buybox h2, .cbox h2 { font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.buybox .px { font: 600 14px var(--mono); color: var(--soft); margin: 8px 0 14px; }
.buybtn { display: block; width: 100%; height: 48px; line-height: 48px; text-align: center; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; }
.buybox .alt { display: block; margin-top: 10px; font-size: 14px; color: var(--soft); }
.cbox p { font-size: 14px; line-height: 1.45; color: var(--soft); margin-top: 8px; }
.cbox p.res { font-weight: 650; }
.cbox p.res.clean { color: var(--green); }
.cbox p.res.funded { color: var(--red); }
.cbox .ghost { margin-top: 12px; }
.huntcard { background: var(--yellow); color: var(--ink); }
.huntcard h2 { font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.huntcard .small { font-size: 13px; line-height: 1.45; color: #3a3a00; margin-top: 6px; }
.huntcard .lines { margin: 14px 0 0; border-top: 2px solid var(--ink); }
.huntcard .lines div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .25); font-size: 14px; }
.huntcard .lines dd { font: 600 13px var(--mono); text-align: right; }
.huntcard .huntsteps { margin-top: 14px; }
.huntcard .mono.small { font-size: 12px; overflow-wrap: anywhere; }
.huntcard .small .tx, .huntcard .result .tx { color: var(--ink); }
.nw { white-space: nowrap; }
.panel.log h2 { margin-bottom: 4px; }
.panel .log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.panel .log li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.panel .log .r1 { font-size: 14px; color: var(--soft); }
.panel .log .r2 { font-size: 13px; color: var(--muted); }
.panel .log .r3 { font: 400 12px var(--mono); color: var(--muted); margin-top: 3px; }

/* states */
.empty-board { grid-column: 1 / -1; padding: 40px 12px; text-align: center; color: var(--muted); }
.empty-board button { margin-top: 10px; }
.errline { margin: 0 24px 12px; padding: 12px 14px; background: var(--card); border-left: 3px solid var(--red); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.errline button { text-decoration: underline; text-underline-offset: 2px; font-weight: 650; }
.card.frame { cursor: default; }
.card.frame:hover { transform: none; }
.card.frame .pic { background: var(--pad); }
.bar-ph { height: 14px; background: var(--slip); margin: 6px 0; }
.bar-ph.w60 { width: 60%; } .bar-ph.w40 { width: 40%; } .bar-ph.w90 { width: 90%; }

/* mobile: its own layout */
@media (max-width: 700px) {
  body { font-size: 14px; padding-bottom: 64px; }
  .top { gap: 10px; height: 52px; padding: 0 14px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand span { font-size: 12px; }
  .nav { display: none; }
  .search { display: none; }
  .connect { margin-left: auto; height: 32px; padding: 0 12px; font-size: 14px; }
  .connect .long { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; height: 58px; background: var(--ink); }
  .tabs a { display: grid; place-items: center; color: var(--muted); text-decoration: none; font-weight: 650; font-size: 14px; }
  .tabs a.on { color: var(--yellow); }
  .strip { display: flex; overflow-x: auto; scrollbar-width: none; }
  .strip div { flex: none; flex-direction: column; gap: 0; padding: 8px 14px; }
  .strip b { font-size: 20px; }
  .strip span { font-size: 12px; }
  .layout { display: block; padding: 10px 10px 20px; }
  .bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; height: 28px; font-size: 13px; }
  .asof { white-space: normal; }
  .mobile-search { display: block; }
  .mobile-search input { width: 100%; height: 40px; padding: 0 12px; font: 400 14px var(--mono); background: var(--card); border: 1px solid var(--line); color: var(--text); }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card-main { padding: 10px 10px 0; gap: 10px; }
  .pic { width: 64px; height: 64px; }
  .card h3 { font-size: 18px; }
  .raise { padding: 8px 10px; }
  .slip { padding: 9px 10px 10px; }
  .card.bonded { grid-column: auto; flex-direction: column; }
  .card.bonded .card-main { padding: 10px; }
  .card.bonded .pic { width: 64px; height: 64px; }
  .card.bonded h3 { font-size: 22px; margin: 2px 0; }
  .card.bonded .facts { display: none; }
  .card.bonded .slip { width: auto; padding: 12px; }
  .card.bonded .slip dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .card.bonded .slip dt { font-size: 12px; }
  .card.bonded .slip dd { font-size: 19px; }
  .card.bonded .slip dd.sub { font-size: 12px; }
  .rail { margin-top: 18px; }
  .errline { margin: 0 10px 10px; }

  .tok-head { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 12px 14px; }
  .back { grid-column: span 2; }
  .tok-head .pic.big { width: 56px; height: 56px; }
  .tok-id h1 { font-size: 24px; }
  .tok-id .by { font-size: 12px; }
  .metrics { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 0; }
  .metrics div { padding: 0 10px; }
  .metrics div:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .metrics div:last-child:nth-child(odd) { grid-column: span 2; }
  .metrics dd { font-size: 19px; }
  .metrics dt { white-space: normal; }
  .tok-layout { display: flex; flex-direction: column; padding: 12px 10px 20px; gap: 12px; }
  .tok-main { display: contents; }
  .tok-main > .panel { order: 2; margin-bottom: 0; }
  .tok-main > .panel:first-child { order: 0; }
  .act { order: 1; }
  .panel { padding: 14px; }
  .chart { height: 200px; }
  .track { grid-auto-flow: row; grid-auto-columns: auto; padding: 0 0 0 4px; margin-top: 0; }
  .stop { padding: 0 0 34px 30px; }
  .stop::before { left: 4px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .stop:last-child { padding-bottom: 0; }
  .stop:last-child::before { width: 6px; height: 14px; }
  .stop::after { left: 0; top: 0; width: 14px; height: 14px; }
  .stop .hop { position: static; margin-top: 6px; padding: 0; background: none; white-space: normal; }
  .track.false .stop::before { background: repeating-linear-gradient(180deg, var(--muted) 0 10px, transparent 10px 16px); }
  .track.false .stop.deadend::after { width: 26px; height: 6px; top: 4px; left: -6px; }
  .bondline { grid-template-columns: 1fr; gap: 8px; }
  .bondline .right { text-align: left; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 7px 4px; }
  .panel .log { grid-template-columns: 1fr; }
}

/* payout account popover (the green header button) */
.payto { position: relative; }
.pop { position: absolute; right: 0; top: 44px; width: 320px; background: var(--card); border: 1px solid var(--line); padding: 14px; z-index: 8; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.pop label { display: block; font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.pop input { width: 100%; height: 38px; padding: 0 10px; font: 400 13px var(--mono); background: var(--canvas); border: 1px solid var(--line); color: var(--text); }
.pop .hint { color: var(--red); font-size: 13px; margin-top: 6px; }
.pop .hint-note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.connect.set { background: var(--mint); }
@media (max-width: 700px) { .pop { position: fixed; left: 10px; right: 10px; top: 56px; width: auto; } }
.errline[hidden], .pop[hidden] { display: none; }

.cbox .log li { display: flex; gap: 12px; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.huntcard p.last { color: #3a3a00; }
.huntcard p.last b, .huntcard p.last .tx { color: var(--ink); }

/* slip state line reads on the yellow slip */
.card.bonded .slip .result, .card.bonded .slip p.result { color: var(--ink); }
/* hunt log table */
.logwrap { overflow-x: auto; margin-top: 4px; }
.logtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.logtable th { text-align: left; font-weight: 650; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.logtable td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); color: var(--soft); white-space: nowrap; font-family: var(--mono); }
.logtable .r { text-align: right; }
.logtable tr.won td:nth-child(2), .logtable tr.won td:nth-child(4) { color: var(--green); }
.logtable tr.lost td:nth-child(2), .logtable tr.lost td:nth-child(4) { color: var(--red); }
@media (max-width: 700px) {
  .strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .strip div { padding: 8px 10px; border-bottom: 1px solid var(--line); min-width: 0; display: block; }
  .strip div.lead { grid-column: 1 / -1; order: -1; border-right: 0; }
  .strip .lead b { font-size: 24px; white-space: normal; display: block; }
  .strip b { font-size: 16px; display: block; }
  .strip span { font-size: 11px; }
  .mobile-search { display: none; }
}

.expect { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 8px; }
