
:root { --bg:#fff7f9; --card:#fff; --ink:#2b2230; --muted:#6f6375; --line:#f0dfe5; --accent:#c8325a; --accent-ink:#fff; --taken:#f6f2f4; --ok:#2f7d4f; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg:#1b161d; --card:#251f28; --ink:#f3ecf1; --muted:#b3a7b8; --line:#3a3140; --accent:#ff7aa0; --accent-ink:#2b0d17; --taken:#211b24; --ok:#7fd3a0; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; }
header h1 { font-size: 2rem; margin: 0 0 6px; letter-spacing: -0.01em; }
header p { margin: 0 0 20px; color: var(--muted); }
.status { color: var(--muted); margin: 0 0 12px; min-height: 1.4em; }
.status.error { color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.item.taken { background: var(--taken); }
.item h2 { font-size: 1.05rem; margin: 0; }
.item.taken h2 { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.note { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
button.buy { margin-top: 10px; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
button.link { background: none; color: var(--accent); padding: 0 0 0 6px; font-weight: 500; text-decoration: underline; }
.by { margin: 8px 0 0; color: var(--ok); font-weight: 600; }
footer { margin-top: 28px; color: var(--muted); font-size: .88rem; }
