/* GTA 6 Endings page (endings.html). Same dark theme as the Street Cars / Tracker pages. */
.page-endings { --en-ink: #fff4fb; --en-dim: #b9a9cf; --en-card: #17102b; --en-card2: #1f1538; --en-line: rgba(255,255,255,.09);
  --en-mint: #22e3d3; --en-gold: #ffb347; --en-ok: #3ee08f; --en-warn: #ffb347; --en-bad: #ff6b86; }
.page-endings .en-top .brand h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 9vw, 3.6rem); letter-spacing: .02em; text-transform: uppercase; line-height: 1; margin: 2px 0 8px; }
.page-endings .en-top .tag { max-width: 62ch; }
.page-endings .site-nav { overflow-x: auto; }

.en { padding: 4px 4px 40px; color: var(--en-ink); }
.en h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 5vw, 1.9rem); letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; margin: 0 0 8px; color: var(--en-ink); background: none; -webkit-text-fill-color: currentColor; }
.en h2 small { font-family: var(--font, Sora, sans-serif); font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--en-dim); font-weight: 500; margin-left: 6px; }
.en h3 { font-size: .95rem; margin: 0 0 6px; color: var(--en-ink); }
.en section { margin: 0 0 22px; }
.en p, .en li { line-height: 1.5; }
.en a { color: var(--en-mint); }
.en .en-sub { color: var(--en-dim); margin: 0 0 10px; font-size: .92rem; }
.en .en-fine { color: var(--en-dim); font-size: .8rem; margin: 8px 0 0; }

