:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #fff;
  --surface-soft: #f0f4f9;
  --text: #111827;
  --muted: #667085;
  --border: #e3e8ef;
  --brand: #ff5c35;
  --brand-dark: #d94220;
  --brand-soft: #fff0eb;
  --success: #138a60;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f16;
  --surface: #111722;
  --surface-soft: #171e2b;
  --text: #f5f7fa;
  --muted: #9aa6b6;
  --border: #273142;
  --brand-soft: #321c18;
  --shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 72px;
  align-items: center;
  gap: 38px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.brand-mark {
  display: grid; width: 38px; height: 38px; place-items: center;
  border-radius: 11px; background: var(--brand); color: #fff; font-weight: 800;
}
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 14px; letter-spacing: .12em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.site-header nav { display: flex; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
.site-header nav a:hover { color: var(--brand); }
.language-button {
  position: absolute;
  right: max(16px, calc((100vw - 1120px) / 2));
  top: 17px;
  flex: none;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.site-header { padding-right: max(108px, calc((100vw - 944px) / 2)); }
.theme-button {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
main { min-height: calc(100vh - 146px); }
.hero {
  padding: 92px 24px 76px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--brand) 14%, transparent), transparent 36%),
    linear-gradient(to bottom, var(--surface), var(--bg));
}
.eyebrow {
  display: inline-block; color: var(--brand); font-size: 12px;
  font-weight: 800; letter-spacing: .03em;
}
.hero h1 { margin: 10px 0 8px; font-size: clamp(38px, 7vw, 60px); line-height: 1.2; letter-spacing: -.04em; }
.hero > p { margin: 0 auto 32px; color: var(--muted); font-size: 17px; }
.search-box {
  display: flex; width: min(100%, 690px); min-height: 62px; align-items: center; gap: 13px;
  margin: auto; padding: 0 18px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--muted);
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent); }
.search-box svg { width: 21px; height: 21px; flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
kbd { padding: 3px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-soft); font-size: 10px; direction: ltr; }
.content-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 68px 0 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 4px 0 0; font-size: 27px; }
.result-count { color: var(--muted); font-size: 12px; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.solution-card {
  display: flex; min-height: 220px; flex-direction: column; padding: 24px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}
.solution-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-category {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 800;
}
.solution-card h3 { margin: 18px 0 7px; font-size: 18px; line-height: 1.5; }
.solution-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.card-link { margin-top: auto; padding-top: 20px; color: var(--brand); font-size: 12px; font-weight: 700; }
.state-card { padding: 42px; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); text-align: center; }
.state-card strong { display: block; color: var(--text); }
.state-card p { margin: 5px 0 0; }
.support-card {
  display: flex; width: min(1120px, calc(100% - 40px)); align-items: center; justify-content: space-between;
  gap: 26px; margin: 0 auto 90px; padding: 38px; border-radius: 20px;
  background: #111827; color: #fff; box-shadow: var(--shadow);
}
.support-card h2 { margin: 5px 0; font-size: 25px; }
.support-card p { margin: 0; color: #aeb8c7; }
.primary-button {
  flex: none; padding: 12px 20px; border-radius: 11px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
}
footer {
  display: flex; min-height: 74px; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--border);
  color: var(--muted); font-size: 11px;
}

