@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/anton.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600 700;
  font-display: optional;
  src: url(/fonts/jetbrainsmono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(/fonts/spacegrotesk.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/yellowtail.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-night: #0a0512;
  --bg-card: rgba(24, 13, 38, 0.78);
  --bg-card-hover: rgba(38, 19, 59, 0.95);

  --pink: #ff2a85;
  --coral: #ff7b54;
  --gold: #ffc24b;
  --mint: #00f5b8;
  --cyan: #4cd7ff;

  --white: #fff9f5;
  --muted: #c2b0d4;
  --dim: #7b6691;

  --font-gta: 'Anton', Impact, sans-serif;
  --font-script: 'Yellowtail', cursive;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sunset-grad: linear-gradient(135deg, #ff2a85 0%, #ff7b54 52%, #ffc24b 100%);
}

/* Custom Vice Theme Scrollbars */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--pink) #090410;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #090410;
  border-left: 1px solid rgba(255, 42, 133, 0.15);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--coral));
  border-radius: 999px;
  border: 2px solid #090410;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

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

[hidden] {
  display: none !important;
}

body {
  background-color: var(--bg-night);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.vice-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(255, 42, 133, 0.24), transparent 70%),
    radial-gradient(circle at 85% 25%, rgba(255, 123, 84, 0.12), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(0, 245, 184, 0.07), transparent 50%);
}

/* =================================================================== */
/* SINGLE-ROW HEADER WITH CLEAR UPDATE TIMESTAMP + REFRESH BUTTON      */
/* =================================================================== */
.vice-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-lockup {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.logo-gta {
  font-family: var(--font-gta);
  font-size: 2.25rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--pink);
}

.logo-script {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--pink);
  transform: rotate(-5deg) translateY(2px);
  text-shadow: 0 0 16px rgba(255, 42, 133, 0.9);
}