/* warning + controls */
.en-warnbox { background: linear-gradient(180deg, rgba(255,179,71,.14), rgba(255,179,71,.06)); border: 1px solid rgba(255,179,71,.45); border-radius: 14px; padding: 14px 14px 12px; }
.en-warnbox h2 { color: var(--en-gold); }
.en-warnbox p { margin: 0 0 10px; font-size: .93rem; }
.en-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.en-plat { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.28); border-radius: 999px; padding: 4px; }
.en-plat-l { font-size: .78rem; color: var(--en-dim); padding: 0 6px 0 10px; }
.en-plat-b { appearance: none; border: 0; background: transparent; color: var(--en-dim); font: inherit; font-weight: 600; font-size: .85rem; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.en-plat-b.is-on { background: var(--en-mint); color: #07131a; }
.en-hideall { appearance: none; background: transparent; border: 1px solid var(--en-line); color: var(--en-ink); border-radius: 999px; min-height: 40px; padding: 0 14px; font: inherit; font-size: .82rem; cursor: pointer; }
.js-only { display: none; }
html.js .js-only { display: revert; }
html.js .en-hideall[hidden] { display: none; }
html.js .en-wants.js-only { display: flex; }
html.js .en-result.js-only { display: grid; }
html.js .en-result[hidden], html.js .en-hideall[hidden] { display: none; }

.en-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px !important; }
.en-quick > div { background: var(--en-card); border: 1px solid var(--en-line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.en-quick b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--en-gold); line-height: 1; letter-spacing: .02em; }
.en-quick span { font-size: .82rem; color: var(--en-dim); line-height: 1.35; }
@media (min-width: 720px) { .en-quick { grid-template-columns: repeat(4, 1fr); } }

/* spoiler pill, badges, keys */
.en-pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255,107,134,.18); color: var(--en-bad); border: 1px solid rgba(255,107,134,.5); vertical-align: 1px; margin-right: 4px; }
.en-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; line-height: 1.2; }
.en-badge.sm { font-size: .64rem; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.en-badge.b-confirmed { color: var(--en-ok); background: rgba(62,224,143,.12); border-color: rgba(62,224,143,.5); }
.en-badge.b-likely { color: var(--en-warn); background: rgba(255,179,71,.12); border-color: rgba(255,179,71,.5); }
.en-badge.b-disputed { color: var(--en-bad); background: rgba(255,107,134,.12); border-color: rgba(255,107,134,.55); }
.en-key { display: inline-block; min-width: 1.9em; text-align: center; font-weight: 700; font-size: .78em; padding: 1px 8px; border-radius: 999px; background: #2a2145; color: #fff; border: 1px solid rgba(255,255,255,.25); line-height: 1.5; white-space: nowrap; }
.en-key.k-a { background: #1c8f4d; border-color: #3ee08f; }
.en-key.k-x { background: #2166d6; border-color: #6aa3ff; }
.en-key.k-y { background: #b88a12; border-color: #ffd34d; color: #1a1200; }
.en-key.k-rt { background: #3a3158; }
.en-key.k-tri { background: #14866f; border-color: #3fe0be; }
.en-key.k-sq { background: #a8407c; border-color: #ff7cc0; }
.en-key.k-cr { background: #2f5fb0; border-color: #86adff; }

/* save callout */
.en-save { background: linear-gradient(180deg, #2a1b0a, #1a1030 80%); border: 2px solid var(--en-gold); border-radius: 16px; padding: 14px; box-shadow: 0 0 0 4px rgba(255,179,71,.08); }
.en-save-h { display: flex; align-items: center; gap: 10px; }
.en-save-h h2 { margin: 0; color: var(--en-gold); }
.en-save-ic { font-size: 1.7rem; }
.en-save-lead { margin: 8px 0 12px; font-size: .94rem; }
.en-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; counter-reset: st; }
.en-steps li { counter-increment: st; background: rgba(0,0,0,.3); border: 1px solid var(--en-line); border-radius: 10px; padding: 8px 10px 8px 38px; position: relative; display: flex; flex-direction: column; line-height: 1.25; }
.en-steps li::before { content: counter(st); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #2a2145; color: var(--en-dim); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.en-steps li small { color: var(--en-dim); font-size: .75rem; }
.en-steps li.is-save { border-color: var(--en-gold); background: rgba(255,179,71,.16); }
.en-steps li.is-save::before { background: var(--en-gold); color: #1a1000; }
.en-steps li.is-go { border-color: var(--en-bad); background: rgba(255,107,134,.12); }
.en-steps li.is-go::before { background: var(--en-bad); color: #20000a; }
@media (min-width: 760px) { .en-steps { grid-template-columns: repeat(6, 1fr); } .en-steps li { padding: 30px 8px 8px; align-items: center; text-align: center; } .en-steps li::before { left: 50%; top: 8px; transform: translateX(-50%); } }
.en-check { border: 1px solid var(--en-line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; background: rgba(0,0,0,.22); }
.en-check legend { font-size: .78rem; font-weight: 700; color: var(--en-gold); padding: 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.en-check label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-size: .9rem; cursor: pointer; border-top: 1px solid var(--en-line); }
.en-check label:first-of-type { border-top: 0; }
.en-check input { width: 22px; height: 22px; flex: none; accent-color: var(--en-mint); margin-top: 0; }

/* chooser */
.en-choose { background: var(--en-card); border: 1px solid var(--en-line); border-radius: 16px; padding: 14px; }
.en-wants { flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; }
.en-want { appearance: none; border: 1px solid var(--en-line); background: var(--en-card2); color: var(--en-ink); font: inherit; font-size: .9rem; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.en-want[aria-pressed="true"] { background: var(--en-mint); color: #07131a; border-color: var(--en-mint); }
.en-result { margin-top: 12px; display: grid; gap: 10px; }
.en-result .en-r-note { margin: 0; color: var(--en-dim); font-size: .9rem; }
.en-r { background: var(--en-card2); border: 1px solid var(--en-line); border-left: 4px solid var(--en-mint); border-radius: 12px; padding: 10px 12px; }
.en-r-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.en-r-h b { font-size: .95rem; }
.en-r ul { margin: 4px 0 8px; padding-left: 18px; font-size: .86rem; }
.en-r button { appearance: none; background: transparent; border: 1px solid var(--en-mint); color: var(--en-mint); font: inherit; font-weight: 600; font-size: .84rem; border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; }

/* tip */
.en-tip { background: var(--en-card); border: 1px solid var(--en-line); border-left: 4px solid var(--en-gold); border-radius: 14px; padding: 12px 14px; }
.en-tip ul { margin: 0 0 10px; padding-left: 18px; font-size: .92rem; }
.en-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--en-gold); color: #1a1000 !important; font-weight: 700; text-decoration: none; font-size: .9rem; }

/* endings list */
.en-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--en-dim); margin: 4px 0 4px; }
.en-legend .en-badge { margin-right: 4px; }
.en-card { margin: 10px 0 0; background: var(--en-card); border: 1px solid var(--en-line); border-left: 4px solid #5b4b86; border-radius: 14px; overflow: hidden; scroll-margin-top: 70px; }
.en-card.g-b { border-left-color: var(--en-mint); }
.en-card.g-t { border-left-color: #ff7cc0; }
.en-card.g-s { border-left-color: var(--en-gold); }
.en-card.is-hit { box-shadow: 0 0 0 2px var(--en-mint); }
.en-det > summary { list-style: none; display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center; padding: 12px; cursor: pointer; min-height: 56px; }
.en-det > summary::-webkit-details-marker, .en-spoil > summary::-webkit-details-marker, .en-faq > summary::-webkit-details-marker { display: none; }
.en-num { width: 34px; height: 34px; border-radius: 50%; background: #2a2145; display: grid; place-items: center; font-family: var(--display); font-size: 1.15rem; color: var(--en-gold); }
.en-sum { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.en-sum b { font-size: .95rem; }
.en-route { color: var(--en-dim); font-size: .84rem; }
.en-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.en-mood { font-size: .7rem; color: var(--en-dim); border: 1px solid var(--en-line); border-radius: 999px; padding: 2px 8px; }
.en-chev { display: none; }
@media (max-width: 520px) { .en-det > summary { grid-template-columns: 34px 1fr; } .en-meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; } }
.en-det[open] > summary { border-bottom: 1px solid var(--en-line); background: rgba(255,255,255,.03); }
.en-body { padding: 12px; }
.en-reqs { margin: 0 0 10px; padding-left: 20px; font-size: .92rem; }
.en-reqs li { margin: 0 0 6px; }
.en-tell, .en-note, .en-warn { font-size: .88rem; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.en-warn { background: rgba(255,107,134,.1); border: 1px solid rgba(255,107,134,.4); }
.en-spoil { border: 1px dashed rgba(255,107,134,.6); border-radius: 12px; background: rgba(255,107,134,.06); }
.en-spoil > summary { list-style: none; cursor: pointer; padding: 12px; min-height: 48px; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.en-spoil[open] > summary { border-bottom: 1px dashed rgba(255,107,134,.4); }
.en-spoil-body { padding: 4px 12px 12px; font-size: .92rem; }
.en-spoil-body p { margin: 8px 0 0; }
.en-oname { font-size: 1rem; color: var(--en-gold); }
.en-surv { color: var(--en-dim); font-size: .82rem; border-top: 1px solid var(--en-line); padding-top: 8px; }

/* replay, disputes, faq */
.en-replay ul, .en-rum, .en-src { padding-left: 18px; font-size: .92rem; margin: 6px 0 10px; }
.en-replay li, .en-rum li { margin: 0 0 6px; }
.en-disp { background: var(--en-card); border: 1px solid var(--en-line); border-left: 4px solid var(--en-bad); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.en-disp h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.en-disp p { margin: 4px 0 0; font-size: .9rem; }
.en-disp-do { color: var(--en-mint); }
.en .faq-item { background: var(--en-card); border: 1px solid var(--en-line); border-radius: 12px; margin: 0 0 8px; }
.en .faq-item > summary { list-style: none; cursor: pointer; padding: 12px 14px; min-height: 48px; font-weight: 600; font-size: .94rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.en .faq-item > summary::after { content: "+"; font-size: 1.3rem; color: var(--en-mint); flex: none; }
.en .faq-item[open] > summary::after { content: "–"; }
.en .faq-item > p, .en .faq-item > ul, .en .faq-item > .en-plan-in { margin: 0; padding: 0 14px 12px; }
.en .faq-item > ul { padding-left: 32px; }
.en-plan-grid { display: grid; gap: 10px; }
@media (min-width: 760px) { .en-plan-grid { grid-template-columns: repeat(3, 1fr); } }
.en-plan-col { background: var(--en-card2); border-radius: 10px; padding: 10px; font-size: .86rem; }
.en-plan-col h4 { margin: 0 0 4px; color: var(--en-gold); font-size: .9rem; }
.en-plan-col p { margin: 0 0 6px; color: var(--en-dim); }
.en-plan-col ol { margin: 0; padding-left: 18px; }
.en-discord { background: var(--en-card2); border: 1px solid var(--en-line); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.en-discord p { margin: 0; }
.en-src { word-break: break-word; }
@media (prefers-reduced-motion: no-preference) { .en-card { transition: box-shadow .2s; } }
.en a:focus-visible, .en button:focus-visible, .en summary:focus-visible, .en input:focus-visible { outline: 2px solid var(--en-mint); outline-offset: 2px; }
