/* ═══════════════════════════════════════════════════════════════
   SOL CLASH WHITEPAPER — style.css
   GitBook-style dark UI · Mobile-first responsive
═══════════════════════════════════════════════════════════════ */

/* ── RESET & DESIGN TOKENS ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:              #1a1b23;
  --sidebar-bg:      #1e1f2a;
  --sidebar-w:       260px;
  --border:          #2e3044;
  --text:            #e2e4ef;
  --muted:           #8b90a8;
  --hint:            #555870;
  --accent:          #9945FF;
  --accent2:         #14F195;
  --gold:            #f0c040;
  --surface:         #252636;
  --surface2:        #2d2e42;
  --link:            #7c8cf8;
  --topbar-h:        52px;
  --mobile-topbar-h: 56px;
  --radius:          10px;
}

html { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 200;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.sidebar-logo {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--surface2);
}

.logo-text  { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.2; }
.logo-sub   { font-size: 11px; color: var(--muted); margin-top: 1px; }

.sidebar-version {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ver-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(153,69,255,.12);
  border: 1px solid rgba(153,69,255,.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: #bf88ff;
  font-family: 'IBM Plex Mono', monospace;
}
.ver-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

.sidebar-nav { padding: 10px 0 24px; overflow-y: auto; flex: 1; }

/* ── SIDEBAR SCROLLBAR ──────────────────────────────────────── */
.sidebar-nav::-webkit-scrollbar         { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track   { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb   {
  background: rgba(153,69,255,.3);
  border-radius: 4px;
  transition: background .2s;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(153,69,255,.6); }

/* ── PAGE SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar               { width: 6px; height: 6px; }
::-webkit-scrollbar-track         { background: var(--bg); }
::-webkit-scrollbar-thumb         {
  background: linear-gradient(180deg, rgba(153,69,255,.5) 0%, rgba(20,241,149,.3) 100%);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover   {
  background: linear-gradient(180deg, rgba(153,69,255,.85) 0%, rgba(20,241,149,.6) 100%);
}
::-webkit-scrollbar-corner        { background: var(--bg); }

/* Firefox scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(153,69,255,.4) transparent; }

.nav-group        { margin-bottom: 2px; }
.nav-group-label  {
  padding: 8px 20px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--hint);
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 20px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .18s ease;
  cursor: pointer;
  user-select: none;
  border-radius: 0 6px 6px 0;
}
.nav-item:hover  { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.nav-item.active { color: var(--text); background: rgba(153,69,255,.1); border-left-color: var(--accent); }
.nav-item.active .ni svg { stroke: var(--accent); opacity: 1; }
.nav-item .ni {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .18s;
}
.nav-item .ni svg { width: 14px; height: 14px; }
.nav-item:hover .ni { opacity: 1; }
.nav-item.sub    { padding-left: 36px; font-size: 12.5px; }
.nav-item.sub .ni.sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hint);
  flex-shrink: 0;
  margin-right: 2px;
  transition: background .18s;
}
.nav-item.sub:hover .ni.sub-dot,
.nav-item.sub.active .ni.sub-dot { background: var(--accent); }

/* ── OVERLAY (mobile) ───────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 190;
  backdrop-filter: blur(2px);
}

/* ── MAIN WRAPPER ───────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--sidebar-w);
  transition: margin-left .25s cubic-bezier(.4,0,.2,1);
  height: 100vh;
  overflow: hidden;
}

/* ── TOP BAR ────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(26,27,35,.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  transition: border-color .15s;
}
.hamburger:hover { border-color: var(--surface2); }
.hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: all .2s;
}

.breadcrumb     { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb span { color: var(--text); }
.breadcrumb .sep { color: var(--hint); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.tb-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.tb-btn:hover   { color: var(--text); border-color: var(--surface2); }
.tb-btn.primary { background: rgba(153,69,255,.15); border-color: rgba(153,69,255,.3); color: #bf88ff; }

/* ── PAGE CONTENT ───────────────────────────────────────────── */
.page {
  flex: 1;
  width: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Each section is a full page, hidden by default */
.page > section {
  display: none;
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 40px 80px;
  width: 100%;
  animation: pageIn .22s ease both;
}
.page > section.page-active {
  display: block;
}

/* page-nav and dividers sit outside sections — keep hidden, JS moves pnav inside */
.page > .page-nav,
.page > .divider {
  display: none;
}

/* The page-nav rendered inside active section */
section.page-active .page-nav {
  display: flex;
  margin-top: 40px;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20,241,149,.08);
  border: 1px solid rgba(20,241,149,.2);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  color: #14F195;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 16px;
  letter-spacing: .05em;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 48px 0 12px;
}
h2::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--accent);
  margin-bottom: 10px;
  border-radius: 2px;
}

