/* Storefront: catalog hub, game sections and product pages (server-rendered by pages.cjs). */
@font-face { font-family: 'Onest'; src: url('/assets/fonts/Onest-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

/* Light brand theme; game sections override the tokens below. */
.sf {
  --bg: #f7f4ed; --panel: #fffdfa; --panel2: #fffdfa; --text: #29312d; --muted: #5f645e; --line: #e0dfd6;
  --accent: #eb8769; --accent-ink: #29312d; --accent-2: #b5533d;
  --radius: 26px; --btn-radius: 999px;
  --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --display: 'Onest', 'Manrope', 'Segoe UI', Arial, sans-serif;
}
.theme-dota-2 { --bg: #120606; --panel: #1d0b0b; --panel2: #270f0f; --text: #efe3cf; --muted: #b9a68c; --line: rgba(241,215,154,.28); --accent: #f1d79a; --accent-ink: #2a0a0a; --accent-2: #d24a3a; --radius: 22px; --display: 'Cinzel', Georgia, 'Times New Roman', serif; }
.theme-counter-strike-2 { --bg: #12171b; --panel: #1b2228; --panel2: #222b32; --text: #e9edf0; --muted: #98a5ae; --line: #33404a; --accent: #f29a2e; --accent-ink: #12171b; --accent-2: #5b9bd5; --radius: 10px; --btn-radius: 6px; --display: 'Saira Stencil One', 'Arial Narrow', Arial, sans-serif; }
.theme-valorant { --bg: #0f1923; --panel: #17232f; --panel2: #1d2b38; --text: #ece8e1; --muted: #9aa6b2; --line: #2c3c4b; --accent: #ff4655; --accent-ink: #0f1923; --accent-2: #ece8e1; --radius: 4px; --btn-radius: 2px; --display: 'Anton', Impact, 'Arial Narrow', sans-serif; }
.theme-league-of-legends { --bg: #010a13; --panel: #0a1428; --panel2: #0f1d36; --text: #f0e6d2; --muted: #a09b8c; --line: rgba(200,170,110,.32); --accent: #c8aa6e; --accent-ink: #010a13; --accent-2: #0ac8b9; --radius: 6px; --btn-radius: 4px; --display: 'Marcellus SC', Georgia, serif; }
.theme-minecraft { --bg: #1d1f1b; --panel: #2b2d28; --panel2: #33362f; --text: #f2f2ea; --muted: #b4b6aa; --line: #4a4d44; --accent: #7bc044; --accent-ink: #13230a; --accent-2: #f2c94c; --radius: 0px; --btn-radius: 0px; --display: 'Press Start 2P', 'Courier New', monospace; }
.theme-fortnite { --bg: #170b45; --panel: #24125f; --panel2: #2c1873; --text: #ffffff; --muted: #c9c1f0; --line: rgba(255,255,255,.18); --accent: #ffe02d; --accent-ink: #170b45; --accent-2: #3fa7ff; --radius: 18px; --btn-radius: 12px; --display: 'Lilita One', 'Arial Black', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.sf { margin: 0; background: var(--bg); color: var(--text); font-family: 'Onest', 'Manrope', 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.sf img { max-width: 100%; display: block; }
.sf [hidden] { display: none !important; }
.sf a { color: inherit; }
.sf a:hover { color: var(--accent-2); }
.sf :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sf-wrap { width: min(1280px, 100% - 2 * clamp(16px, 4vw, 56px)); margin-inline: auto; }
.sf-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }

/* Theme display fonts (fall back gracefully until the font files are added). */
.f-dota { font-family: 'Cinzel', Georgia, serif; font-weight: 800; letter-spacing: .02em; }
.f-cs { font-family: 'Saira Stencil One', 'Arial Narrow', Arial, sans-serif; letter-spacing: .02em; }
.f-val { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.f-lol { font-family: 'Marcellus SC', Georgia, serif; }
.f-mc { font-family: 'Press Start 2P', 'Courier New', monospace; font-size: .62em; line-height: 1.3; }
.f-fn { font-family: 'Lilita One', 'Arial Black', sans-serif; text-transform: uppercase; }

/* Header */
.sf { --header-h: 72px; }
.sf-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.sf-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.5); }
.sf-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding-block: 12px; }
.sf-wordmark { font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; color: var(--text) !important; }
.sf-wordmark span { color: var(--accent-2); }
.sf-wordmark sup { color: var(--accent); font-size: 15px; margin-left: 2px; }
.sf-nav { display: flex; gap: 28px; font-size: 15px; }
.sf-nav a { color: var(--muted); text-decoration: none; }
.sf-nav a.is-current { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.sf-header-actions { display: flex; align-items: center; gap: 18px; }
.sf-cart { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); text-decoration: none; }
.sf-cart b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; }
.sf-cart b.is-bump { animation: sf-bump .45s var(--spring); }
@keyframes sf-bump { 40% { transform: scale(1.35); } }
.sf-cta { padding: 11px 20px; border-radius: var(--btn-radius); background: var(--accent); color: var(--accent-ink) !important; text-decoration: none; font-weight: 700; font-size: 15px; }

/* Buttons */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--btn-radius); font: 700 16px/1 'Onest', 'Manrope', sans-serif; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.sf-btn-accent { background: var(--accent); color: var(--accent-ink) !important; }
.sf-btn-accent:hover { transform: translateY(-2px); filter: brightness(1.05); }

.sf-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.sf-crumbs a { color: var(--muted); text-decoration: none; }
.sf-crumbs a:hover { color: var(--text); }

/* Hub */
.sf-page-head { padding-block: 16px 34px; }
.sf-page-head h1 { margin: 0 0 14px; font-size: clamp(44px, 6vw, 88px); line-height: .95; letter-spacing: -.045em; font-weight: 760; }
.sf-page-head p { max-width: 56ch; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.sf-worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sf-world { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44%; min-height: 340px; padding: 24px 0 0 24px; border-radius: 26px; overflow: clip; color: #fff !important; text-decoration: none; animation: sf-rise .6s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms); transition: transform .5s var(--spring), box-shadow .5s; }
.sf-world:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(0,0,0,.75); color: #fff !important; }
.sf-world-scene { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s var(--ease); }
.sf-world:hover .sf-world-scene { transform: scale(1.06); }
.sf-world-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,14,.82), rgba(8,10,14,.45) 50%, rgba(8,10,14,.05)), linear-gradient(0deg, rgba(8,10,14,.5), transparent 40%); }
.sf-world-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.sf-world-name { font-size: 30px; line-height: 1.02; font-weight: 800; }
.sf-world-line { font-size: 14px; line-height: 1.45; opacity: .88; }
.sf-world-count { font-size: 13px; font-weight: 700; opacity: .9; }
.sf-world-go { margin-top: auto; align-self: flex-start; padding: 10px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; transition: transform .3s var(--spring); }
.sf-world:hover .sf-world-go { transform: translateX(4px); }
.sf-world-fig { position: relative; z-index: 1; align-self: end; justify-self: center; height: 290px; width: auto; max-width: none; margin-bottom: 14px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)) drop-shadow(0 18px 18px rgba(0,0,0,.5)); transition: transform .5s var(--spring); }
.sf-world:hover .sf-world-fig { transform: translateY(-10px) scale(1.03); }
@keyframes sf-rise { from { opacity: 0; transform: translateY(20px); } }

