/* AMRP website: one stylesheet for every page. Dark, Algerian green / white / red, gold touches. */
:root {
  --bg: #0a0e0c;
  --bg-2: #0f1512;
  --card: #141b17;
  --card-2: #1a231e;
  --line: #26332c;
  --text: #ecf2ee;
  --muted: #a6b4ab;
  --faint: #7d8c83;
  --green: #006633;
  --green-hover: #007d3f;
  --green-text: #3ccf7e;
  --red: #d21034;
  --red-text: #ff6b82;
  --gold: #d9b45a;
  --gold-soft: rgba(217, 180, 90, .14);
  --discord: #4752c4;
  --focus: #ffd166;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 420px at 85% -120px, rgba(0, 102, 51, .22), transparent 70%),
    radial-gradient(700px 360px at -10% 0, rgba(210, 16, 52, .10), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { color: #6fe0a2; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .92em; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--focus); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; color: #000; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; display: block; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------------------------------------------------------------- header */
.flagline { height: 4px; background: linear-gradient(90deg, var(--green) 0 46%, #f4f4f4 46% 54%, var(--red) 54% 100%); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 12, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand:hover { color: var(--text); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-logo { width: 44px; height: 44px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.brand-name { font-size: 1.25rem; letter-spacing: .04em; line-height: 1; }
.brand-sub { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav-toggle { display: none; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--text); background: var(--card); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--card-2); box-shadow: inset 0 -2px 0 var(--green-text); }
.site-nav a.nav-discord { color: #fff; background: var(--discord); margin-left: 6px; }
.site-nav a.nav-discord:hover { background: #3c46b0; }
.site-nav svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .site-nav a { padding: 13px 12px; font-size: 1.02rem; }
  .site-nav a.nav-discord { margin: 8px 0 0; justify-content: center; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; font: 700 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(0, 102, 51, .35); }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #3c46b0; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-danger { background: transparent; color: var(--red-text); border-color: rgba(210, 16, 52, .5); }
.btn-danger:hover { background: rgba(210, 16, 52, .12); color: #ff8fa0; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-small { min-height: 36px; padding: 7px 12px; font-size: .88rem; border-radius: 9px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 44px 0 36px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.hero h1 .accent { color: var(--green-text); }
.hero h1 .accent-red { color: var(--red-text); }
.hero .lead { margin-bottom: 1.4rem; }
.hero-art { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #0d2a1b, #0b120e 60%); aspect-ratio: 4 / 3.2; }
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { aspect-ratio: 16 / 10; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* live status pill */
.status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 650; font-size: .92rem; margin-bottom: 18px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.status.up .dot { background: #2fd27a; box-shadow: 0 0 0 0 rgba(47, 210, 122, .6); animation: pulse 2s infinite; }
.status.down .dot { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 210, 122, .55); } 70% { box-shadow: 0 0 0 9px rgba(47, 210, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 210, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .status.up .dot { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------------------------------------------------------------- cards and grids */
.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)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.icon-badge { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 102, 51, .22); color: var(--green-text); flex: none; }
.icon-badge.red { background: rgba(210, 16, 52, .16); color: var(--red-text); }
.icon-badge.gold { background: var(--gold-soft); color: var(--gold); }
.icon-badge svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature h3 { margin: 14px 0 6px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 52px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 20px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1405; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.tile .label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: block; }
.tile .value { font-size: clamp(1.35rem, 4.6vw, 1.9rem); font-weight: 800; line-height: 1.15; margin-top: 4px; display: block; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tile .sub { color: var(--faint); font-size: .82rem; display: block; margin-top: 2px; }
.tile.green .value { color: var(--green-text); }
.tile.gold .value { color: var(--gold); }
.tile.red .value { color: var(--red-text); }

/* leaderboards */
.lb { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.lb li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lb li:last-child { border-bottom: 0; }
.lb li::before { counter-increment: lb; content: counter(lb); font-weight: 800; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.lb li:nth-child(1)::before { color: var(--gold); }
.lb li:nth-child(2)::before { color: #cfd6db; }
.lb li:nth-child(3)::before { color: #d0905a; }
.lb li.empty-row { display: block; border: 0; }
.lb li.empty-row::before { content: none; }
.lb .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb .who small { display: block; color: var(--faint); font-weight: 500; font-size: .8rem; }
.lb .val { font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, .25); }

/* chips, tags, bars */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.chip.on { color: #c6f5da; border-color: rgba(60, 207, 126, .45); background: rgba(0, 102, 51, .25); }
.chip.off { color: var(--faint); text-decoration: line-through; }
.chip.warn { color: #ffd0d8; border-color: rgba(210, 16, 52, .5); background: rgba(210, 16, 52, .15); }
.tag { display: inline-block; min-width: 86px; text-align: center; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; flex: none; }
.tag-new { background: rgba(0, 102, 51, .3); color: #8ef0b9; }
.tag-fix { background: rgba(210, 16, 52, .18); color: #ffb3bf; }
.tag-improved { background: var(--gold-soft); color: #f0d48d; }
.bar { height: 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-text)); border-radius: 999px; }
.bar.gold > span { background: linear-gradient(90deg, #9c7a2a, var(--gold)); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* alerts, empty and loading states */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--line); background: var(--card-2); margin: 0 0 16px; }
.alert-error { border-color: rgba(210, 16, 52, .55); background: rgba(210, 16, 52, .12); color: #ffd6dd; }
.alert-info { border-color: rgba(217, 180, 90, .45); background: var(--gold-soft); color: #f6e6bd; }
.alert-ok { border-color: rgba(60, 207, 126, .45); background: rgba(0, 102, 51, .2); color: #d2f7e2; }
.empty { color: var(--faint); font-style: italic; padding: 8px 0; margin: 0; }
.skeleton { display: block; height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--card-2), #222d27, var(--card-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field .hint { color: var(--faint); font-size: .85rem; margin-top: 5px; display: block; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 11px; border: 1px solid #34443a; background: var(--bg-2); color: var(--text); font: 500 1rem var(--font); }
.input:focus { border-color: var(--green-text); outline: 3px solid rgba(60, 207, 126, .35); outline-offset: 0; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 76px; }
.input-wrap .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.login-card { max-width: 460px; margin: 0 auto; }

/* ---------------------------------------------------------------- UCP */
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--green), #0b3d23); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; color: #fff; flex: none; border: 2px solid rgba(255, 255, 255, .12); }
.who-block { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-block h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin: 0; overflow-wrap: anywhere; }
.subhead { color: var(--muted); margin-top: 3px; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1000px) { .span-4 { grid-column: span 6; } .span-8 { grid-column: span 12; } }
@media (max-width: 680px) { .span-4, .span-6 { grid-column: span 12; } }
.list-cards { display: grid; gap: 10px; }
.mini { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 4px; }
.mini .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; font-weight: 700; }
.mini .meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.plate { font-family: var(--mono); background: #f4f4f4; color: #111; border-radius: 4px; padding: 0 6px; font-size: .82rem; font-weight: 700; border-left: 6px solid var(--green); }

/* ---------------------------------------------------------------- stats page */
.players-online { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.player { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.player .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.player .lvl { color: var(--faint); font-size: .8rem; flex: none; }
.turfs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.turf { border-radius: 10px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-left: 6px solid var(--turf, #9E9E9E); min-width: 0; }
.turf b { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.turf span { color: var(--muted); font-size: .8rem; }
.fun { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fun .card { padding: 16px; }
.fun .big { font-size: 1.35rem; font-weight: 800; display: block; overflow-wrap: anywhere; }
.fun .what { color: var(--gold); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; }
.fun .who { color: var(--muted); font-size: .9rem; }
.updated { color: var(--faint); font-size: .85rem; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------- changelog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { cursor: pointer; font: inherit; }
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--gold); background: var(--gold-soft); }
.timeline { position: relative; display: grid; gap: 16px; }
.release { position: relative; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.release-head h2 { font-size: 1.2rem; margin: 0; flex: 1 1 260px; }
.version { font-family: var(--mono); font-weight: 700; color: #f0d48d; background: var(--gold-soft); border: 1px solid rgba(217, 180, 90, .35); border-radius: 7px; padding: 1px 8px; font-size: .88rem; }
.release time { color: var(--muted); font-size: .9rem; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.changes li { display: flex; gap: 10px; align-items: baseline; }
.month { color: var(--gold); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 20px 0 0; }

/* ---------------------------------------------------------------- help */
.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.toc summary { font-weight: 750; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.toc[open] summary::after { content: "\2013"; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .94rem; }
.toc a:hover, .toc a.active { color: var(--text); background: var(--card-2); }
.toc a.active { box-shadow: inset 3px 0 0 var(--green-text); }
.search { margin: 10px 0 0; }
.help-section { padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
.help-section:last-child { border-bottom: 0; }
.help-section h2 { display: flex; align-items: center; gap: 12px; }
.help-section h3 { margin-top: 1.3em; }
.help-section ul, .help-section ol { padding-left: 1.25em; margin: 0 0 1em; }
.help-section li { margin: .3em 0; }
.help-section li::marker { color: var(--gold); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot .frame { aspect-ratio: 16 / 9; border: 2px dashed #3a4a40; border-radius: 12px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .015) 0 12px, transparent 12px 24px), var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); text-align: center; padding: 12px; overflow: hidden; }
.shot .frame svg { width: 34px; height: 34px; color: #4c5e53; }
.shot .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; display: none; }
.shot.has-img .frame { border-style: solid; padding: 0; }
.shot.has-img .frame img { display: block; }
.shot.has-img .frame .ph { display: none; }
.shot figcaption { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.shot .path { font-family: var(--mono); font-size: .74rem; color: #5f7066; overflow-wrap: anywhere; }
.no-results { display: none; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.keys li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin: 0; font-size: .93rem; }
.keys b { color: var(--text); display: block; font-size: .82rem; letter-spacing: .06em; }
.keys span { color: var(--muted); }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; gap: 12px; }
  .toc { position: static; max-height: none; }
}

/* ---------------------------------------------------------------- download / cta band */
.band { background: linear-gradient(120deg, rgba(0, 102, 51, .35), rgba(10, 14, 12, .6) 60%, rgba(210, 16, 52, .22)); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band h2 { margin-bottom: .3em; }
.band p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0 32px; margin-top: 40px; color: var(--muted); font-size: .94rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.made a { color: var(--gold); font-weight: 700; text-decoration: none; }
.made a:hover { text-decoration: underline; color: #f0d48d; }

/* ---------------------------------------------------------------- 404 */
.notfound { text-align: center; padding: 70px 0 40px; }
.notfound .code { font-size: clamp(4.5rem, 22vw, 9rem); font-weight: 900; line-height: 1; background: linear-gradient(90deg, var(--green-text), #fff, var(--red-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .btn-row { justify-content: center; }

/* the home's hero: the launcher's own picture of Alger by night (res/drawable-nodpi/launcher_bg.jpg) */
.hero-photo { padding: 96px 0 88px; background: linear-gradient(90deg, rgba(8,11,9,.9) 0%, rgba(8,11,9,.62) 40%, rgba(8,11,9,.08) 72%, rgba(8,11,9,0) 100%), linear-gradient(0deg, rgba(8,11,9,.85) 0%, rgba(8,11,9,0) 30%), url(../img/hero.webp) 70% 30% / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero-photo .hero-grid { grid-template-columns: minmax(0, 640px); }
.hero-photo .lead { color: #d9dedb; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
@media (max-width: 760px) {
  .hero-photo { padding: 48px 0 40px; background: linear-gradient(180deg, rgba(8,11,9,.35) 0%, rgba(8,11,9,.82) 46%, rgba(8,11,9,.97) 100%), url(../img/hero-960.webp) 22% top / auto 52% no-repeat, #080b09; }
  .hero-photo .hero-grid { grid-template-columns: 1fr; }
  .hero-photo .status { margin-top: 150px; }
}
/* the Discord band: the launcher's street of Alger with the car (launcher_bg.jpg) */
.cta-photo { background: linear-gradient(90deg, rgba(8,11,9,.62), rgba(8,11,9,.92) 60%), url(../img/bay.webp) left 40% / cover no-repeat !important; }

/* the help's real screenshots (phone, 2340 x 1080): shown whole, tap to open them full size */
.shot.has-img .frame { aspect-ratio: 2340 / 1080; background: #000; }
.shot.has-img .frame img { object-fit: contain; cursor: zoom-in; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* the help's screenshot viewer (help.js) */
.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: #050806; display: flex; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.6); background: #000; }
.lb-fig figcaption { color: var(--text); text-align: center; font-size: 1rem; max-width: 900px; }
.lb-close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20, 26, 22, .85); color: var(--text); font-size: 36px; line-height: 1; cursor: pointer; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .lightbox { padding: 60px 8px 16px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; width: 52px; height: 48px; }
  .lb-fig img { max-height: calc(100vh - 190px); }
  .lb-fig figcaption { padding: 0 64px; font-size: .92rem; }
}
