:root {
  color-scheme: light;
  --background: #f5f6f8;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #666666;
  --brand: #d88700;
  --danger: #b42318;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 32px;
}

.card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgb(0 0 0 / 8%);
}

.topline h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 32px);
}

.hint {
  margin: 12px 0;
  color: var(--muted);
}

.status {
  display: block;
  min-height: 24px;
  margin-bottom: 10px;
}

.status.error {
  color: var(--danger);
}

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

.store-card {
  min-width: 0;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.store-card:active {
  transform: scale(.98);
}

.store-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.store-image,
.store-image-placeholder {
  width: 100%;
  height: 130px;
  display: block;
  object-fit: cover;
  background: #e9ecef;
}

.store-image-placeholder {
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.store-body {
  min-height: 104px;
  padding: 14px 12px;
}

.store-name {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.store-address {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.debug-box {
  margin-top: 18px;
}

.debug-box pre {
  white-space: pre-wrap;
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0;
  }

  .card {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

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