/* Shared OddPawn screens for ?v=3. Same dark HUD as the level screen.
   The level page keeps css/level-v3.css and does not load this file. */

html { background: #121212; color-scheme: dark; touch-action: manipulation; }

body.v3 {
  --bg: #121212;
  --card: #1c1c1c;
  --nav: #3a3a3a;
  --line: #2c2c2c;
  --text: #f3f3f3;
  --muted: #b5b5b5;
  --red: #cf404d;
  --green: #30ad64;
  --green-ink: #04140c;
  --gold: #e0b15a;
  --hint: #e84a8a;
  --hint-ink: #1a0610;
  --hint-bright: #f9a8d4;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  touch-action: manipulation;
}

body.v3 * { box-sizing: border-box; touch-action: manipulation; }
body.v3 [hidden] { display: none !important; }
body.v3 img { max-width: 100%; display: block; }
body.v3 button, body.v3 input, body.v3 select, body.v3 textarea { font: inherit; color: inherit; }
body.v3 a { color: inherit; }
body.v3 ::selection { background: var(--red); color: #fff; }

.v3-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 40;
}
.v3-skip:focus { top: 12px; }

.v3-top {
  background: var(--nav);
  position: sticky;
  top: 0;
  z-index: 30;
}

.v3-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 16px;
  position: relative;
  background: transparent;
  border: 0;
}

