/* The store directory keeps the site's dark palette and gives actions one gold accent. */
body[data-page="play"] {
  --store-bg: #0b0e12;
  --store-surface: #141a22;
  --store-text: #e8e4dc;
  --store-muted: #b7c0cc;
  --store-gold: #d5a94b;
  --store-red: #e56a63;
  --store-line: #303844;
  background: var(--store-bg);
  color: var(--store-text);
}

body[data-page="play"] .site-header-solid,
body[data-page="play"] .store-page {
  background: var(--store-bg);
}

body[data-page="play"] .site-header-solid { border-color: var(--store-line); }
body[data-page="play"] .section-label { color: var(--store-red); font-size: .875rem; }
body[data-page="play"] footer { border-color: var(--store-line); color: var(--store-muted); font-size: .875rem; }

body[data-page="play"] a:focus-visible,
body[data-page="play"] summary:focus-visible,
body[data-page="play"] .store-verified:focus-visible {
  outline: 2px solid var(--store-gold);
  outline-offset: 3px;
}

body[data-page="play"] .desktop-nav a[aria-current="page"],
body[data-page="play"] .mobile-nav a[aria-current="page"] {
  color: var(--store-gold);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.store-page { padding-bottom: 64px; }
.store-intro {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "kicker subtitle"
    "title explainer"
    "title actions";
  column-gap: clamp(30px, 5vw, 80px);
  align-items: start;
  padding-top: clamp(30px, 4vw, 55px);
  padding-bottom: clamp(25px, 3vw, 38px);
}
.store-intro .section-label { grid-area: kicker; }
.store-intro h1 {
  grid-area: title;
  margin: 12px 0 0;
  font-size: clamp(3.4rem, 6.5vw, 6rem);
  line-height: 1;
}
.store-intro .store-subtitle {
  grid-area: subtitle;
  max-width: 60ch;
  margin: 15px 0 0;
  color: var(--store-text);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}
.store-intro > p.store-explainer {
  grid-area: explainer;
  max-width: 74ch;
  margin: 10px 0 0;
  color: var(--store-muted);
  font-size: .92rem;
  line-height: 1.6;
}
.store-hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.store-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--store-gold);
  border-radius: 5px;
  padding: 9px 16px;
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.store-hero-primary { background: var(--store-gold); color: var(--store-bg); }
.store-hero-primary:hover { background: #ebc46f; color: var(--store-bg); }
.store-hero-secondary { color: var(--store-gold); }
.store-hero-secondary:hover { background: rgba(213, 169, 75, .12); color: var(--store-gold); }

.store-region-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1260px;
  margin: 0 auto 27px;
  border-top: 1px solid var(--store-line);
  border-bottom: 1px solid var(--store-line);
  padding: 0 4.2vw;
}
.store-region-link {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 50px;
  padding: 13px 12px;
  color: var(--store-text);
  text-decoration: none;
}
.store-region-link:first-child { padding-left: 0; }
.store-region-link strong { font-size: .95rem; font-weight: 650; }
.store-region-link span { color: var(--store-muted); font-size: .875rem; white-space: nowrap; }
.store-region-link:not(.store-region-link-empty) span { color: var(--store-gold); }
.store-region-link:hover strong,
.store-region-link:focus-visible strong { color: var(--store-gold); }

.store-regions { max-width: 1260px; margin: auto; padding: 0 4.2vw; scroll-margin-top: 15px; }
.store-region { scroll-margin-top: 20px; margin-bottom: 60px; }
.store-region-heading { display: flex; align-items: baseline; gap: 21px; margin-bottom: 14px; }
.store-region-heading h2 {
  margin: 0;
  color: var(--store-text);
  font: 400 clamp(2rem, 3.2vw, 3rem)/1 Georgia, serif;
  letter-spacing: -.055em;
}
.store-region-heading p { margin: 0; color: var(--store-muted); font-size: .88rem; }
.store-region-empty {
  margin: 0;
  border-top: 1px solid var(--store-line);
  padding: 20px 0;
  color: var(--store-muted);
  font-size: .9rem;
}

.store-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; table-layout: fixed; text-align: left; }
.store-table th, .store-table td { vertical-align: top; text-align: left; }
.store-table thead th {
  padding: 7px 16px 8px;
  color: var(--store-muted);
  font: 12px/1.3 Consolas, monospace;
  letter-spacing: .08em;
}
.store-table thead th:first-child { padding-left: 17px; }
.store-table tbody tr { background: var(--store-surface); }
.store-table tbody th, .store-table tbody td {
  border-top: 1px solid var(--store-line);
  border-bottom: 1px solid var(--store-line);
  padding: 17px 16px 19px;
  font-weight: 400;
}
.store-table tbody th:first-child { border-left: 1px solid var(--store-line); border-radius: 5px 0 0 5px; }
.store-table tbody td:last-child { border-right: 1px solid var(--store-line); border-radius: 0 5px 5px 0; }
.store-table th:nth-child(1) { width: 27%; }
.store-table th:nth-child(2) { width: 31%; }
.store-table th:nth-child(3) { width: 42%; }

