/* DO NOT EDIT — copied from packages/shared/src/shops/ui/shop-page.css
   by `npm run tokens`. Edit the source there, regenerate, commit both.
   A vitest in packages/shared fails if this file drifts from the source. */
/* Shared public shop page + shop-list card (W4 Phase 4c, P4c-B1). Class prefix .sp-.
 * Source: packages/shared/src/shops/ui/shop-page.css; npm run tokens copies it to
 * apps/server/public/shared/pages/shop-page.css. Tokens only (var(--...)) and SOLID colours: no
 * alpha mixes, so it holds up on /m. Layers come from gradients between solid tokens, borders and
 * box-shadow glows, not flat cards. */

.sp { display: grid; gap: 16px; min-width: 0; color: var(--text); font-family: var(--body); }
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp a { color: var(--cyan); }
.sp h1, .sp h2, .sp h3, .sp p { margin: 0; }
.sp-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-img[hidden] { display: none; }
.sp svg { flex: none; }

/* ── chips: one line, never truncated inside their pill ── */
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; align-items: center; }
.sp-chip { display: inline-flex; align-items: center; flex: none; max-width: 100%; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--cyan-dim); background: var(--input); color: var(--chrome); font: 600 11px/1.4 var(--body); letter-spacing: 0.02em; white-space: nowrap; }
.sp-chip--open { border-color: var(--green-dim); color: var(--green); }
.sp-chip--live { border-color: var(--magenta); color: var(--text); background: var(--magenta); }
.sp-chip--gold { border-color: var(--gold); color: var(--gold); }
.sp-chip--muted { border-color: var(--muted); color: var(--text-dim); }
.sp-chip--game { border-color: var(--surface-2); background: var(--surface-2); color: var(--text); }
.sp-chip--line { white-space: nowrap; }
.sp-chip--entry { min-width: max-content; }

/* ── buttons ── */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--cyan-dim); background: var(--surface-2); color: var(--text); font: 700 13px/1.2 var(--head); letter-spacing: 0.03em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sp-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sp-btn--gold { background: var(--gold); border-color: var(--gold); color: var(--bg); box-shadow: 0 0 14px var(--orange); }
.sp-btn--cyan { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.sp-btn--ghost { background: var(--input); }
.sp-btn--on { background: var(--magenta); border-color: var(--magenta); color: var(--text); }
/* `.sp a` (0,1,1) would out-rank the variants above on <a> buttons and paint cyan text on cyan/gold, so
 * the anchor forms repeat each label colour at a higher specificity. */
.sp a.sp-btn--ghost { color: var(--cyan); }
.sp a.sp-btn--gold, .sp a.sp-btn--cyan { color: var(--bg); }
.sp a.sp-btn--on { color: var(--text); }
.sp-btn--sm { min-height: 34px; padding: 5px 12px; font-size: 12px; }
.sp-btn--block { width: 100%; margin-top: 10px; }

/* ── owner bar + banners ── */
.sp-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); box-shadow: 0 0 18px var(--orange); }
.sp-owner__info { display: flex; flex: 1 1 200px; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.sp-owner__next { color: var(--text-dim); font-size: 13px; }
.sp-owner__go { color: var(--cyan); font-size: 12px; font-weight: 700; text-decoration: none; }
.sp-banner { padding: 14px 16px; border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); color: var(--text); font-size: 13px; line-height: 1.5; }
.sp-banner--badge { border-color: var(--muted); color: var(--text-dim); padding: 8px 14px; }
.sp-banner__title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--gold); font: 800 14px/1.3 var(--head); }
.sp-banner__steps { margin: 8px 0 0; padding-left: 20px; color: var(--text-dim); }
.sp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border: 1px dashed var(--cyan-dim); border-radius: 12px; background: var(--input); color: var(--chrome); font-size: 13px; }
.sp-cta span { flex: 1 1 180px; }

/* ── hero ── */
.sp-hero { position: relative; border: 1px solid var(--border-hi); border-radius: 14px; overflow: hidden; background: var(--surface); }
.sp-hero__banner { height: 140px; overflow: hidden; background: var(--surface-2); }
.sp-hero__row { display: flex; gap: 14px; align-items: flex-end; margin-top: -34px; padding: 0 16px 16px; position: relative; }
.sp-hero__logo { position: relative; flex: none; width: 76px; height: 76px; border-radius: 16px; border: 3px solid var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface-2); box-shadow: 0 0 18px var(--magenta); }
.sp-hero__info { display: grid; gap: 6px; min-width: 0; flex: 1; padding-top: 38px; }
.sp-hero__name { font: 900 clamp(20px, 5vw, 28px)/1.15 var(--display); overflow-wrap: anywhere; }
.sp-hero__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; }
.sp-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 900 22px/1 var(--display); color: var(--text); }
.sp-hero__logo .sp-img, .sp-card__logo .sp-img { position: absolute; inset: 0; }