.v3-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
  text-decoration: none;
}
.v3-brand .oddlogo {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.v3-nav-toggle {
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.v3-nav {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: 64px;
  padding: 8px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}
.v3-nav.is-open { display: grid; z-index: 9; }
.v3-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.v3-nav a:hover,
.v3-nav a:focus-visible,
.v3-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.v3-nav .v3-login { border: 0; border-radius: 10px; padding: 0 12px; }
.v3-nav-credits-link {
  display: inline-flex !important;
  align-items: center;
  margin-left: auto;
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none !important;
}
.v3-nav-credits-link:hover {
  border-color: color-mix(in srgb, var(--hint) 55%, transparent);
  background: color-mix(in srgb, var(--hint) 14%, transparent);
}
.v3-nav-credits-link.is-empty {
  border-color: color-mix(in srgb, var(--hint) 60%, transparent);
  background: color-mix(in srgb, var(--hint) 18%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--hint) 22%, transparent);
}
.v3-nav-account {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-right: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.v3-nav .v3-nav-credits-link + .v3-nav-account {
  margin-left: 4px;
}
.v3-nav-credits {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #ddd;
  white-space: nowrap;
}
.v3-nav-credits strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.v3-nav-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3a3a3a;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  line-height: 1;
}
.v3-nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v3-nav-account-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v3-preview {
  margin: 0;
  padding: 8px 16px 10px;
  background: #2a2a2a;
  color: #ddd;
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0;
  display: block;
}
.v3-preview a { color: #fff; }

.v3-wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.v3-page { padding: 22px 0 72px; }
.v3-main a:not(.v3-btn) { color: #ffb3b8; }
.v3-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.v3 h1, .v3 h2, .v3 h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.v3 h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 12px; }
.v3 h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.v3 h3 { font-size: 22px; margin: 0; }
.v3-lede, .v3-hello { margin: 0 0 14px; color: var(--muted); }
.v3-hello { font-size: 16px; }
.v3-page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.v3-page-head h1 { margin: 0; }
.v3-page-head .v3-lede { margin: 0; max-width: 36rem; }

.v3-btn, button.v3-btn, input.v3-btn, a.v3-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.v3-btn.buy, button.v3-btn.buy { background: var(--green); color: var(--green-ink); border: 0; font-weight: 600; }
.v3-btn.ghost, a.v3-btn.ghost, button.v3-btn.ghost { background: #2a2a2a; color: var(--text); }
.v3-btn:hover { filter: brightness(1.06); }
.v3-btn:disabled { opacity: 0.6; cursor: progress; filter: none; }
.v3-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.v3-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.v3-card .v3-btn, .v3-panel .v3-btn, .v3-feature form .v3-btn { width: 100%; }

.v3-hero { padding: 28px 0 8px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: center; }
.v3-hero-art {
  justify-self: end;
  width: min(280px, 100%);
  aspect-ratio: 1;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.v3-hero-art img { width: 100%; height: 100%; object-fit: cover; }

.v3-stats, .v3-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0 36px;
}
.v3-stats { grid-template-columns: repeat(5, 1fr); }
.v3-stats div, .v3-metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px 16px;
}
.v3-stats strong, .v3-metric strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.v3-stats span, .v3-metric span { color: var(--muted); font-size: 14px; }

.v3-section { padding: 8px 0 36px; }
.v3-steps, .v3-quotes, .v3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.v3-step, .v3-quote, .v3-card, .v3-feature, .v3-panel, .v3-product, .v3-upsell, .v3-guide article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.v3-step, .v3-quote { padding: 18px; min-height: 180px; }
.v3-step b {
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
}
.v3-step h3 { margin: 14px 0 8px; }
.v3-step p, .v3-quote p { margin: 0; }
.v3-quote p { font-size: 22px; line-height: 1.25; }
.v3-quote footer { margin-top: 16px; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }

.v3-shelf { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: center; }
.v3-shelf-art { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.v3-shelf-art img { width: 100%; height: 160px; object-fit: cover; background: #0c0c0c; border-radius: 14px; }
.v3-shelf-art img:first-child { height: 332px; grid-row: span 2; }
.v3-note { color: var(--muted); font-size: 14px; }

.v3-foot {
  border-top: 1px solid var(--line);
  padding: 22px 16px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.v3-foot a { color: #fff; }

.v3-feature, .v3-product { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 18px; padding: 12px; align-items: center; }
.v3-feature img, .v3-product img, .v3-upsell img, .v3-guide img,
.v3-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0c0c0c;
  border-radius: 12px;
  border: 0;
}
.v3-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #0c0c0c;
}
.v3-thumb img { border-radius: 0; display: block; }
.v3-thumb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  margin: 0;
  background: rgba(18, 18, 18, 0.72);
  overflow: hidden;
}
.v3-thumb-bar > i {
  display: block;
  height: 100%;
  width: 0;
  max-width: 100%;
  background: linear-gradient(90deg, #28a85c, #4bc87a);
  box-shadow: 0 0 10px rgba(48, 173, 100, 0.45);
}
.v3-card .v3-thumb {
  border-radius: 0;
}
.v3-card .v3-thumb img { aspect-ratio: 1; border-radius: 0; }
.v3-feature h2, .v3-product h1 { margin-top: 8px; }
.v3-chip {
  display: inline-block;
  background: rgba(48, 173, 100, 0.16);
  color: #b6f3cf;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 8px;
}
.v3-chip--cleared {
  background: rgba(48, 173, 100, 0.22);
  color: #d4ffe6;
}
.v3-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.v3-card-title-row h3 { margin: 0; }
.v3-chapter-progress {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v3-chapter-progress.is-cleared { color: #b6f3cf; }
.v3-feature .v3-chapter-progress { margin: 4px 0 10px; }
.v3-card .v3-chapter-progress { margin-top: -2px; }

.v3-chapter-intro .v3-intro-stage {
  min-height: min(52vh, 420px);
  display: grid;
  align-content: center;
}
.v3-intro-copy {
  max-width: 36rem;
}
.v3-intro-copy h1 { margin-top: 6px; }
.v3-intro-next {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}

.v3-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 16px; }
.v3-tools input[type="search"] {
  flex: 1 1 220px;
  min-height: 48px;
  border: 1px solid #3a3a3a;
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 0 14px;
}
.v3-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.v3-chips button {
  min-height: 44px;
  border: 0;
  background: #2a2a2a;
  color: var(--text);
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
}
.v3-chips button[aria-pressed="true"] { background: var(--red); color: #fff; }
.v3-count { margin-left: auto; color: var(--muted); font-size: 14px; }

.v3-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; padding: 0; }
.v3-card > img,
.v3-card .v3-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #0c0c0c; border-radius: 0; }
.v3-card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; flex: 1; }
.v3-card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v3-card form, .v3-card .v3-buy { margin-top: auto; }
.v3-empty { display: none; padding: 18px; border: 1px dashed #3a3a3a; border-radius: 14px; color: var(--muted); }
.v3-empty.show { display: block; }

.v3-price {
  font-family: var(--display);
  font-size: 56px;
  letter-spacing: 0.02em;
  margin: 8px 0 4px;
  line-height: 1;
}
.v3-price span { font-family: var(--body); font-size: 16px; letter-spacing: 0; color: var(--muted); }
.v3-list { margin: 14px 0 18px; padding: 0; list-style: none; }
.v3-list li { padding: 10px 0 10px 18px; position: relative; border-top: 1px solid var(--line); }
.v3-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: skewX(-16deg);
}
.v3-error, .v3-ok {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
}
.v3-error { background: rgba(207, 64, 77, 0.14); color: #ffb3b8; border: 1px solid rgba(207, 64, 77, 0.45); }
.v3-ok { background: rgba(48, 173, 100, 0.14); color: #b6f3cf; border: 1px solid rgba(48, 173, 100, 0.45); }
.v3-test-mode {
  display: block;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: rgba(212, 168, 67, 0.22);
  color: #ffe6a8;
  border: 2px solid rgba(224, 177, 90, 0.85);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}
.v3-test-mode strong {
  display: inline-block;
  margin-right: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff3c4;
}
.v3-test-mode code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  font-weight: 500;
  color: #fff3c4;
}
.v3-back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; }
.v3-back:hover { color: #fff; }

.v3-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.v3-panel { padding: 18px; }
.v3-form { display: grid; gap: 8px; }
.v3-form label, .v3-label {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.v3-form input, .v3-form select, .v3-form textarea, .v3-form .v2-field {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.v3-form textarea { min-height: 140px; resize: vertical; }
.v3-form .v3-btn { margin-top: 12px; }
.v3-or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.v3-or:before, .v3-or:after { content: ""; height: 1px; background: var(--line); flex: 1; }
.v3-fine { color: var(--muted); font-size: 15px; }
.v3-fine a { color: #ffb3b8; }

.v3-guide { display: grid; gap: 14px; margin-top: 22px; }
.v3-guide article { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 12px; }
.v3-guide h2 { margin: 4px 0 8px; }
.v3-upsell { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; padding: 12px; margin-top: 18px; }
.v3-upsell img { width: 140px; aspect-ratio: 1; }
.v3-upsell p { margin: 0; color: var(--muted); }
.v3-upsell--hints {
  grid-template-columns: 1fr auto;
  border: 1px solid color-mix(in srgb, var(--hint) 40%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hint) 14%, transparent), transparent 70%),
    var(--card);
}
.v3-upsell--hints h2 { margin: 4px 0 6px; }

/* End of chapter: HOF primary, next/hints secondary */
.v3-eoc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.72fr);
  gap: 22px;
  align-items: start;
  margin-top: 4px;
}
.v3-eoc-hof {
  padding: 0;
  margin: 0;
}
.v3-eoc-hof > h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-size: clamp(22px, 2.4vw, 28px);
}
.v3-eoc-hof .v3-fine { margin-top: 18px; }
.v3-eoc-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}
.v3-eoc-aside .v3-upsell,
.v3-eoc-upsell {
  margin-top: 0;
  grid-template-columns: 88px 1fr;
  align-items: start;
}
.v3-eoc-aside .v3-upsell img,
.v3-eoc-upsell img {
  width: 88px;
  aspect-ratio: 1;
}
.v3-eoc-aside .v3-upsell > form,
.v3-eoc-aside .v3-upsell > .v3-btn,
.v3-eoc-upsell > form,
.v3-eoc-upsell > .v3-btn {
  grid-column: 1 / -1;
}
.v3-eoc-aside .v3-upsell h2,
.v3-eoc-upsell h2 {
  margin: 4px 0 6px;
  font-size: 18px;
}
.v3-eoc-aside .v3-upsell--hints,
.v3-eoc-upsell.v3-upsell--hints {
  grid-template-columns: 1fr;
}
.v3-eoc-aside .v3-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.v3-sheet-note {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.v3-hof { display: grid; gap: 12px; }
.v3-hof article {
  display: grid;
  grid-template-columns: 48px 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.v3-rank {
  font-family: var(--display);
  font-size: 28px;
  line-height: 48px;
  color: var(--red);
  text-align: center;
}
.v3-hof-avatar {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3a3a3a;
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
  line-height: 1;
}
.v3-hof-avatar img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
}
.v3-hof-body { min-width: 0; }
.v3-hof-body h2 { margin: 0; }
.v3-hof-body .v3-fine { margin-top: 4px; }
.v3-hof-body p { margin: 8px 0 0; }
.v3-hof-summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}
.v3-hof-summary strong { color: #fff; }
.v3-rating {
  border: 0;
  margin: 0;
  padding: 0;
}
.v3-rating legend {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.v3-rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.v3-rating-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
}
.v3-rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.v3-rating-option:has(input:checked),
.v3-rating-option:has(input:focus-visible) {
  border-color: var(--red);
  background: rgba(207, 64, 77, 0.16);
  color: #fff;
}
.v3-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.v3-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.v3-table { width: 100%; border-collapse: collapse; }
.v3-table th, .v3-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.v3-table th {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.v3-table tr:last-child td { border-bottom: 0; }

.v3-account { width: min(760px, calc(100% - 32px)); }
.v3-profile { display: grid; gap: 14px; }
.v3-page > .v3-sheet { margin-top: 14px; }
.v3-page > h2 { margin: 28px 0 10px; font-family: var(--display); letter-spacing: 0.06em; font-size: 22px; }
/* Buy credits — sales composition */
.v3-credits-hero {
  position: relative;
  margin: 0 0 18px;
  padding: 4px 0 6px;
}
.v3-credits-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: min(520px, 78vw);
  height: min(340px, 52vw);
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 72% 22%, color-mix(in srgb, var(--hint) 26%, transparent), transparent 72%),
    radial-gradient(ellipse 60% 55% at 32% 78%, color-mix(in srgb, var(--green) 18%, transparent), transparent 74%);
  /* Fade the pseudo-element’s own rect so green/pink never hard-cut against --bg */
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 62% 42%, #000 0%, #000 42%, transparent 78%);
  mask-image: radial-gradient(ellipse 68% 62% at 62% 42%, #000 0%, #000 42%, transparent 78%);
  opacity: 0.95;
  z-index: 0;
}
.v3-credits-hero > * { position: relative; z-index: 1; }
.v3-credits-kicker { color: var(--hint-bright); }
.v3-credits-pitch {
  margin: 0 0 16px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}
.v3-credits-balance {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 4px 0 0;
  padding: 16px 22px 18px;
  border: 1px solid color-mix(in srgb, var(--hint) 58%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--hint) 26%, transparent), transparent 68%),
    linear-gradient(180deg, #22151c 0%, #151015 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--hint) 18%, transparent),
    0 0 36px color-mix(in srgb, var(--hint) 28%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.35);
}
.v3-credits-balance-label {
  flex: 0 0 100%;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hint-bright);
  margin-bottom: 2px;
}
.v3-credits-balance-num {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px color-mix(in srgb, var(--hint) 35%, transparent);
}
.v3-credits-balance-unit {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3d5e4;
}

.v3-packs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 16px;
  margin: 28px 0 22px;
  padding: 20px 2px 10px;
  align-items: stretch;
}
.v3-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, #222 0%, #191919 100%);
  border: 1px solid #333;
  border-radius: 20px;
  padding: 22px 18px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.v3-pack:hover {
  border-color: #4a4a4a;
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}
.v3-pack-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
}
.v3-pack-footer {
  margin-top: auto;
  padding-top: 18px;
}
.v3-pack-hook {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.v3-pack-credits {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  color: #fff;
}
.v3-pack-credits span {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8f8f;
  vertical-align: 0.32em;
}
.v3-pack-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
}
.v3-pack-price {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  color: #ddd;
  line-height: 1.2;
}
.v3-pack-amount {
  font-family: var(--display);
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.v3-pack-currency {
  font-size: 0.78em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.v3-pack-save {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(48, 173, 100, 0.5);
  border-radius: 8px;
  background: rgba(48, 173, 100, 0.14);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ddea3;
  line-height: 1;
}
.v3-pack-rate {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.v3-pack-blurb {
  margin: 14px 0 0;
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.4;
}
.v3-pack-proof {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hint-bright);
}
.v3-pack .v3-btn {
  width: 100%;
  margin: 0;
  min-height: 54px;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.v3-pack .v3-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(0, 0, 0, 0.34);
}

.v3-pack--focus:not(.v3-pack--featured) {
  border-color: color-mix(in srgb, var(--hint) 55%, #333);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hint) 35%, transparent), 0 14px 32px rgba(0, 0, 0, 0.34);
}
.v3-pack--featured {
  z-index: 2;
  border: 2px solid #3fcf78;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(48, 173, 100, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(224, 177, 90, 0.14) 0%, transparent 42%),
    linear-gradient(180deg, #1b221c 0%, #141814 100%);
  box-shadow:
    0 0 0 1px rgba(48, 173, 100, 0.35),
    0 22px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(48, 173, 100, 0.22);
  /* No scale(): Safari/mobile can loop layout growth with scale + min-height % */
  transform: translateY(-10px);
  padding: 30px 20px 18px;
  animation: v3-pack-glow 2.8s ease-in-out infinite;
}
.v3-pack--featured:hover {
  border-color: #58e090;
  transform: translateY(-12px);
  box-shadow:
    0 0 0 1px rgba(48, 173, 100, 0.5),
    0 26px 54px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(48, 173, 100, 0.3);
}
.v3-pack-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #28a85c, #4bc87a);
  color: var(--green-ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 10px 22px rgba(48, 173, 100, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.v3-pack--featured .v3-pack-hook { color: var(--gold); }
.v3-pack--featured .v3-pack-credits {
  font-size: clamp(52px, 6.2vw, 68px);
}
.v3-pack--featured .v3-pack-credits span { color: #9fd9b5; }
.v3-pack--featured .v3-pack-save {
  border-color: rgba(224, 177, 90, 0.6);
  background: rgba(224, 177, 90, 0.18);
  color: var(--gold);
}
.v3-pack--featured .v3-pack-rate { color: #9fe0bb; }
.v3-pack--featured .v3-pack-blurb { color: #c5cfc8; }
.v3-pack--featured .v3-pack-cta {
  min-height: 58px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 24px rgba(48, 173, 100, 0.45),
    0 10px 22px rgba(0, 0, 0, 0.3);
  animation: v3-cta-pulse 2.4s ease-in-out infinite;
}
@keyframes v3-pack-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(48, 173, 100, 0.32),
      0 22px 48px rgba(0, 0, 0, 0.45),
      0 0 32px rgba(48, 173, 100, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(48, 173, 100, 0.5),
      0 24px 52px rgba(0, 0, 0, 0.48),
      0 0 48px rgba(48, 173, 100, 0.3);
  }
}
@keyframes v3-cta-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 0 18px rgba(48, 173, 100, 0.35),
      0 10px 22px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      0 0 30px rgba(48, 173, 100, 0.55),
      0 12px 26px rgba(0, 0, 0, 0.34);
  }
}

.v3-credits-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.v3-credits-trust li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #161616;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.v3-credits-trust li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}

.v3-receipt {
  color: #ffb3b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.v3-receipt:hover { color: #fff; }
.v3-receipt-pending {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 800px) {
  .v3-packs {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px 0 4px;
    align-items: start;
  }
  .v3-pack {
    min-height: 0;
    height: auto;
    max-height: none;
    transform: none;
    animation: none;
  }
  .v3-pack--featured {
    order: -1;
    transform: none !important;
    animation: none !important;
    margin: 6px 0 2px;
    padding-top: 28px;
  }
  .v3-pack--featured .v3-pack-cta {
    animation: none !important;
  }
  .v3-pack--featured:hover,
  .v3-pack:hover { transform: none !important; }
  .v3-pack .v3-btn:hover { transform: none; }
  .v3-credits-trust { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-pack,
  .v3-pack--featured,
  .v3-pack--featured .v3-pack-cta {
    animation: none;
    transition: none;
  }
  .v3-pack:hover,
  .v3-pack--featured:hover,
  .v3-pack .v3-btn:hover { transform: none; }
}
.v3-profile-panel label {
  display: block;
  margin: 8px 0 6px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.v3-profile-panel input[type="text"],
.v3-profile-panel select,
.v3-profile-panel .v2-field {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.v3-profile-hero { display: flex; align-items: center; gap: 14px; }
.v3-profile-mark, .v3-profile-mini {
  display: grid;
  place-items: center;
  background: #2a2a2a;
  color: #fff;
  font-family: var(--display);
  overflow: hidden;
}
.v3-profile-mark { width: 72px; height: 72px; border-radius: 18px; font-size: 32px; flex: none; }
.v3-profile-mini { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.v3-profile-mark img, .v3-profile-mini img { width: 100%; height: 100%; object-fit: cover; }
.v3-profile-hero h1 { margin: 0; }
.v3-profile-hero p { margin: 2px 0 0; color: var(--muted); }
.v3-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 2px;
}
.v3-profile-stats > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px 12px;
}
.v3-profile-stats strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.v3-profile-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.v3-sheet { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 16px 12px; }
.v3-sheet h2 { margin: 14px 0 6px; font-size: 18px; letter-spacing: 0.12em; }
.v3-sheet-row, .v3-sheet-link, .v3-level-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.v3-sheet-link:hover, .v3-level-row:hover { color: #fff; }
.v3-profile-row-end { display: flex; align-items: center; gap: 8px; }
.v3-edit-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #2a2a2a;
  color: #fff;
  cursor: pointer;
}
.v3-edit-btn svg { width: 18px; height: 18px; fill: currentColor; }
.v3-edit-btn[aria-pressed="true"] { background: var(--red); }
.v3-profile-panel { padding: 4px 0 12px; }
.v3-profile-photo-pick, .v3-profile-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: 12px;
}
.v3-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.v3-level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.v3-level-pick {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.v3-level-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #0c0c0c; }
.v3-level-pick h3 { margin: 0; padding: 12px 14px 14px; }
.v3-level-list { display: grid; gap: 0; margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; }
.v3-level-row b { font-family: var(--display); letter-spacing: 0.04em; }
.v3-level-row span { color: var(--muted); font-size: 14px; }

@media (min-width: 800px) {
  .v3-nav-toggle { display: none; }
  .v3-nav {
    display: flex;
    position: static;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    gap: 4px;
  }
  .v3-bar { padding-inline: 22px; }
  .v3-preview { padding-inline: 22px; }
}

@media (max-width: 980px) {
  .v3-hero, .v3-shelf, .v3-feature, .v3-product, .v3-split, .v3-guide article, .v3-upsell { grid-template-columns: 1fr; }
  .v3-upsell--hints { grid-template-columns: 1fr; }
  .v3-eoc-layout { grid-template-columns: 1fr; gap: 28px; }
  .v3-eoc-aside .v3-upsell,
  .v3-eoc-upsell {
    grid-template-columns: 100px 1fr;
  }
  .v3-eoc-aside .v3-upsell--hints,
  .v3-eoc-upsell.v3-upsell--hints {
    grid-template-columns: 1fr;
  }
  .v3-stats, .v3-steps, .v3-quotes, .v3-grid, .v3-metrics, .v3-level-grid, .v3-profile-stats { grid-template-columns: 1fr 1fr; }
  .v3-shelf-art img:first-child { height: 220px; grid-row: auto; }
  .v3-upsell img { width: 100%; }
  .v3-eoc-aside .v3-upsell img,
  .v3-eoc-upsell img { width: 100px; }
  .v3-page-head { align-items: start; }
  .v3-feature img, .v3-feature .v3-thumb img, .v3-product img, .v3-guide img { aspect-ratio: 16 / 10; }
}

@media (max-width: 799px) {
  .v3-bar { z-index: 41; background: var(--nav); }
  .v3-nav.is-open {
    position: fixed;
    inset: 72px 0 0 0;
    z-index: 40;
    align-content: start;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: #161616;
    padding: 8px 12px calc(20px + env(safe-area-inset-bottom));
    overflow: auto;
  }
  .v3-nav a { min-height: 52px; font-size: 20px; }
  .v3-nav-credits-link,
  .v3-nav-account { margin-left: 0; }
  .v3-nav-account-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    font-size: 20px;
  }
  .v3-nav-account { gap: 10px; }
  .v3-preview { font-size: 13px; line-height: 1.35; padding: 6px 16px 8px; }
  .v3-wrap { width: min(1080px, calc(100% - 24px)); }
  .g_id_signin, .g_id_signin iframe { max-width: 100% !important; }
}

@media (max-width: 720px) {
  .v3-steps, .v3-quotes, .v3-grid { grid-template-columns: 1fr; }
  .v3-stats, .v3-metrics, .v3-level-grid, .v3-profile-stats { grid-template-columns: 1fr 1fr; }
  .v3-stats { margin: 14px 0 22px; }
  .v3-stats div, .v3-metric, .v3-profile-stats > div { padding: 10px 12px 12px; border-radius: 14px; }
  .v3-stats strong, .v3-metric strong, .v3-profile-stats strong { font-size: 26px; }
  .v3-page-head, .v3-foot { flex-direction: column; align-items: flex-start; }
  .v3-count { margin-left: 0; }
  .v3-upsell { grid-template-columns: 1fr; }
  .v3-step, .v3-quote { min-height: 0; }
  .v3-card img { aspect-ratio: 16 / 10; }
  .v3-hero {
    grid-template-columns: 1fr 84px;
    align-items: start;
    gap: 8px 12px;
    padding-top: 16px;
  }
  .v3-hero > div { display: contents; }
  .v3-hero .v3-kicker,
  .v3-hero h1 { grid-column: 1; }
  .v3-hero .v3-lede,
  .v3-hero .v3-actions { grid-column: 1 / -1; }
  .v3-hero .v3-actions .v3-btn { flex: 1 1 100%; }
  .v3-hero-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 84px;
    justify-self: end;
    align-self: start;
  }
  .v3 h1 { font-size: 32px; }
  .v3-page { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-btn:hover { filter: none; }
}
