:root {
  --bg: #f4f6f3;
  --panel: #ffffff;
  --ink: #1b2420;
  --muted: #5f6b65;
  --line: #dde3de;
  --accent: #19a07f;
  --accent-ink: #ffffff;
  --accent-soft: #e3f4ee;
  --shadow: 0 1px 2px rgba(20, 32, 26, 0.06), 0 6px 18px rgba(20, 32, 26, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --panel: #1a201d;
    --ink: #e8eeea;
    --muted: #9aa7a0;
    --line: #2b3430;
    --accent: #3cc7a2;
    --accent-ink: #08241c;
    --accent-soft: #17332b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding-block: 32px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.head { display: grid; gap: 6px; margin-bottom: 20px; }
.kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
h1 { margin: 0; font-size: clamp(28px, 6vw, 42px); line-height: 1.1; font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 14px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.chip:focus-visible, .go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.noprice { color: var(--muted); font-size: 14px; }
.note { margin: 0; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.grow { flex: 1; }
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.state { text-align: center; padding: 64px 8px; display: grid; gap: 10px; justify-items: center; }
.state h1 { font-size: clamp(24px, 5vw, 32px); }
.state p { margin: 0; color: var(--muted); max-width: 46ch; }
.foot { margin-top: 36px; color: var(--muted); font-size: 13px; text-align: center; }
.skeleton { height: 140px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise 0.28s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
