@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F1E7;
  --bg-2: #E7F3EE;
  --surface: #FFFCF7;
  --ink: #142033;
  --text: #142033;
  --muted: #3A465C;
  --line: #E3D9C8;
  --accent: #0C4A3E;
  --accent-2: #14685A;
  --on-accent: #F8F4EC;
  --link: #0C4A3E;
  --focus: #0B57D0;
  --danger: #8C1D1D;
  --danger-bg: #F8E8E4;
  --ok: #0C4A3E;
  --ok-bg: #E5F3EE;
  --warn-bg: #F8F1DE;
  --shadow: 0 28px 60px -28px rgba(20, 32, 51, .45);
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header: 76px;
  --radius: 18px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0E141C;
  --bg-2: #14332C;
  --surface: #182230;
  --ink: #F6F1E7;
  --text: #F6F1E7;
  --muted: #D5DEE8;
  --line: #314154;
  --accent: #1F7A64;
  --accent-2: #1F7A64;
  --on-accent: #F8F4EC;
  --link: #B7F3E4;
  --focus: #9EC1FF;
  --danger: #FFB4A8;
  --danger-bg: #3A2222;
  --ok: #B7F3E4;
  --ok-bg: #14332C;
  --warn-bg: #332B18;
  --shadow: 0 28px 60px -28px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4em; }
h3 { font-size: 1.25rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.section { padding: 48px 0 64px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin: 0 0 .8rem; }
.tiny { color: var(--muted); font-size: .92rem; }

.test-banner { margin: 0; padding: 10px 16px; text-align: center; background: var(--warn-bg); color: var(--text); }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { min-height: var(--header); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; }
.brand img { background: #F3EFE6; border-radius: 8px; }
.nav { display: none; gap: 8px; margin-left: auto; }
.nav a, .mobile-nav a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; }
.nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav + .header-tools { margin-left: 0; }
.theme-switch { display: inline-flex; }
.theme-switch input { position: absolute; opacity: 0; }
.track { width: 52px; height: 32px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; padding: 3px; }
.knob { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
[data-theme="dark"] .knob { background: var(--link); }
.theme-switch input:checked + .track .knob { margin-left: auto; }
.theme-switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 3px; }
.cart-button, .menu-button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; position: relative; }
.menu-button { flex-direction: column; gap: 5px; }
.menu-button span { width: 16px; height: 2px; background: currentColor; display: block; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; display: grid; place-items: center; padding: 0 5px; }
.mobile-nav { display: grid; padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 10px 8px; }

.hero-grid, .product-layout, .checkout-layout, .two-col { display: grid; gap: 28px; }
.hero-actions, .trust-row, .filters, .toolbar, .thumbs, .row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-row { list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); }
.trust-row li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }

