/* Premium layer — loaded after page CSS. Deeper surfaces, hairline highlights, restrained gold. */
:root {
  --pm-gold: #d4af37;
  --pm-gold-soft: rgba(212,175,55,.16);
  --pm-ink: #f0ece0;
  --pm-surface: linear-gradient(180deg, rgba(14,24,48,.92) 0%, rgba(6,13,30,.96) 100%);
  --pm-edge: rgba(255,255,255,.07);
  --pm-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 -14px 24px -16px rgba(0,0,0,.7) inset, 0 18px 36px -18px rgba(0,0,0,.85);
}

/* ambient light behind the whole page */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 480px at 15% -8%, rgba(55,138,221,.16), transparent 60%),
    radial-gradient(760px 420px at 92% 2%, rgba(212,175,55,.10), transparent 62%);
}

/* ── hero tiles ── */
.nh2-pick-title { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.01em; margin-bottom: 26px; }
.nh2-eyebrow { box-shadow: 0 0 0 4px rgba(34,197,94,.05); }
.nh2-tiles { gap: 20px; }
.nh2-tile { min-height: clamp(210px, 26vw, 280px); border-radius: 28px; padding: 28px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 30px 60px -28px rgba(0,0,0,.9); }
.nh2-tile-name { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.01em; }
.nh2-tile-badge { box-shadow: 0 10px 24px -8px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.4) inset; }
.nh2-tag { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); letter-spacing: .02em; }
.nh2-tag.league { background: var(--pm-gold-soft); border-color: rgba(212,175,55,.4); color: #f5e070; }

/* ── content cards: glass with a lit top edge ── */
.nhome-live-panel, .nhome-lb-panel, .nhome-explain {
  background: var(--pm-surface); border: 1px solid var(--pm-edge); border-radius: 22px; box-shadow: var(--pm-shadow);
  position: relative; overflow: hidden;
}
.nhome-live-panel::before, .nhome-lb-panel::before, .nhome-explain::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.55), transparent);
}
.nhome-section-title { font-family: var(--nh2-serif, 'Bodoni Moda', Georgia, serif); font-size: 17px; letter-spacing: .01em; }
.nhome-explain-title { font-family: var(--nh2-serif, 'Bodoni Moda', Georgia, serif); font-size: 20px; }
.nhome-view-all { border-radius: 99px; border: 1px solid rgba(212,175,55,.3); color: #e8cf7a; padding: 5px 12px; }
.nhome-view-all:hover { background: var(--pm-gold-soft); }

/* ── empty live state ── */
.nhome-live-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 34px 18px; text-align: center; min-height: 180px; }
.nhome-live-empty-ic { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #f5e070; background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.28), rgba(212,175,55,.18) 55%, rgba(212,175,55,.06));
  border: 1px solid rgba(212,175,55,.4); box-shadow: 0 10px 24px -10px rgba(212,175,55,.6); }
.nhome-live-empty-t { font-family: var(--nh2-serif, 'Bodoni Moda', Georgia, serif); font-size: 17px; color: var(--pm-ink); }
.nhome-live-empty-s { font-size: 12px; color: rgba(240,236,224,.5); max-width: 280px; line-height: 1.5; }
.nhome-live-empty-cta { margin-top: 6px; padding: 9px 22px; border-radius: 99px; border: 0; cursor: pointer; font: 800 12px/1 inherit;
  color: #1c1405; background: linear-gradient(180deg, #f5e070, #c99a1d); box-shadow: 0 8px 18px -8px rgba(212,175,55,.8), 0 1px 0 rgba(255,255,255,.5) inset; }
.nhome-live-empty-cta:hover { filter: brightness(1.08); }
.nhome-lgame-skel:only-child, .nhome-live-grid .nhome-live-empty ~ .nhome-lgame-skel { display: none; }

/* ── social row: one quiet strip instead of five coloured blocks ── */
#idxPanelFooter { border-top: 1px solid var(--pm-edge) !important; }
#idxPanelFooter > div:first-child { gap: 10px !important; justify-content: center; flex-wrap: wrap; }
#idxPanelFooter > div:first-child a {
  flex: 0 1 auto !important; padding: 8px 16px !important; border-radius: 99px !important;
  background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.10) !important;
  color: rgba(240,236,224,.72) !important; font-size: 12px !important; font-weight: 600 !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
