/* Kaya918 PNG - one stylesheet for the whole site. No frameworks, no web fonts. */
:root {
  color-scheme: dark;
  --bg: #0c0c11;
  --surface: #16161e;
  --surface-2: #1e1e28;
  --border: #2b2b38;
  --text: #f4f4f6;
  --muted: #a6a6b4;
  --accent: #ff2d7a;
  --accent-strong: #d80f5d;
  --accent-soft: rgba(255, 45, 122, 0.12);
  --warn: #ffb020;
  --warn-soft: rgba(255, 176, 32, 0.1);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --radius: 12px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: 76px; /* room for the sticky bar on phones */
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 6px; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; word-break: break-all; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.prose { max-width: 760px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 12, 17, 0.97);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--text); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.age {
  display: inline-grid; place-items: center;
  padding: 2px 6px; border: 1.5px solid var(--muted); border-radius: 6px;
  color: var(--text); font-size: 0.75rem; font-weight: 800; line-height: 1.3;
}
.nav-desktop { display: none; }
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-weight: 700;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: grid; min-width: 240px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.nav-mobile nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav-mobile nav a:hover { background: var(--surface-2); }

/* Current page: pink in the menus, pink outline on the Login button */
.nav-mobile nav a[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent);
}
.btn-ghost[aria-current="page"] { border-color: var(--accent); color: var(--accent); }

@media (max-width: 379px) {
  .header-inner > .age { display: none; }
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; align-self: stretch; gap: 18px; margin-right: 8px; }
  .nav-desktop a {
    display: flex; align-items: center;
    border-top: 3px solid transparent; border-bottom: 3px solid transparent;
    color: var(--muted); font-size: 0.95rem; font-weight: 600; text-decoration: none;
  }
  .nav-desktop a:hover { color: var(--text); }
  .nav-desktop a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
  .nav-mobile { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: 10px;
  font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #ec1769; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }

/* Gentle pulse for the one key button on a page: a slight "breathe" plus a pink ring fading out.
   Uses only transform/opacity so it stays smooth on cheap phones. Stops on hover and for reduced motion. */
.btn-pulse { position: relative; animation: btn-breathe 2s ease-in-out infinite; }
.btn-pulse::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  border: 2px solid var(--accent); pointer-events: none;
  animation: btn-ring 2s ease-out infinite;
}
.btn-pulse:hover, .btn-pulse:focus-visible { animation-play-state: paused; }
.btn-pulse:hover::after, .btn-pulse:focus-visible::after { animation: none; opacity: 0; }
@keyframes btn-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes btn-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.08, 1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
  .btn-pulse::after { animation: none; opacity: 0; }
}
.btn-block { width: 100%; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 12px; }
.actions.single { grid-template-columns: 1fr; max-width: 420px; }
@media (min-width: 640px) { .actions { max-width: 520px; } }

/* ---------- Page structure ---------- */
.crumbs { padding-top: 16px; color: var(--muted); font-size: 0.85rem; }
.crumbs a { color: var(--muted); }
.page-hero, .hero { padding: 22px 0 8px; }
.hero h1 { max-width: 700px; }
/* Homepage hero: banner above the text on phones, beside it from 900px */
.hero-split { display: flex; flex-direction: column; }
.hero-banner { order: -1; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.hero-banner img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--surface-2); }
@media (min-width: 900px) {
  .hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
  .hero-banner { order: 0; margin-bottom: 0; }
}
.lead { color: var(--muted); font-size: 1.05rem; }
.updated { color: var(--muted); font-size: 0.85rem; }
.section { padding: 28px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }

.facts {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  padding: 10px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); font-size: 0.85rem;
}
.facts strong { color: var(--text); }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps > li {
  counter-increment: step; position: relative; margin: 0;
  padding: 14px 14px 14px 58px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.steps > li p:last-child { margin-bottom: 0; }

/* Cards */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 14px; }
.card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card h3, .card h4 { margin-top: 0; }
.card h4 { margin-bottom: 8px; font-size: 1rem; }
.section > h3 { margin-top: 22px; }
.card p:last-child { margin-bottom: 0; }

