/* Shared styles for every product page. Edit here, then run: python3 build.py */
:root {
  --accent: #335FFF;
  --accent-hover: #2548D8;
  --cta: #FF6200;
  --cta-hover: #E05500;
  --text: #191919;
  --bg: #fff;
  --muted: #707070;
  --surface: #f7f7f7;
  --border: #e5e5e5;
  --radius: 8px;
  --radius-small: 6px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 20px;
  --control: 44px;
  --text-title: clamp(23px, 3vw, 32px);
  --text-price: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.product { width: 100%; max-width: 850px; margin: 0 auto; padding: var(--space-4); }

/* Gallery */
.gallery-stage { position: relative; }
.main-image-wrap { position: relative; width: 100%; height: min(55vh, 430px); display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.main-image-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.main-image { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease; }
.main-image.is-loading { opacity: .35; }
.image-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: var(--space-3); text-align: center; color: var(--muted); }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: var(--control); height: var(--control); display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gallery-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow--prev { left: var(--space-1); }
.gallery-arrow--next { right: var(--space-1); }
.gallery-counter { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; line-height: 1.4; pointer-events: none; }
.thumbnails { display: flex; gap: var(--space-1); margin-top: 10px; padding: 4px 2px 6px; overflow-x: auto; scrollbar-width: thin; }
.thumbnail-button { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.thumbnail-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumbnail-button:hover { border-color: var(--accent); }
.thumbnail-button[aria-current="true"] { border: 2px solid var(--accent); }

/* Product info */
h1 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-title); line-height: 1.3; }
.condition { margin: 0 0 var(--space-2); font-size: 15px; color: var(--muted); }
.price { margin: 0 0 var(--space-3); font-size: var(--text-price); font-weight: bold; }