.store-name { display: block; color: var(--store-text); font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.store-muted, .store-place > span, .store-event span { display: block; }
.store-muted, .store-address, .store-event-note {
  margin-top: 5px;
  color: var(--store-muted);
  font-size: .875rem;
  line-height: 1.5;
}
.store-verified {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--store-muted);
  font: inherit;
  text-align: left;
  cursor: help;
}
.store-verified > span:first-child { border-bottom: 1px dotted currentColor; }
.store-verified-tooltip {
  position: absolute;
  z-index: 4;
  top: calc(100% + 3px);
  left: 0;
  width: max-content;
  max-width: min(270px, calc(100vw - 64px));
  border: 1px solid var(--store-line);
  border-radius: 5px;
  padding: 10px 12px;
  background: #25303d;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .36);
  color: var(--store-text);
  font-size: .875rem;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.store-verified:hover,
.store-verified:focus-visible { z-index: 5; }
.store-verified:hover .store-verified-tooltip,
.store-verified:focus-visible .store-verified-tooltip {
  opacity: 1;
  visibility: visible;
}
.store-place > span:first-child { color: var(--store-text); font-weight: 600; }
.store-place > span:nth-child(2):not(.store-address) { color: var(--store-muted); font-size: .9rem; }
.store-address { overflow-wrap: anywhere; }
.store-status {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid var(--store-line);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--store-muted);
  font-size: .875rem;
  line-height: 1.25;
  white-space: nowrap;
}
.store-events { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.store-event strong { display: block; color: var(--store-text); font-size: 1rem; font-weight: 650; line-height: 1.35; }
.store-event-schedule { margin-top: 4px; color: var(--store-text); font-size: 1rem; font-weight: 600; line-height: 1.45; }
.store-event-note { font-weight: 400; }
.store-empty-event { color: var(--store-muted); }

.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.store-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--store-gold);
  border-radius: 4px;
  padding: 8px 11px;
  color: var(--store-gold);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}
.store-action:hover { background: rgba(213, 169, 75, .13); color: var(--store-gold); }
.store-action-facebook { width: 44px; min-width: 44px; padding: 0; }
.store-action-facebook svg { width: 20px; height: 20px; fill: currentColor; }
.store-card-list { display: none; }

@media (max-width: 700px) {
  body[data-page="play"] .site-header { padding: 12px 18px; }
  body[data-page="play"] .mobile-nav summary { display: flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: .875rem; }
  body[data-page="play"] .mobile-nav nav { right: 18px; top: 62px; z-index: 5; }
  body[data-page="play"] .mobile-nav nav a { display: flex; align-items: center; min-height: 44px; }
  .store-page { padding-bottom: 40px; }
  .store-intro { display: block; padding: 28px 18px 25px; }
  .store-intro h1 { font-size: clamp(3.15rem, 13vw, 4.6rem); }
  .store-intro .store-subtitle { margin-top: 12px; font-size: 1rem; line-height: 1.45; }
  .store-intro > p.store-explainer { margin-top: 9px; font-size: .875rem; line-height: 1.48; }
  .store-hero-actions { gap: 8px; margin-top: 15px; }
  .store-hero-actions a { padding: 8px 11px; font-size: .875rem; }
  .store-region-nav { margin-bottom: 23px; padding: 0 12px; }
  .store-region-link { display: grid; align-content: center; gap: 1px; min-height: 55px; padding: 7px 6px; }
  .store-region-link:first-child { padding-left: 6px; }
  .store-region-link strong { font-size: .875rem; }
  .store-region-link span { font-size: .875rem; }
  .store-regions { padding: 0 18px; }
  .store-region { margin-bottom: 45px; }
  .store-region-heading { display: block; margin-bottom: 12px; }
  .store-region-heading p { margin-top: 5px; font-size: .875rem; line-height: 1.4; }
  .store-table-wrap { display: none; }
  .store-card-list { display: grid; gap: 10px; }
  .store-card {
    min-width: 0;
    border: 1px solid var(--store-line);
    border-radius: 6px;
    padding: 17px;
    background: var(--store-surface);
  }
  .store-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
  .store-card-heading > div { min-width: 0; }
  .store-card .store-verified { flex-direction: column; align-items: flex-start; justify-content: center; }
  .store-card .store-verified-tooltip {
    position: static;
    display: none;
    width: min(270px, calc(100vw - 72px));
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
  }
  .store-card .store-verified:hover .store-verified-tooltip,
  .store-card .store-verified:focus-visible .store-verified-tooltip { display: block; }
  .store-card-heading .store-status { flex: none; margin-top: 2px; }
  .store-card .store-place { display: block; margin-top: 9px; font-size: .9rem; }
  .store-card .store-place > span { display: inline; }
  .store-card .store-place > span + span:not(.store-address)::before { content: ' · '; }
  .store-card .store-address { display: block; margin-top: 4px; }
  .store-card .store-links { margin-top: 13px; }
  .store-card-events { margin-top: 19px; border-top: 1px solid var(--store-line); padding-top: 16px; }
  .store-card .store-events { gap: 15px; }
}

@media (max-width: 360px) {
  .store-intro h1 { font-size: 3rem; }
  .store-hero-actions { align-items: stretch; }
  .store-hero-actions a { flex: 1 1 auto; }
  .store-card-heading { display: block; }
  .store-card-heading .store-status { margin-top: 8px; }
}
