:root{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-soft: #f0f4ff;
  --text: #1f2937;
  --muted: #596579;
  --line: #d9e1ee;
  --accent: #3657d6;
  --accent-2: #1f8b7b;
  --chip: #eef2ff;
  --warn: #fff7e8;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font: 16px/1.58 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #f7f9ff 0%, var(--bg) 100%);
}
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background:#f4f6fb;
  border:1px solid var(--line);
  border-radius:8px;
  padding:1px 6px;
}
.helpShell{
  width:min(1380px, calc(100% - 32px));
  margin:16px auto 40px;
  display:grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap:20px;
}
.sideNav{
  position:sticky;
  top:16px;
  align-self:start;
  max-height:calc(100vh - 32px);
  overflow:auto;
  background:rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:16px;
}
.brandBox{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}
.brandBox img{
  width:32px;
  height:auto;
  border-radius:14px;
  background:#fff;
  padding:6px;
  border:1px solid var(--line);
}
.brandTitle{
  font-weight:800;
  line-height:1.2;
}
.brandSub{
  font-size:13px;
  color:var(--muted);
}
.navSection + .navSection{ margin-top:16px; }
.navLabel{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  font-weight:800;
  margin:0 0 8px;
}
.navList{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}
.navList a{
  display:block;
  padding:9px 11px;
  border-radius:12px;
  color:var(--text);
  border:1px solid transparent;
}
.navList a:hover,
.navList a.active{
  background:var(--chip);
  border-color:#ccd7ff;
  text-decoration:none;
}
.helpMain{
  display:grid;
  gap:18px;
}
.hero,
.panel,
.gameCard,
.callout,
.metricGrid .metric,
.faq details,
.figureCard{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
}
.hero{
  padding:22px;
  display:grid;
  grid-template-columns: minmax(0, 1fr) 435px;
  gap:18px;
  align-items:center;
}
.hero h1{ margin:0 0 8px; font-size:34px; line-height:1.1; }
.hero p{ margin:0; color:var(--muted); }
.heroArt{
  display:grid;
  gap:12px;
  justify-items:center;
  align-items:center;
}
.heroArt img{
  width:auto;
  max-width:435px;
  max-height:246px;
  height:auto;
  object-fit:contain;
  border-radius:16px;
  border:1px solid var(--line);
  background:#eef3ff;
  padding:6px;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--chip);
  color:#2441b9;
  font-weight:700;
  border:1px solid #d8e0ff;
}
.panel{
  padding:20px;
}
.panel h2,
.gameCard h2,
.callout h2{
  margin:0 0 10px;
  font-size:24px;
}
.panel h3,
.gameCard h3,
.callout h3,
.figureCard h3{
  margin:0 0 8px;
  font-size:18px;
}
.panel p,
.gameCard p,
.callout p,
.figureCard p{ margin:0 0 10px; }
.kicker{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:6px;
}
.metricGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.metric{
  padding:14px;
}
.metric strong{
  display:block;
  font-size:14px;
  margin-bottom:6px;
}
.metric span{ color:var(--muted); font-size:14px; }
.twoCol{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}
.gridGames{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
.gameCard{
  overflow:hidden;
}
.gameHead{
  display:grid;
  grid-template-columns: 420px minmax(0,1fr);
  gap:0;
}
.gameArt{
  background:#edf2ff;
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.gameArt img{
  width:auto;
  max-width:420px;
  max-height:270px;
  height:auto;
  object-fit:contain;
}
.gameArt.artContain{
  display:flex;
  align-items:center;
  justify-content:center;
}
.gameArt.artContain img{
  max-width:330px;
  max-height:270px;
  object-fit:contain;
  padding:0;
}
.gameBody{ padding:18px; }
.bulletList,
.miniList{
  margin:0;
  padding-left:18px;
}
.bulletList li,
.miniList li{ margin:8px 0; }
.flow{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.flowStep{
  background:var(--panel-soft);
  border:1px solid #dfe7ff;
  border-radius:16px;
  padding:6px;
}
.flowStep strong{ display:block; margin-bottom:4px; }
.warn{
  background:var(--warn);
  border:1px solid #f1d69d;
  border-radius:16px;
  padding:12px 14px;
}
.noteGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
.figureCard{
  padding:16px;
}
.figureCard img{
  border-radius:16px;
  border:1px solid var(--line);
  background:#f3f6ff;
  max-width:480px;
  max-height:330px;
  object-fit:contain;
  width:auto;
  height:auto;
  margin-inline:auto;
  padding:6px;
}
.tableWrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:16px;
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}
th, td{
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
th{
  background:#f7f9ff;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.faq details{
  padding:14px 16px;
}
.faq details + details{ margin-top:10px; }
.faq summary{
  cursor:pointer;
  font-weight:700;
}
.faq .answer{
  margin-top:10px;
  color:var(--muted);
}
.footerNote{
  color:var(--muted);
  font-size:13px;
  text-align:center;
  padding:8px 0 0;
}
@media (max-width: 1120px){
  .helpShell{ grid-template-columns: 1fr; }
  .sideNav{ position:relative; top:auto; max-height:none; }
}
@media (max-width: 900px){
  .hero,
  .gameHead,
  .twoCol,
  .gridGames,
  .noteGrid,
  .metricGrid,
  .flow{
    grid-template-columns: 1fr;
  }
  .heroArt{ order:-1; }
  .gameHead{ grid-template-columns: 1fr; }
  .gameArt{ min-height:300px; }
}