.sf-own { padding-top: 90px; }
.sf-sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; margin-bottom: 28px; }
.sf-sec-head h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; line-height: 1; }
.sf-sec-head p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Section hero */
.sf-hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 620px; overflow: clip; background: var(--panel); }
.sf-hero-plain { min-height: 0; background: transparent; }
.sf-hero-bg-in { position: absolute; inset: -30px; animation: sf-bg-in 1.8s var(--ease) both; }
@keyframes sf-bg-in { from { opacity: 0; transform: scale(1.12); } }
.sf-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.sf-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 70%, transparent) 34%, transparent 62%), linear-gradient(0deg, var(--bg), transparent 30%); }
.sf-hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px); padding-left: max(clamp(16px, 4vw, 56px), calc((100vw - 1280px) / 2)); }
.sf-hero-tag { display: inline-block; margin: 0 0 18px; padding: 7px 12px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: 13px; font-weight: 600; }
.sf-hero h1 { margin: 0; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.theme-figyrki .sf-hero h1 { font-weight: 760; letter-spacing: -.045em; text-shadow: none; }
.sf-hero-lead { max-width: 42ch; margin: 22px 0 28px; font-size: 18px; line-height: 1.6; opacity: .92; }
.sf-perks { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sf-perks li { padding: 10px 14px; border-radius: var(--btn-radius); background: rgba(0,0,0,.3); border: 1px solid var(--line); font-size: 14px; }
.theme-figyrki .sf-perks li { background: var(--panel); }
.sf-perks b { color: var(--accent); }
.theme-figyrki .sf-perks b { color: var(--accent-2); }
.sf-hero-figs { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 40px 24px 26px; }
.sf-hero-figs::before { content: ''; position: absolute; left: 8%; right: 8%; top: 12%; bottom: 0; background: radial-gradient(ellipse 50% 55% at 50% 62%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); z-index: -1; pointer-events: none; }
.sf-hero-figs::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 14px; height: 56px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); z-index: -1; }
.sf-fig { position: relative; margin: 0 -34px; animation: sf-fig-in 1s var(--spring) backwards; animation-delay: var(--d); transition: translate .5s var(--ease); text-decoration: none; }
.sf-fig img { height: var(--h); width: auto; max-width: none; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)) drop-shadow(0 22px 26px rgba(0,0,0,.45)); transition: transform .45s var(--spring); }
.sf-fig::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -8px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); z-index: -1; transition: transform .45s var(--spring), opacity .45s; }
.sf-fig:hover::after { transform: scale(.85); opacity: .7; }
.sf-fig.is-side { --h: 350px; z-index: 1; }
.sf-fig.is-side img { filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)) drop-shadow(0 22px 26px rgba(0,0,0,.45)) brightness(.86) saturate(.95); }
.sf-fig.is-main { --h: 490px; z-index: 2; }
.sf-fig:hover img { transform: translateY(-12px); }
.sf-fig span { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.sf-fig:hover span { opacity: 1; }
@keyframes sf-fig-in { from { opacity: 0; transform: translateY(70px); } }

/* Filters and grid */
.sf-bar { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 40px 0 28px; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.sf-search { flex: 1 1 240px; max-width: 340px; }
.sf-search input { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--panel); color: var(--text); font: 500 15px 'Onest', 'Manrope', sans-serif; }
.sf-search input::placeholder { color: var(--muted); }
.sf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-tabs button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--panel); color: var(--text); font: 600 14px 'Onest', 'Manrope', sans-serif; cursor: pointer; }
.sf-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sf-count { margin-left: auto; color: var(--muted); font-size: 14px; }
.sf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sf-card { position: relative; display: grid; align-content: start; gap: 12px; padding: 12px 12px 16px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); transition: transform .4s var(--spring), border-color .3s, box-shadow .4s; animation: sf-rise .55s var(--ease) backwards; animation-delay: calc(min(var(--i), 12) * 45ms); }
.sf-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 40px -30px rgba(0,0,0,.6); }
.sf-card[hidden] { display: none; }
.sf-card-art { position: relative; display: block; aspect-ratio: 1; border-radius: calc(var(--radius) * .7); overflow: hidden; isolation: isolate; background: #a9a9a6; }
.sf-card-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform .7s var(--ease); will-change: transform; }
.sf-card:hover .sf-card-art img { transform: scale(1.06); }
.sf-card-size { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: var(--btn-radius); background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; }
/* The shade stays put and only fades; the text slides inside it, so no strip of photo flashes underneath. */
.sf-card-desc { position: absolute; inset: 35% -1px -1px -1px; z-index: 1; display: flex; align-items: flex-end; padding: 14px 15px; background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,.55) 45%, rgba(10,10,12,.88) 100%); color: #fff; font-size: 13px; line-height: 1.45; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.sf-card-desc > span { transform: translateY(8px); transition: transform .45s var(--ease); }
.sf-card:hover .sf-card-desc, .sf-card-art:focus-visible .sf-card-desc { opacity: 1; }
.sf-card:hover .sf-card-desc > span, .sf-card-art:focus-visible .sf-card-desc > span { transform: none; }
.sf-card-name { margin: 0; padding-inline: 4px; font-size: 19px; line-height: 1.15; font-family: var(--display); font-weight: 700; }
.theme-minecraft .sf-card-name { font-size: 12px; line-height: 1.5; }
.theme-valorant .sf-card-name, .theme-fortnite .sf-card-name { text-transform: uppercase; font-weight: 400; }
.sf-card-name a { text-decoration: none; }
.sf-card-sub { margin: -6px 0 0; padding-inline: 4px; color: var(--muted); font-size: 14px; }
.sf-card-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-inline: 4px; }
.sf-card-row b { font-size: 18px; }
.sf-add { min-height: 44px; padding: 0 14px; border: 1px solid var(--accent); border-radius: var(--btn-radius); background: transparent; color: var(--accent); font: 700 14px 'Onest', 'Manrope', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.theme-figyrki .sf-add:not(.sf-btn) { border-color: var(--text); color: var(--text); }
.sf-add:hover, .sf-add.is-added { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sf-add:disabled { opacity: .6; cursor: progress; }
.sf-empty { grid-column: 1 / -1; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

.sf-custom-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 32px; padding: 28px 32px; border-radius: var(--radius); border: 1px dashed var(--accent); }
.sf-custom-cta h2 { margin: 0 0 6px; font-size: 26px; }
.sf-custom-cta p { margin: 0; max-width: 60ch; color: var(--muted); line-height: 1.5; }
.sf-seo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); margin-top: 90px; padding-top: 48px; border-top: 1px solid var(--line); }
.sf-seo h2 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 36px); }
.sf-seo p { max-width: 62ch; margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.sf-faq details { border-bottom: 1px solid var(--line); }
.sf-faq summary { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; padding: 16px 0; font-weight: 650; cursor: pointer; list-style: none; }
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.sf-faq details[open] summary::after { content: '−'; }
.sf-faq details p { margin: 0 0 16px; }
.sf-others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.sf-others a { padding: 12px 16px; border-radius: var(--btn-radius); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.sf-others a:hover { border-color: var(--accent); }

/* Product */
.sf-product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.sf-gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.sf-gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: clip; background: #d9d9d6; }
.sf-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: sf-fade .45s var(--ease); }
@keyframes sf-fade { from { opacity: 0; } }
.sf-gallery-arrows { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.sf-gallery-arrows button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,253,250,.92); color: #29312d; font-size: 24px; cursor: pointer; }
.sf-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sf-thumbs button { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: calc(var(--radius) * .6); overflow: clip; background: #d9d9d6; cursor: pointer; transition: border-color .25s, transform .3s var(--spring); }
.sf-thumbs button:hover { transform: translateY(-3px); }
.sf-thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.sf-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sf-thumbs span { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.sf-info { display: grid; gap: 18px; }
.sf-chip { justify-self: start; padding: 7px 12px; border-radius: var(--btn-radius); border: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 700; }
.sf-info h1 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; }
.theme-figyrki .sf-info h1 { letter-spacing: -.04em; font-weight: 760; }
.sf-info-sub { margin: -8px 0 0; color: var(--muted); font-size: 18px; }
.sf-price { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.sf-price b { font-size: 34px; color: var(--accent); }
.theme-figyrki .sf-price b { color: var(--text); }
.sf-price span { color: var(--muted); }
.sf-desc { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.sf-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.sf-specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sf-specs dt { color: var(--muted); font-size: 13px; }
.sf-specs dd { margin: 4px 0 0; font-weight: 650; }
.sf-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sf-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--panel); }
.sf-qty button { width: 46px; height: 50px; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.sf-qty output { min-width: 26px; text-align: center; font-weight: 700; }
.sf-buy .sf-add { flex: 1; min-width: 200px; min-height: 52px; font-size: 16px; }
.sf-photo-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px dashed var(--accent); border-radius: var(--radius); color: var(--muted) !important; font-size: 14px; text-decoration: none; transition: border-color .25s, transform .3s var(--spring); }
.sf-photo-cta:hover { border-style: solid; transform: translateY(-2px); }
.sf-photo-cta b { display: block; margin-bottom: 2px; color: var(--text); font-size: 16px; }
.sf-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sf-steps li { padding: 16px; border-radius: calc(var(--radius) * .7); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; counter-increment: s; }
.sf-steps b { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }
.sf-steps b::before { content: counter(s) '. '; color: var(--accent); }
.sf-related { margin-top: 80px; }
.sf-related h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 40px); }
.sf-mbar { display: none; }