/* ── actions ── */
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── sections ── */
.sp-sec { padding: 16px; border: 1px solid var(--border-hi); border-radius: 14px; background: linear-gradient(180deg, var(--surface), var(--bg)); min-width: 0; }
.sp-sec[hidden] { display: none; }
.sp-sec__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 800 13px/1.2 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--chrome); }
.sp-sec__icon { display: inline-flex; color: var(--cyan); }
.sp-sub { margin: 14px 0 8px; font: 800 12px/1.2 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.sp-empty { color: var(--text-dim); font-size: 13px; }

/* ── event rows ── */
.sp-evlist, .sp-tlist { display: grid; gap: 10px; }
.sp-ev { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--surface-2); border-radius: 12px; background: var(--input); }
.sp-ev__link { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.sp-ev__date { flex: none; display: grid; place-items: center; width: 48px; padding: 5px 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--cyan-dim); text-align: center; }
.sp-ev__date b { font: 900 18px/1 var(--display); color: var(--text); }
.sp-ev__date i { font: 800 10px/1.2 var(--head); font-style: normal; letter-spacing: 0.08em; color: var(--cyan); }
.sp-ev__body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.sp-ev__title { font: 700 14px/1.3 var(--head); overflow-wrap: anywhere; }
.sp-ev__when { color: var(--text-dim); font-size: 12px; }
.sp-ev__chev { color: var(--cyan); }
.sp-ev__cta { display: flex; }

/* ── tournaments here (C11): a card each ── */
.sp-tcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--cyan-dim); border-radius: 12px; background: linear-gradient(135deg, var(--surface-2), var(--input)); box-shadow: 0 0 12px var(--surface-2); }
.sp-tcard__main { display: grid; gap: 6px; min-width: 0; flex: 1 1 220px; }
.sp-tcard__name { font: 800 16px/1.25 var(--head); overflow-wrap: anywhere; }
.sp-tcard__when { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; }
.sp-tcard__cta { flex: none; }
.sp-tcard[data-sp-tournament="active"] { border-color: var(--magenta); }

/* ── hours & info ── */
.sp-about { color: var(--text); font-size: 14px; line-height: 1.6; white-space: pre-line; margin-bottom: 12px; overflow-wrap: anywhere; }
.sp-info, .sp-hours { display: grid; gap: 8px; margin: 0; }
.sp-info__row, .sp-hours__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.sp-info dt, .sp-hours dt { color: var(--text-dim); font-weight: 700; }
.sp-info dd, .sp-hours dd { margin: 0; overflow-wrap: anywhere; }
.sp-map { display: block; width: 100%; height: 220px; margin-top: 14px; border: 0; border-radius: 10px; }
.sp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sp-photo { aspect-ratio: 1; padding: 0; border: 1px solid var(--surface-2); border-radius: 10px; overflow: hidden; background: var(--input); cursor: pointer; }
.sp-feed { min-width: 0; }

/* ── shop-list card (C14) ── */
.sp-card { display: flex; gap: 10px; align-items: stretch; min-width: 0; border: 1px solid var(--border-hi); border-radius: 14px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.sp-card__main { display: flex; flex: 1; gap: 12px; min-width: 0; padding: 12px; color: var(--text); text-decoration: none; }
.sp-card__logo { position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--cyan-dim); }
.sp-card__body { display: grid; align-content: start; gap: 5px; min-width: 0; flex: 1; }
.sp-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 800 15px/1.25 var(--head); overflow-wrap: anywhere; }
.sp-card__sub { color: var(--text-dim); font-size: 12px; }
.sp-card__next { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--chrome); font-size: 12px; }
.sp-card__next span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-card__act { display: flex; align-items: flex-start; padding: 12px 12px 12px 0; }
.sp-card--wide .sp-card__logo { width: 84px; height: 84px; }
.sp-card--compact .sp-card__main { padding: 10px; }
.sp-card--compact .sp-card__act { padding: 10px 10px 10px 0; }
.sp-card--compact .sp-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-card--compact .sp-btn { min-width: 36px; min-height: 36px; padding: 6px; }

/* ── empty state (C15) ── */
.sp-emptystate { display: grid; justify-items: center; gap: 12px; padding: 32px 16px; text-align: center; border: 1px dashed var(--cyan-dim); border-radius: 14px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.sp-empty-art { color: var(--cyan); }
.sp-emptystate__title { font: 800 16px/1.3 var(--head); }
.sp-emptystate__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 520px) {
  .sp-hero__banner { height: 110px; }
  .sp-info__row, .sp-hours__row { grid-template-columns: 82px minmax(0, 1fr); }
}