/* Variation selectors */
.variation-group { margin: 0 0 var(--space-3); padding: 0; border: 0; min-width: 0; }
.variation-group legend { padding: 0; margin-bottom: var(--space-1); font-weight: bold; }
.variation-options { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.variation-option { position: relative; }
.variation-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.variation-option span { display: inline-flex; align-items: center; min-height: var(--control); padding: 8px 16px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); }
.variation-option input:checked + span { border: 2px solid var(--accent); padding: 7px 15px; font-weight: bold; }
.variation-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buy button */
.buy-button { display: block; width: 100%; min-height: 54px; padding: 16px 20px; background: var(--cta); color: #fff; text-align: center; text-decoration: none; font-size: 17px; font-weight: bold; border-radius: 7px; transition: background .2s; }
.buy-button:hover { background: var(--cta-hover); }
.buy-button { font-size: 19px !important; box-shadow: 0 2px 0 #c24e00; }
.buy-button.is-disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.buy-note { margin: 10px 0 0; font-size: 14px; text-align: center; color: var(--muted); }

/* Focus */
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.buy-button:focus-visible { outline-color: var(--text); }

/* Full-size viewer */
.lightbox { position: fixed; width: min(96vw, 1100px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox-image { display: block; width: 100%; max-height: 94vh; object-fit: contain; background: var(--surface); }
.lightbox-close { position: absolute; top: var(--space-1); right: var(--space-1); width: var(--control); height: var(--control); padding: 0; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 600px) {
  .product { padding: var(--space-2); }
  .main-image-wrap { height: 80vw; min-height: 240px; max-height: 420px; }
  .thumbnail-button { width: 60px; height: 60px; }
  h1 { font-size: 24px; }
  .price { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Catalogue index */
.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-list li { border-bottom: 1px solid var(--border); }
.catalog-list a { display: flex; justify-content: space-between; gap: var(--space-2); min-height: var(--control); padding: var(--space-2) 0; color: var(--text); text-decoration: none; }
.catalog-list a:hover { color: var(--accent-hover); }
.catalog-list .catalog-price { flex: 0 0 auto; font-weight: bold; }

/* Site pages: header, footer, cards, text */
.site-header { border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: 850px; margin: 0 auto; padding: var(--space-2) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.site-name { font-weight: bold; font-size: 20px; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-header nav a, .site-footer a, .crumbs a, .prose a { color: var(--accent); }
.site-header nav a { text-decoration: none; min-height: var(--control); display: inline-flex; align-items: center; }
.site-footer { max-width: 850px; margin: var(--space-4) auto 0; padding: var(--space-4); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0 0 var(--space-1); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 var(--space-2); }
.crumbs a { text-decoration: none; }
.prose h1 { margin-top: 0; }
.prose h2 { margin: 28px 0 var(--space-1); font-size: 22px; }
.prose p, .prose li { line-height: 1.6; }
.details, .related { margin-top: 32px; }
.details h2, .related h2 { font-size: 20px; margin: 0 0 var(--space-2); }
.details li { line-height: 1.6; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); }
.card { display: block; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-2); color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface); border-radius: var(--radius-small); margin-bottom: var(--space-1); }
.card strong { display: block; font-size: 15px; line-height: 1.35; }
.card span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.card .card-price { color: var(--text); font-weight: bold; }

.prose .card { color: var(--text); }
.prose .card:hover { border-color: var(--accent); }
.prose .card strong { color: var(--text); }

/* Store header */
.site-header__inner { padding-bottom: var(--space-1); }
.site-search { display: flex; gap: var(--space-1); flex: 1 1 260px; max-width: 420px; }
.site-search input { flex: 1; min-width: 0; min-height: var(--control); padding: 0 var(--space-2); border: 1px solid var(--border); border-radius: 7px; font-size: 16px; }
.site-search button, .shop-filter { font-family: inherit; }
.site-search button { min-height: var(--control); padding: 0 var(--space-3); border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-weight: bold; font-size: 15px; cursor: pointer; }
.site-search button:hover { background: var(--accent-hover); }
.site-nav { max-width: 850px; margin: 0 auto; padding: 0 var(--space-4); display: flex; gap: var(--space-3); overflow-x: auto; white-space: nowrap; }
.site-nav a { color: var(--text); text-decoration: none; min-height: var(--control); display: inline-flex; align-items: center; font-size: 15px; }
.site-nav a:hover { color: var(--accent-hover); }
.shop-filter { width: 100%; min-height: var(--control); padding: 0 var(--space-2); border: 1px solid var(--border); border-radius: 7px; font-size: 16px; margin: var(--space-1) 0; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .site-header__inner, .site-nav { padding-left: var(--space-2); padding-right: var(--space-2); } }
.site-header .site-nav { flex-wrap: nowrap; }
.site-header .site-nav a { color: var(--text); }
.site-header .site-nav a:hover { color: var(--accent-hover); }

/* Product page layout: phone, tablet, laptop, monitor, TV */
.product--wide { max-width: 1180px; }
.product-layout { display: block; }
.trust { list-style: none; margin: var(--space-2) 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.trust li { padding: 4px 0 4px 22px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.details ol { padding-left: 22px; }
.details details { border-bottom: 1px solid var(--border); padding: var(--space-1) 0; }
.details summary { cursor: pointer; font-weight: bold; min-height: var(--control); display: flex; align-items: center; }
.details details p { margin: 0 0 var(--space-2); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: var(--space-2); padding: 10px 0; border-bottom: 1px solid var(--border); }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-2) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--border); }
.buy-bar > div { flex: 0 0 auto; line-height: 1.2; }
.buy-bar__label { display: block; font-size: 12px; color: var(--muted); }
.buy-bar strong { font-size: 19px; }
.buy-bar .buy-button { flex: 1; min-height: 48px; padding: 12px 16px; }
body.has-buy-bar { padding-bottom: 78px; }
@media (min-width: 900px) {
  .product--wide { padding: 28px 32px; }
  .product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .product-layout--single { grid-template-columns: minmax(0, 1fr); }
  .product-media { position: sticky; top: 16px; }
  .main-image-wrap { height: auto; aspect-ratio: 1 / 1; max-height: 620px; }
  .product-buy h1 { margin-top: 0; }
  .buy-bar { display: none; }
  body.has-buy-bar { padding-bottom: 0; }
  .details, .related { max-width: 820px; }
}
@media (min-width: 1600px) {
  .product--wide, .site-header__inner, .site-nav, .site-footer { max-width: 1400px; }
  .product-buy h1 { font-size: 40px; }
  .price { font-size: 38px; }
  .buy-button { font-size: 21px; min-height: 66px; }
  .prose p, .prose li, .details p, .details li, .trust { font-size: 19px; }
}
@media (min-width: 2200px) {
  .product--wide, .site-header__inner, .site-nav, .site-footer { max-width: 1760px; }
  .product-buy h1 { font-size: 52px; }
  .price { font-size: 48px; }
  .buy-button { font-size: 26px; min-height: 80px; }
  .prose p, .prose li, .details p, .details li, .trust { font-size: 24px; }
}

@media (max-width: 600px) {
  .site-search { flex: 1 1 100%; max-width: none; min-width: 0; width: 100%; }
  .site-search input { width: 100%; }
  .site-name { flex: 1 0 100%; }
}


/* ===== marketplace-style theme ===== */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--border); }
.site-header__inner, .site-nav, .site-footer__cols, .site-footer__base { max-width: 1280px; }
.site-header__inner { padding-top: 12px; gap: 16px; flex-wrap: nowrap; }
.site-name { font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--text); flex: 0 0 auto; }
.site-name span { color: var(--accent); }
.site-search { flex: 1 1 auto; max-width: none; gap: 0; border: 1px solid #191919; border-radius: 24px; overflow: hidden; }
.site-search input { border: 0; border-radius: 0; padding: 0 18px; min-height: 46px; background: #fff; }
.site-search button { border-radius: 0 22px 22px 0; min-height: 46px; padding: 0 28px; font-size: 16px; }
.site-nav { padding-top: 0; }
.site-nav a { font-size: 14px; padding-right: 4px; }
.site-footer { max-width: none; margin: 48px 0 0; padding: 0; background: #f7f7f7; border-top: 1px solid var(--border); color: #555; }
.site-footer__cols { margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.site-footer strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; color: #555; text-decoration: none; }
.site-footer li a:hover, .site-footer p a:hover { text-decoration: underline; }
.site-footer a { color: #555; }
.site-footer p { font-size: 13px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 24px; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none !important; border: 1px solid var(--accent); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: #fff; color: var(--accent) !important; }
.btn--ghost:hover { background: #eef1ff; }
.buy-button { border-radius: 24px; min-height: 52px; }
.variation-option span { border-radius: 8px; }
.crumbs, .crumbs a { color: #555; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.product-buy h1 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; }
.price { font-size: 30px; }
.prose .meta { margin: -4px 0 16px; color: var(--muted); font-size: 14px; }
.article { max-width: 760px; } .article p, .article li { line-height: 1.7; font-size: 17px; } .article .btn { margin: 4px 8px 4px 0; }
/* listing cards: no boxes, like a marketplace grid */
.card { border: 0; padding: 0; border-radius: 0; background: none; }
.card img { border-radius: 8px; margin-bottom: 10px; }
.card strong { font-weight: 400; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover strong { text-decoration: underline; }
.card .card-price { font-size: 16px; font-weight: 700; margin-top: 6px; }
.card-grid { gap: 20px 14px; }
.guide-grid .card, .article .card { border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.guide-grid .card strong { font-weight: 700; -webkit-line-clamp: 3; }
.product.home { max-width: 1280px; padding: 16px; }
.banner { display: grid; gap: 18px; padding: 24px 18px; border-radius: 16px; background: #eef1ff; align-items: center; }
.banner h1 { margin: 0 0 10px; font-size: clamp(26px, 5.4vw, 40px); line-height: 1.15; }
.banner p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: #333; }
.banner .btn { margin: 0 8px 8px 0; }
.banner__imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.banner__imgs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; display: block; }
.strip { list-style: none; margin: 0; padding: 14px 4px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: #555; border-bottom: 1px solid var(--border); }
.home-section { margin-top: 36px; }
.home-section h2 { margin: 0 0 16px; font-size: clamp(20px, 3vw, 26px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; } .sec-head a { font-size: 14px; }
.circles { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: thin; }
.circles li { flex: 0 0 auto; width: 96px; text-align: center; }
.circles a { text-decoration: none; color: var(--text); font-size: 13px; line-height: 1.3; display: block; }
.circles img, .circ-ph { display: block; width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 1px solid var(--border); }
.circles a:hover span { text-decoration: underline; }
.quick { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #c7c7c7; border-radius: 24px; text-decoration: none; color: var(--text); font-size: 14px; }
.quick a:hover { border-color: var(--text); }
.home .details { max-width: 820px; }
.home .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .banner { padding: 32px 28px; } .home .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .circles li { width: 110px; } .circles img, .circ-ph { width: 100px; height: 100px; } }
@media (min-width: 900px) {
  .product.home { padding: 24px 32px; }
  .banner { grid-template-columns: 1fr 1fr; gap: 36px; padding: 44px 48px; }
  .banner__imgs { grid-template-columns: repeat(2, 1fr); }
  .home .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .home-section { margin-top: 48px; }
}
@media (min-width: 1280px) { .home .card-grid:not(.guide-grid) { grid-template-columns: repeat(6, minmax(0, 1fr)); } .home .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .site-header { position: static; } .site-header__inner { flex-wrap: wrap; } .site-name { flex: 1 0 100%; } .site-search { flex: 1 1 100%; } .product.home { padding: 12px; } .banner { padding: 20px 16px; } .banner__imgs { grid-template-columns: repeat(4, 1fr); } .site-footer__cols { padding: 24px 14px; } }

/* accessibility, utility bar, trust blocks */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 12px 18px; background: #191919; color: #fff; border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 0; }
main:focus { outline: none; }
.utility { background: #f7f7f7; border-bottom: 1px solid var(--border); font-size: 12px; color: #555; }
.utility__inner { max-width: 1280px; margin: 0 auto; padding: 4px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 36px; }
.utility__right { display: flex; align-items: center; gap: 16px; }
.utility a { color: #555; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; } .utility a:hover { text-decoration: underline; }
.lang { min-height: 32px; border: 1px solid #c7c7c7; border-radius: 6px; background: #fff; color: #191919; font-size: 13px; padding: 0 6px; max-width: 150px; }
.seller { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fafafa; font-size: 14px; line-height: 1.5; }
.seller strong, .seller span, .seller a { display: block; } .seller span { color: var(--muted); margin: 2px 0 6px; }
.checks { list-style: none; padding: 0; margin: 0; } .checks li { position: relative; padding: 6px 0 6px 28px; line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 11px; border: solid #335FFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.inline-cta { margin: 24px 0 0; max-width: 420px; } .inline-cta .btn { width: 100%; min-height: 52px; font-size: 17px; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why li { padding: 18px; border: 1px solid var(--border); border-radius: 8px; } .why strong { display: block; font-size: 17px; margin-bottom: 4px; } .why span { color: #555; line-height: 1.5; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .utility__inner { padding: 4px 12px; font-size: 11px; } .utility__right a { display: none; } }
@media (forced-colors: active) { .btn, .buy-button { border: 2px solid ButtonText; } }

/* brand colours: blue #335FFF, orange #FF6200 (dark text on orange for contrast) */
:root { --cta: #FF6200; --cta-hover: #E85A00; }
.buy-button, .btn, .inline-cta .btn { background: var(--cta); border-color: var(--cta); color: #111 !important; }
.buy-button:hover, .btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn--ghost { background: #fff; color: var(--accent) !important; border-color: var(--accent); }
.btn--ghost:hover { background: #eef1ff; border-color: var(--accent); }
.circles a:hover img, .quick a:hover { border-color: var(--cta); }
.banner { border-left: 6px solid var(--cta); }
.strip li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--cta); }
.hubline { margin: 20px 0 0; font-weight: 700; }
/* search suggestions */
.site-search { position: relative; overflow: visible; }
.site-search input { border-radius: 24px 0 0 24px; }
.suggest { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #c7c7c7; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16); z-index: 60; max-height: 70vh; overflow: auto; padding: 6px 0; }
.suggest.open { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px 14px; min-height: 44px; text-decoration: none; color: #191919; font-size: 14px; line-height: 1.35; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: #eef1ff; }
.suggest img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; flex: none; }
.suggest small { display: block; color: #707070; }
.suggest .sg-h { padding: 8px 14px 4px; font-size: 12px; color: #707070; text-transform: uppercase; letter-spacing: .04em; }
.suggest .sg-all { font-weight: 700; color: var(--accent); border-top: 1px solid #e5e5e5; margin-top: 4px; }

/* Trust, payments, FAQ polish */
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0; }
.pay { display: block; border-radius: 4px; }
.pay-cap { flex-basis: 100%; font-size: 13px; color: var(--muted); margin-top: 2px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 32px 0 8px; }
.trust div { border: 1px solid var(--border); border-top: 3px solid var(--cta); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.trust strong { display: block; color: var(--accent); margin-bottom: 4px; }
.trust span { font-size: 14px; color: var(--muted); }
.footer-pay { margin-top: 16px; } .site-footer .copy { font-size: 13px; margin-top: 10px; }
.details details[open] summary { color: var(--accent); }
.btn { box-shadow: 0 2px 0 rgba(0,0,0,.15); }

/* ---- Footer base bar: payment icons and copyright now sit inside the page width ---- */
.site-footer__base { max-width: 1280px; margin: 0 auto; padding: 20px 20px 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer__base .footer-pay, .site-footer__base .pay-row { margin: 0; }
.site-footer__base .copy { margin: 0; flex: 1 1 320px; text-align: right; }
.site-footer li a { padding: 8px 0; }
@media (max-width: 700px) {
  .site-footer__cols { padding: 28px 16px; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__cols > div:last-child { grid-column: 1 / -1; }
  .site-footer__base { flex-direction: column; align-items: flex-start; padding: 20px 16px 28px; }
  .site-footer__base .copy { text-align: left; flex-basis: auto; }
}
/* ---- Guide search and filters ---- */
.gsearch { margin: 16px 0 24px; }
.gsearch input { width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 16px; border: 2px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); }
.gsearch input:focus { outline: none; border-color: #335FFF; box-shadow: 0 0 0 3px rgba(51, 95, 255, .2); }
.gcount { margin: 8px 2px 10px; font-size: 14px; color: var(--muted); }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { font: inherit; font-size: 14px; padding: 8px 14px; min-height: 40px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.gchip:hover { border-color: #335FFF; }
.gchip[aria-pressed="true"] { background: #335FFF; border-color: #335FFF; color: #fff; }
.card-grid li[hidden], .gnone[hidden] { display: none; }
/* ---- Guide pages: FAQ, code blocks, small-screen safety ---- */
.faq { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--border); }
.faq-item { margin: 0 0 16px; } .faq-q { margin: 0 0 4px; font-size: 17px; } .faq-a { margin: 0; }
.prose pre { overflow-x: auto; background: #f4f6ff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 15px; line-height: 1.5; -webkit-overflow-scrolling: touch; }
.prose code { font-size: .95em; overflow-wrap: anywhere; } .prose pre code { overflow-wrap: normal; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:focus-visible { outline: 3px solid #335FFF; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- Games page ---- */
.games { margin: 18px 0 8px; }
.gm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gm-tab { font: inherit; font-weight: 600; padding: 10px 16px; min-height: 44px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.gm-tab[aria-selected="true"] { background: #335FFF; border-color: #335FFF; color: #fff; }
.gm-host { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: #fff; max-width: 620px; }
.gm-help { margin: 0 0 12px; color: var(--muted); }
.gm-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.gm-stat { font-size: 15px; color: var(--muted); } .gm-stat b { color: #FF6200; font-size: 20px; }
.gm-prompt { font: 600 22px/1.3 ui-monospace, Menlo, Consolas, monospace; padding: 16px; margin-bottom: 10px; border-radius: 12px; background: #f4f6ff; border: 1px solid var(--border); overflow-wrap: anywhere; }
.gm-input { width: 100%; box-sizing: border-box; font: 20px ui-monospace, Menlo, Consolas, monospace; padding: 14px; border: 2px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.gm-input:focus { outline: none; border-color: #335FFF; } .gm-input.ok { border-color: #335FFF; } .gm-input.bad { border-color: #726C00; background: #f7f6e6; }
.gm-btn { min-height: 44px; cursor: pointer; } .gm-btn[disabled] { opacity: .55; cursor: default; }
.gm-msg { margin: 10px 0 0; min-height: 1.4em; font-weight: 600; }
.gm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.gm-card { font: inherit; font-weight: 700; font-size: clamp(13px, 3.6vw, 17px); aspect-ratio: 1 / 1; min-height: 64px; border: 0; border-radius: 12px; background: #335FFF; color: #fff; cursor: pointer; overflow-wrap: anywhere; padding: 4px; }
.gm-card.up { background: #fff; color: var(--text); outline: 3px solid #FF6200; } .gm-card.done { background: #eaf0ff; color: #335FFF; outline: 0; cursor: default; }
.gm-canvas { display: block; width: 100%; max-width: 560px; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--border); touch-action: none; user-select: none; }
.gm-pad { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gm-pad .gm-btn { flex: 1 1 90px; touch-action: manipulation; user-select: none; }
.gm-cta { margin-top: 24px; }
@media (min-width: 900px) { .gm-host { padding: 24px; } .gm-prompt { font-size: 26px; } }

/* ---- Games v2 ---- */
.site-nav a.nav-games { background: #FF6200; color: #111; font-weight: 700; border-radius: 999px; padding: 4px 14px; }
.gm-cards { margin: 8px 0 20px; } .gm-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.gm-ico { font-size: 34px; line-height: 1; } .gm-play { margin-top: auto; color: #335FFF; font-weight: 700; }
.gm-tools { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.gm-mini { font: inherit; font-size: 13px; padding: 4px 12px; min-height: 32px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; }
.gm-mini[aria-pressed="true"] { border-color: #335FFF; color: #335FFF; }
.gm-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; } .gm-seglabel { font-size: 14px; color: var(--muted); }
.gm-chip { font: inherit; font-size: 14px; padding: 6px 14px; min-height: 36px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.gm-chip[aria-pressed="true"] { background: #335FFF; border-color: #335FFF; color: #fff; }
.gm-prog { height: 8px; border-radius: 99px; background: #e6ebff; margin-bottom: 12px; overflow: hidden; } .gm-prog i { display: block; height: 100%; width: 100%; background: #FF6200; transition: width 1s linear; }
.gm-res { margin-top: 12px; } .gm-rank { margin: 0; font-size: 22px; font-weight: 800; color: #335FFF; }
.gm-quiz { min-height: 220px; } .gm-q { font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.gm-opt { display: block; width: 100%; text-align: left; font: inherit; padding: 14px; margin-bottom: 8px; min-height: 48px; border: 2px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; }
.gm-opt:hover { border-color: #335FFF; } .gm-opt.right { border-color: #335FFF; background: #eaf0ff; } .gm-opt.wrong { border-color: #726C00; background: #f7f6e6; }
.gm-why { margin: 8px 0 12px; color: var(--muted); }
.gm-dpad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 auto 10px; max-width: 480px; } .gm-d { padding: 0; min-height: 52px; touch-action: manipulation; }
.gm-btn { margin-top: 4px; }
@media (min-width: 900px) { .gm-dpad { display: none; } }