/* Footer and toast */
.sf-footer { margin-top: 100px; padding-block: 48px 32px; border-top: 1px solid var(--line); }
.sf-footer-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; }
@media (max-width: 1100px) and (min-width: 901px) { .sf-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-footer p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.sf-footer nav { display: grid; gap: 10px; align-content: start; }
.sf-footer nav a { color: var(--muted); text-decoration: none; }
.sf-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; color: var(--muted); font-size: 14px; }
.sf-toast { position: fixed; z-index: 40; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 20px; border-radius: 999px; background: #29312d; color: #f7f4ed; font-size: 15px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transform: translate(-50%, 0); animation: sf-toast-in .45s var(--spring); }
.sf-toast[hidden] { display: none; }
.sf-toast a { padding: 9px 14px; border-radius: 999px; background: #eb8769; color: #29312d !important; text-decoration: none; font-weight: 700; }
@keyframes sf-toast-in { from { transform: translate(-50%, 140%); } }

@media (max-width: 1100px) {
  .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sf-cart span { display: none; }
  /* Phones: the section links move to a second header row that scrolls sideways if needed. */
  .sf { --header-h: 104px; }
  .sf-header-in { flex-wrap: wrap; row-gap: 4px; padding-block: 10px 6px; }
  .sf-nav { order: 3; width: 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px 4px; }
  .sf-nav::-webkit-scrollbar { display: none; }
  .sf-nav a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
  .sf-nav a.is-current { border-color: var(--text); color: var(--text); text-decoration: none; }
  .sf-hero, .sf-seo, .sf-product, .sf-sec-head, .sf-footer-in { grid-template-columns: minmax(0, 1fr); }
  .sf-hero-figs { overflow: clip; }
  .sf-hero { min-height: 0; }
  .sf-hero-figs { order: -1; min-height: 360px; padding-top: 24px; }
  .sf-fig.is-main { --h: 300px; } .sf-fig.is-side { --h: 210px; } .sf-fig { margin: 0 -22px; }
  .sf-hero-copy { padding-top: 0; }
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-count { margin-left: 0; }
  .sf-gallery { position: relative; top: auto; }
  .sf-mbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .sf-mbar b { font-size: 18px; } .sf-mbar small { display: block; color: var(--muted); font-size: 12px; }
  .sf-mbar .sf-add { min-height: 48px; }
  body.sf:has(.sf-mbar) .sf-footer { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .sf-worlds { grid-template-columns: 1fr; }
  .sf-grid { gap: 12px; }
  .sf-card-name { font-size: 16px; }
  .sf-card-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sf-card-alt { display: block; margin-top: 2px; color: var(--muted); font-family: 'Onest', 'Manrope', sans-serif; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.sf .sf-btn-accent.sf-add { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.sf .sf-btn-accent.sf-add:hover { filter: brightness(1.06); }
/* Comfortable tap targets on phones: cart badge, footer links, breadcrumbs. */
@media (max-width: 900px) {
  .sf-cart { min-width: 44px; min-height: 44px; justify-content: center; }
  .sf-footer nav { gap: 2px; }
  .sf-footer { margin-top: 64px; padding-block: 32px 24px; }
  .sf-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .sf-footer-in > div:first-child, .sf-footer-in > p { grid-column: 1 / -1; }
  .sf-footer nav a { display: block; padding-block: 7px; font-size: 14px; }
  .sf-crumbs a { display: inline-block; padding-block: 8px; }
  .sf-crumbs { margin-bottom: 10px; }
}
/* Phones: shorter world tiles, readable section hero, compact product cards. */
@media (max-width: 900px) {
  .sf-world { min-height: 220px; grid-template-columns: minmax(0, 1fr) 42%; padding: 18px 0 0 18px; }
  .sf-world-copy { padding-bottom: 18px; gap: 6px; }
  .sf-world-name { font-size: 26px; }
  .sf-world-fig { height: 210px; margin-bottom: 10px; }
  .sf-hero-shade { background: linear-gradient(180deg, transparent 0%, transparent 32%, color-mix(in srgb, var(--bg) 70%, transparent) 50%, var(--bg) 72%); }
  .sf-hero-copy { padding-top: 0; margin-top: -24px; }
  .sf-hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .sf-hero-lead { margin: 14px 0 18px; font-size: 16px; }
  .sf-perks li { padding: 8px 12px; font-size: 13px; }
  .sf-bar { margin-top: 24px; }
  .sf-card { gap: 8px; padding: 8px 8px 12px; }
  .sf-card-sub { display: none; }
  .sf-card-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sf-card-row b { font-size: 16px; }
  .sf-card .sf-add { width: 100%; min-height: 40px; }
  .sf-seo { margin-top: 56px; padding-top: 32px; }
  .sf-custom-cta { padding: 20px; }
  .sf-custom-cta h2 { font-size: 22px; }
}
