
:root {
  color-scheme: light dark;
  --bg: #f4efe7;
  --bg-deep: #ebe3d6;
  --thread: rgba(120, 98, 74, 0.028);
  --text: #2e2a26;
  --muted: #6b5f55;
  --accent: #b5673a;
  --accent-strong: #9a522b;
  --accent-text: #8f4b27;
  --on-accent: #ffffff;
  --card: rgba(255, 252, 247, 0.62);
  --card-solid: #fbf8f3;
  --border: rgba(110, 88, 66, 0.16);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 24px rgba(60, 40, 20, 0.07);
  --focus: #9a522b;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a17;
    --bg-deep: #15130f;
    --thread: rgba(255, 240, 220, 0.018);
    --text: #f3ede5;
    --muted: #bfb3a6;
    --accent: #e0915f;
    --accent-strong: #e59c6c;
    --accent-text: #efaa7c;
    --on-accent: #1d1a17;
    --card: rgba(48, 42, 36, 0.58);
    --card-solid: #2a2520;
    --border: rgba(255, 235, 210, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --focus: #efaa7c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(214, 170, 130, 0.22), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(181, 103, 58, 0.10), transparent 50%),
    repeating-linear-gradient(0deg, var(--thread) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--thread) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}
body { margin: 0; background: transparent; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.top, .wrap, .foot { max-width: 640px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 16px; }
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--accent-text); }
.langs ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.langs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 10px;
}
.langs a[aria-current="true"] { color: var(--text); font-weight: 600; text-decoration: underline; }
.card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card {
    background: var(--card);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }
}
.wrap { padding-top: 12px; padding-bottom: 24px; }
.hero { padding: 28px 22px 22px; margin-bottom: 16px; }
.name { font-size: clamp(34px, 9vw, 48px); line-height: 1.1; margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.subtitle { margin: 6px 0 0; font-size: 19px; color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent-text); border-color: var(--border); }
.btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn-text {
  min-height: 44px; padding: 0 8px; font: inherit; color: var(--accent-text);
  background: none; border: 0; text-decoration: underline; cursor: pointer;
}
.small-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.status:empty { margin: 0; }
.status { margin: 0 4px 12px; color: var(--text); font-weight: 600; }
.me { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 4px 12px; color: var(--muted); }
.me strong { color: var(--text); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { padding: 18px; display: grid; gap: 12px; }
.item-title { font-size: 19px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.price { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.note { margin: 6px 0 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.view { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.claim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.claim-status { margin: 0; font-weight: 600; color: var(--muted); }
.claim-status::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; color: var(--accent-text); }
.empty, .needs-js { padding: 18px; color: var(--muted); }
.foot { padding-top: 8px; padding-bottom: 32px; font-size: 15px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
dialog {
  width: min(92vw, 420px); padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-solid); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(30, 22, 15, 0.45); }
dialog label { display: block; font-weight: 700; font-size: 19px; }
.hint { margin: 4px 0 12px; color: var(--muted); }
dialog input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--muted); border-radius: 12px;
}
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active { transform: none; }
}
@media (forced-colors: active) {
  .btn, .card { border: 1px solid CanvasText; }
}