#idxPanelFooter > div:first-child a:hover {
  background: var(--pm-gold-soft) !important; border-color: rgba(212,175,55,.45) !important; color: #f5e070 !important; transform: translateY(-1px);
}

/* ═════════ Learn page ═════════ */
.ln-page { max-width: 1080px; padding-top: 34px; }
.ln-hero { margin-bottom: 36px; }
.ln-hero h1 { font-family: 'Bodoni Moda', Georgia, serif; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.01em; font-weight: 700; color: var(--pm-ink);
  text-shadow: 0 2px 30px rgba(212,175,55,.25); }
.ln-hero p { color: rgba(240,236,224,.62); }

/* segmented control */
.ln-tabs { gap: 0; width: fit-content; margin: 0 auto 36px; padding: 5px; border-radius: 99px; background: rgba(255,255,255,.04);
  border: 1px solid var(--pm-edge); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 28px -16px rgba(0,0,0,.9); }
.ln-tab { border: 0 !important; background: transparent !important; border-radius: 99px; padding: 10px 30px; color: rgba(240,236,224,.6); }
.ln-tab.active { color: #1c1405 !important; background: linear-gradient(180deg, #f5e070, #c99a1d) !important;
  box-shadow: 0 8px 18px -8px rgba(212,175,55,.85), 0 1px 0 rgba(255,255,255,.55) inset; }

/* piece cards */
.piece-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.piece-card { border: 1px solid var(--pm-edge); border-radius: 22px; padding: 22px 12px 18px; background: var(--pm-surface); box-shadow: var(--pm-shadow); }
.ln-page .piece-card:hover { border-color: rgba(212,175,55,.45); background: var(--pm-surface); }
.ln-page .piece-card.active { border-color: rgba(212,175,55,.85); background: linear-gradient(180deg, rgba(212,175,55,.16), rgba(6,13,30,.96));
  box-shadow: 0 0 0 1px rgba(212,175,55,.35), 0 22px 40px -18px rgba(212,175,55,.5); }