.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .85rem; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-stat { background: var(--bg); border-radius: 14px; padding: 12px; }
.dash-stat span { display: block; color: var(--muted); font-size: .85rem; }
.dash-stat strong { font-family: var(--font-display); font-size: 1.6rem; }
.dash-chart { height: 140px; display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; padding: 12px; background: var(--bg); border-radius: 14px; }
.bar { display: block; flex: 1; background: var(--accent); border-radius: 8px 8px 0 0; }
.bar-1 { height: 46%; } .bar-2 { height: 72%; } .bar-3 { height: 38%; } .bar-4 { height: 84%; } .bar-5 { height: 58%; } .bar-6 { height: 66%; }
.dash-note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.hero-band { padding: 48px 0 28px; background: radial-gradient(900px 420px at 75% 20%, var(--bg-2), transparent 70%); }
.stage { position: relative; min-height: 520px; }
.stage::before { content: ""; position: absolute; inset: 48px 8% 24px; border-radius: 40px; background: radial-gradient(circle at 50% 45%, var(--bg-2), transparent 72%); z-index: 0; }
.stage-back { position: absolute; z-index: 1; width: 54%; padding: 8px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.stage-back img { width: 100%; height: 196px; object-fit: cover; object-position: top left; border-radius: 12px; }
.stage-back-1 { top: 0; left: 0; transform: rotate(-8deg); }
.stage-back-2 { top: 8px; right: 0; width: 48%; transform: rotate(7deg); }
.stage-back-3 { bottom: 6px; left: 8%; width: 44%; transform: rotate(4deg); }
.stage-back-3 img { height: 148px; }
.browser { position: relative; z-index: 2; width: 78%; margin: 78px 2% 0 auto; padding: 12px 12px 16px; border-radius: 22px; background: #172033; box-shadow: 0 40px 70px -36px rgba(20, 32, 51, .55); }
.browser-chrome { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #D5DEE8; font-size: .8rem; }
.browser-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3A465C; display: block; }
.browser-chrome i:first-child { background: #C46A5A; }
.browser-chrome i:nth-child(2) { background: #C4A15A; }
.browser-chrome i:nth-child(3) { background: #5E9A78; }
.browser-chrome span { margin-left: 8px; }
.browser img { width: 100%; height: 340px; object-fit: cover; object-position: top left; border-radius: 12px; }
.why-grid, .cat-tiles { display: grid; gap: 14px; }
.why-grid article, .cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.cat-tile:hover, .why-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile { display: grid; gap: 6px; text-decoration: none; color: var(--text); min-height: 140px; }
.cat-tile span { color: var(--muted); }
.cat-tile em { font-style: normal; color: var(--link); font-weight: 600; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 8px; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, var(--bg-2), var(--bg)); }
.frame { display: block; width: 100%; padding: 0; border: 0; background: linear-gradient(160deg, var(--bg-2), var(--bg)); border-radius: 24px; padding: 12px; cursor: zoom-in; }
.frame img, .gallery .frame img { width: 100%; height: min(62vh, 520px); object-fit: cover; object-position: top left; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.thumb-btn img { width: 108px; height: 72px; object-fit: cover; object-position: top left; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 8px 0 8px 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.game-badge { background: var(--ok-bg); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.game-kicker { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.lightbox { width: min(1100px, calc(100vw - 32px)); border: 0; padding: 12px; border-radius: 20px; background: var(--surface); color: var(--text); }
.lightbox::backdrop { background: rgba(20, 32, 51, .72); }
.lightbox img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; object-position: top left; border-radius: 12px; }
.lightbox-close { min-height: 40px; margin-bottom: 8px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 600; cursor: pointer; }

.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 18px; }
.section-head a { color: var(--link); }
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media img { position: absolute; top: 12px; right: 12px; bottom: 12px; left: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: none; object-fit: cover; object-position: top left; border-radius: 12px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.25rem; margin: 0; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.tag { color: var(--muted); margin: 0; flex: 1; }
.card-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; width: fit-content; max-width: 100%; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--warn-bg); color: var(--text); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.price { font-family: var(--font-display); font-size: 1.35rem; }
.filters { margin: 8px 0 18px; }
.filter-btn, .thumb-btn { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; cursor: pointer; }
.filter-btn[aria-pressed="true"], .thumb-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.field input, .select { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.search-icon { flex: none; display: block; }
.search input { flex: 1 1 auto; width: auto; min-width: 0; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); appearance: none; -webkit-appearance: none; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 55%, transparent); }
.toolbar { justify-content: space-between; margin-bottom: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--link); }
.gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.thumbs { margin-top: 10px; }
.thumb-btn { padding: 4px; border-radius: 12px; }
.thumb-btn img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.buy-box, .panel, .edition, .gamification { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.buy-box h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.launch h2 { font-size: 1.7rem; margin-top: 0; }
.details { margin-top: 36px; }
.narrow { max-width: 42rem; }
.stack { display: grid; gap: 14px; }
.included { display: grid; gap: 12px; }
.edition strong { display: block; }
.gamification { background: var(--ok-bg); }
.features, .spec { padding-left: 1.1rem; }
.spec { list-style: none; padding: 0; }
.spec li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 112px; height: 84px; object-fit: cover; object-position: top left; border-radius: 8px; background: var(--bg); }
.totals { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.4rem; margin: 12px 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .err { color: var(--danger); }
.notice { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; }
.notice.danger { background: var(--danger-bg); color: var(--danger); }
.notice.success { background: var(--ok-bg); color: var(--ok); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; letter-spacing: .01em; cursor: pointer; background: var(--surface); color: var(--text); transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: 0 10px 20px -14px var(--accent); }
.btn-accent:hover { box-shadow: 0 16px 28px -16px var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-lg { min-height: 52px; padding-inline: 22px; }
.btn-sm { min-height: 44px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.faq-list summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.policy-grid { display: grid; gap: 12px; }
.policy-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.policy-grid h3 { text-transform: capitalize; }
.steps { display: grid; gap: 12px; }
.steps article { background: var(--surface); border-top: 4px solid var(--accent); border-radius: 14px; padding: 16px; }
.thanks { display: flex; gap: 14px; align-items: flex-start; }
.mark { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
.empty { padding: 24px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 20px; background: var(--surface); }
.footer-grid { display: grid; gap: 22px; }
.footer-grid h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); text-decoration: none; margin: 0 0 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--muted); font-size: .92rem; padding-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 999px; z-index: 30; }
.admin-page { max-width: 720px; }
.admin-label { margin-left: auto; color: var(--muted); }

@media (max-width: 799px) {
  .stage { min-height: 0; }
  .stage-back { display: none; }
  .browser { width: 100%; margin-top: 8px; }
  .browser img { height: 230px; }
}
@media (min-width: 800px) {
  .nav { display: flex; }
  .menu-button, .mobile-nav { display: none !important; }
  .header-tools { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .product-layout, .checkout-layout, .two-col { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; }
  .included, .policy-grid, .why-grid, .cat-tiles, .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-3 { grid-template-columns: repeat(3, 1fr); }
  .buy-box { position: sticky; top: 96px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .included { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .btn:hover, .cat-tile:hover, .why-grid article:hover { transform: none; }
}