.problem-page { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 90px; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--brand); }
.problem-header { padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.problem-header h1 { margin: 14px 0 9px; font-size: clamp(34px, 6vw, 48px); line-height: 1.3; letter-spacing: -.035em; }
.problem-summary { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; }
.error-code { display: inline-block; margin-top: 14px; padding: 5px 10px; border-radius: 7px; background: var(--surface-soft); font-family: Consolas, monospace; direction: ltr; }
.quick-solution { margin: 30px 0; padding: 22px; border: 1px solid color-mix(in srgb, var(--success) 28%, var(--border)); border-right: 4px solid var(--success); border-radius: 14px; background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.quick-solution span { color: var(--success); font-size: 11px; font-weight: 800; }
.quick-solution p { margin: 4px 0 0; }
.problem-section { margin-top: 42px; }
.problem-section h2 { margin: 0 0 15px; font-size: 24px; }
.problem-section > p { color: var(--muted); white-space: pre-line; }
.step-item { position: relative; min-height: 72px; padding: 0 55px 28px 0; }
.step-number {
  position: absolute; top: 0; right: 0; display: grid; width: 34px; height: 34px; place-items: center;
  border: 1px solid var(--brand); border-radius: 50%; color: var(--brand); font-size: 12px; font-weight: 800;
}
.step-item:not(:last-child)::after { position: absolute; top: 35px; right: 16px; bottom: 0; width: 1px; background: var(--border); content: ""; }
.step-item p { margin: 3px 0 0; color: var(--muted); white-space: pre-line; }
.problem-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.problem-help a { color: var(--brand); font-size: 13px; font-weight: 800; }

@media (max-width: 800px) {
  .site-header { gap: 14px; padding: 0 16px; }
  .site-header nav { display: none; }
  .brand { margin-left: auto; }
  .hero { padding-top: 64px; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .support-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .hero { padding-right: 18px; padding-left: 18px; }
  .hero h1 { font-size: 37px; }
  .search-box kbd { display: none; }
  .content-section { width: calc(100% - 28px); padding-top: 48px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 190px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .support-card { width: calc(100% - 28px); padding: 25px; }
  .problem-page { width: calc(100% - 30px); padding-top: 36px; }
  .problem-header h1 { font-size: 32px; }
  .problem-help { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
}

/* Simple store help-center theme */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --text: #172033;
  --muted: #667085;
  --border: #e1e5eb;
  --brand: #1264b5;
  --brand-dark: #0d4f91;
  --brand-soft: #eaf3fc;
  --shadow: none;
}
.site-header {
  height: 68px;
  background: #fff;
  backdrop-filter: none;
}
.brand-mark {
  border-radius: 50%;
  background: #1264b5;
}
.brand strong { letter-spacing: 0; }
.hero {
  padding: 55px 20px 45px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.hero h1 {
  margin-top: 0;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -.025em;
}
.hero > p { margin-bottom: 24px; font-size: 16px; }
.search-box {
  min-height: 56px;
  border-radius: 10px;
  box-shadow: none;
}
.content-section { padding: 42px 0 75px; }
.games-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  direction: ltr;
}
.games-sidebar,
.solutions-content {
  direction: rtl;
}
[dir="ltr"] .games-sidebar,
[dir="ltr"] .solutions-content { direction: ltr; }
[dir="ltr"] .game-button { text-align: left; }
[dir="ltr"] .step-item { padding: 0 0 28px 55px; }
[dir="ltr"] .step-number { right: auto; left: 0; }
[dir="ltr"] .step-item:not(:last-child)::after { right: auto; left: 16px; }
[dir="ltr"] .quick-solution { border-right-width: 1px; border-left: 4px solid var(--success); }
.games-sidebar {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.games-sidebar h2 { margin: 0; font-size: 19px; }
.games-sidebar > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
#games-list { display: grid; gap: 5px; }
.game-button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.game-button:hover { background: var(--surface-soft); }
.game-button.active { background: var(--brand-soft); color: var(--brand); }
.section-heading { margin-bottom: 14px; }
.section-heading h2 { font-size: 23px; }
.solutions-grid { grid-template-columns: 1fr; gap: 9px; }
.solution-card {
  min-height: auto;
  padding: 18px 20px;
  border-radius: 10px;
  box-shadow: none;
  transform: none !important;
}
.solution-card:hover { border-color: var(--brand); box-shadow: none; }
.solution-card h3 { margin: 10px 0 3px; font-size: 17px; }
.solution-card p { font-size: 13px; }
.card-link { padding-top: 10px; }
.card-category {
  border-radius: 5px;
  font-size: 10px;
}
.support-card {
  padding: 28px;
  border: 1px solid #cbdff3;
  border-radius: 10px;
  background: #edf5fd;
  color: var(--text);
  box-shadow: none;
}
.support-card p { color: var(--muted); }
.primary-button { border-radius: 7px; background: var(--brand); }
.problem-page { padding-top: 42px; }
.problem-header h1 { font-size: clamp(30px, 5vw, 42px); }
.quick-solution,
.problem-help { border-radius: 9px; }

@media (max-width: 760px) {
  .games-layout { grid-template-columns: 1fr; gap: 18px; }
  .games-sidebar { overflow-x: auto; }
  #games-list { display: flex; min-width: max-content; }
  .game-button { width: auto; text-align: center; }
}

/* ABOS dark theme */
:root {
  color-scheme: dark;
  --bg: #05070a;
  --surface: #0d1117;
  --surface-soft: #151b24;
  --text: #f4f7fb;
  --muted: #9aa8ba;
  --border: #202936;
  --brand: #2787df;
  --brand-dark: #1470c5;
  --brand-soft: #102c46;
  --success: #34c994;
}
body { background: var(--bg); }
.site-header {
  border-bottom-color: #1b2430;
  background: #080b10;
}
.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
}
.brand-mark { background: var(--brand); }
.hero {
  border-bottom-color: var(--border);
  background: #080b10;
}
.search-box,
.games-sidebar,
.solution-card,
.problem-help {
  background: var(--surface);
}
.search-box input { color: var(--text); }
.game-button { color: var(--text); }
.solution-card:hover { background: #101722; }
.state-card { background: var(--surface); }
.support-card {
  border-color: #174d7e;
  background: #0b2034;
  color: var(--text);
}
.quick-solution {
  background: #09241e;
}
footer { border-top-color: var(--border); }

.product-picker {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 90px;
}
.product-cards {
  display: grid;
  gap: 10px;
}
.product-card {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: start;
}
.product-card:hover {
  border-color: var(--brand);
  background: #101722;
}
.product-card strong { font-size: 16px; }
.product-card span { color: var(--brand); font-size: 20px; }
.back-products {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.back-products:hover { color: var(--brand); }
#solutions-section { width: min(760px, calc(100% - 32px)); }
#solutions-section .solution-card { min-height: 0; }
#solutions-section .solution-card .card-category,
#solutions-section .result-count { display: none; }

@media (max-width: 540px) {
  .product-picker { padding-top: 24px; }
  .product-card { min-height: 60px; padding: 0 15px; }
}
