:root {
  --bg: #f3efe6;
  --bg-accent: #e7efdf;
  --ink: #1c2418;
  --muted: #5a6754;
  --panel: rgba(255, 253, 248, 0.78);
  --line: rgba(58, 72, 50, 0.12);
  --accent: #2f6b3a;
  --accent-ink: #f7fff4;
  --warn: #8a4b1f;
  --input-bg: rgba(255, 255, 255, 0.72);
  --fill: rgba(231, 239, 223, 0.72);
  --fill-strong: #e0ead6;
  --glow-a: #dce8d2;
  --glow-b: #efe4cf;
  --oos-bg: #f5e6d8;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 28px rgba(28, 36, 24, 0.06);
  --focus-ring: 0 0 0 3px rgba(47, 107, 58, 0.22);
  color-scheme: light;
}
html.theme-dark {
  --bg: #121610;
  --bg-accent: #243022;
  --ink: #e7eee3;
  --muted: #9aaa90;
  --panel: rgba(27, 34, 24, 0.82);
  --line: rgba(231, 238, 227, 0.1);
  --accent: #7ec889;
  --accent-ink: #102014;
  --warn: #e0a06a;
  --input-bg: rgba(20, 26, 18, 0.9);
  --fill: rgba(36, 48, 34, 0.9);
  --fill-strong: #2c3a28;
  --glow-a: #1a2618;
  --glow-b: #2a2418;
  --oos-bg: #3a2a1c;
  --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.28);
  --focus-ring: 0 0 0 3px rgba(126, 200, 137, 0.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1100px 480px at 8% -8%, var(--glow-a) 0%, transparent 58%),
    radial-gradient(860px 380px at 100% 0%, var(--glow-b) 0%, transparent 52%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  width: min(980px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}
.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 2rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--fill); }
.site-nav a.active {
  color: var(--accent);
  background: var(--fill);
}
.theme-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: var(--fill);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.32rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { color: var(--ink); background: var(--fill-strong); }
.theme-toggle-track {
  width: 1.9rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(90, 103, 84, 0.28);
  position: relative;
  flex-shrink: 0;
}
.theme-toggle-thumb {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease;
}
html.theme-dark .theme-toggle-track { background: var(--accent); }
html.theme-dark .theme-toggle-thumb { transform: translateX(0.78rem); }
header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 500;
  margin: 0 0 0.45rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
header p {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
}
.disclaimer {
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 38rem;
  text-align: center;
}
.disclaimer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.disclaimer a:hover { text-decoration: underline; }
.legal-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.85rem 0 0;
}
.legal-doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem 1.85rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}
.legal-doc h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin: 0 0 0.35rem;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.legal-doc .updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.35rem;
}
.legal-doc h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
  letter-spacing: -0.015em;
}
.legal-doc p, .legal-doc li {
  color: var(--ink);
  line-height: 1.6;
}
.legal-doc ul { padding-left: 1.2rem; }
.age-page {
  max-width: 28rem;
  margin: 2.5rem auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  text-align: center;
}
.age-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.age-page p { color: var(--muted); line-height: 1.45; }
.age-page .checks {
  text-align: left;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.75rem;
}
.age-page label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.92rem;
}
.age-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.age-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.age-yes { background: var(--accent); color: var(--accent-ink); }
.age-yes:hover { opacity: 0.92; }
.age-no {
  background: var(--fill);
  color: var(--muted);
}
.age-no:hover { color: var(--ink); background: var(--fill-strong); }
.field-error {
  color: var(--warn);
  font-size: 0.86rem;
  font-weight: 600;
}
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-sponsored {
  background: rgba(138, 75, 31, 0.14);
  color: var(--warn);
}
.meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.meta strong { color: var(--ink); font-weight: 600; }
.hub-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.hub-list a:hover {
  background: var(--input-bg);
  border-color: var(--line);
}
.seo-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.claim-form, .alert-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.claim-form label, .alert-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.claim-form input, .claim-form textarea,
.alert-form input, .alert-form select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--fill);
}
.claim-form button, .alert-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
}
.notice-ok {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}
.sponsored-card {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(138, 75, 31, 0.22);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
}
.sponsored-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.sponsored-card .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 0;
  color: var(--muted);
}
.pagination .pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.pagination a,
.pagination span.current {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  background: var(--fill);
}
.pagination span.current {
  background: var(--accent);
  color: var(--accent-ink);
}
.pagination span.disabled {
  opacity: 0.4;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-weight: 600;
  font-size: 0.86rem;
  background: var(--fill);
}
.empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  font-weight: 500;
}
.results {
  display: grid;
  gap: 0.55rem;
}
.results a.card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.05rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.results a.card:hover {
  background: var(--input-bg);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.results a.card.disabled {
  pointer-events: none;
  opacity: 0.7;
}
.results .thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--fill);
}
.results .thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.results .card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.results .card .sub {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.results .price {
  font-weight: 600;
  font-size: 1.18rem;
  white-space: nowrap;
  text-align: right;
}
.results .shop-hint {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.results .usual {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.results .usual.below { color: var(--accent); }
.results .usual.above { color: var(--warn); }
.results .usual-was {
  display: block;
  font-weight: 500;
  color: var(--muted);
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .results a.card {
    grid-template-columns: 68px 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }
  .results .thumb { width: 68px; height: 68px; }
  .results .price { grid-column: 2; text-align: left; }
}
