:root {
  color-scheme: dark;
  --bg: #000000; --surface: #151515; --raise: #1d1f21; --line: #25282a; --line-hi: #3a3f42;
  --text: #d9d9d9; --muted: #8a8e94; --faint: #82878d; --accent: #f5893a; --accent-hover: #f89b55;
  --on-accent: #1b1004; --good: #00a163; --c: #c9cbd1;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand img { border-radius: 8px; }
.demo { margin: 0; padding: 8px 16px; background: var(--raise); font-size: 13px; text-align: center; }
main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 20px 16px 32px; }
.gonebar { margin: 0 0 12px; padding: 12px 16px; border: 1px dashed var(--line-hi); border-radius: 12px; color: var(--muted); }
.gonebar b { color: var(--text); }
.deal {
  display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px;
}
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who > div { min-width: 0; }
h1 { margin: 0; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
h2 { margin: 0 0 8px; font-size: 1.0625rem; color: var(--muted); }
.meta { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.face {
  position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden;
  border-radius: 50%; background: #1f3b68; border: 3px solid var(--c); font-weight: 700; color: #fff;
}
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.r0 { --c: #c9cbd1; }
.r1 { --c: #3f8cf0; }
.r2 { --c: #45b35a; }
.r3 { --c: #ee8a2a; }
.r4 { --c: #e5484d; }
.r5 { --c: #a071f0; }
.r6 { --c: #f0c232; }
.r7 { --c: #72d3f2; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price b { font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; font-weight: 800; }
.unit { color: var(--muted); }
.usual { color: var(--muted); font-size: 0.9375rem; }
.rar { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text); }
.sw { display: inline-block; flex: none; width: 9px; height: 12px; border-radius: 2px; border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 30%, var(--bg)); }
.pct { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); font-weight: 700; font-size: 0.9375rem; }
.lines { display: grid; gap: 8px; }
.say, .note { margin: 0; color: var(--muted); max-width: 52ch; }
.note { font-size: 0.9375rem; }
.go { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font-weight: 700; text-decoration: none; color: var(--accent); border: 1px solid var(--accent);
}
.btn.fill { border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.btn:active, .tw:active { opacity: 0.7; }
.art { width: 100%; max-width: 260px; height: auto; justify-self: center; }
.gone .price b, .gone h1 { color: var(--faint); }
.gone .pct { background: var(--raise); color: var(--muted); }
.similar { margin-top: 24px; }
.similar ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tw {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px;
  padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.tw .face { width: 40px; height: 40px; border-width: 2px; font-size: 0.8125rem; }
.tn, .tp { display: grid; min-width: 0; }
.tp { text-align: right; }
.tnm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm { color: var(--muted); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpr { font-weight: 700; }
.tpc { color: var(--good); font-size: 0.8125rem; font-weight: 700; }
footer { padding: 16px; color: var(--faint); font-size: 0.8125rem; text-align: center; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .btn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
  .btn.fill:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .tw:hover { background: var(--surface); }
}
@media (min-width: 720px) {
  .deal {
    grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "who art" "price art" "say art" "go art" "rest art";
    column-gap: 40px; padding: 28px;
  }
  .who { grid-area: who; } .price { grid-area: price; } .lines { grid-area: say; } .go { grid-area: go; align-self: start; }
  .art { grid-area: art; max-width: 280px; }
  .missing { grid-template-columns: 1fr; grid-template-areas: none; }
  .missing > * { grid-area: auto; }
}
