/* Showroom: a game store. Search and game chips in the header, a big picture of the best-stocked
   game, the key box as a strip, a shelf of accounts, each game's types with prices, rounded cards.
   Dark by default, with a light mode. The store's accent comes from branding.py. */
html[data-sf-theme="showroom"] {
  --wrap: 1240px;
  --r-xs: 8px; --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
}
html[data-sf-theme="showroom"][data-theme="dark"] {
  color-scheme: dark;
  /* Neutral greys (no blue cast), so a warm or a cool accent sits on them equally well. */
  --bg: #0e0e10; --bg-2: #141416;
  --surface: #19191c; --surface-2: #212124; --surface-3: #2b2b2f;
  --line: #27272b; --line-2: #36363b;
  --text: #f4f4f5; --text-2: #b0b0b8; --text-3: #85858e;
  --sr-shade: 9, 9, 11;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, .85);
}
html[data-sf-theme="showroom"][data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f3; --bg-2: #ffffff;
  --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #e4e4e7;
  --line: #e2e2e5; --line-2: #cfcfd4;
  --text: #131316; --text-2: #4b4b53; --text-3: #63636b;
  --sr-shade: 9, 9, 11;
  --shadow: 0 14px 34px -22px rgba(0, 0, 0, .3);
  --shadow-lg: 0 26px 56px -24px rgba(0, 0, 0, .35);
}
[data-sf-theme="showroom"] h1, [data-sf-theme="showroom"] h2 { letter-spacing: -.035em; font-weight: 720; }
[data-sf-theme="showroom"] .btn { border-radius: 12px; }
[data-sf-theme="showroom"] .acc, [data-sf-theme="showroom"] .card { border-radius: 16px; }

/* Same width and padding as core .wrap, so the header lines up with every page (wider on the marketplace). */
.sr-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s8); }

/* header */
[data-sf-theme="showroom"] .site-head.sr-head { background: color-mix(in srgb, var(--bg-2) 94%, transparent); }
.sr-top { display: flex; align-items: center; gap: 20px; height: 68px; }
.sr-logo { font-weight: 750; font-size: 18.5px; letter-spacing: -.02em; }
.sr-logo .sf-logo-mark { width: 34px; height: 34px; border-radius: 10px; }
.sr-logo img { width: 34px; height: 34px; border-radius: 10px; }
.sr-search { position: relative; flex: 1; max-width: 640px; }
.sr-search .i { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.sr-search input { width: 100%; height: 44px; padding: 0 16px 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; outline: 0; }
.sr-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sr-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sr-key-btn, .sr-cat-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }
/* One accent action per screen (the hero's Shop and the key strip's button); the header stays neutral. */
.sr-key-btn { border: 1px solid var(--line-2); color: var(--text); }
.sr-key-btn:hover { border-color: var(--text-3); }
.sr-cat-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.sr-cat-btn:hover { background: var(--surface-3); }
.sr-burger { display: none; }
.sr-bar { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; }
.sr-chips { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sr-chips::-webkit-scrollbar { display: none; }
.sr-chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.sr-chips a:hover { color: var(--text); background: var(--surface-2); }
.sr-chips a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sr-chip-art, .sr-chip-all { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3) center / cover no-repeat; display: grid; place-items: center; }
.sr-chip-all .i { width: 13px; height: 13px; }
.sr-tools { display: flex; align-items: center; gap: 6px; }
.sr-guides { padding: 6px 10px; font-size: 13.5px; color: var(--text-2); }
.sr-guides:hover, .sr-guides[aria-current="page"] { color: var(--text); }
.sr-tools .icon-btn { width: 34px; height: 34px; }
.sr-menu { display: grid; padding: 4px 24px 14px; border-top: 1px solid var(--line); }
.sr-menu[hidden] { display: none; }
.sr-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.sr-menu a:last-child { border-bottom: 0; }