h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
/* Tighter h3 when directly above a table */
h3 + .table-wrap { margin-top: 8px; }

p { color: var(--muted); margin-bottom: 14px; line-height: 1.75; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 500; }
a      { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HINT BOX ───────────────────────────────────────────────── */
.hint-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hint-box.info    { border-left: 3px solid var(--link);    border-radius: 0 8px 8px 0; }
.hint-box.success { border-left: 3px solid var(--accent2); border-radius: 0 8px 8px 0; }
.hint-box.warning { border-left: 3px solid var(--gold);    border-radius: 0 8px 8px 0; }
.hint-box.purple  { border-left: 3px solid var(--accent);  border-radius: 0 8px 8px 0; }

.hint-icon        { font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.hint-box p       { font-size: 13.5px; margin: 0; line-height: 1.65; }
.hint-box .hint-title { font-weight: 500; color: var(--text); margin-bottom: 3px; font-size: 13px; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.card-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ci-purple { background: rgba(153,69,255,.12); border: 1px solid rgba(153,69,255,.2); }
.ci-green  { background: rgba(20,241,149,.08);  border: 1px solid rgba(20,241,149,.18); }
.ci-gold   { background: rgba(240,192,64,.1);   border: 1px solid rgba(240,192,64,.2); }
.ci-blue   { background: rgba(124,140,248,.1);  border: 1px solid rgba(124,140,248,.2); }

.card h3 { margin: 0; font-size: 13.5px; }
.card p  { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── TABLE ──────────────────────────────────────────────────── */
.table-wrap {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 400px; }
thead { background: var(--surface); }

th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--hint);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td { padding: 11px 16px; color: var(--muted); border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
.td-hi { color: var(--text); font-weight: 500; }

/* ── BADGE ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.b-purple { background: rgba(153,69,255,.12); color: #bf88ff;  border: 1px solid rgba(153,69,255,.2); }
.b-green  { background: rgba(20,241,149,.08);  color: #14F195;  border: 1px solid rgba(20,241,149,.18); }
.b-gold   { background: rgba(240,192,64,.1);   color: #f0c040;  border: 1px solid rgba(240,192,64,.2); }
.b-blue   { background: rgba(124,140,248,.1);  color: #9aabff;  border: 1px solid rgba(124,140,248,.2); }
.b-gray   { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }

/* ── STAT STRIP ─────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}
.stat-cell { background: var(--surface); padding: 18px 16px; }
.stat-n {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 5px;
}
.stat-n.purple { color: #bf88ff; }
.stat-n.green  { color: var(--accent2); }
.stat-n.gold   { color: var(--gold); }
.stat-n.white  { color: var(--text); }
.stat-l { font-size: 11.5px; color: var(--hint); }

/* ── STEPS ──────────────────────────────────────────────────── */
.steps { margin: 20px 0; display: flex; flex-direction: column; }

.step { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: 15px; top: 32px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.step:last-child::before { display: none; }

.step-num {
  width: 31px; height: 31px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.step-num.done   { background: rgba(20,241,149,.08);  border-color: rgba(20,241,149,.25);  color: var(--accent2); }
.step-num.active { background: rgba(153,69,255,.12); border-color: rgba(153,69,255,.3);  color: #bf88ff; }

.step-body       { padding-top: 4px; }
.step-body h3    { margin: 0 0 4px; font-size: 14px; }
.step-body p     { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── RANK TIERS ─────────────────────────────────────────────── */
.tier-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.tier-row:last-child { border-bottom: none; }

.tier-badge-img {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.tier-name  { font-size: 13.5px; font-weight: 500; color: var(--text); }
.tier-range { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tier-perk  { font-size: 12px; color: var(--hint); margin-top: 2px; }

/* ── REWARD HIGHLIGHT ───────────────────────────────────────── */
.reward-hi     { color: var(--text); font-weight: 500; font-family: 'IBM Plex Mono', monospace; }
.reward-star   { font-size: 13px; }
.reward-trophy { font-size: 13px; }

/* ── REWARD TABS ────────────────────────────────────────────── */

/* Category tab bar */
.rtab-bar {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
  flex-wrap: wrap;
}

.rtab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.rtab-btn:hover {
  color: var(--text);
  border-color: var(--surface2);
  background: var(--surface2);
}
.rtab-btn.active {
  color: var(--text);
  background: rgba(153,69,255,.12);
  border-color: rgba(153,69,255,.35);
}
.rtab-icon { font-size: 14px; line-height: 1; }
.rtab-label { font-size: 13px; }
.rtab-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Tab panels */
.rtab-panel {
  display: none;
  margin-top: 20px;
  animation: rfadein .18s ease;
}
.rtab-panel.active { display: block; }

@keyframes rfadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mode toggle (Singleplayer / Multiplayer) */
.rmode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rmode-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.rmode-btn:hover { color: var(--text); border-color: var(--surface2); }
.rmode-btn.active {
  color: var(--text);
  background: rgba(124,140,248,.1);
  border-color: rgba(124,140,248,.3);
}
.rmode-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Mode panels */
.rmode-panel { display: none; }
.rmode-panel.active { display: block; }

/* Reward section header (moves + meta) */
.reward-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.reward-header-moves {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.reward-move-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.reward-bp-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.reward-header-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.reward-header-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* Sub-label above bonus table */
.reward-sub-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--hint);
  margin: 20px 0 6px;
}

/* Rank badge image inside table cells */
.rank-badge-sm {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.rank-cell.bronze  { background: rgba(205,127,50,.12);  color: #cd7f32; border: 1px solid rgba(205,127,50,.25); }
.rank-cell.silver  { background: rgba(170,184,194,.1);  color: #aab8c2; border: 1px solid rgba(170,184,194,.2); }
.rank-cell.gold    { background: rgba(240,192,64,.1);   color: var(--gold); border: 1px solid rgba(240,192,64,.25); }
.rank-cell.platinum{ background: rgba(185,211,239,.08); color: #b9d3ef; border: 1px solid rgba(185,211,239,.2); }
.rank-cell.diamond { background: rgba(168,216,240,.08); color: #a8d8f0; border: 1px solid rgba(168,216,240,.2); }

/* Mobile adjustments */
@media (max-width: 720px) {
  .rtab-btn  { padding: 8px 12px; font-size: 12px; }
  .rtab-label { font-size: 12px; }
  .reward-header { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
  .reward-move-img { width: 34px; height: 34px; }
  .reward-bp-img   { width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .rtab-bar { gap: 6px; }
  .rtab-btn { padding: 7px 10px; }
}

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ── PAGE FOOTER ────────────────────────────────────────────── */
.page-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--hint);
  text-align: center;
}

/* ── ARENA SHOWCASE ─────────────────────────────────────────── */
/* Rock-Paper-Scissors move display */
.arena-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 28px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 140px;
}

.arena-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  gap: 10px;
}

.arena-side.left  { background: rgba(124,140,248,.04); border-right: 1px solid var(--border); }
.arena-side.right { background: rgba(153,69,255,.04);  border-left:  1px solid var(--border); }

.arena-vs {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--hint);
  letter-spacing: .08em;
}

.arena-move-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.arena-move-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hint);
}

/* Move selector strip */
.move-select-strip {
  display: flex;
  gap: 10px;
  margin: 16px 0 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.move-select-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: default;
  transition: border-color .15s;
}
.move-select-item:hover { border-color: var(--accent); }

.move-select-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.move-select-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* AFK / fair-play illustration */
.afk-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.afk-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .85;
}

.afk-text h3 { margin: 0 0 4px; font-size: 14px; }
.afk-text p  { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── PICKS TIER CARDS ───────────────────────────────────────── */
/* Extends .bp-tiers / .bp-tier-card — 3-column for picks */
.picks-tiers {
  grid-template-columns: repeat(3, 1fr);
}

.picks-card {
  display: flex;
  flex-direction: column;
}

/* Image area — coloured background per tier */
.picks-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(124,140,248,.07);
  border-bottom: 1px solid var(--border);
  min-height: 120px;
}
.picks-img-wrap--mid {
  background: rgba(153,69,255,.07);
}
.picks-img-wrap--pro {
  background: rgba(20,241,149,.06);
}

.picks-move-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* Badge inside card body */
.picks-badge {
  display: inline-block;
  font-size: 10.5px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* Value line at bottom of card */
.picks-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.picks-value {
  font-size: 11.5px;
  color: var(--hint);
  font-style: italic;
}

/* Mobile — stack to 1 column */
@media (max-width: 720px) {
  .picks-tiers { grid-template-columns: 1fr; }
  .picks-move-img { width: 56px; height: 56px; }
  .picks-img-wrap { min-height: 90px; padding: 18px 16px; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .picks-tiers { grid-template-columns: 1fr 1fr; }
}
.bp-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.bp-tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bp-tier-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.bp-tier-body { padding: 12px 14px; }
.bp-tier-body h3 { margin: 0 0 4px; font-size: 13.5px; }
.bp-tier-body p  { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── AUTH PROVIDER BUTTONS ──────────────────────────────────── */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  max-width: 320px;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: default;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, background .15s;
  user-select: none;
}
.auth-btn:hover { border-color: var(--surface2); background: var(--surface2); }

.auth-provider-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.auth-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Per-provider accent colours */
.auth-google  { }
.auth-github  .auth-icon { color: #e2e4ef; }
.auth-discord .auth-icon { color: #5865F2; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .page   { padding: 40px 28px 72px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 720px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  /* Sidebar slides off-screen */
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 32px rgba(0,0,0,.5); }
  .sidebar-overlay.open { display: block; }

  /* Main full width */
  .main { margin-left: 0; }

  /* Topbar */
  .topbar { height: var(--mobile-topbar-h); padding: 0 16px; }
  .hamburger { display: flex; }
  .topbar-actions .tb-btn:not(.primary) { display: none; }

  /* Page */
  .page { padding: 28px 16px 64px; }

  /* Typography */
  h1 { font-size: 26px; }
  h2 { font-size: 18px; margin: 36px 0 10px; }
  .page-intro { font-size: 15px; margin-bottom: 28px; padding-bottom: 28px; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }

  /* Stat strip */
  .stat-strip { grid-template-columns: 1fr 1fr; }

  /* Steps */
  .step-body h3 { font-size: 13.5px; }

  /* Tier rows */
  .tier-row { grid-template-columns: 32px 1fr; gap: 8px; }
  .tier-range { grid-column: 2; margin-top: -4px; }

  /* Hint box */
  .hint-box { padding: 12px 14px; gap: 10px; }

  /* Auth buttons */
  .auth-buttons { max-width: 100%; }

  /* Arena showcase */
  .arena-move-img { width: 52px; height: 52px; }
  .arena-vs { width: 32px; font-size: 10px; }

  /* Move select */
  .move-select-item { padding: 10px 12px; }
  .move-select-img  { width: 38px; height: 38px; }

  /* AFK banner */
  .afk-banner { flex-direction: column; text-align: center; padding: 16px; }

  /* BP tiers */
  .bp-tiers { grid-template-columns: 1fr; }
  .bp-tier-img { height: 100px; }
}

@media (max-width: 400px) {
  .stat-strip { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .move-select-strip { gap: 8px; }
}

/* ── CLASH TOKEN HERO IMAGE ──────────────────────────────────── */
.section-hero-img {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.section-hero-img img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(153,69,255,.45));
  border-radius: 50%;
}

/* ── EXP REWARD PANEL IMAGE ─────────────────────────────────── */
.reward-exp-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
@media (max-width: 520px) {
  .section-hero-img img { width: 80px; height: 80px; }
  .reward-exp-img       { width: 44px; height: 44px; }
}

/* ── PREV / NEXT PAGE NAVIGATION ────────────────────────────── */
.page-nav {
  display: flex;
  gap: 12px;
  margin: 40px 0 8px;
}
.pnav-spacer { flex: 1; }
.pnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s;
  min-width: 0;
}
.pnav-btn:hover {
  background: var(--surface2);
  border-color: rgba(153,69,255,.4);
  transform: translateY(-2px);
  text-decoration: none;
}
.pnav-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--hint);
}
.pnav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pnav-prev { align-items: flex-start; }
.pnav-next { align-items: flex-end; }
.pnav-next .pnav-title { text-align: right; }

@media (max-width: 480px) {
  .page-nav { flex-direction: column; }
  .pnav-next .pnav-title { text-align: left; }
  .pnav-next { align-items: flex-start; }
}

/* ── CONTACTS SECTION ───────────────────────────────────────── */
.contacts-group { margin-top: 28px; }
.contacts-group-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 12px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s;
  cursor: pointer;
}
.contact-card:hover {
  background: var(--surface2);
  border-color: rgba(153,69,255,.35);
  transform: translateY(-2px);
  text-decoration: none;
}
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(153,69,255,.1);
  border: 1px solid rgba(153,69,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: background .18s;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-card:hover .contact-icon { background: rgba(153,69,255,.2); }

/* Platform accent colours */
.contact-discord .contact-icon  { background: rgba(88,101,242,.12); border-color: rgba(88,101,242,.25); color: #5865F2; }
.contact-discord:hover .contact-icon { background: rgba(88,101,242,.22); }
.contact-telegram .contact-icon { background: rgba(0,136,204,.12); border-color: rgba(0,136,204,.25); color: #0088cc; }
.contact-telegram:hover .contact-icon { background: rgba(0,136,204,.22); }
.contact-facebook .contact-icon { background: rgba(24,119,242,.12); border-color: rgba(24,119,242,.25); color: #1877F2; }
.contact-facebook:hover .contact-icon { background: rgba(24,119,242,.22); }
.contact-twitter .contact-icon  { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: var(--text); }
.contact-twitter:hover .contact-icon { background: rgba(255,255,255,.12); }

.contact-body { flex: 1; min-width: 0; }
.contact-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-url {
  font-size: 11.5px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-arrow {
  color: var(--hint);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
}
.contact-arrow svg { width: 14px; height: 14px; }
.contact-card:hover .contact-arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 520px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

/* ── BATTLEPASS ATTEMPT BADGE ───────────────────────────────── */
.bp-attempts-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(153,69,255,.12);
  border: 1px solid rgba(153,69,255,.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #bf88ff;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 8px;
}
.bp-attempts-badge--gold {
  background: rgba(240,192,64,.1);
  border-color: rgba(240,192,64,.3);
  color: var(--gold);
}
.bp-attempts-badge::before {
  content: '⚡';
  font-size: 10px;
}