.piece-card .pc-sym { font-size: 54px; margin-bottom: 10px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.7)); text-shadow: 0 0 22px rgba(212,175,55,.35); }
.piece-card .pc-name { font-family: 'Bodoni Moda', Georgia, serif; font-size: 17px; font-weight: 700; }
.piece-card .pc-val { color: #e8cf7a; font-size: 11px; letter-spacing: .03em; margin-top: 4px; }

/* theory panel + board bezel */
.theory-panel { border-radius: 26px; padding: 28px; background: var(--pm-surface); border: 1px solid var(--pm-edge); box-shadow: var(--pm-shadow); position: relative; }
.theory-panel::before { content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.6), transparent); }
.tp-sym { font-size: 64px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.7)); }
.tp-name { font-family: 'Bodoni Moda', Georgia, serif; font-size: 28px; }
.tp-val { color: #e8cf7a; }
.tp-desc { font-size: 15px; color: rgba(240,236,224,.72); }
.mv-board { border: 0; border-radius: 10px; padding: 0; outline: 10px solid #5a3b14; outline-offset: -1px;
  box-shadow: 0 0 0 11px #2b1a07, 0 0 0 12px rgba(212,175,55,.45), 0 34px 60px -20px rgba(0,0,0,.9); margin: 14px auto; }

/* practice categories */
.cat-card { border: 1px solid var(--pm-edge); border-radius: 18px; background: var(--pm-surface); box-shadow: var(--pm-shadow); }
.ln-page .cat-card:hover { border-color: rgba(212,175,55,.4); background: var(--pm-surface); }
.cat-name { font-size: 12px; }
.cat-title-label { color: #e8cf7a; letter-spacing: .14em; }
.cat-desc-bar { border-radius: 18px; background: var(--pm-surface); border: 1px solid var(--pm-edge); box-shadow: var(--pm-shadow); }
.cat-desc-name { font-family: 'Bodoni Moda', Georgia, serif; font-size: 18px; }

/* ═════════ Profile page (body.pg-profile) ═════════ */
.pg-profile .profile-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 30px;
  background: radial-gradient(520px 220px at 12% 0%, rgba(212,175,55,.16), transparent 70%), var(--pm-surface);
  border: 1px solid var(--pm-edge); box-shadow: var(--pm-shadow); }
.pg-profile .profile-hero::before { content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.7), transparent); }
.pg-profile .profile-av { box-shadow: 0 0 0 3px #0a1428, 0 0 0 5px rgba(212,175,55,.75), 0 18px 34px -10px rgba(0,0,0,.9); }
.pg-profile .profile-name { font-family: 'Bodoni Moda', Georgia, serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.01em; }
.pg-profile .xp-track { height: 9px; border-radius: 9px; background: rgba(255,255,255,.07); box-shadow: 0 1px 2px rgba(0,0,0,.6) inset; overflow: hidden; }
.pg-profile .xp-fill { background: linear-gradient(90deg, #b45309, #f5e070); box-shadow: 0 0 14px rgba(245,224,112,.55); }

.pg-profile .stats-grid { gap: 14px; }
.pg-profile .stat-box { border-radius: 20px; border: 1px solid var(--pm-edge); background: var(--pm-surface); box-shadow: var(--pm-shadow); padding: 20px 10px; }
.pg-profile .stat-val { font-family: inherit; font-size: 32px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 6px 20px currentColor; }
.pg-profile .stat-lbl { letter-spacing: .1em; font-size: 10px; color: rgba(240,236,224,.5); }

.pg-profile .ach-card, .pg-profile .month-stats, .pg-profile .game-list, .pg-profile .chart-card {
  border-radius: 24px; border: 1px solid var(--pm-edge); background: var(--pm-surface); box-shadow: var(--pm-shadow); }
.pg-profile .ach-title { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #e8cf7a; }
.pg-profile .ach-badge { border-radius: 16px; border: 1px solid var(--pm-edge); background: rgba(255,255,255,.03); }
.pg-profile .ach-badge.done { border-color: rgba(212,175,55,.5); background: linear-gradient(180deg, rgba(212,175,55,.14), rgba(255,255,255,.02));
  box-shadow: 0 10px 22px -14px rgba(212,175,55,.8); }
.pg-profile .tab-btn.active { color: #f5e070; border-bottom-color: #d4af37; }
.pg-profile .game-row { transition: background .2s ease; }
.pg-profile .game-row:hover { background: rgba(212,175,55,.06); }
.pg-profile .res-badge { border-radius: 12px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.25) inset; }

/* ═════════ League page (body.pg-league) ═════════ */
.pg-league .lg-hero-title { font-family: 'Bodoni Moda', Georgia, serif; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.01em;
  text-shadow: 0 2px 34px rgba(212,175,55,.3); }
.pg-league .lg-hl-item, .pg-league .lg-card, .pg-league .levels-section-card, .pg-league .calc-box, .pg-league .sc-stat-box {
  background: var(--pm-surface); border: 1px solid var(--pm-edge); box-shadow: var(--pm-shadow); border-radius: 22px; }
.pg-league .lg-hl-item { padding: 16px; }
.pg-league .lg-hl-icon { box-shadow: 0 10px 22px -10px rgba(212,175,55,.7), 0 1px 0 rgba(255,255,255,.3) inset; }
.pg-league .lg-section-title, .pg-league .lg-card-title { font-family: 'Bodoni Moda', Georgia, serif; font-weight: 700; letter-spacing: .005em; }
.pg-league .tier-tab { border-radius: 99px; border: 1px solid var(--pm-edge); background: rgba(255,255,255,.04); }
.pg-league .tier-tab.active { color: #1c1405; background: linear-gradient(180deg, #f5e070, #c99a1d); border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(212,175,55,.85), 0 1px 0 rgba(255,255,255,.5) inset; }
.pg-league .levels-grid { gap: 16px; }
.pg-league .lvl-card { border-radius: 20px; border: 1px solid var(--pm-edge); background: var(--pm-surface); box-shadow: var(--pm-shadow); padding: 16px; }
.pg-league .lvl-card:hover { border-color: rgba(212,175,55,.5); }
.pg-league .lvl-card.active-user, .pg-league .lvl-card.selected-preview { border-color: rgba(212,175,55,.85); box-shadow: 0 0 0 1px rgba(212,175,55,.4), 0 22px 40px -18px rgba(212,175,55,.5); }
.pg-league .lvl-cost-tag { background: var(--pm-gold-soft); color: #f5e070; border: 1px solid rgba(212,175,55,.35); border-radius: 99px; }
.pg-league .lvl-activate-btn { border-radius: 14px; background: linear-gradient(180deg, rgba(245,224,112,.2), rgba(201,154,29,.12)); border: 1px solid rgba(212,175,55,.4);
  transition: background .2s ease, transform .2s ease; }
.pg-league .lvl-activate-btn:hover { background: linear-gradient(180deg, #f5e070, #c99a1d); color: #1c1405; }
.pg-league .sc-prog-fill { background: linear-gradient(90deg, #b45309, #f5e070); box-shadow: 0 0 14px rgba(245,224,112,.5); }

/* ═════════ Shop (item cards keep their own hover lift, plus the tilt) ═════════ */
.item-card.fx3d:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); }
.item-card.fx3d { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.item-card { border-radius: 22px; box-shadow: var(--pm-shadow); }
.item-card .card-price { font-weight: 900; letter-spacing: -.01em; }
.item-card .card-btn { border-radius: 99px; }
.stage-summary-card, .showcase-stage { border-radius: 26px; box-shadow: var(--pm-shadow); }

/* ═════════ Profile — app-style layout (one narrow column, thumb-friendly) ═════════ */
.pg-profile .profile-page { max-width: 640px; padding: 18px 14px 96px; }
.pg-profile .profile-hero { flex-direction: row; align-items: center; gap: 16px; padding: 20px; margin-bottom: 14px; border-radius: 26px; }
.pg-profile .profile-av { width: 84px; height: 84px; flex-shrink: 0; }
.pg-profile .profile-name { font-size: clamp(22px, 6vw, 30px); line-height: 1.1; }
.pg-profile .profile-meta { font-size: 12px; margin-bottom: 8px; }
@media (max-width: 460px) { .pg-profile .profile-hero { flex-direction: column; text-align: center; } .pg-profile .profile-name { justify-content: center; }
  .pg-profile .profile-info > div { justify-content: center; } .pg-profile .xp-bar-wrap { margin: 0 auto; text-align: left; } }

/* balance: the gold card with two big buttons */
.pg-profile .balance-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; margin-bottom: 14px; border-radius: 24px;
  border: 1px solid rgba(212,175,55,.55); background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(10,20,40,.96) 70%);
  box-shadow: 0 18px 36px -18px rgba(212,175,55,.55), 0 1px 0 rgba(255,255,255,.12) inset; }
.pg-profile .balance-amount { font-size: 36px; font-weight: 900; color: #f5e070; letter-spacing: -.02em; text-shadow: 0 6px 24px rgba(212,175,55,.45); }
.pg-profile .balance-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,236,224,.55); }
.pg-profile .balance-btns { width: 100%; margin: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.pg-profile .balance-btns .btn { min-height: 48px; border-radius: 14px; font-weight: 800; font-size: 14px; }

/* stats: three per row */
.pg-profile .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pg-profile .stat-box { padding: 14px 6px; border-radius: 18px; }
.pg-profile .stat-val { font-size: 26px; }

/* tabs: horizontally scrollable pills, pinned under the top bar */
.pg-profile .tabs { position: sticky; top: 49px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -14px 16px; padding: 10px 14px; border: 0; background: linear-gradient(180deg, rgba(4,10,24,.96) 70%, rgba(4,10,24,0)); backdrop-filter: blur(10px); }
.pg-profile .tabs::-webkit-scrollbar { display: none; }
.pg-profile .tab-btn { flex: 0 0 auto; white-space: nowrap; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--pm-edge);
  background: rgba(255,255,255,.04); color: rgba(240,236,224,.66); font-size: 13px; font-weight: 700; }
.pg-profile .tab-btn.active { color: #1c1405; background: linear-gradient(180deg, #f5e070, #c99a1d); border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(212,175,55,.85), 0 1px 0 rgba(255,255,255,.5) inset; }

/* game rows are tappable cards */
.pg-profile .game-list { background: transparent; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 8px; }
.pg-profile .game-row { border-radius: 16px; border: 1px solid var(--pm-edge); background: var(--pm-surface); padding: 12px 14px; min-height: 56px; }

/* ═════════ Profile — desktop dashboard: sticky identity column + wide content column ═════════ */
@media (min-width: 1024px) {
  .pg-profile .profile-page { max-width: 1240px; padding: 30px 28px 64px; }
  .pg-profile .pf-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 26px; align-items: start; }
  .pg-profile .pf-side { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 14px; }
  .pg-profile .pf-side > * { margin-bottom: 0 !important; }
  .pg-profile .pf-main { min-width: 0; }
  .pg-profile .profile-hero { flex-direction: column; align-items: center; text-align: center; padding: 30px 22px 26px; gap: 16px; }
  .pg-profile .profile-av { width: 124px; height: 124px; }
  .pg-profile .profile-name { justify-content: center; font-size: 32px; }
  .pg-profile .profile-info { width: 100%; }
  .pg-profile .profile-info > div { justify-content: center; }
  .pg-profile .xp-bar-wrap { max-width: none !important; width: 100%; margin: 0; text-align: left; }
  .pg-profile .balance-amount { font-size: 40px; }
  .pg-profile .stats-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .pg-profile .stat-box { padding: 18px 6px; }
  .pg-profile .stat-val { font-size: 30px; }
  .pg-profile .ach-grid { grid-template-columns: repeat(3, 1fr); }
  .pg-profile .tabs { position: static; flex-wrap: wrap; margin: 0 0 18px; padding: 0; background: none; backdrop-filter: none; overflow: visible; }
  .pg-profile .tab-btn { min-height: 42px; }
}
@media (min-width: 1500px) { .pg-profile .profile-page { max-width: 1360px; } .pg-profile .pf-grid { grid-template-columns: 420px minmax(0, 1fr); } }

/* ═════════ Home: one-screen game switch (replaces the two-step picker) ═════════ */
#nhGpick { display: none !important; }
.nh2-hub-switch { display: none !important; }

.nh-switch-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 28px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 34px 60px -30px rgba(0,0,0,.95); }
.nh-switch-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  background-image: url('/img/chess_3d_board_1790288097341.webp'); transform: scale(1.04); transition: opacity .5s ease; }
.nh-switch[data-game="checkers"] .nh-switch-hero::before { background-image: url('/img/checkers_3d_board_1790288107318.webp'); }
.nh-switch-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4,10,24,.96) 8%, rgba(4,10,24,.72) 48%, rgba(4,10,24,.35) 100%); }
.nh-switch[data-game="checkers"] .nh-switch-hero::after { background: linear-gradient(100deg, rgba(4,16,12,.96) 8%, rgba(4,16,12,.72) 48%, rgba(4,16,12,.35) 100%); }

.nh-switch-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(240,236,224,.7); padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); }
.nh-switch-eyebrow b { color: #f5e070; font-variant-numeric: tabular-nums; }
.nh-switch-title { margin-top: 14px; font-family: 'Bodoni Moda', Georgia, serif; font-weight: 700; letter-spacing: -.015em; line-height: 1.04;
  font-size: clamp(34px, 6vw, 60px); color: #f6f1e4; text-shadow: 0 4px 40px rgba(0,0,0,.6); }

.nh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.nh-seg-btn { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic name" "ic sub"; column-gap: 14px; align-items: center; text-align: left;
  min-height: 78px; padding: 12px 18px; border-radius: 22px; cursor: pointer; font-family: inherit; color: #f0ece0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px);
  transition: transform .2s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.nh-seg-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.nh-seg-btn:active { transform: scale(.98); }
.nh-seg-ic { grid-area: ic; width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: rgba(255,255,255,.1); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }
.nh-seg-name { grid-area: name; font-size: 20px; font-weight: 800; letter-spacing: -.01em; align-self: end; }
.nh-seg-btn small { grid-area: sub; font-size: 11.5px; color: rgba(240,236,224,.6); align-self: start; }
.nh-seg-btn.chess.active { background: linear-gradient(135deg, rgba(212,175,55,.34), rgba(212,175,55,.12)); border-color: rgba(245,224,112,.75);
  box-shadow: 0 20px 38px -18px rgba(212,175,55,.85), 0 1px 0 rgba(255,255,255,.2) inset; }
.nh-seg-btn.chess.active .nh-seg-ic { background: linear-gradient(180deg, #f5e070, #c99a1d); color: #1c1405; }
.nh-seg-btn.checkers.active { background: linear-gradient(135deg, rgba(52,211,153,.30), rgba(16,120,80,.14)); border-color: rgba(110,231,183,.75);
  box-shadow: 0 20px 38px -18px rgba(52,211,153,.7), 0 1px 0 rgba(255,255,255,.2) inset; }
.nh-seg-btn.checkers.active .nh-seg-ic { background: linear-gradient(180deg, #6ee7b7, #10a56b); color: #04150e; }
@media (max-width: 560px) { .nh-switch-hero { padding: 20px 16px; min-height: 0; border-radius: 26px; } .nh-seg { grid-template-columns: 1fr; }
  .nh-seg-btn { min-height: 68px; } }

/* ═════════ Home: premium finish (hero depth, CTAs, trust band, motion) ═════════ */
.nh-switch-hero::before { inset: -6%; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.06); animation: nhKen 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes nhKen { from { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.06); } to { transform: translate3d(calc(var(--px, 0px) - 14px), calc(var(--py, 0px) - 8px), 0) scale(1.14); } }
.nh-switch-hero { box-shadow: 0 0 0 1px rgba(212,175,55,.18), 0 1px 0 rgba(255,255,255,.12) inset, 0 40px 80px -34px rgba(0,0,0,.95), 0 0 80px -30px rgba(212,175,55,.35); }
.nh-switch-hero::after { background:
    linear-gradient(100deg, rgba(4,10,24,.97) 6%, rgba(4,10,24,.74) 46%, rgba(4,10,24,.28) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.nh-switch[data-game="checkers"] .nh-switch-hero::after { background:
    linear-gradient(100deg, rgba(4,16,12,.97) 6%, rgba(4,16,12,.74) 46%, rgba(4,16,12,.28) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.nh-switch-title { background: linear-gradient(180deg, #fffaf0 30%, #e9d28a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 28px rgba(0,0,0,.55)); }
.nh-switch-sub { margin-top: 12px; max-width: 520px; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.55; color: rgba(240,236,224,.72); }
.nh-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.nh-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; border: 0; cursor: pointer; font: 800 15px/1 inherit; letter-spacing: .01em;
  transition: transform .2s ease, filter .2s ease, box-shadow .25s ease, background .25s ease; }
.nh-cta:active { transform: scale(.97); }
.nh-cta-primary { color: #1c1405; background: linear-gradient(180deg, #fbe98a, #c99a1d); box-shadow: 0 16px 34px -12px rgba(212,175,55,.9), 0 1px 0 rgba(255,255,255,.6) inset; }
.nh-cta-primary:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 22px 42px -12px rgba(212,175,55,1), 0 1px 0 rgba(255,255,255,.6) inset; }
.nh-cta-ghost { color: #f0ece0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); }
.nh-cta-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.nh-cta-ic { font-size: 17px; line-height: 1; }
.nh-switch[data-game="checkers"] .nh-cta-primary { color: #04150e; background: linear-gradient(180deg, #8df0c3, #10a56b); box-shadow: 0 16px 34px -12px rgba(52,211,153,.85), 0 1px 0 rgba(255,255,255,.55) inset; }
.nh-switch-hero { gap: 30px; min-height: clamp(300px, 34vw, 400px); }

.nh-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-radius: 24px; overflow: hidden; background: var(--pm-surface);
  border: 1px solid var(--pm-edge); box-shadow: var(--pm-shadow); }
.nh-trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 10px; position: relative; text-align: center; }
.nh-trust-item + .nh-trust-item::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(180deg, transparent, rgba(212,175,55,.45), transparent); }
.nh-trust-item b { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6cf, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nh-trust-item span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(240,236,224,.52); font-weight: 700; }
@media (max-width: 560px) { .nh-trust { grid-template-columns: 1fr 1fr; } .nh-trust-item + .nh-trust-item::before { display: none; } .nh-cta { flex: 1 1 100%; justify-content: center; } }

.nh-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.nh-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nh-switch-hero::before { animation: none; } .nh-reveal { opacity: 1; transform: none; transition: none; } }
.nh-trust, .nh-switch { flex-shrink: 0; }

/* ── Android app promo on the main page ── */
.nh-app { flex-shrink: 0; min-height: 260px; position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: center; padding: 28px 30px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(70% 120% at 100% 50%, rgba(212,175,55,.18), transparent 65%), radial-gradient(50% 90% at 0% 0%, rgba(61,220,132,.10), transparent 60%), var(--pm-surface);
  border: 1px solid rgba(212,175,55,.28); box-shadow: var(--pm-shadow); }
.nh-app-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f5e070; }
.nh-app-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.nh-app h2 { font-family: var(--nh2-serif, 'Bodoni Moda', Georgia, serif); font-size: clamp(22px, 3vw, 32px); line-height: 1.12; margin: 10px 0 10px; color: var(--pm-ink); font-weight: 700; text-wrap: balance; }
.nh-app p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: rgba(240,236,224,.7); max-width: 46ch; }
.nh-app-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.nh-app-pills span { padding: 5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: rgba(240,236,224,.85); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.nh-app-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nh-app-link { font-size: 13px; font-weight: 700; color: rgba(240,236,224,.75); text-decoration: none; padding: 10px 6px; }
.nh-app-link:hover { color: #fff; text-decoration: underline; }
.nh-app-art { position: relative; height: 230px; perspective: 900px; }
.nh-app-ph { position: absolute; top: 50%; width: 118px; aspect-ratio: 9/19; border-radius: 22px; padding: 5px; background: linear-gradient(155deg,#3a3d4a,#10121a 45%,#23252f); box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.14) inset; }
.nh-app-ph i { display: block; width: 100%; height: 100%; border-radius: 17px; background: center/cover no-repeat; }
.nh-app-ph.a { left: 18%; transform: translateY(-52%) rotateY(18deg) rotateZ(-4deg); z-index: 2; }
.nh-app-ph.b { left: 44%; transform: translateY(-46%) rotateY(-16deg) rotateZ(4deg) scale(.92); }
@media (max-width: 720px) { .nh-app { grid-template-columns: 1fr; padding: 22px 20px; } .nh-app-art { height: 190px; order: -1; } .nh-app-ph { width: 96px; } .nh-app-ph.a { left: 22%; } .nh-app-ph.b { left: 48%; } }
@media (prefers-reduced-motion: reduce) { .nh-app-link { transition: none; } }