/* stage */
.sr-stage { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.sr-stage.is-solo { grid-template-columns: minmax(0, 1fr); }
.sr-feature { position: relative; min-height: 400px; display: flex; align-items: center; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.sr-feature-art { position: absolute; inset: 0; background: center / cover no-repeat; }
.sr-feature-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--sr-shade), .92) 0%, rgba(var(--sr-shade), .55) 48%, rgba(var(--sr-shade), 0) 78%); }
.sr-feature-txt { position: relative; z-index: 1; max-width: 540px; padding: 44px 46px; color: #fff; }
.sr-feature:not(:has(.sr-feature-art)) .sr-feature-txt { color: var(--text); }
.sr-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 12px; letter-spacing: .02em; }
.sr-feature h1 { margin: 18px 0 12px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; text-wrap: balance; }
.sr-feature p { color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.55; }
.sr-feature:not(:has(.sr-feature-art)) p { color: var(--text-2); }
.sr-cta { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.sr-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.sr-btn:hover { filter: brightness(1.08); }
.sr-from { font-size: 14px; color: rgba(255, 255, 255, .8); }
.sr-from b { font-size: 22px; color: #fff; }
.sr-side { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 16px; }
.sr-mini { position: relative; display: flex; align-items: flex-end; min-height: 192px; border-radius: 22px; overflow: hidden; background: var(--surface-2); color: #fff; }
.sr-mini-art { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .4s var(--ease); }
.sr-mini:hover .sr-mini-art { transform: scale(1.04); }
.sr-mini-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--sr-shade), .9), rgba(var(--sr-shade), 0) 70%); }
.sr-mini-txt { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; width: 100%; padding: 18px 22px; }
.sr-mini-txt b { display: block; font-size: 20px; letter-spacing: -.02em; }
.sr-mini-txt small { color: rgba(255, 255, 255, .75); }
.sr-mini-price { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .15); font-weight: 650; }

/* key strip */
.sr-keystrip { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 12px 14px 12px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 140px; }
.sr-key-head { display: flex; align-items: center; gap: 14px; flex: none; }
.sr-key-head b { font-size: 15px; white-space: nowrap; }
.sr-tabs { display: flex; padding: 3px; border-radius: 10px; background: var(--bg); }
.sr-tabs .mode-button { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--text-3); cursor: pointer; }
.sr-tabs .mode-button.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.sr-key-forms { flex: 1; min-width: 0; }
.sr-keystrip .sf-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-keystrip .sf-field { gap: 10px; }
.sr-keystrip .sf-input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.sr-keystrip .sf-input:focus { border-color: var(--accent); }
.sr-keystrip .sf-clear { position: absolute; right: 150px; }
.sr-go { height: 46px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 14px; }
.sr-go:hover:not(:disabled) { filter: brightness(1.08); }
.sr-keystrip .sf-hint { margin-top: 2px; }
.sr-maint { flex: 1; }

/* sections */
.sr-sec { padding-top: 48px; }
.sr-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.sr-sh h2 { font-size: clamp(22px, 2.4vw, 26px); }
.sr-sh a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 14px; font-weight: 550; white-space: nowrap; }
.sr-sh .i { width: 15px; height: 15px; }

