:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6570;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #e7e2d8;
  --red: #d83737;
  --red-dark: #a52222;
  --blue: #168acd;
  --blue-dark: #0872ad;
  --yellow: #ffd75e;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgb(255 215 94 / 34%), transparent 28rem),
    var(--paper);
}

button,
select,
input {
  font: inherit;
}

.shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.brand {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: white;
  background: var(--red);
  box-shadow: 0 10px 24px rgb(216 55 55 / 22%);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 2px 0 8px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 7vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.notice {
  margin-bottom: 22px;
  padding: 15px 18px;
  border: 1px solid #ead18b;
  border-radius: 14px;
  background: #fff7d8;
  line-height: 1.5;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 12px 34px rgb(23 32 42 / 6%);
}

.step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-weight: 800;
}

.card h2 {
  margin-bottom: 5px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.card-content > p {
  color: var(--muted);
  line-height: 1.5;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.location-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.manual-location {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.manual-location > p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.coordinate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: end;
}

.coordinate-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.coordinate-actions input {
  width: 145px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

button,
select,
.telegram-link {
  min-height: 44px;
  border-radius: 11px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.primary,
.telegram-button,
.telegram-link {
  border: 0;
  color: white;
  font-weight: 800;
}

.primary {
  padding: 0 18px;
  background: var(--ink);
}

.secondary {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: white;
  font-size: 0.84rem;
  font-weight: 800;
}

.secondary:hover {
  color: white;
  background: var(--ink);
}

select {
  min-width: 120px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
}

.status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.store-list,
.toy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.toy-option,
.sold-out-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.store-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.store-selection {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  cursor: pointer;
}

.store-option:has(.store-selection input:checked),
.toy-option:has(input:checked),
.sold-out-option:has(input:checked) {
  border-color: var(--red);
  background: #fff6f4;
}

.store-selection input,
.toy-option input,
.sold-out-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--red);
}

.store-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.store-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.view-store-button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #f8f6f0;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.view-store-button:hover,
.view-store-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.store-preview {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cddce7;
  border-radius: 16px;
  background: #f7fbfe;
}

.store-preview[hidden] {
  display: none;
}

.store-preview-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.preview-kicker {
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-preview h3 {
  margin: 0 0 3px;
  font-size: 1.15rem;
}

#store-preview-address {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.community-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #075d89;
  background: #dceff9;
  font-size: 0.7rem;
  font-weight: 800;
}

.preview-status {
  min-height: 1.3em;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.report-list {
  display: grid;
  gap: 9px;
}

.report-card {
  padding: 13px;
  border: 1px solid #c9e0ed;
  border-left: 4px solid #249267;
  border-radius: 11px;
  background: white;
}

.report-card.sold-out {
  border-color: #edc7c2;
  border-left-color: var(--red);
  background: #fff8f7;
}

.report-header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}

.report-header time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.toy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.toy-chip {
  padding: 5px 8px;
  border-radius: 8px;
  background: #e8f6ee;
  font-size: 0.8rem;
  font-weight: 700;
}

.report-note,
.policy-list {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.policy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  padding: 0;
  list-style: none;
}

.preview-freshness,
.preview-disclaimer {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.preview-freshness {
  margin: 12px 0 2px;
}

.preview-disclaimer {
  margin-bottom: 0;
  font-style: italic;
}

.sold-out-option {
  width: fit-content;
  margin-top: 14px;
}

.telegram-button,
.telegram-link {
  padding: 0 20px;
  background: var(--blue);
}

.telegram-button:hover,
.telegram-link:hover {
  background: var(--blue-dark);
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  text-decoration: none;
}

.telegram-link[hidden] {
  display: none;
}

.empty {
  color: var(--muted);
}

footer {
  padding: 18px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 900px);
    padding-top: 30px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .brand {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .store-list,
  .toy-list {
    grid-template-columns: 1fr;
  }

  .store-preview-header,
  .report-header {
    display: grid;
  }

  .community-badge {
    width: fit-content;
  }
}
