:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #111;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.store-home {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header { margin-bottom: 24px; }

.brand {
  margin: 0 0 8px;
  color: #39d353;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 7vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

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

.store-grid a {
  min-width: 0;
  min-height: 92px;
  padding: 16px 12px;
  border: 2px solid #444;
  border-radius: 20px;
  background: #242424;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  overflow-wrap: anywhere;
}

.store-grid a:active {
  border-color: #39d353;
  transform: scale(.98);
}

.store-grid .store-city {
  color: #bbb;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 500;
  line-height: 1.15;
}

.store-grid .store-name {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 700;
  line-height: 1.08;
}

@media (max-height: 620px) {
  .store-home { justify-content: flex-start; }
  .store-grid a { min-height: 76px; }
}

.store-grid a[aria-current="page"] { outline: 4px solid #39d353; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(57, 211, 83, .2); }