.sr-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sr-item { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.sr-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.sr-cov { position: relative; display: grid; place-items: center; aspect-ratio: 460 / 215; background: var(--surface-3); overflow: hidden; }
.sr-cov em { font-style: normal; font-weight: 650; color: var(--text-3); }
.sr-cov i { position: absolute; inset: 0; background: center / cover no-repeat; }
.sr-tag { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(13, 16, 23, .82); color: #fff; font-size: 11.5px; }
.sr-bd { display: grid; align-content: start; gap: 3px; padding: 14px 16px 16px; }
.sr-bd b { font-size: 15.5px; letter-spacing: -.01em; }
.sr-meta { color: var(--text-3); font-size: 12.5px; }
.sr-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.sr-pr { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.sr-view { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; font-weight: 600; }
.sr-item:hover .sr-view { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.sr-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sr-game { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sr-game-band { position: relative; display: flex; align-items: flex-end; min-height: 120px; padding: 16px 18px; color: #fff; background: var(--surface-3); }
.sr-game-art { position: absolute; inset: 0; background: center / cover no-repeat; }
.sr-game-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--sr-shade), .88), rgba(var(--sr-shade), .1)); }
.sr-game-name { position: relative; display: grid; }
.sr-game-name b { font-size: 20px; letter-spacing: -.02em; }
.sr-game-name small { color: rgba(255, 255, 255, .78); font-size: 13px; }
.sr-types { list-style: none; padding: 6px 8px 8px; }
.sr-types a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; }
.sr-types a:hover { background: var(--surface-2); }
.sr-types span { display: flex; align-items: baseline; gap: 8px; font-weight: 550; }
.sr-types small { color: var(--text-3); font-weight: 500; font-size: 12px; }
.sr-types b { font-weight: 700; font-variant-numeric: tabular-nums; }

.sr-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.sr-trust > div { padding: 20px 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.sr-trust b { display: block; margin: 14px 0 4px; font-size: 16px; }
.sr-trust p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.sr-trust .sr-sent { margin-top: 10px; color: var(--text-3); font-size: 12.5px; }
.sr-trust .sr-sent b { display: inline; margin: 0; font-size: 14px; color: var(--text); }
.sr-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.sr-ic .i { width: 18px; height: 18px; }

.sr-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.sr-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.sr-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.sr-faq summary::-webkit-details-marker { display: none; }
.sr-faq summary .i { flex: none; width: 16px; height: 16px; color: var(--text-3); transition: transform .15s; }
.sr-faq details[open] summary .i { transform: rotate(180deg); }
.sr-faq p { padding: 0 18px 16px; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* footer */
[data-sf-theme="showroom"] .site-foot.sr-foot { margin-top: 64px; padding: 0; background: var(--bg-2); }
.sr-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 44px; padding-bottom: 28px; }
.sr-foot-brand p { max-width: 36ch; margin-top: 12px; color: var(--text-2); line-height: 1.6; }
.sr-foot h2 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.sr-foot li { list-style: none; }
.sr-foot li + li { margin-top: 7px; }
.sr-foot ul a:hover { color: var(--text); }
.sr-coins { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-coins span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--text-2); }
.sr-talk { margin-top: 18px; }
.sr-bottom { border-top: 1px solid var(--line); }
.sr-bottom-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding-top: 16px; padding-bottom: 18px; font-size: 12.5px; color: var(--text-3); }
.sr-bottom-in a:hover { color: var(--text); }

@media (max-width: 1080px) {
  .sr-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sr-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sr-wrap { padding: 0 var(--s5); }
  .sr-search, .sr-cat-btn { display: none; }
  .sr-burger { display: grid; }
  .sr-stage { grid-template-columns: minmax(0, 1fr); }
  .sr-side { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .sr-mini { min-height: 150px; }
  .sr-keystrip { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .sr-key-head { justify-content: space-between; }
  .sr-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-games, .sr-faq { grid-template-columns: minmax(0, 1fr); }
  .sr-foot-grid { grid-template-columns: 1fr 1fr; }
  .sr-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sr-top { gap: 10px; height: 60px; }
  .sr-key-btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .sr-guides { display: none; }
  .sr-feature { min-height: 340px; align-items: flex-end; }
  .sr-feature-art::after { background: linear-gradient(0deg, rgba(var(--sr-shade), .95) 10%, rgba(var(--sr-shade), .35) 70%, rgba(var(--sr-shade), .1)); }
  .sr-feature-txt { padding: 24px 20px; }
  .sr-side { grid-template-columns: minmax(0, 1fr); }
  .sr-keystrip .sf-field { flex-wrap: wrap; }
  .sr-keystrip .sf-input { flex-basis: 100%; }
  .sr-keystrip .sf-clear { right: 8px; top: 9px; }
  .sr-go { width: 100%; }
  .sr-shelf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .sr-bd { padding: 12px; }
  .sr-view { display: none; }
  .sr-trust { grid-template-columns: minmax(0, 1fr); }
  .sr-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sr-bottom-in { flex-direction: column; align-items: flex-start; }
}