/* Game tiles: 4:3 image on top, name and one line below */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.tile-name { padding: 10px 12px 0; font-weight: 700; }
.tile-desc { padding: 2px 12px 12px; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.tile:hover { border-color: var(--accent); text-decoration: none; }

/* Game cards (games page): square art, tag, name, one line. 2 columns on phones, 3 on wider screens */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); }
.game-card-body { padding: 10px 12px 12px; }
.game-card h3 { margin: 4px 0 4px; font-size: 1rem; }
.game-card p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.game-tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}

/* Test ID box (iPhone / H5 page): gold-edged card with label/value rows */
.test-id { padding: 18px; margin-bottom: 14px; background: var(--surface); border: 1px solid rgba(255, 200, 61, 0.45); border-radius: var(--radius); }
.test-id-title { margin: 0 0 8px; color: var(--muted); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.test-id dl { margin: 0 0 12px; }
.test-id dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.test-id dt { color: var(--muted); }
.test-id dd { margin: 0; text-align: right; }
.test-id p:last-child { margin-bottom: 0; font-size: 0.9rem; }
.chip { padding: 2px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: #ffc83d; font-size: 0.95rem; word-break: normal; }

/* Myth Buster cards: amber "Myth" badge on the claim, green "Fact" badge on the answer */
.myths { display: grid; gap: 12px; }
@media (min-width: 700px) { .myths { grid-template-columns: 1fr 1fr; } }
.myth { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.myth h3 { margin: 0 0 10px; font-size: 1rem; line-height: 1.4; }
.myth p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.badge {
  display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-myth { background: var(--warn-soft); color: var(--warn); }
.badge-fact { background: var(--ok-soft); color: var(--ok); }

/* Monthly promo banner + the offers it shows, repeated as text for Google */
.promo-banner { display: block; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.promo-banner:hover { border-color: var(--accent); }
.promo-banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.promo-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo-list li { margin: 0; padding: 10px 6px; text-align: center; font-size: 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.promo-list strong { display: block; color: var(--accent); font-size: 1.3rem; line-height: 1.2; }

/* Guide images (tap to open full size) */
.guide-img { margin: 0 0 16px; }
.guide-img a { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.guide-img a:hover { border-color: var(--accent); }
.guide-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.guide-img.wide img { aspect-ratio: 1672 / 941; }
.guide-img figcaption { margin-top: 6px; color: var(--muted); font-size: 0.85rem; }

/* Full-screen image viewer: tap the dark area, the close button or press Esc to close */
.zoom {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 64px 12px 16px;
  background: rgba(0, 0, 0, 0.92); border: 0; color: var(--text);
}
.zoom[open] { display: flex; align-items: center; justify-content: center; }
.zoom::backdrop { background: rgba(0, 0, 0, 0.6); }
.zoom img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.zoom form { position: absolute; top: 12px; right: 12px; margin: 0; }
.zoom-close {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 1.7rem; line-height: 1;
}
.zoom-close:hover { border-color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Ranked table: narrow rank column, numbers right-aligned so they line up */
.rank-table td:first-child, .rank-table th:first-child { width: 2.5em; text-align: center; color: var(--muted); }
.rank-table td:nth-child(2) { font-weight: 600; }
.rank-table td:nth-child(3), .rank-table td:nth-child(4), .rank-table th:nth-child(3), .rank-table th:nth-child(4) { text-align: right; white-space: nowrap; }

/* Key-value box (APK facts, limits) */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.box { padding: 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* Callouts */
.note, .warn { padding: 12px 14px; margin-bottom: 14px; border-radius: 8px; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.warn { background: var(--warn-soft); border-left: 4px solid var(--warn); }
.note p:last-child, .warn p:last-child, .note ul:last-child, .warn ul:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 16px 14px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { color: var(--text); font-size: 1.1rem; font-weight: 800; }
.footer-h { margin: 0 0 6px; color: var(--text); font-weight: 800; }
.site-footer nav a { display: block; padding: 4px 0; color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.footer-rg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border-radius: 10px; }

/* ---------- Sticky bottom bar (phones only) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 12, 17, 0.97); border-top: 1px solid var(--border);
}
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