.header-strip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex: 1 1 auto;
  max-width: 54rem;
  min-width: 0;
  background: linear-gradient(0deg, #ac47731c, transparent 78%);
  border-bottom: 1px solid #74425b;
}
.vice-nav, .header-right, .platform-pill { display: flex; align-items: stretch; }
.vice-nav { flex: 1; }
.nav-link, .plat-btn, .btn-refresh-feed {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #d2bace;
  text-decoration: none;
  cursor: pointer;
}
.nav-link {
  flex: 1;
  padding: .4rem clamp(.28rem, .85vw, .85rem);
  font: 400 clamp(.94rem, 2.15vw, 1.14rem)/1 var(--font-gta);
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-link[aria-current="page"] { color: #fff7eb; }
.nav-link::after, .plat-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: .55rem;
  right: .55rem;
  height: 3px;
  transform: skewX(-24deg);
  background: transparent;
}
.nav-link[aria-current="page"]::after { background: var(--sunset-grad); }
.header-right { align-items: center; }
.platform-pill { align-items: stretch; }
.plat-btn {
  --console-ink: #8fc2ff;
  gap: .33rem;
  padding-inline: .6rem;
  font: 700 .8rem/1 var(--font-body);
}
.plat-btn[data-platform="xbox"] { --console-ink: #98db88; }
.console-mark { flex: none; width: 1.12rem; height: 1.12rem; color: var(--console-ink); }
.plat-btn[aria-pressed="true"] { color: var(--console-ink); }
.plat-btn[aria-pressed="true"]::after { background: var(--console-ink); }
.btn-refresh-feed {
  gap: .45rem;
  padding: .2rem .65rem .2rem 1rem;
  text-align: left;
  color: #ffe4d3;
  font: 700 .82rem/1.2 var(--font-body);
}
.btn-refresh-feed::before {
  content: "";
  position: absolute;
  left: .18rem;
  height: 1.55rem;
  width: 1px;
  background: #78506a;
  transform: skewX(-12deg);
}
.btn-refresh-feed:disabled { cursor: progress; }
.refresh-icon { flex: none; width: 1.05rem; height: 1.05rem; color: #ffac86; }
.refresh-caption { display: grid; gap: .1rem; }
.sync-timestamp { color: #d1b2c6; font: 600 .65rem/1.2 var(--font-mono); white-space: nowrap; }
.header-strip :is(a, button):hover { color: var(--white); background: #ffc3de10; }
.header-strip :is(a, button):focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (max-width: 55rem) {
  .vice-header { row-gap: .45rem; }
  .header-strip { flex-basis: 100%; max-width: none; }
}
@media (max-width: 38rem) {
  .header-strip { flex-direction: column; }
  .vice-nav { border-bottom: 1px solid #61384f; }
  .header-right { justify-content: space-between; }
  .btn-refresh-feed { padding-right: .45rem; }
  .btn-refresh-feed::before { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .refresh-icon.spinning { animation: spin360 .85s linear infinite; }
}

@keyframes spin360 {
  to { transform: rotate(360deg); }
}

/* =================================================================== */
/* MAIN CANVAS                                                         */
/* =================================================================== */
.view-canvas {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 4rem;
}

/* =================================================================== */
/* 1. COMPACT POSTER HERO                                              */
/* =================================================================== */
.poster-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(1.15rem, 2.5vw, 1.85rem) clamp(1.2rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
  background:
    linear-gradient(110deg, rgba(14, 7, 24, 0.94) 38%, rgba(255, 42, 133, 0.22) 100%),
    #160b26;
  border: 1px solid rgba(255, 123, 84, 0.28);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.poster-art-layer {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  height: 190px;
  pointer-events: none;
}

.sun-disc {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff2a85 0%, #ff7b54 55%, #ffc24b 100%);
  box-shadow: 0 0 50px rgba(255, 42, 133, 0.5);
  mask-image: repeating-linear-gradient(
    to bottom,
    #000 0px,
    #000 12px,
    transparent 12px,
    transparent 16px
  );
}

.palm-silhouette {
  position: absolute;
  bottom: -12px;
  right: -8px;
  width: 165px;
  height: 185px;
  color: #0a0512;
  filter: drop-shadow(-3px 0 0 var(--pink));
}

.poster-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.poster-sticker-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.neon-script-tag {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255, 42, 133, 0.85);
  transform: rotate(-3deg);
  display: inline-block;
}

.payout-stamp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0a0512;
  background: var(--mint);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
}

.poster-title {
  font-family: var(--font-gta);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 4px 4px 0 #090410;
}

.poster-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-vice-action {
  background: var(--sunset-grad);
  color: #0a0512;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-vice-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 42, 133, 0.45);
}

.btn-vice-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-vice-outline:hover {
  border-color: var(--coral);
  background: rgba(255, 123, 84, 0.14);
}

/* =================================================================== */
/* STREAM BAR & INTERACTIVE INLINE-EXPANDABLE FEED                     */
/* =================================================================== */
.stream-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.stream-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.stream-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stream-tab span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.2rem;
}

.stream-tab:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.stream-tab.active {
  background: rgba(255, 42, 133, 0.18);
  border-color: var(--pink);
  color: var(--white);
}

.stream-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.clean-search {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  width: 240px;
}

.clean-search:focus {
  outline: none;
  border-color: var(--pink);
}

.btn-add-tip {
  background: rgba(255, 194, 75, 0.15);
  border: 1px solid rgba(255, 194, 75, 0.45);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.btn-add-tip:hover {
  background: var(--gold);
  color: #0a0512;
}

.vice-feed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

/* Interactive Accordion Feed Item */
[data-feed-leading], [data-feed-trailing] { display: contents; }
.display-ad { min-width: 0; text-align: center; }
.display-ad > span {
  display: block;
  color: var(--muted);
  font: 600 .7rem/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.feed-ad { grid-column: 1 / -1; min-height: 100px; }
.sidebar-ad, .display-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (min-width: 1280px) {
  .publisher-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    width: calc(100% - 2rem);
    max-width: 1340px;
    margin-inline: auto;
    align-items: start;
  }
  .publisher-layout:has(#view-map) { max-width: 1680px; }
  .publisher-layout > main { width: 100%; min-width: 0; }
  .sidebar-ad { display: block; min-height: 600px; margin-top: .75rem; }
}

.feed-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.feed-item:hover {
  border-color: rgba(255, 42, 133, 0.45);
}

.feed-item.expanded {
  border-color: var(--pink);
  background: rgba(28, 15, 45, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

/* Summary Row (Always Visible — Uncluttered & Easy to Scan) */
.feed-row-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
}
.feed-row-header { flex: 1; }
.feed-row-header[data-toggle-expand] { cursor: pointer; }
.row-actions a.btn-row-expand { text-decoration: none; }
.feed-item { display: flex; flex-direction: column; min-width: 0; }
.feed-item.expanded { align-self: start; }
.vice-feed-list:has(.expanded) { align-items: start; }
.card-heading {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.feed-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.row-cat-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  text-align: center;
  text-transform: uppercase;
}

.tag-glitch { background: rgba(255, 42, 133, 0.2); color: var(--pink); border: 1px solid rgba(255, 42, 133, 0.4); }
.tag-tip { background: rgba(0, 245, 184, 0.16); color: var(--mint); border: 1px solid rgba(0, 245, 184, 0.35); }
.tag-guide { background: rgba(255, 194, 75, 0.18); color: var(--gold); border: 1px solid rgba(255, 194, 75, 0.4); }
.tag-news { background: rgba(76, 215, 255, 0.15); color: var(--cyan); border: 1px solid rgba(76, 215, 255, 0.35); }
.tag-deal { background: var(--gold); color: #0a0512; }

.row-title-block {
  min-width: 0;
}

.row-title {
  margin-top: 0.35rem;
  font-size: 1.18rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
  color: var(--white);
}

.feed-votes {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
}
.feed-votes button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 .8rem var(--font-mono);
  padding: .22rem .48rem;
  border-radius: inherit;
  cursor: pointer;
}
.feed-votes button:hover, .feed-votes button:focus-visible { color: var(--white); }
.feed-votes [data-vote="1"][aria-pressed="true"] { background: var(--mint); color: var(--bg-night); }
.feed-votes [data-vote="-1"][aria-pressed="true"] { background: var(--pink); color: var(--bg-night); }

.row-summary {
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.row-actions .feed-votes { margin-right: auto; }
.row-actions {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: .7rem;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.row-region-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}

.btn-row-expand {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.feed-item.expanded .btn-row-expand {
  background: var(--pink);
  border-color: var(--pink);
}

/* Inline Expanded Details Body */
.feed-expanded-body {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem;
  background: rgba(12, 6, 22, 0.65);
}

.expanded-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-bottom: .9rem;
  color: var(--muted);
  font: .78rem/1.5 var(--font-mono);
}

.expanded-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.inline-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.inline-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sunset-grad);
  color: #0a0512;
  font-family: var(--font-gta);
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.inline-protip {
  background: rgba(255, 194, 75, 0.1);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--white);
  margin-bottom: 0.95rem;
}

.inline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inline-toolbar-left,
.inline-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-inline-tool {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.42rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn-inline-tool:hover {
  border-color: var(--pink);
  background: rgba(255, 42, 133, 0.16);
}

.btn-inline-tool.ok {
  color: var(--mint);
  border-color: rgba(0, 245, 184, 0.35);
}

.btn-strip-save {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn-strip-save.saved {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 194, 75, 0.15);
}

.inline-btn-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: #090410;
  border: 1px solid var(--pink);
  color: var(--gold);
  margin: 0 0.1rem;
}

/* =================================================================== */
/* 2. REFINED LEONIDA MAP (CLEAN CIRCULAR PINS + NUMBERED SELECTOR)    */
/* =================================================================== */
.map-floating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.map-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.map-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.map-pill.active {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.map-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.map-search-input {
  width: 245px;
}

.map-tileset-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.map-tileset-select option {
  background: #0d0718;
  color: var(--white);
}

.gtadb-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.gtadb-credit-link {
  color: var(--gold);
  text-decoration: none;
  pointer-events: auto;
  margin-left: 0.35rem;
}

.gtadb-credit-link:hover {
  text-decoration: underline;
}

.leg-dot.nightlife {
  background: var(--pink);
}

.photo-banner-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.btn-photo-toggle {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 5, 18, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.btn-photo-toggle:hover {
  background: var(--gold);
  color: #0a0512;
}

.map-progress-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 245, 184, 0.1);
  border: 1px solid rgba(0, 245, 184, 0.35);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
}

.btn-reset-mini {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

#view-map.view-canvas {
  max-width: 1520px;
}

.map-stage {
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  gap: 1.35rem;
  align-items: start;
}

.map-board {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 123, 84, 0.38);
  height: 76vh;
  min-height: 660px;
  max-height: 860px;
  background: #1b5299;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.map-telemetry-bar {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mint);
  background: rgba(7, 10, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.36rem 0.75rem;
  border-radius: 8px;
  z-index: 15;
  pointer-events: none;
}

.map-hint {
  color: var(--muted);
}

.map-zoom-controls {
  position: absolute;
  bottom: 0.9rem;
  right: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 15;
}

.zoom-btn {
  background: rgba(14, 10, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 36px;
  height: 32px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.zoom-btn:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.zoom-reset {
  font-size: 0.65rem;
  width: 44px;
}

.map-legend {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  max-width: calc(100% - 75px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: rgba(7, 10, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.36rem 0.7rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  z-index: 15;
  pointer-events: none;
}

.leg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.22rem;
}

.leg-dot.loot { background: var(--pink); }
.leg-dot.vehicle { background: var(--cyan); }
.leg-dot.safehouse { background: var(--gold); }
.leg-dot.secret { background: var(--mint); }

.map-zoom-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: center center;
  transition: transform 0.22s ease-out;
  cursor: grab;
}

.map-zoom-viewport.dragging {
  cursor: grabbing;
  transition: none;
}

.leonida-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.svg-zone-title {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--font-gta);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-anchor: middle;
}

.svg-zone-title.pink { fill: var(--pink); }
.svg-zone-title.gold { fill: var(--gold); }

.svg-sub-label {
  fill: rgba(76, 215, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-anchor: middle;
}

.map-pins-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Crisp 28px Circular Pins (Never Cover Up Map Islands!) */
.map-pin-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.map-pin-btn.type-loot { background: var(--pink); }
.map-pin-btn.type-vehicle { background: #008cc9; }
.map-pin-btn.type-safehouse { background: #d48a00; }
.map-pin-btn.type-secret { background: #009c74; }

.map-pin-btn:hover,
.map-pin-btn.active {
  transform: translate(-50%, -50%) scale(1.32);
  background: var(--gold);
  color: #0a0512;
  z-index: 12;
  box-shadow: 0 0 0 6px rgba(255, 194, 75, 0.35), 0 6px 18px rgba(0, 0, 0, 0.85);
}

.map-pin-btn.found {
  background: var(--mint);
  color: #0a0512;
  opacity: 0.75;
}

.map-focus-card {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.35rem;
}

.focus-visual-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 0.75rem;
  display: block;
  background: #0d0718;
}

.map-focus-card > .btn-vice-action { width: 100%; }

.map-focus-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.55rem;
}

.map-focus-actions .btn-vice-action,
.map-focus-actions .btn-vice-outline {
  width: 100%;
  min-height: 44px;
}

.btn-vice-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-vice-outline:hover {
  border-color: var(--coral);
  background: rgba(255, 123, 84, 0.14);
}

.focus-meta-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.fact-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.fact-chip.highlight {
  color: var(--mint);
  border-color: rgba(0, 245, 184, 0.35);
  background: rgba(0, 245, 184, 0.1);
}

.focus-region {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--coral);
}

.focus-title {
  font-family: var(--font-gta);
  font-size: 1.8rem;
  line-height: 1.04;
  margin: 0.15rem 0 0.5rem;
  text-transform: uppercase;
}

.focus-reward {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0a0512;
  background: var(--gold);
  padding: 0.18rem 0.58rem;
  border-radius: 6px;
}

.focus-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin-bottom: 0.85rem;
}

.focus-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.focus-steps li strong {
  color: var(--pink);
  font-family: var(--font-mono);
}

.focus-protip {
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(255, 194, 75, 0.09);
  border-left: 3px solid var(--gold);
  padding: 0.52rem 0.75rem;
  border-radius: 6px;
  color: var(--white);
  margin-bottom: 0.85rem;
}

/* =================================================================== */
/* 3. CHEATS & 4. PAYOUTS                                              */
/* =================================================================== */
/* Distinct Page Themes & Interactive Widgets */
.feed-hotspot-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding: .65rem .95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 123, 84, 0.35);
  background: linear-gradient(95deg, rgba(44, 18, 42, 0.88), rgba(22, 12, 34, 0.92));
}
.hotspot-kicker, .deck-kicker, .flybar-label {
  font: 700 .72rem/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  flex-shrink: 0;
}
.hotspot-chip {
  font: 600 .8rem/1.3 var(--font-body);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: .3rem .65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.hotspot-chip strong { color: var(--mint); }
.hotspot-chip:hover { border-color: var(--pink); background: rgba(255, 42, 133, 0.16); }

.map-command-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(76, 215, 255, 0.32);
  background: linear-gradient(105deg, rgba(16, 27, 52, 0.9), rgba(24, 15, 40, 0.92) 68%);
}
.map-command-header .neon-script-tag { color: var(--cyan); font-size: 1.3rem; }
.map-command-header .page-big-title { text-shadow: 2px 3px 0 #1b5299; margin: .15rem 0 .35rem; }
.map-region-flybar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.fly-region-btn {
  background: rgba(11, 22, 44, 0.85);
  border: 1px solid rgba(76, 215, 255, 0.35);
  color: #e8f7ff;
  font: 700 .78rem/1.25 var(--font-body);
  padding: .42rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.fly-region-btn:hover, .fly-region-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #08101f;
}
.inspector-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.inspector-step-nav {
  display: flex;
  gap: .35rem;
}
.btn-pin-step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font: 700 .72rem/1 var(--font-mono);
  padding: .34rem .58rem;
  border-radius: 8px;
  cursor: pointer;
}
.btn-pin-step:hover { border-color: var(--cyan); color: var(--cyan); }

/* Distinct Masthead Themes for Cheats (Cyan Arcade), Payouts (Emerald Bankroll) & Achievements (Trophy Gold) */
.vault-masthead {
  border-color: #2f5b7c;
  background: linear-gradient(102deg, #111b2e, #1e2342 64%, #181127);
}
.vault-masthead .neon-script-tag { color: #7ee8ff; }
.vault-masthead .page-big-title { text-shadow: 2px 3px #165e85; }

.payout-masthead {
  --guide-art: url(/images/gtadb/L266.jpg);
  --guide-crop: 52% 55%;
  border-color: #2e6b56;
  background: linear-gradient(102deg, #112421, #1d352e 65%, #191324);
}
.payout-masthead .neon-script-tag { color: #89f2c9; }
.payout-masthead .page-big-title { text-shadow: 2px 3px #17664a; }

.checklist-masthead {
  --guide-art: url(/images/gtadb/L172.jpg);
  --guide-crop: 58% 42%;
  border-color: #7d5b2e;
  background: linear-gradient(102deg, #271b12, #38231c 65%, #1d1226);
}
.checklist-masthead .neon-script-tag { color: #ffd97d; }
.checklist-masthead .page-big-title { text-shadow: 2px 3px #8a4f14; }

/* Interactive Decks (Cheats D-Pad Finder, Payouts Target Calculator, Achievements Progress HUD) */
.interactive-deck {
  margin: .95rem 0;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 12, 32, 0.85);
}
.cheat-trainer-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem;
  border-color: rgba(76, 215, 255, 0.35);
  background: linear-gradient(105deg, rgba(16, 28, 48, 0.92), rgba(25, 16, 38, 0.9));
}
.dpad-trainer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}
.dpad-controls {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.dpad-btn {
  min-width: 38px;
  height: 36px;
  padding: 0 .55rem;
  border-radius: 8px;
  border: 1px solid #4fa3c7;
  border-bottom: 2px solid #2d6f8e;
  background: #182b42;
  color: #e8faff;
  font: 700 1.05rem/1 var(--font-mono);
  cursor: pointer;
}
.dpad-btn:hover { background: var(--cyan); color: #091322; border-color: var(--cyan); }
.dpad-btn.dpad-clear {
  font-size: .75rem;
  border-color: #a95574;
  background: #381c2c;
  color: #ffc8da;
}
.dpad-readout {
  font: 600 .82rem/1.35 var(--font-mono);
  color: #bfe8f7;
}
.combo-match-badge {
  color: #081a14;
  background: var(--mint);
  padding: .18rem .55rem;
  border-radius: 6px;
  font-weight: 700;
}
.deck-search-box {
  flex: 1 1 220px;
  max-width: 320px;
}
.deck-search-box .clean-search { width: 100%; }

.payout-planner-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem;
  border-color: rgba(137, 242, 201, 0.35);
  background: linear-gradient(105deg, rgba(16, 38, 33, 0.92), rgba(24, 17, 36, 0.9));
}
.planner-goal-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}
.goal-preset-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.goal-preset-btn {
  background: #172e29;
  border: 1px solid #3c7a67;
  color: #d8f7ec;
  font: 700 .8rem/1.2 var(--font-mono);
  padding: .42rem .72rem;
  border-radius: 8px;
  cursor: pointer;
}
.goal-preset-btn[aria-pressed="true"], .goal-preset-btn:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: #071914;
}
.planner-summary-pill {
  font-size: .88rem;
  color: #d5efe6;
}
.planner-summary-pill strong { color: var(--gold); font-family: var(--font-mono); }
.method-runs-pill {
  display: inline-block;
  width: fit-content;
  margin-top: .22rem;
  padding: .15rem .5rem;
  border-radius: 6px;
  background: rgba(255, 194, 75, 0.14);
  border: 1px solid rgba(255, 194, 75, 0.42);
  color: #ffe094;
  font: 700 .72rem/1.25 var(--font-mono);
}
.method-footer-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .65rem;
  flex-wrap: wrap;
}

.achievements-hud-deck {
  display: grid;
  gap: .85rem;
  border-color: rgba(255, 194, 75, 0.38);
  background: linear-gradient(105deg, rgba(40, 27, 18, 0.92), rgba(24, 15, 36, 0.92));
}
.ach-meters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .75rem;
}
.ach-meter-card {
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 8, 20, 0.55);
}
.ach-meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .42rem;
}
.ach-meter-top strong {
  font: 700 .86rem/1.2 var(--font-mono);
  color: var(--white);
}
.ach-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.ach-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .25s ease;
}
.trophy-fill { background: linear-gradient(90deg, var(--gold), var(--coral)); }
.task-fill { background: linear-gradient(90deg, var(--mint), var(--cyan)); }
.ach-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}
.ach-controls-row .clean-search {
  flex: 1 1 220px;
}

.cheat-card-actions, .checklist-btn-group {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
}
.card-share-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e4d4e8;
  font: 700 .75rem/1.2 var(--font-mono);
  padding: .42rem .65rem;
  border-radius: 8px;
  cursor: pointer;
}
.card-share-btn:hover {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(76, 215, 255, 0.15);
}

/* Item #4: Mobile LCP & Below-the-Fold Rendering Optimizations */
.feed-item:nth-child(n+6),
.cheat-tile:nth-child(n+7),
.checklist-card:nth-child(n+7),
.money-method:nth-child(n+7) {
  content-visibility: auto;
  contain-intrinsic-size: auto 150px;
}
.landmark-directory {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.simple-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.page-big-title {
  font-family: var(--font-gta);
  font-size: 2.75rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 var(--pink);
}

.guide-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #69344e;
  padding: clamp(1rem, 2.8vw, 2rem);
  background: linear-gradient(100deg, #201024, #34162c 70%, #1b1123);
}
.guide-masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 48%;
  background: linear-gradient(90deg, #2b1328, transparent 45%), var(--guide-art, url(/images/gtadb/L36.jpg)) var(--guide-crop, 65% 32%) / cover;
}
.guide-masthead > div { max-width: 55%; }
.guide-masthead .neon-script-tag { color: #ff91aa; font-size: 1.35rem; text-shadow: none; }
.guide-masthead .page-big-title {
  margin: .22rem 0 .6rem;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 4.5vw, 3.65rem);
  text-shadow: 2px 3px #9b285d;
}
.guide-masthead .guide-note { color: #f0e4f3; }
.guide-publishers { margin-top: .5rem; color: #ddbed4; font-size: .82rem; }
.guide-publishers summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.guide-filter-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.guide-filter-btn, .cheat-copy {
  background: #261a30;
  border: 1px solid #61465f;
  color: var(--white);
  font: 700 .86rem/1.3 var(--font-body);
  padding: .53rem .8rem;
  cursor: pointer;
  border-radius: 8px;
}
.guide-filter-btn span { margin-left: .22rem; font: 600 .75rem var(--font-mono); opacity: .84; }
.guide-filter-btn[aria-pressed="true"] { background: var(--sunset-grad); border-color: transparent; color: var(--bg-night); }
.guide-filter-btn:hover, .cheat-copy:hover { border-color: var(--coral); }
:is(#view-vault, #view-calculator, #view-checklist) :is(button, summary, a):focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.cheat-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(.6rem, 1.3vw, 1rem);
}
.cheat-tile {
  --category-color: #ff9fc2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  container-type: inline-size;
  background: linear-gradient(145deg, #28172d, #191122 80%);
  border: 1px solid #4e354c;
  border-radius: 14px;
}
.cheat-tile[data-cheat-group="Combat"] { --category-color: #ffad88; }
.cheat-tile[data-cheat-group="Spawn Vehicle"] { --category-color: #7eeddc; }
.cheat-tile[data-cheat-group="Environment"] { --category-color: #ffdc86; }
.cheat-tile[data-cheat-group="Screen Filter"] { --category-color: #cbb1ff; }
.cheat-card-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 5.4rem;
  padding: .7rem .9rem;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  background: #2b182b;
  border-bottom: 1px solid #61445a;
}
.cheat-card-heading .feed-thumb {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 76%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.cheat-card-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #211122 4%, #211122ce 42%, transparent 100%),
    linear-gradient(0deg, #140b1ace, #140b1a33 80%);
}
.cheat-category {
  display: block;
  color: var(--category-color);
  font: 700 .7rem/1.3 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cheat-card-heading h2 {
  margin-top: .28rem;
  font: 400 1.55rem/1.1 var(--font-gta);
  color: #fff9f1;
  text-shadow: 0 2px 4px #100912;
  overflow-wrap: anywhere;
}
.cheat-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem .9rem;
}
.combo-keys {
  display: grid;
  grid-template-columns: repeat(5, 1.7rem);
  gap: .25rem;
}
.combo-short { grid-template-columns: repeat(4, 1.7rem); }
.key-cap {
  display: grid;
  place-items: center;
  height: 1.7rem;
  border: 1px solid #936f90;
  border-bottom: 2px solid #805374;
  border-radius: 5px;
  background: #39263d;
  color: #fff9ee;
  font: 700 1.05rem/1 var(--font-mono);
}
@container (min-width: 21rem) {
  .combo-keys { display: flex; flex-wrap: wrap; }
  .key-cap { width: 1.7rem; }
}
.cheat-unlock { font-size: .9rem; line-height: 1.45; color: #e5d6e5; }
.cheat-unlock strong { color: var(--category-color); }
.cheat-copy { margin-top: auto; background: #372039; }
.cheat-card-body .guide-source { margin: 0; font-size: .76rem; }
.cheat-card-body .guide-source a { color: #e4cee1; text-underline-offset: 2px; }
@media (min-width: 22rem) and (max-width: 36rem) {
  .cheat-clean-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .guide-masthead::before { display: none; }
  .guide-masthead > div { max-width: 100%; }
  .guide-masthead .guide-note { text-shadow: 0 1px 3px #100817; }
  .guide-filter-row { flex-wrap: nowrap; overflow-x: auto; padding: .25rem; margin: .55rem -.25rem; }
  .guide-filter-btn { flex: none; }
  .deck-search-box { max-width: none; }
}
@container (max-width: 14rem) {
  .cheat-card-heading { padding: .65rem; min-height: 5rem; }
  .cheat-card-heading h2 { font-size: 1.25rem; }
  .cheat-category { font-size: .66rem; }
  .cheat-card-body { padding: .65rem; gap: .5rem; }
  .combo-keys { grid-template-columns: repeat(5, 1.38rem); gap: .18rem; }
  .combo-short { grid-template-columns: repeat(4, 1.38rem); }
  .key-cap { height: 1.45rem; font-size: 1rem; }
  .cheat-unlock { font-size: .82rem; }
}

/* Payouts */
.payout-masthead {
  --guide-art: url(/images/gtadb/L266.jpg);
  --guide-crop: 52% 55%;
}
.payout-masthead .neon-script-tag { color: #ffbc8f; }
.guide-filter-row:empty { margin-block: .75rem; }
.list-more {
  display: block;
  width: fit-content;
  margin: 1.25rem auto;
  padding: .65rem 1rem;
  border: 1px solid #91627e;
  border-radius: 8px;
  background: #291a30;
  color: var(--white);
  font: 700 .9rem/1.4 var(--font-body);
  text-decoration: none;
}
.list-more:hover, .list-more:focus-visible { border-color: var(--coral); color: #ffc9ae; }
.money-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(.6rem, 1.3vw, 1rem);
}
.money-methods:has(.money-method[open]) { align-items: start; }
.money-method {
  min-width: 0;
  container-type: inline-size;
  border: 1px solid #573a50;
  border-radius: 14px;
  background: linear-gradient(148deg, #38203a, #201426 58%, #17121f);
}
.money-method:hover { border-color: #98667e; }
.money-method[open] { border-color: #e98e9e; }
.money-method summary {
  display: grid;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.money-method summary::-webkit-details-marker { display: none; }
.method-heading, .method-earnings { display: grid; align-content: start; gap: .32rem; }
.method-heading { min-height: 5.6rem; padding: .9rem 1rem .75rem; }
.method-chapter {
  color: #ffbc99;
  font: 700 .7rem/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.method-name { color: var(--white); font: 400 1.4rem/1.18 var(--font-gta); overflow-wrap: anywhere; }
.method-earnings {
  position: relative;
  min-height: 5.2rem;
  margin-inline: 1rem;
  padding: .7rem 1.45rem .85rem 0;
  border-top: 1px solid #54354d;
}
.method-basis, .method-unit { color: #d7c4d8; font-size: .79rem; line-height: 1.35; }
.method-earnings strong {
  color: #89f2c9;
  font: 700 1.35rem/1.2 var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.method-earnings.no-figure strong { color: #cdbdd1; font-size: 1.05rem; }
.method-earnings::after {
  content: "";
  position: absolute;
  right: .15rem;
  top: 1.1rem;
  width: .55rem;
  height: .55rem;
  border: solid #ffb09c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.money-method[open] .method-earnings::after { transform: rotate(225deg); }
.method-body {
  border-top: 1px solid #54354d;
  padding: 1rem;
  color: #f0e2ec;
  font-size: .92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.method-body > * + * { margin-top: .55rem; }
.method-body ol { padding-left: 1.35rem; }
.method-body li + li { margin-top: .35rem; }
.method-body li::marker { color: var(--gold); font-weight: 700; }
.method-body a { text-underline-offset: 3px; }
@media (min-width: 22rem) and (max-width: 39rem) {
  .money-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-method[open] { grid-column: 1 / -1; }
}
@container (max-width: 14rem) {
  .method-heading { min-height: 6rem; padding: .7rem; }
  .method-name { font-size: 1.16rem; }
  .method-earnings { min-height: 5.3rem; margin-inline: .7rem; padding-right: .9rem; }
  .method-earnings strong { font-size: 1.08rem; }
}

/* 5. 100% Completion & Trophy / Achievement Checklist */
.checklist-masthead {
  --guide-art: url(/images/gtadb/L172.jpg);
  --guide-crop: 58% 42%;
}
.checklist-masthead .neon-script-tag { color: #89f2c9; }
.checklist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin: .9rem 0;
}
.checklist-toolbar .guide-filter-row { margin: 0; flex: 1 1 auto; }
.checklist-progress-pill { flex-shrink: 0; }
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(.6rem, 1.3vw, 1rem);
}
.checklist-card {
  --check-accent: #ff9fc2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  container-type: inline-size;
  background: linear-gradient(148deg, #2b1830, #1a1123 78%);
  border: 1px solid #553953;
  border-radius: 14px;
}
.checklist-card[data-checklist-group^="100%"] { --check-accent: #7eeddc; }
.checklist-card[data-checklist-group="Story Trophies"] { --check-accent: #ffdc86; }
.checklist-card.is-missable { border-color: #ff7b54; }
.checklist-card.is-done {
  border-color: #2f7d68;
  background: linear-gradient(148deg, #1b2829, #141720 82%);
}
.checklist-card-header {
  padding: .85rem .95rem .7rem;
  border-bottom: 1px solid #52374f;
  background: rgba(20, 10, 26, 0.42);
  border-radius: 13px 13px 0 0;
}
.checklist-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem;
}
.checklist-category {
  color: var(--check-accent);
  font: 700 .68rem/1.3 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.checklist-grade {
  font: 700 .68rem/1.2 var(--font-mono);
  padding: .16rem .48rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f4e8f6;
}
.checklist-grade.grade-100 { color: #89f2c9; border-color: rgba(137, 242, 201, 0.38); background: rgba(0, 245, 184, 0.1); }
.checklist-grade.grade-platinum { color: #9fe7ff; border-color: rgba(76, 215, 255, 0.45); background: rgba(76, 215, 255, 0.14); }
.checklist-grade.grade-gold { color: #ffd97d; border-color: rgba(255, 194, 75, 0.45); background: rgba(255, 194, 75, 0.14); }
.checklist-grade.grade-silver { color: #e2d9ec; border-color: rgba(226, 217, 236, 0.35); }
.checklist-missable {
  font: 700 .66rem/1.2 var(--font-mono);
  text-transform: uppercase;
  padding: .16rem .48rem;
  border-radius: 6px;
  background: rgba(255, 123, 84, 0.2);
  border: 1px solid var(--coral);
  color: #ffc4ae;
}
.checklist-card-header h2 {
  margin-top: .38rem;
  font: 400 1.4rem/1.14 var(--font-gta);
  color: #fff9f1;
  overflow-wrap: anywhere;
}
.checklist-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .85rem .95rem;
}
.checklist-objective {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.42;
  color: #f3e6f5;
  overflow-wrap: anywhere;
}
.checklist-note {
  font-size: .84rem;
  line-height: 1.48;
  color: #d4bfd6;
  overflow-wrap: anywhere;
}
.checklist-actions {
  margin-top: auto;
  padding-top: .35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.checklist-toggle {
  background: #372039;
  border: 1px solid #6b4c69;
  color: var(--white);
  font: 700 .82rem/1.25 var(--font-body);
  padding: .48rem .78rem;
  border-radius: 8px;
  cursor: pointer;
}
.checklist-toggle:hover { border-color: var(--coral); }
.checklist-toggle.is-done {
  background: rgba(0, 245, 184, 0.16);
  border-color: var(--mint);
  color: var(--mint);
}
.checklist-actions .guide-source { margin: 0; font-size: .76rem; }
@media (min-width: 22rem) and (max-width: 39rem) {
  .checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 14rem) {
  .checklist-card-header { padding: .65rem; }
  .checklist-card-header h2 { font-size: 1.18rem; }
  .checklist-card-body { padding: .65rem; gap: .45rem; }
  .checklist-objective { font-size: .82rem; }
  .checklist-note { font-size: .78rem; }
}
.deploy-box-clean {
  background: #090410;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deploy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.deploy-box-clean pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mint);
}

.clean-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}

/* Modal for Submit Tip */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 12, 0.82);
  backdrop-filter: blur(8px);
  z-index: 200;
}

.guide-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2rem));
  background: #160c26;
  border: 1px solid rgba(255, 42, 133, 0.5);
  border-radius: 24px;
  padding: 2rem;
  z-index: 210;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.btn-sheet-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
}

.sheet-title {
  font-family: var(--font-gta);
  font-size: 2rem;
  line-height: 1.04;
  margin-bottom: 0.85rem;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.clean-form input,
.clean-form select,
.clean-form textarea {
  background: #090410;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.vice-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 1rem;
}

#analytics-choice {
  width: calc(100% - 3rem);
  max-width: calc(1180px - 3rem);
  margin: .5rem auto 1rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #80455e;
  border-radius: 14px;
  background:
    var(--sunset-grad) left / 5px 100% no-repeat,
    linear-gradient(110deg, #32162e, #1c102a 62%);
}
#analytics-title {
  font: 400 1.4rem/1.15 var(--font-gta);
  text-transform: uppercase;
  letter-spacing: .035em;
}
#analytics-choice p {
  margin-top: .3rem;
  color: var(--muted);
  font-size: .9375rem;
}
.analytics-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  flex-shrink: 0;
}
.analytics-actions button {
  min-height: 44px;
  padding: .55rem 1rem;
  font: 700 .9rem/1.25 var(--font-body);
  color: var(--white);
  background: #402034;
  border: 1px solid #e5969b;
  border-radius: 999px;
  cursor: pointer;
}
.analytics-actions button:hover {
  background: #603047;
  border-color: var(--coral);
}
#analytics-settings {
  font: inherit;
  color: var(--mint);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  min-height: 44px;
  cursor: pointer;
}
.analytics-actions button:focus-visible, #analytics-settings:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  #analytics-choice {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: .875rem 1rem;
  }
}
@media (max-width: 540px) {
  #analytics-choice { width: calc(100% - 2rem); }
  .analytics-actions button { padding-inline: .5rem; }
}

.btn-owner-link {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.vice-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #160c26;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  z-index: 300;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .vice-header {
    flex-wrap: wrap;
  }
  .poster-art-layer {
    opacity: 0.22;
    right: -15px;
  }
  .map-stage {
    grid-template-columns: 1fr;
  }
}


.guide-note, .guide-source {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.guide-source { margin-top: 0.4rem; }
.guide-source a, a.guide-source, .vice-footer a { color: var(--mint); }
.feed-source { color: var(--muted); font-size: 0.75rem; }
.guide-note a, .landmark-directory a { color: var(--mint); }
.landmark-directory { margin-top: 2rem; }
.landmark-directory ul { padding-left: 1.25rem; line-height: 1.8; }
.landmark-directory .guide-note { display: block; }
.landmark-directory li { margin-top: .6rem; }
.region-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; margin-top: 1rem; }
.region-directory h3 { font-size: 1rem; }
.hero-intro { margin-top: .8rem; }
.related-guide { margin-top: 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ad-preview-tools {
  max-width: 1180px;
  margin: .5rem auto;
  padding: .5rem clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  color: var(--muted);
  font-size: .85rem;
}
.ad-preview-tools a { color: var(--mint); text-underline-offset: .2em; }
.ad-preview-exit { margin-inline-start: auto; }
.ad-preview-slot {
  grid-column: 1 / -1;
  width: min(100%, 728px);
  min-height: 90px;
  margin: 1.5rem auto;
  scroll-margin-block: 1rem;
  padding: .75rem 1rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .25rem;
  border: 1px dashed #846680;
  border-radius: .5rem;
  background: #201625;
  color: var(--muted);
  text-align: center;
}
.ad-preview-slot span { font: 600 .7rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.ad-preview-slot strong { color: var(--white); font-weight: 500; }
.ad-preview-picker, .ad-preview-rail { display: none; }
@media (min-width: 1280px) {
  .ad-preview-picker { display: inline-flex; align-items: center; gap: .5rem; }
  .ad-preview-picker select {
    font: inherit;
    color: var(--white);
    background: #201625;
    border: 1px solid #846680;
    border-radius: .4rem;
    padding: .3rem .5rem;
  }
  .ad-preview-layout {
    --rail-left: 0px;
    --rail-right: 0px;
    width: calc(100% - 2rem);
    max-width: calc(1180px + var(--rail-left) + var(--rail-right));
    margin-inline: auto;
    display: grid;
    grid-template-columns: var(--rail-left) minmax(0, 1fr) var(--rail-right);
    align-items: start;
  }
  .ad-preview-layout:has(#view-map) { max-width: calc(1520px + var(--rail-left) + var(--rail-right)); }
  .ad-preview-layout > main { grid-area: 1 / 2; width: 100%; min-width: 0; }
  .ad-preview-layout:is([data-rails="left"], [data-rails="both"]) { --rail-left: 160px; }
  .ad-preview-layout:is([data-rails="right"], [data-rails="both"]) { --rail-right: 160px; }
  .ad-preview-layout:is([data-rails="left"], [data-rails="both"]) > #rail-left,
  .ad-preview-layout:is([data-rails="right"], [data-rails="both"]) > #rail-right { display: grid; }
  .ad-preview-rail { height: 600px; margin: .75rem 0 0; }
  #rail-left { grid-area: 1 / 1; }
  #rail-right { grid-area: 1 / 3; }
}
@media (max-width: 540px) {
  .ad-preview-slot { max-width: 320px; min-height: 100px; }
}

@media (max-width: 540px) {
  .guide-sheet { max-height: calc(100dvh - 2rem); overflow-y: auto; }
  .form-split { grid-template-columns: minmax(0, 1fr); }
  .clean-form :is(input, textarea, select) { min-width: 0; }
  .view-canvas, .vice-header { padding-inline: 1rem; }
  .stream-actions { flex-wrap: wrap; max-width: 100%; }
  .stream-actions { width: 100%; }
  .stream-actions .clean-search { min-width: 0; width: auto; flex: 1; }
  .card-heading { grid-template-columns: 68px minmax(0, 1fr); gap: .7rem; }
  .feed-thumb { width: 68px; height: 54px; }
}
