/* android-cheats.com. The palette is the app's own (BrandColors.kt in the cheatdroid
   flavor): true black, phosphor green, amber for warnings, rose for errors. The games on
   the page are the one place it gets warm colours, because they are someone else's app. */

@font-face { font-family: "Grotesk"; src: url(/fonts/grotesk-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url(/fonts/grotesk-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url(/fonts/grotesk-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mono"; src: url(/fonts/mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url(/fonts/mono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #000;
  --surface: #050a06;
  --surface-2: #0a120c;
  --surface-3: #101b12;
  --card: #0e1a10;
  --line: #1e3a26;
  --text: #cdefd6;
  --muted: #6fa37c;
  --green: #00ff41;
  --green-dim: #00c853;
  --green-box: #07210f;
  --amber: #ffc24b;
  --rose: #ff5370;
  --sans: "Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* The demos toggle the hidden attribute; a component's own display must never win over it. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #7dff9e; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 0.5em; color: #eafff0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 18em; }

/* ---- Chrome ------------------------------------------------------------------------- */

.announce { background: var(--green-box); border-bottom: 1px solid var(--line); font-size: 0.86rem; color: var(--text); }
.announce .wrap { padding-top: 8px; padding-bottom: 8px; }
.announce .mono { color: #000; background: var(--green); border-radius: 4px; padding: 0 5px; margin-right: 6px; font-weight: 700; font-size: 0.78rem; }
.announce a { white-space: nowrap; }

.site-head { position: sticky; top: 0; z-index: 40; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #eafff0; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.nav-toggle { display: none; cursor: pointer; color: var(--green); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; }
.nav-toggle[aria-expanded="true"] { background: var(--green); color: #000; border-color: var(--green); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--surface-3); color: #fff; }
.nav .pill { border: 1px solid var(--green); color: var(--green); border-radius: 999px; margin-left: 6px; }
.nav .pill:hover { background: var(--green); color: #000; }
body[data-active="download"] .n-download,
body[data-active="faq"] .n-faq,
body[data-active="tutorials"] .n-tutorials,
body[data-active="news"] .n-news { color: var(--green); }
body[data-active="pro"] .n-pro { background: var(--green); color: #000; }

.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 0; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.foot-grid p { margin-top: 12px; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; padding-top: 4px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--green); }

/* ---- Buttons ------------------------------------------------------------------------ */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease, color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #000; box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
.btn-primary:hover { color: #000; background: #5bff86; box-shadow: 0 0 28px rgba(0, 255, 65, 0.35); }
.btn-ghost, .btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--green); color: var(--green); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.link { color: var(--green); }
.eyebrow { color: var(--green); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }

/* ---- Sections ----------------------------------------------------------------------- */

.hero { padding: 64px 0 88px; background: radial-gradient(60% 50% at 78% 40%, rgba(0, 255, 65, 0.09), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.facts { color: var(--muted); font-size: 0.82rem; }
.facts span { white-space: nowrap; }
.only-narrow { display: none; }

.band { padding: 96px 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split-rev .split-copy { order: 2; }
.split-copy p { max-width: 34em; }
.steps { padding: 0; margin: 22px 0; list-style: none; counter-reset: s; font-size: 0.9rem; }
.steps li { counter-increment: s; padding: 8px 0 8px 40px; position: relative; border-top: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 1px dashed var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--green); color: var(--green); display: grid; place-items: center; font-size: 0.8rem; }
.steps b { color: var(--green); font-weight: 700; }

.tiles { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tiles li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .15s ease, transform .15s ease; }
.tiles li:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.tiles h3 { font-family: var(--mono); font-size: 0.95rem; color: var(--green); letter-spacing: 0; margin-bottom: 8px; }
.tiles p { font-size: 0.95rem; margin: 0; color: var(--text); }

.term { background: #020402; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-size: 0.9rem; line-height: 1.9; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow-x: auto; }
.term p { margin: 0; white-space: nowrap; }
.term .pr { color: var(--green); margin-right: 8px; }
.term .out { color: var(--muted); }
.term .hl { color: var(--amber); }
.caret { display: inline-block; width: 9px; height: 1.1em; background: var(--green); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.compare { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 40px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--surface); }
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.5rem; }
.plan ul { padding: 0; list-style: none; margin: 18px 0 24px; }
.plan li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan-pro { border-color: var(--green-dim); background: linear-gradient(180deg, var(--green-box), var(--surface) 60%); }
.price { font-size: 0.95rem; color: var(--green); font-weight: 400; }

.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.help-grid h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.link-list { list-style: none; padding: 0; margin: 20px 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; }
.link-list a:hover { color: var(--green); }
.link-list a::after { content: " \2192"; color: var(--green); }

/* ---- Phones -------------------------------------------------------------------------- */

.stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; justify-items: center; }
.stage[data-demo="network"] { grid-template-columns: minmax(0, 1fr); }
.stage-tabs { display: none; }
.stage-note { grid-column: 1 / -1; font-size: 0.82rem; text-align: center; margin: 6px 0 0; min-height: 1.4em; }

.phone { width: 100%; max-width: 280px; aspect-ratio: 9 / 18.6; background: #0c0c0c; border-radius: 38px; padding: 9px; border: 1px solid #262b27; box-shadow: 0 0 0 1px #000, 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 60px rgba(0, 255, 65, 0.05); position: relative; }
.phone-game { transform: translateY(26px); }
.screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; overflow: clip; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 4px; font: 600 11px/1 var(--sans); flex: none; }
.sb-icons { width: 34px; height: 9px; background: linear-gradient(90deg, currentColor 0 60%, transparent 60% 66%, currentColor 66% 100%); opacity: 0.8; border-radius: 2px; }

/* The game: someone else's app, so it doesn't follow CheatDroid's palette. */
.game { background: linear-gradient(180deg, #3a1d6e 0%, #6b2fa8 45%, #f0884a 100%); color: #fff; }
.game-body { padding: 8px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.game-title { font: 700 18px/1 var(--sans); letter-spacing: 0.18em; text-align: center; margin: 10px 0 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.coins { display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, 0.28); border-radius: 18px; padding: 12px; }
.coin { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, #ffc24b 45%, #c98a12 100%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); flex: none; }
.coin-count { font: 700 30px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.coin-count.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.18); color: #fff3b0; } }
.lives { display: flex; justify-content: center; gap: 6px; margin: 12px 0 16px; min-height: 18px; font: 700 14px/18px var(--sans); }
.heart { width: 16px; height: 15px; background: #ff5f7a; clip-path: path("M8 15 L1.3 8.2 A4 4 0 0 1 8 2.6 A4 4 0 0 1 14.7 8.2 Z"); }
.shop { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 9px 10px; }
.item-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; background: rgba(0, 0, 0, 0.25); position: relative; }
.item-icon.sword::before { content: ""; position: absolute; left: 13px; top: 4px; width: 4px; height: 17px; background: linear-gradient(#fff6c8, #ffc24b); border-radius: 2px 2px 0 0; }
.item-icon.sword::after { content: ""; position: absolute; left: 8px; top: 20px; width: 14px; height: 3px; background: #8a5a12; border-radius: 2px; box-shadow: 5px 3px 0 -0.5px #8a5a12; }
.item-icon.life::before { content: ""; position: absolute; inset: 7px; background: #ff5f7a; clip-path: path("M8 15 L1.3 8.2 A4 4 0 0 1 8 2.6 A4 4 0 0 1 14.7 8.2 Z"); }
.item-name { flex: 1; font-weight: 600; display: flex; flex-direction: column; }
.item-name small { font-weight: 400; opacity: 0.8; font-size: 11px; }
.buy { font: 700 12px/1 var(--sans); border: 0; border-radius: 999px; padding: 8px 12px; background: #ffc24b; color: #3a1d00; cursor: pointer; }
.buy:disabled { background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.55); cursor: not-allowed; }
.shop-item.owned .buy { background: transparent; color: #fff3b0; }
.bonus { margin-top: 10px; border: 1px dashed rgba(255, 255, 255, 0.45); background: rgba(0, 0, 0, 0.18); color: #fff; border-radius: 12px; padding: 9px; font: 600 12px/1 var(--sans); cursor: pointer; }
.bonus b { color: #ffc24b; }
.bonus:hover { background: rgba(0, 0, 0, 0.3); }
.game-hint { margin: auto 0 0; text-align: center; font-size: 12px; opacity: 0.85; min-height: 2.8em; padding-top: 10px; }
.restart { position: absolute; inset: 0; background: #12081f; display: grid; place-items: center; opacity: 0; pointer-events: none; font: 700 20px/1 var(--sans); letter-spacing: 0.2em; color: #ffc24b; }
.restart.on { animation: restart 1.3s ease forwards; }
@keyframes restart { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* CheatDroid itself: the app's own palette. */
.cd { background: #000; color: var(--text); font-family: var(--sans); }
.appbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px 12px; border-bottom: 1px solid var(--line); flex: none; }
.appbar-back { width: 10px; height: 10px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); margin-left: 4px; flex: none; }
.appbar-title { font: 600 15px/1.2 var(--sans); margin: 0; color: #eafff0; }
.appbar-sub { margin: 0; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 8px var(--rose); animation: blink 1.6s steps(1) infinite; }
.prefs { list-style: none; padding: 0; margin: 0; }
.pref { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 13px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.pref:hover { background: var(--surface-2); }
.pref-static { cursor: default; }
.chip { font: 700 9px/1 var(--mono); text-transform: uppercase; color: var(--green); background: var(--green-box); border-radius: 5px; padding: 4px 5px; letter-spacing: 0.04em; }
.pname { font: 500 13px/1.2 var(--mono); color: #eafff0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pval { font: 400 13px/1.2 var(--mono); color: var(--muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pval.changed { color: var(--green); }
button.pref[data-key="coins"] { position: relative; }
.stage.untouched button.pref[data-key="coins"] { box-shadow: inset 2px 0 0 var(--green); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { background: var(--green-box); } }
.tap-hint { color: var(--green); font-size: 11px; text-align: center; margin: 14px 0 0; opacity: 0.9; }
.tap-hint::before { content: "\2191  "; }

.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface-3); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 18px 16px 16px; box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.7); animation: sheet-up .22s ease; z-index: 3; }
.sheet[hidden] { display: none; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--line); margin: -8px auto 12px; }
.sheet-title { font: 600 16px/1.2 var(--sans); margin: 0; color: #eafff0; }
.sheet-sub { font-size: 11px; color: var(--muted); margin: 2px 0 12px; }
.field { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; }
.field:focus-within { border-color: var(--green); }
.field span { display: block; font-size: 10px; color: var(--muted); }
.field input { width: 100%; background: none; border: 0; color: #eafff0; font: 400 16px/1.3 var(--mono); padding: 2px 0 0; outline: none; }
.field-error { color: var(--rose); font-size: 11px; min-height: 1.3em; margin: 6px 0 0; }
.switch-row { display: flex; align-items: center; gap: 10px; font: 400 14px/1 var(--mono); padding: 10px 0; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--green); }
.sheet-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.txt, .tonal { font: 600 13px/1 var(--sans); border-radius: 999px; padding: 10px 16px; border: 0; cursor: pointer; }
.txt { background: none; color: var(--green); }
.tonal { background: var(--green); color: #000; }
.tonal:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

.paywall .pw-notice { color: var(--green); font-size: 12.5px; margin: 8px 0 10px; }
.pw-rows { list-style: none; padding: 0; margin: 0 0 14px; font-size: 12.5px; }
.pw-rows li { padding: 5px 0 5px 20px; position: relative; }
.pw-rows li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.pw-buy { display: block; text-align: center; background: var(--green); color: #000; border-radius: 999px; padding: 12px; font-weight: 700; text-decoration: none; font-size: 13.5px; }
.pw-buy:hover { color: #000; background: #5bff86; }
.paywall .txt { display: block; margin: 6px auto 0; }

.snackbar { position: absolute; left: 10px; right: 10px; bottom: 12px; background: #1c2a1f; color: #eafff0; border-radius: 10px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); animation: sheet-up .2s ease; z-index: 2; }
.snackbar[hidden] { display: none; }
.snackbar span { flex: 1; }
.snackbar button { background: none; border: 0; color: var(--green); font: 700 12px/1 var(--sans); cursor: pointer; padding: 6px; white-space: nowrap; }
.snackbar button:empty { display: none; }

/* Dungeon */
.dungeon { background: linear-gradient(180deg, #120a24, #1f1240 60%, #2d1a12); color: #fff; padding-bottom: 14px; }
.dungeon .game-title { color: #ffc24b; margin-bottom: 8px; }
.arena { position: relative; flex: 1; margin: 0 14px; border-radius: 16px; background: radial-gradient(70% 60% at 50% 100%, rgba(255, 194, 75, 0.18), transparent), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 18px, transparent 18px 36px); }
.fighter { position: absolute; bottom: 18%; width: 54px; height: 64px; }
.hero-sprite { left: 14%; background: linear-gradient(#ffd7a8 0 22%, #3c7bff 22% 70%, #2b2b55 70%); border-radius: 22px 22px 10px 10px; }
.hero-sprite::after { content: ""; position: absolute; right: -16px; top: 14px; width: 5px; height: 38px; background: linear-gradient(#fff6c8, #c9c9c9); border-radius: 3px; transform: rotate(28deg); }
.hero-sprite.hit { animation: hit .35s ease; }
@keyframes hit { 30% { transform: translateX(-6px); filter: brightness(2) saturate(0.2); } }
.slime { right: 14%; width: 62px; height: 46px; background: radial-gradient(circle at 35% 35%, #9dff9e, #2fbf55 60%, #1a7a35); border-radius: 50% 50% 18px 18px; animation: wobble 1.8s ease-in-out infinite; }
.slime::before, .slime::after { content: ""; position: absolute; top: 14px; width: 7px; height: 9px; background: #0b2f15; border-radius: 50%; }
.slime::before { left: 18px; } .slime::after { left: 34px; }
@keyframes wobble { 50% { transform: scaleY(0.9) scaleX(1.06); } }
.dmg-layer { position: absolute; inset: 0; pointer-events: none; }
.dmg { position: absolute; left: 22%; top: 30%; font: 700 18px/1 var(--sans); color: #ff5f7a; text-shadow: 0 2px 0 #000; animation: float-up .9s ease forwards; }
.dmg.blocked { color: #6fd3ff; text-decoration: line-through; }
.dmg.heal { color: var(--green); }
@keyframes float-up { to { transform: translateY(-40px); opacity: 0; } }
.hp { margin: 12px 14px 10px; }
.hp-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.hp-bar { height: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 5px; overflow: hidden; }
.hp-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff5f7a, #ffc24b); border-radius: 5px; transition: width .3s ease; }
.hp.frozen .hp-bar span { background: linear-gradient(90deg, #6fd3ff, #c8f1ff); }
.hp.boosted .hp-bar span { background: linear-gradient(90deg, #00c853, #00ff41); }
.fight { margin: 0 14px; border: 0; border-radius: 14px; padding: 12px; font: 700 14px/1 var(--sans); background: #ffc24b; color: #3a1d00; cursor: pointer; }
.fight:active { transform: translateY(1px); }

/* Memory screen */
.mem-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px 4px; align-items: center; }
.mem-search .field { grid-column: 1 / -1; }
.type-chip { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; justify-self: start; }
.mem-ops { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 14px 0; }
.mem-ops[hidden] { display: none; }
.mem-ops button { font: 500 11px/1 var(--mono); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 7px 10px; cursor: pointer; }
.mem-ops button[data-op="eq"] { border-color: var(--green); color: var(--green); }
.mem-ops .ghost { color: var(--muted); }
.mem-count { font-size: 11.5px; color: var(--muted); padding: 10px 14px 4px; margin: 0; }
.mem-count b { color: var(--green); }
.mem-results { list-style: none; padding: 0; margin: 0; flex: 1; overflow: hidden; }
.mem-results li { display: flex; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line); font: 400 12px/1.2 var(--mono); }
.mem-results li .addr { color: var(--muted); }
.mem-results li.only { background: var(--green-box); }
.mem-results li.only .v { color: var(--green); }
.mem-results li.frozen .v::after { content: " frozen"; font-size: 0.85em; color: #6fd3ff; }
.mem-actions { display: flex; gap: 8px; padding: 10px 14px 14px; }
.mem-actions[hidden] { display: none; }
.mem-actions .tonal { flex: 1; }
.pro-hint { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.pro-hint .pro-tag { margin-left: 0; }
.mem-hit { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-align: left; }
.mem-hit .edit-hint { font: 400 10px/1 var(--sans); color: var(--muted); margin-left: auto; margin-right: 10px; }
.pro-tag { font: 700 8.5px/1 var(--mono); background: var(--amber); color: #000; border-radius: 4px; padding: 2px 4px; margin-left: 4px; vertical-align: 1px; }

/* Network screen */
.flows { list-style: none; padding: 0; margin: 0; flex: 1; overflow: hidden; }
.flows li { animation: flow-in .35s ease; }
@keyframes flow-in { from { opacity: 0; transform: translateY(-6px); } }
.flow { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; padding: 11px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.flow:hover { background: var(--surface-2); }
.method { font: 700 9.5px/1 var(--mono); color: var(--green); }
.method.post { color: var(--amber); }
.path { font: 400 12px/1.3 var(--mono); color: #eafff0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path small { display: block; color: var(--muted); font-size: 10px; }
.status { font: 400 11px/1 var(--mono); color: var(--muted); }
.status.bad { color: var(--rose); }
.flow-sheet { max-height: 82%; overflow: auto; }
.json { background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 400 11px/1.55 var(--mono); color: var(--text); white-space: pre-wrap; word-break: break-word; margin: 0 0 10px; }
.json .k { color: var(--green); } .json .s { color: var(--amber); } .json .n { color: #6fd3ff; } .json .b { color: var(--rose); }
.field textarea { width: 100%; background: none; border: 0; color: #eafff0; font: 400 12px/1.5 var(--mono); padding: 4px 0 0; outline: none; resize: vertical; }
.tag-replayed { font: 700 8.5px/1 var(--mono); color: #000; background: var(--amber); border-radius: 4px; padding: 2px 4px; margin-left: 6px; vertical-align: 1px; text-transform: uppercase; }
.flow-sheet .sheet-actions .tonal { margin-left: auto; }
.flow-verdict { font-size: 12px; color: var(--text); background: var(--green-box); border-radius: 10px; padding: 10px; margin: 0; }

/* ---- Knowledge base (blog.php) -------------------------------------------------------- */

.kb { padding: 48px 0 96px; }
.kb .wrap { max-width: 820px; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font: 400 0.8rem/1.4 var(--mono); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.kb-article h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.4em; }
.kb-article h2 { font-size: 1.55rem; margin: 1.8em 0 0.5em; }
.kb-article h3 { margin: 1.5em 0 0.4em; }
.kb-article ul, .kb-article ol { padding-left: 1.3em; }
.kb-article li { margin: 0.35em 0; }
.kb-article img { border-radius: 12px; border: 1px solid var(--line); display: block; margin: 1.2em 0; }
.kb-article code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-3); border-radius: 5px; padding: 1px 6px; }
.kb-article pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; font: 0.88rem/1.6 var(--mono); }
.kb-article blockquote { border-left: 3px solid var(--green); margin: 1.2em 0; padding: 0.2em 0 0.2em 1em; color: var(--muted); }
.kb-meta { font: 400 0.82rem/1.4 var(--mono); color: var(--muted); margin: 0 0 1.8em; }
.kb-meta a { color: var(--muted); }
.kb-lead { font-size: 1.15rem; }
.kb-cta { margin: 1.6em 0; }
.kb-cta .btn, .kb-article .btn-outline { min-height: 48px; }
.kb-cta form { margin: 0; }
.kb-cta button.btn { background: var(--green); color: #000; border: 0; }
.kb-cta button.btn:hover { background: #5bff86; }
.kb-cta small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.85rem; }
.kb-note { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 14px 16px; }
.kb-steps { padding-left: 1.3em; }
.kb-shot { margin: 1.4em 0; }
.kb-shot img { display: block; margin: 0; width: auto; max-width: 100%; max-height: 460px; border-radius: 14px; border: 1px solid var(--line); }
.kb-shot.wide img { max-height: none; width: 100%; max-width: 640px; }
.kb-shot figcaption { font: 400 0.8rem/1.4 var(--mono); color: var(--muted); margin-top: 8px; }
.kb-walk { list-style: none; padding: 0; margin: 1.6em 0; }
.walk-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.walk-step:last-child { border-bottom: 1px solid var(--line); }
.walk-step.bare, .walk-step.stacked { grid-template-columns: minmax(0, 1fr); }
.walk-step .kb-shot { margin: 0; }
.walk-text { display: flex; gap: 14px; align-items: flex-start; }
.walk-text p { margin: 3px 0 0; }
.walk-num { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--green); color: var(--green); display: grid; place-items: center; font: 600 0.85rem/1 var(--mono); }
.walk-step:not(.stacked):not(.bare) .kb-shot img { max-height: 520px; max-width: 290px; }
.kb-related { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.kb-related h2 { font-size: 1.2rem; }
.kb-list { list-style: none; padding: 0; margin: 0; }
.kb-list li { border-top: 1px solid var(--line); }
.kb-list li:last-child { border-bottom: 1px solid var(--line); }
.kb-list a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; }
.kb-list a:hover { color: var(--green); }
.kb-index .kb-excerpt { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.kb-index .kb-date { font: 400 0.8rem/1 var(--mono); color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.img-responsive { max-width: 100%; height: auto; }
.legal { max-width: 720px; }

/* ---- Narrow screens ------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-copy { order: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare, .help-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; }
  .site-head.open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: #000; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-head.open .nav a { padding: 12px 4px; border-bottom: 1px solid var(--surface-3); }
  .site-head.open .nav .pill { margin: 10px 0 0; text-align: center; border-bottom: 1px solid var(--green); }
  .hero { padding: 36px 0 64px; }
  .band { padding: 64px 0; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .walk-step { grid-template-columns: minmax(0, 1fr); }
  .walk-step:not(.stacked):not(.bare) .kb-shot img { max-width: 78%; max-height: 480px; }
  .walk-step .kb-shot { padding-left: 44px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; gap: 10px 20px; }

  /* One phone at a time on a phone, switched like apps are. */
  .stage[data-demo="prefs"] { grid-template-columns: 1fr; }
  .stage[data-demo="prefs"] .stage-tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
  .stage-tabs button { font: 600 13px/1 var(--sans); border: 0; background: none; color: var(--muted); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
  .stage-tabs button[aria-selected="true"] { background: var(--green); color: #000; }
  .stage[data-demo="prefs"] .phone { display: none; transform: none; }
  .stage[data-demo="prefs"] .phone.is-shown { display: block; }
  /* The fight shrinks to a card above the scanner; side by side, neither is readable. */
  .stage-duo { grid-template-columns: 1fr; gap: 14px; }
  .stage-duo .phone { transform: none; }
  .stage-duo .phone-game { aspect-ratio: auto; max-width: 340px; border-radius: 26px; }
  .stage-duo .phone-game .screen { height: auto; border-radius: 19px; padding-bottom: 12px; }
  .stage-duo .phone-game .statusbar { display: none; }
  .stage-duo .phone-game .game-title { margin: 14px 0 8px; font-size: 14px; }
  .stage-duo .arena { flex: none; height: 118px; }
  .stage-duo .fighter { transform: scale(0.72); transform-origin: bottom center; bottom: 8%; }
  .stage-duo .phone-cd { max-width: 300px; }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .announce { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
