/* 918kaya PGK — clear, text-led layout with light structure */

:root {
  --bg: #0f0e11;
  --bg-alt: #141217;
  --surface: #1b191f;
  --surface-2: #232028;
  --line: #2d2a33;
  --text: #ece8f0;
  --muted: #aaa3af;
  --gold: #f5c542;
  --gold-hover: #ffd766;
  --gold-tint: rgba(245, 197, 66, .12);
  --red: #ff4d63;
  --green: #36c274;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Consolas, "Courier New", monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--font); }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -.02em; }
h2 { margin: 0 0 12px; font-size: clamp(25px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.01em; }
h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 8px; }
li::marker { color: var(--gold); font-weight: 700; }
strong { color: #fff; }
code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: #ffe08a; font: .84em/1.6 var(--mono); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.small { margin-bottom: 8px; color: var(--muted); font-size: 14px; }
/* Key figures (limits, times, payment methods): bold gold on a soft gold highlight */
.hl { padding: 0 .3em; border-radius: 4px; background: var(--gold-tint); color: var(--gold); font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(15, 14, 17, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-inner { position: relative; display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; flex: none; align-items: center; }
/* The logo file has a black background; "lighten" lets the dark header show through it. */
.logo img { display: block; width: auto; height: 42px; mix-blend-mode: lighten; }
.footer-brand .logo img { height: 46px; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--gold); }
.header-cta { display: flex; gap: 8px; }
.menu-btn { display: none; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--text); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 10px; background: var(--gold); color: #1a1405; font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--gold-hover); background: var(--gold-hover); color: #1a1405; }
.btn-outline { border-color: var(--line); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--gold); background: transparent; color: var(--gold); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
/* Soft gold pulse on the header and mobile-bar Login/Register buttons; Login is offset so the two alternate */
.header-cta .btn, .mobile-bar .btn { animation: pulse 2.4s ease-out infinite; }
.header-cta .btn-outline, .mobile-bar .btn-outline { animation-delay: 1.2s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(245, 197, 66, 0); } }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.section-alt { border-block: 1px solid var(--line); background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-foot { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 19px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 60px; border-bottom: 1px solid var(--line); background: radial-gradient(640px 360px at 88% 10%, rgba(245, 197, 66, .12), transparent 65%), radial-gradient(560px 360px at 0% 0%, rgba(206, 17, 38, .16), transparent 65%), var(--bg); }
.hero-inner > * { max-width: 820px; }
.trust { margin: 0; color: var(--muted); font-size: 14px; }
.age { display: inline-block; margin-right: 4px; padding: 0 6px; border: 1px solid var(--red); border-radius: 5px; color: var(--red); font-size: 12px; font-weight: 700; line-height: 1.6; }

/* ---------- Hot games row (clickable game tiles) ---------- */
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.row-title { margin: 0; font-size: 24px; font-weight: 800; }
.row-link { font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: block; overflow: hidden; border: 2px solid #d0122e; border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 30px -12px rgba(206, 17, 38, .7); color: var(--text); }
.tile-art { position: relative; display: block; }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.tile-info { display: block; padding: 10px 12px 12px; }
.tile-info strong { display: block; overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.tile-info small { color: var(--muted); font-size: 12px; }
/* Rounded play triangle drawn as an inline SVG; its centroid sits at the circle's centre so it looks optically centred */
.tile-play { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%231a1405' stroke='%231a1405' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 0 0 3px rgba(15, 14, 17, .35), 0 4px 12px rgba(0, 0, 0, .45); font-size: 0; transition: transform .2s; }
.tile:hover .tile-play { transform: scale(1.12); }
.dialog-buttons { margin: 0; }

/* ---------- Cards & icons ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card h3 { margin-top: 14px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.card-accent { border-color: rgba(245, 197, 66, .35); }
.card-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 21px; }
.card-steps { display: flex; flex-direction: column; }
.card-steps .steps { flex: 1; }
.card-links { margin-top: 12px; text-align: center; font-size: 14px; }
.icon { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--gold-tint); color: var(--gold); font-size: 14px; font-weight: 800; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 52px; height: 52px; }
.icon-lg svg { width: 26px; height: 26px; }
.icon-red { background: rgba(255, 77, 99, .12); color: var(--red); }

.define { display: flex; gap: 20px; padding: 26px 28px; border: 1px solid rgba(245, 197, 66, .3); border-radius: var(--radius); background: linear-gradient(90deg, rgba(245, 197, 66, .08), transparent 70%), var(--surface); }
.define-label { margin: 0 0 6px; color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.define-text { margin: 0; font-size: 19px; }

/* ---------- Steps ---------- */
.steps, .content ol { padding: 0; list-style: none; counter-reset: step; }
.steps > li, .content ol > li { position: relative; margin-bottom: 14px; padding-left: 44px; counter-increment: step; }
.steps > li::before, .content ol > li::before { content: counter(step); position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1405; font-size: 15px; font-weight: 800; line-height: 1; }
.card .steps { margin-bottom: 22px; font-size: 16px; }
.steps-lg > li { margin-bottom: 0; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--line); }
.steps-lg > li:first-child { padding-top: 0; }
.steps-lg > li::before { top: 16px; width: 40px; height: 40px; font-size: 18px; }
.steps-lg > li:first-child::before { top: -2px; }
.steps-lg h3 { margin: 0 0 2px; }
.steps-lg p { margin: 0; color: var(--muted); }

/* ---------- Boxes, notes, chips ---------- */
.box { margin-top: 24px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.box-ok { border-color: rgba(54, 194, 116, .35); background: linear-gradient(180deg, rgba(54, 194, 116, .07), transparent), var(--surface); }
.box h3 { margin-bottom: 14px; }
.box-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.box-links a { text-decoration: none; }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; top: 6px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f0e11' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.note { margin: 22px 0 0; padding: 14px 18px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--surface); font-size: 16px; }
.note-warn { border-left-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.tag { margin: 0 0 6px !important; color: var(--red) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: 40px; }
.split-even { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split .section-head { position: sticky; top: 90px; margin-bottom: 0; }
.prose p { font-size: 18px; }
.timeline { margin: 24px 0 0; padding: 0; border-left: 2px solid var(--line); list-style: none; }
.timeline li { display: flex; align-items: baseline; gap: 14px; margin: 0; padding: 0 0 14px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--bg-alt); }
.timeline span { flex: none; min-width: 42px; color: var(--gold); font-weight: 800; }
.prose .timeline p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Games ---------- */
.game { display: flex; gap: 16px; }
.game h3 { margin: 0 0 2px; }
.thumb { display: grid; place-items: center; flex: none; width: 88px; height: 88px; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 50% 35%, var(--c1, var(--surface-2)), var(--c2, var(--surface)) 85%); color: #ffe08a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.shots figure { margin: 0; }
.shots img, .shot-placeholder { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 3 / 4; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; object-fit: cover; }
.shots img { display: block; border-style: solid; }
.shots figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- FAQ ---------- */
.faq details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq details[open] { border-color: rgba(245, 197, 66, .4); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 16px; }

/* ---------- Call to action ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 30px 34px; border: 1px solid rgba(245, 197, 66, .35); border-radius: 18px; background: radial-gradient(420px 200px at 100% 0%, rgba(245, 197, 66, .16), transparent 70%), linear-gradient(135deg, rgba(206, 17, 38, .22), rgba(206, 17, 38, .05)), var(--surface); }
.cta-title { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.cta p:not(.cta-title) { margin: 0; color: var(--muted); }
.cta .buttons { margin: 0; }
.cta-wrap { padding: 8px 0 64px; }

/* ---------- Inner pages ---------- */
.page-head { padding: 40px 0 34px; border-bottom: 1px solid var(--line); background: radial-gradient(560px 300px at 90% 0%, rgba(245, 197, 66, .1), transparent 65%), radial-gradient(520px 300px at 0% 0%, rgba(206, 17, 38, .14), transparent 65%), var(--bg-alt); }
.page-head h1 { font-size: clamp(30px, 4.6vw, 44px); }
.page-head .lead { margin-bottom: 12px; }
.crumbs { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.meta { margin: 0; color: var(--muted); font-size: 14px; }
.content { width: min(760px, 100% - 32px); margin-inline: auto; padding: 40px 0 56px; }
.content h2 { margin-top: 48px; }
.content h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--gold); }
.content h3 { margin-top: 26px; }
.content .buttons, .content p > .btn { margin-top: 4px; }
.toc { margin-bottom: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc-title { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; margin: 0; }
.toc ol > li { margin: 0; padding-left: 32px; font-size: 15px; }
.toc ol > li::before { top: 3px; width: 22px; height: 22px; background: var(--surface-2); color: var(--gold); font-size: 12px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.jump a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--gold); color: var(--gold); }
.author { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 15px; }
.author::before { content: "K"; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); font-weight: 800; }
.guides .card h2 { margin: 0 0 8px; font-size: 20px; }
.guides .card h2::before { display: none; }
.guides .card h2 a { color: var(--text); text-decoration: none; }
.guides .card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.guides .card:hover { border-color: rgba(245, 197, 66, .45); }
.guides .card:hover h2 a { color: var(--gold); }
.guides .meta { margin-top: 12px; }

/* ---------- Tables ---------- */
.table-wrap { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 600; }
tbody th { width: 38%; color: var(--muted); font-weight: 600; }
table.mini { margin: 10px 0 18px; font-size: 15px; }
table.mini th, table.mini td { padding: 9px 0; }
table.mini td { font-weight: 700; text-align: right; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: #0b0a0d; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { max-width: 320px; margin: 12px 0 0; }
.footer-title { margin: 0 0 12px; color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--muted); text-decoration: none; }
.footer li a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom p { margin: 0; }
.mobile-bar { display: none; }

/* ---------- Dialog ---------- */
.dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.dialog-close { position: absolute; top: 6px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 28px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .split-even { grid-template-columns: 1fr; gap: 28px; }
  .split .section-head { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); font-size: 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 40px; }
  .lead, .define-text, .prose p { font-size: 17px; }
  .header-cta { display: none; }
  .menu-btn { display: grid; }
  .logo img { height: 36px; }
  .nav { position: absolute; top: 66px; left: -16px; right: -16px; display: none; flex-direction: column; gap: 0; padding: 4px 16px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 > .card:not(.game), .grid-4 > .card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .grid-3 > .card:not(.game) > .icon, .grid-4 > .card > .icon { grid-row: span 2; }
  .grid-3 > .card:not(.game) h3, .grid-4 > .card h3 { margin-top: 0; }
  .card { padding: 20px; }
  .define { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; margin-inline: -16px; padding: 4px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
  .row-title { font-size: 21px; }
  .cta { padding: 24px 20px; }
  .cta .buttons, .cta .btn { width: 100%; }
  .toc ol { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(15, 14, 17, .97); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-cta .btn, .mobile-bar .btn { animation: none; }
}

/* Login and registration article */
.account-guide { padding-block: 32px 56px; }
.account-guide > section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.account-guide > section:first-of-type { padding-top: 8px; }
.account-guide h3 { margin-top: 26px; }
.account-guide > .box { margin-top: 32px; }
.page-head .buttons + .small { margin-top: 16px; }

/* Third-party app platform directory */
.platform-section { margin-block: 40px; padding-block: 28px; border-block: 1px solid var(--line); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 22px; }
.platform-tile { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.platform-tile:hover { border-color: var(--gold); color: var(--gold); }
.platform-mark { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; padding: 5px; border-radius: 12px; background: #fff; overflow: hidden; }
.platform-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.platform-tile strong { font-size: 16px; }
.platform-tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.platform-section > .small { margin-bottom: 0; }
@media (max-width: 540px) { .platform-grid { grid-template-columns: 1fr; } }
/* Keep the expanded desktop navigation comfortable on smaller screens. */
@media (min-width: 761px) and (max-width: 1050px) { .header-inner { gap: 14px; } .nav { gap: 14px; } .nav a { font-size: 14px; white-space: nowrap; } .header-cta { display: none; } }
