/* GameSanj styles. Tokens match the approved design (docs/PLAN.md). */
:root {
  --navy: #0F1B2D;
  --navy-line: #263955;
  --navy-soft: #C3CBD8;
  --navy-muted: #AEB8C8;
  --buy: #F2762E;          /* only for purchase buttons */
  --buy-ink: #1A0E05;
  --trust: #0F7A4A;
  --trust-bg: #E7F4EE;
  --trust-ink: #0F6B41;
  --warn: #9A3412;
  --warn-bg: #FFF1E8;
  --ink: #111827;
  --muted: #4B5563;
  --line: #E3E6EB;
  --line-strong: #CBD2DC;
  --ground: #F4F6F9;
  --chip: #EEF1F5;
  --surface: #FFFFFF;
  --font-body: Vazirmatn, Tahoma, sans-serif;
  --font-display: "Noto Kufi Arabic", Vazirmatn, Tahoma, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); line-height: 1.8; }
a { color: var(--navy); }
a:hover { color: #2A4470; }
img, svg { flex-shrink: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; right: -9999px; }
.skip:focus { right: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row-between { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--buy); display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 23px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--navy); background: var(--ground); }
.header-search input { min-height: 44px; width: 200px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface); }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; color: var(--muted); font-size: 14px; }
.footer-note { margin: 6px 0 0; max-width: 620px; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Headings */
.h1 { margin: 0; color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.6; }
.h2 { margin: 0 0 16px; color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: inherit; }
.slant { display: inline-block; width: 7px; height: 22px; background: var(--navy); transform: skewX(-14deg); margin-left: 12px; vertical-align: -3px; }
.section { padding-top: 36px; padding-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin-bottom: 16px; }
.section-head .h2, .section-head .h3 { margin-bottom: 0; }

/* Home hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 860px; padding-top: 56px; padding-bottom: 48px; text-align: center; }
.hero h1 { margin: 0; color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.6; }
.pill { margin: 0 0 18px; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #374151; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--trust); }
.big-search { margin: 28px auto 0; display: flex; max-width: 700px; border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.big-search input { flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 0 18px; border: 0; font: inherit; font-size: 17px; background: transparent; color: var(--ink); }
.big-search button { min-height: 56px; padding: 0 26px; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.page-top .big-search { margin-right: 0; }
.popular { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.popular a { font-weight: 700; text-decoration: none; }

/* Hub tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.tile.is-live { border: 2px solid var(--navy); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.tile.is-live:hover { background: #F8FAFC; color: var(--ink); }
.tile-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--chip); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.tile.is-live .tile-icon { background: var(--navy); color: #fff; }
.tile-name { font-weight: 800; font-size: 17px; }
.tile-meta { font-size: 13px; color: var(--muted); }
.tile.is-soon .tile-name { font-weight: 700; color: #374151; }

/* Panels and cards */
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.grow-3 { flex: 3 1 520px; min-width: 0; }
.grow-2 { flex: 2 1 320px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.panel-navy, .card-navy { background: var(--navy); color: #F3F5F9; border-color: var(--navy); }
.panel-navy a, .card-navy a { color: #fff; }
.on-navy-muted { color: var(--navy-muted); }
.on-navy-soft { color: var(--navy-soft); }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; line-height: 1.9; }
.more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.soon-tag { display: inline-block; margin-top: 14px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--navy-line); color: #fff; }

.mini-rows { display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: #F7F8FA; border-radius: 12px; }
.mini-name { flex: 1 1 140px; font-weight: 700; text-decoration: none; }
.mini-price { font-weight: 900; }
.test-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.test-list li { border-top: 1px solid var(--navy-line); padding-top: 10px; }
.test-list a { font-weight: 700; text-decoration: none; }

/* Chips, rank, ring, buttons */
.chip { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: #374151; font-weight: 500; }
.chip-trust { background: var(--trust-bg); color: var(--trust-ink); font-weight: 700; }
.chip-note { background: #EAF0FF; color: #1E3A8A; }
.rank { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--chip); color: #374151; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.rank.is-top { background: var(--navy); color: #fff; border-radius: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.ring { width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--trust); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-weight: 900; font-size: 15px; }
.ring small { font-size: 10px; color: var(--muted); font-weight: 500; }
.ring-lg { width: 92px; height: 92px; border-width: 6px; font-size: 26px; }
.ring-lg small { font-size: 12px; }
.btn-buy { display: inline-block; text-decoration: none; background: var(--buy); color: var(--buy-ink); padding: 12px 20px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.btn-buy:hover { background: #E0651F; color: var(--buy-ink); }

/* Game page */
.page-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 24px 0 32px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.summary-cards { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sum-card { background: var(--navy); color: #F3F5F9; padding: 18px 20px; border-top: 3px solid #3B5276; border-radius: 14px 14px 14px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
.sum-label { color: var(--navy-muted); font-size: 14px; }
.sum-value { font-weight: 900; font-size: 22px; margin-top: 4px; }
.sum-note { color: #8E9AAE; font-size: 12px; margin-top: 6px; }

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pack { display: flex; align-items: center; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 0 14px 14px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); text-decoration: none; color: var(--ink); min-height: 44px; }
.pack-name { font-weight: 900; font-size: 18px; }
.pack.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.sorts { display: flex; flex-wrap: wrap; gap: 6px; }
.sort { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; color: var(--ink); }
.sort.is-current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }

.delivery-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.delivery-opt { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.delivery-opt strong { font-size: 17px; }
.delivery-opt span { font-size: 13px; color: var(--muted); }
.delivery-opt.is-current { border-color: var(--navy); background: var(--navy); color: #fff; }
.delivery-opt.is-current span { color: var(--navy-soft); }
.h1-sub { font-size: 0.55em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.row.is-stale { opacity: 0.62; }
.row-shop { display: flex; align-items: center; gap: 14px; flex: 1 1 280px; min-width: 0; }
.row-id { min-width: 0; }
.row-name { margin: 0; font-size: 18px; font-weight: 700; }
.row-name a { text-decoration: none; }
.row-sub { font-size: 12px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #F1F2F4; color: #6B717C; text-decoration: line-through; }
.badge.on { background: var(--trust-bg); color: var(--trust-ink); text-decoration: none; }
.row-cell { flex: 0 1 120px; text-align: center; }
.row-score { display: flex; align-items: center; justify-content: center; gap: 8px; flex-basis: 140px; }
.row-price { flex-basis: 170px; }
.cell-label { font-size: 13px; color: var(--muted); }
.cell-value { font-weight: 700; }
.cell-note { font-size: 12px; color: var(--muted); }
.price { font-weight: 900; font-size: 20px; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.row-action { flex: 0 0 auto; }
.note { margin-top: 12px; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* Shop page */
.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.score-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.warn { margin-top: 16px; display: flex; gap: 10px; align-items: center; background: var(--warn-bg); color: var(--warn); border: 1px solid #FBC9A8; border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.warn-text { color: var(--warn); }
.criteria { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bar { height: 8px; background: var(--chip); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--trust); border-radius: 999px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 520px; text-align: right; }
.table th { font-size: 13px; color: var(--muted); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr.is-stale td { color: var(--muted); }
.complaints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.complaints p { margin: 4px 0 0; }

/* Lists */
.rules { margin: 16px 0 0; padding-right: 20px; line-height: 2; }
.black-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.results { margin: 0 0 20px; padding-right: 20px; line-height: 2.1; }

/* How-we-score page */
.score-hero { background: var(--navy); color: #F3F5F9; padding: 48px 0 40px; }
.eyebrow { margin: 0 0 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy-soft); background: rgba(255, 255, 255, 0.08); padding: 6px 12px; border-radius: 999px; }
.score-hero-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.6; color: #fff; }
.score-hero-lead { margin: 10px 0 0; color: var(--navy-soft); font-size: 17px; max-width: 640px; }
.weight-strip { margin-top: 28px; display: flex; gap: 4px; height: 16px; }
.seg { display: block; height: 100%; border-radius: 4px; }
.tone-0 { background: #FFFFFF; }
.tone-1 { background: #AEC2E4; }
.tone-2 { background: #6E8BB8; }
.tone-3 { background: #F2C9A9; }
.weight-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--navy-soft); }
.weight-legend li { display: inline-flex; align-items: center; gap: 6px; }
.weight-legend strong { color: #fff; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.crit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.crit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.crit-top { display: flex; align-items: center; gap: 12px; }
.crit-icon { width: 44px; height: 44px; border-radius: 12px; background: #EAF0FF; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.crit-title { margin: 0; font-size: 17px; font-weight: 800; flex: 1 1 auto; }
.crit-weight { background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 900; white-space: nowrap; }
.crit-weight small { font-weight: 500; font-size: 12px; color: var(--navy-soft); }
.crit-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

.rule-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.rule-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; color: var(--navy); }
.rule-card p { margin: 0; color: var(--ink); line-height: 1.9; }
.rule-card svg { margin-top: 3px; }

.fresh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.fresh-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.fresh-steps li span:last-child { grid-column: 2; color: var(--muted); font-size: 14px; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; }
.step-fresh .step-dot { background: var(--trust); }
.step-stale .step-dot { background: #9CA3AF; }
.step-hidden .step-dot { background: #C2410C; }

.cta-navy { background: var(--navy); color: #F3F5F9; border-radius: 18px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-navy p { margin: 0; }
.cta-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-btn { background: #fff; color: var(--navy); text-decoration: none; padding: 12px 20px; border-radius: 12px; font-weight: 700; }
.cta-btn:hover { background: #EAF0FF; color: var(--navy); }
.cta-link { color: #fff; font-weight: 700; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-search { width: 100%; }
  .header-search input { width: 100%; }
  .row-cell, .row-price { flex: 1 1 30%; }
  .row-action { width: 100%; }
  .row-action .btn-buy { display: block; text-align: center; }
}

/* Price charts (apps/web/charts.py): inline SVG, no JavaScript */
.chart-box { max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 8px; }
.chart-head .h3 { margin: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.chart-legend li { display: flex; align-items: center; gap: 8px; }
.chart-legend b { color: var(--ink); font-weight: 700; }
.key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--navy); border-radius: 2px; }
.key-ref { border-top-color: #7C8AA0; }
.chart { display: block; width: 100%; max-width: 480px; height: auto; margin: 4px 0 0; font-family: var(--font-body); overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { fill: var(--muted); font-size: 12px; }
.ch-main, .ch-ref { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-main { stroke: var(--navy); }
.ch-ref { stroke: #7C8AA0; }
.ch-main-dot, .ch-end { fill: var(--navy); stroke: var(--surface); stroke-width: 2; }
.ch-ref-dot { fill: #7C8AA0; }
.ch-hit rect { fill: transparent; }
.ch-hit .ch-x { stroke: var(--line-strong); stroke-width: 1; opacity: 0; }
.ch-hit .ch-pt { opacity: 0; stroke: var(--surface); stroke-width: 2; }
.ch-pt-main { fill: var(--navy); }
.ch-pt-ref { fill: #7C8AA0; }
.ch-hit:hover .ch-x, .ch-hit:hover .ch-pt { opacity: 1; }
.chart-table { margin-top: 8px; font-size: 14px; }
.chart-table summary { cursor: pointer; color: var(--muted); min-height: 32px; }
.chart-table .table { min-width: 0; }
.chart-table td, .chart-table th { padding: 6px 12px; }
.chart-empty { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .chart-box { padding: 12px 14px; } }

/* Color layer (owner, 16 Oct): an accent color per delivery type.
   Default accent is blue; .acc-<type> (on body for the game page, on each chart box on the shop page) switches it.
   Orange stays only for purchase buttons, green only for trust. */
:root { --acc: #2563EB; --acc-soft: #EAF1FF; --acc-ink: #1E40AF; --acc-deep: #1E3A8A; --acc-2: #0D9488; }
.acc-normal { --acc: #0D9488; --acc-soft: #E6F6F4; --acc-ink: #0F766E; --acc-deep: #134E4A; --acc-2: #2563EB; }
.acc-redeem { --acc: #7C3AED; --acc-soft: #F2ECFE; --acc-ink: #6D28D9; --acc-deep: #4C1D95; --acc-2: #0D9488; }
.acc-login  { --acc: #DB2777; --acc-soft: #FDECF4; --acc-ink: #BE185D; --acc-deep: #831843; --acc-2: #2563EB; }
.d-instant { --c: #2563EB; --c-soft: #EAF1FF; }
.d-normal  { --c: #0D9488; --c-soft: #E6F6F4; }
.d-redeem  { --c: #7C3AED; --c-soft: #F2ECFE; }
.d-login   { --c: #DB2777; --c-soft: #FDECF4; }

.site-header { background: linear-gradient(90deg, #DB2777, #7C3AED, #2563EB, #0D9488) top / 100% 3px no-repeat, var(--surface); padding-top: 3px; }
.slant { background: var(--acc); }
.h1-sub { color: var(--acc); }
.hero, .page-top { background: linear-gradient(180deg, var(--acc-soft) 0%, var(--surface) 100%); }
.big-search { border-color: var(--acc); }
.big-search button { background: linear-gradient(135deg, var(--acc-deep), var(--acc)); }
.pill .dot { background: var(--trust); }

.tile.is-live { border-color: var(--acc); }
.tile.is-live .tile-icon { background: linear-gradient(135deg, var(--acc-deep), var(--acc)); }
.tile.is-live:hover { background: var(--acc-soft); }
.panel-navy, .card-navy, .cta-navy, .score-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--acc-deep) 100%); }
.crit-icon { background: var(--acc-soft); color: var(--acc-ink); }
.crit-weight { background: var(--acc); }
.crit-weight small { color: rgba(255, 255, 255, 0.85); }

.sum-card { background: linear-gradient(135deg, var(--navy) 0%, var(--acc-deep) 100%); }
.summary-cards .sum-card:nth-child(1) { border-top-color: #60A5FA; }
.summary-cards .sum-card:nth-child(2) { border-top-color: #2DD4BF; }
.summary-cards .sum-card:nth-child(3) { border-top-color: #34D399; }

.delivery-opt { border-color: var(--c-soft, var(--line)); }
.delivery-opt:hover { border-color: var(--c, var(--navy)); color: var(--ink); }
.delivery-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--navy)); margin-left: 8px; vertical-align: 1px; }
.delivery-opt.is-current { background: var(--c, var(--navy)); border-color: var(--c, var(--navy)); color: #fff; }
.delivery-opt.is-current .delivery-dot { background: #fff; }
.delivery-opt.is-current span { color: rgba(255, 255, 255, 0.88); }

.pack.is-current { background: linear-gradient(135deg, var(--acc-ink), var(--acc)); border-color: var(--acc); }
.pack:hover { border-color: var(--acc); color: var(--ink); }
.sort.is-current { background: var(--acc); border-color: var(--acc); }
.rank.is-top { background: var(--acc); }
.price, .mini-price { color: var(--acc-ink); }

.chart-box { border-top: 3px solid var(--acc); }
.key { border-top-color: var(--acc); }
.key-ref { border-top-color: var(--acc-2); }
.ch-main { stroke: var(--acc); }
.ch-ref { stroke: var(--acc-2); }
.ch-main-dot, .ch-end, .ch-pt-main { fill: var(--acc); }
.ch-ref-dot, .ch-pt-ref { fill: var(--acc-2); }

/* Numbers inside headings use the body font (filter "num"): the Kufi heading font draws Persian digits poorly. */
.num { font-family: var(--font-body); font-weight: 900; }

/* Shop page: small charts, one per package and delivery type */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.chart-grid .chart-box { max-width: none; height: 100%; }
.chart-grid .chart { max-width: none; }
@media (max-width: 400px) { .chart-grid { grid-template-columns: 1fr; } }

/* --- Ideas from Torob (owner, 17 Oct) ------------------------------------- */

/* Best-choice box above the comparison table */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pick { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 6px 18px -12px var(--acc); }
.pick-trust, .pick-both { border-top-color: var(--trust); box-shadow: 0 6px 18px -12px var(--trust); }
.pick-kind { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--acc-ink); font-size: 15px; }
.pick-trust .pick-kind, .pick-both .pick-kind { color: var(--trust-ink); }
.pick-shop { font-size: 20px; margin: 8px 0 6px; }
.pick-shop a { color: var(--ink); text-decoration: none; }
.pick-shop a:hover { text-decoration: underline; }
.pick-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-price { margin-top: 12px; font-weight: 900; font-size: 24px; color: var(--acc-ink); }
.pick-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.pick-note { font-size: 13px; color: var(--muted); }
.pick-note { min-height: 1.5em; }
.pick .btn-buy { margin-top: auto; text-align: center; }
.pick-note, .pick-price:last-of-type { margin-bottom: 14px; }

/* "Report a wrong price" link and small buy button */
.report-link { display: inline-block; margin-top: 4px; padding: 4px 0; font-size: 12px; color: var(--muted); }
.report-link:hover { color: var(--warn); }
.btn-buy-sm { padding: 6px 14px; font-size: 14px; }
.td-actions { white-space: nowrap; }

/* Chart range buttons and gap key */
.ranges .sort { min-height: 36px; padding: 0 12px; font-size: 14px; }
.key-gap { border-top: 2px dashed var(--acc); }

/* Report form */
.ink { color: var(--ink); }
.report-offer { display: grid; gap: 6px; margin-bottom: 12px; }
.gs-report-form { display: grid; gap: 18px; }
.field { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.field-label { font-weight: 700; padding: 0; }
.field input[type="text"], .field textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); }
.field input[type="text"]:focus, .field textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
.field-error { margin: 0; color: var(--warn); font-size: 14px; }
.choice-list { display: grid; gap: 6px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.choice input { accent-color: var(--acc); width: 18px; height: 18px; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn-main { font: inherit; font-weight: 700; min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--acc); color: #fff; cursor: pointer; }
.btn-main:hover { background: var(--acc-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Links on the game page jump back to the part that was clicked (#choose, #shops), not the top. */
.jump { scroll-margin-top: 12px; }
