/* TITPAD skin (CURVE_PRODUCT=titpad). The pages are Curve's templates; this file gives them TITPAD's tokens, type and
   shapes. Every rule is scoped to <body data-product="titpad">, so a Curve host never sees it. The server serves Curve's
   stylesheets with the ultraviolet ramp mapped onto the orange ramp and the grey ramp mapped onto the --tp-n* tokens
   (src/titpad/skin.mjs), and appends those tokens for both themes to this file. Dark is the default;
   <html data-theme="light"> flips every token (public/titpad-shell.mjs remembers the choice on the device).
   Fredoka (UI, OFL) and Lilita One (display, OFL) are served from /fonts/. */
@font-face { font-family: 'TITPAD Fredoka'; src: url('/fonts/Fredoka.woff2?v=99d6c78e043710d4') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'TITPAD Lilita'; src: url('/fonts/LilitaOne.woff2?v=d2575d4fa3632580') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* ---- Tokens ---- */
body[data-product="titpad"] {
  --sans: 'TITPAD Fredoka', Fredoka, 'Trebuchet MS', ui-rounded, ui-sans-serif, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'TITPAD Lilita', 'Lilita One', 'TITPAD Fredoka', Fredoka, 'Arial Black', ui-rounded, sans-serif;
  --bg: #0E0B08;
  --s1: #15110C; --s2: #1E1710; --s3: #271E14; --s4: #30251A;
  --panel: var(--s1); --panel2: var(--s2); --inset: #0B0908; --hover: var(--s3); --surface-elevated: var(--s2);
  --line: #3A2D1E; --line-strong: #4A3A28; --line-hi: #5C4830; --border: var(--line);
  --line-card: #3A2D1E; --line-card-hover: #FC6602;
  --text: #FFF7EE; --text-2: #E6D8C8; --muted: #B39A80; --dim: #7A6650;
  --acc: #FC6602; --acc-strong: #E05600; --acc-soft: #FF8E4A; --acc-ink: #1B1109; --acc-glow: #FC660259; --acc-dim: #FC66021f; --accent: var(--acc);
  --up: #2FE0A5; --down: #FF5A5A; --warn: #FFB020; --info: #5AA9FF; --red: var(--down);
  --sunrise-cream: #FFE2CC; --sunrise-gold: #FF8E4A; --sunrise-peach: #FC6602; --sunrise-coral: #E05600; --sunrise-mauve: #C94C00; --sunrise-purple: #7A3300;
  --sel-bg: #2A1A0A; --sel-line: #FC6602; --sel-text: #FFB27A;
  --grad-sunrise: linear-gradient(120deg, #C94C00, #FF8E4A); --grad-accent: linear-gradient(120deg, #FC6602, #FF8E4A);
  --shadow-card: none; --shadow-card-hover: 0 0 0 1px #FC660266, 0 14px 40px -18px #FC660280;
  --shadow-elevated: 0 24px 60px -16px #000000, 0 0 0 1px #4A3A28; --glow-acc: 0 0 0 1px #FC660266, 0 0 28px -8px #FC660299;
  --glass-bg: #15110C;
  --radius-card: 18px; --radius-control: 999px; --radius-inset: 12px; --radius-pill: 999px; --radius-tile: 14px;
  --control-h: 38px; --control-h-sm: 32px; --control-h-lg: 46px; --input-h: 46px;
  --tp-gold: #FFD23F;
  background: var(--bg); color: var(--text); font-family: var(--sans);
}
html[data-theme="light"] body[data-product="titpad"] {
  --bg: #FFFFFF; --s1: #FFFFFF; --s2: #FFF3EB; --s3: #FFE9DC; --s4: #FFDCC6;
  --panel: #FFFFFF; --panel2: #FFF3EB; --inset: #FFF8F3; --hover: #FFF3EB; --surface-elevated: #FFFFFF;
  --line: #F3D6C4; --line-strong: #EBC3A8; --line-hi: #E0AA87; --line-card: #F3D6C4;
  --text: #1B1109; --text-2: #3D2A1A; --muted: #8A6B48; --dim: #B49A84;
  --up: #13A86F; --down: #E03E3E; --sel-bg: #FFE9DC; --sel-text: #C94C00; --acc-ink: #1B1109;
  --shadow-card-hover: 0 0 0 1px #FC660266, 0 14px 40px -18px #FC660266;
  --shadow-elevated: 0 24px 60px -16px #1B110933, 0 0 0 1px #F3D6C4; --glass-bg: #FFFFFF;
  color-scheme: light;
}
html[data-theme="light"] body[data-product="titpad"].relay-terminal { color-scheme: light; }
/* Gradient-filled headings (cream to orange) read as nothing on white: solid ink in light mode. */
html[data-theme="light"] body[data-product="titpad"].relay-terminal :is(h1, .terminal-heading h1, .tokens-intro h1, .account-intro h1, .explore-feature-value strong) { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; -webkit-text-fill-color: currentColor !important; color: var(--text); }

/* ---- Type: Fredoka everywhere, Lilita One for the big titles, Fredoka numbers ---- */
body[data-product="titpad"] * { font-family: inherit; }
body[data-product="titpad"].relay-terminal :is(h1, h2, h3), body[data-product="titpad"].explore-page :is(h1, h2, h3) { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
body[data-product="titpad"].relay-terminal h1, body[data-product="titpad"].relay-terminal .explore-leaders > h2, body[data-product="titpad"].relay-terminal .explore-dashboard-heading h2, body[data-product="titpad"].relay-terminal .explore-feature-heading h2, body[data-product="titpad"].relay-terminal .launch-heading h1, body[data-product="titpad"].relay-terminal .tp-rack-head h1, body[data-product="titpad"].relay-terminal .launch-welcome-card h1 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
body[data-product="titpad"].relay-terminal .explore-leaders > h2, body[data-product="titpad"].relay-terminal .explore-dashboard-heading h2 { font-size: 24px; }
body[data-product="titpad"].relay-terminal .explore-dashboard-heading h2::before { border-radius: 50%; background: var(--acc); color: var(--acc-ink); box-shadow: none; }
body[data-product="titpad"].relay-terminal :is(.eyebrow, .tag, .explore-section-tag, .explore-count, .coin-stage, .mainnet-badge, kbd, .step, .admin-eyebrow) { font-family: var(--sans); font-weight: 700; letter-spacing: .1em; }
body[data-product="titpad"].relay-terminal :is(.explore-feature-value strong, .explore-feature-price, .explore-feature-stats strong, .explore-coin-value > span, .explore-coin-cap, .explore-coin-mcap, .explore-mini-value strong, .explore-leader-value, .explore-progress-row > span, .explore-coin-footer > span, .coin-price, .coin-fdv, .coin-stats strong, .coin-stat-value, .coin-market-value, .market-value, .analytics-metric-value, .analytics-metric strong, .curve-price-value, .admin-stat strong, .admin-overview strong, .admin-metric-value, .token-card-value, .token-stat strong, .token-stat-value, .personal-earnings-value, [data-motion-number], .coin-rewards-metric strong, .coin-rewards-cell strong, .launch-preview-facts dd, .launch-cost-line strong, .fee-total strong, .position-summary strong, .coin-trade-quote strong, .explore-coin-symbol, .explore-mini-identity small, .explore-feature-heading small, .coin-symbol, .token-symbol, .creator-coin small, .explore-coin-age, .explore-chart-note, .explore-chart-extreme, .explore-chart-latest) { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
body[data-product="titpad"].relay-terminal :is(.coin-address, .coin-mint, .account-address, .wallet-address, .coin-trades-table td, .holders-table td, .live-trades-table td, .admin-table td.is-number), body[data-product="titpad"] code, body[data-product="titpad"] pre, body[data-product="titpad"] .mono { font-family: var(--mono); }
body[data-product="titpad"].relay-terminal .explore-feature-value strong { font-weight: 700; }
body[data-product="titpad"].relay-terminal .explore-coin-value > span { font-weight: 700; }
body[data-product="titpad"].relay-terminal :is(.cv-tabs, .explore-stage-tabs, .coin-tabs, .token-tabs, .admin-tabs) > button { font-weight: 600; }
body[data-product="titpad"] ::selection { background: #FC660266; color: #FFF7EE; }
html[data-theme="light"] body[data-product="titpad"] ::selection { background: #FC660244; color: #1B1109; }

/* ---- The header: the lockup, the nav links, the theme switch, the launch button, the account ---- */
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header { background: var(--bg); border-bottom-color: var(--line); }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header.motion-scrolled { background: var(--bg); border-bottom-color: var(--line-strong); }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .brand { display: inline-flex; align-items: center; margin-right: var(--space-4); }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .brand .tp-lockup { display: block; width: auto; height: 36px; border-radius: 0; background: transparent; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .brand:hover .tp-lockup { transform: scale(1.03); }
body[data-product="titpad"] .tp-lockup-light { display: none !important; }
html[data-theme="light"] body[data-product="titpad"] .tp-lockup-dark { display: none !important; }
html[data-theme="light"] body[data-product="titpad"] .tp-lockup-light { display: block !important; }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header :is(.gotchi-nav, .agents-nav, .curve-price-badge, .site-chain-toggle, .relay-toolkit) { display: none !important; }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .local { gap: 8px; }
body[data-product="titpad"] .tp-nav { display: inline-flex; align-items: center; gap: 2px; }
body[data-product="titpad"] .tp-nav a.tp-item { position: relative; display: inline-flex; align-items: center; gap: 7px; height: var(--control-h); padding: 0 12px; border-radius: var(--radius-control); color: var(--muted); font: 600 14px/1 var(--sans); text-decoration: none; transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease; }
body[data-product="titpad"] .tp-nav a.tp-item:hover { background: var(--s2); color: var(--text); }
body[data-product="titpad"] .tp-nav a.tp-item[aria-current="page"] { background: var(--sel-bg); color: var(--acc-soft); }
body[data-product="titpad"] .tp-ic { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; }
body[data-product="titpad"] .tp-ic svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body[data-product="titpad"] .tp-theme { display: inline-grid; place-items: center; width: var(--control-h); height: var(--control-h); padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--s1); color: var(--text-2); cursor: pointer; transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease; }
body[data-product="titpad"] .tp-theme:hover { background: var(--s2); border-color: var(--line-hi); color: var(--acc-soft); }
body[data-product="titpad"] .tp-theme:active { transform: scale(.94); }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .top-launch { font-weight: 700; }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .top-launch:hover { background: var(--acc-soft); border-color: var(--acc-soft); color: var(--acc-ink); }
body[data-product="titpad"].relay-terminal :is(.primary, .launch-upload-button):hover:not(:disabled) { background: var(--acc-soft); border-color: var(--acc-soft); color: var(--acc-ink); }
body[data-product="titpad"].relay-terminal :is(.cv-tabs, .explore-stage-tabs, .coin-tabs, .token-tabs, .admin-tabs) > button::after { height: 3px; border-radius: 3px; }
body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .header-search { background: var(--s1); }
body[data-product="titpad"][data-navigation=top] .header-account-avatar { border-radius: 50%; background: linear-gradient(140deg, #C94C00, #FF8E4A); color: #1B1109; }
body[data-product="titpad"].relay-terminal .header-profile-dropdown { border-radius: 16px; }
@media (max-width: 1180px) { body[data-product="titpad"] .tp-nav a.tp-item { width: var(--control-h); padding: 0; justify-content: center; } body[data-product="titpad"] .tp-nav a.tp-item > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 640px) {
  body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .brand .tp-lockup { height: 30px; }
  body[data-product="titpad"].relay-terminal[data-navigation=top] .app-header .brand { margin-right: var(--space-2); }
  body[data-product="titpad"] .tp-nav { display: none; }
}

/* ---- The tape under the header ---- */
body[data-product="titpad"].relay-terminal .site-tape { height: 32px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
body[data-product="titpad"].relay-terminal .site-tape-label { color: var(--acc); font-weight: 700; letter-spacing: .12em; }
body[data-product="titpad"].relay-terminal .site-tape-track > a > img { border-radius: 50%; }
body[data-product="titpad"].relay-terminal .site-tape-track > a > b { font-weight: 700; }
body[data-product="titpad"].relay-terminal .site-tape-track > a > .is-new { color: var(--acc); font-weight: 700; }

/* ---- Buttons, chips, inputs: pills and rounded frames ---- */
body[data-product="titpad"] .small-button, body[data-product="titpad"] button.cv-button, body[data-product="titpad"] .cv-button, body[data-product="titpad"] .top-launch { border-radius: 999px; font-weight: 700; }
body[data-product="titpad"].relay-terminal :is(input, select) { border-radius: 999px; padding-left: 16px; padding-right: 16px; }
body[data-product="titpad"].relay-terminal input[type="checkbox"], body[data-product="titpad"].relay-terminal input[type="radio"], body[data-product="titpad"].relay-terminal input[type="range"], body[data-product="titpad"].relay-terminal input[type="file"] { border-radius: 4px; padding: 0; }
body[data-product="titpad"].relay-terminal textarea { border-radius: 18px; padding: 14px 18px; font-family: var(--sans); line-height: 1.55; }
body[data-product="titpad"].relay-terminal .launch-section :is(input, select):not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) { padding: 0 18px; }
body[data-product="titpad"].relay-terminal :is(.tag, .explore-section-tag, .explore-count, .coin-stage, .mainnet-badge, .token-status, .cv-pill, .cv-badge) { border-radius: 999px; }
body[data-product="titpad"].relay-terminal .explore-coin-badge { border-radius: 999px; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; text-transform: none; font-size: 11.5px; }
body[data-product="titpad"].relay-terminal :is(.cv-segmented, .explore-chain-switch, .explore-view-switch, .explore-age-options, .launch-segments, .coin-chart-controls, .manual-side, .execution-preset-tabs) > button { border-radius: 999px; }
body[data-product="titpad"].relay-terminal.explore-page .explore-pagination button { border-radius: 50%; font-family: var(--sans); }
body[data-product="titpad"].relay-terminal.explore-page .explore-progress-track { border-radius: 999px; }
body[data-product="titpad"].relay-terminal.explore-page .explore-progress-fill { border-radius: 999px; }

/* ---- The rack (home): the strip, the tabs, the Everything rack; no chain switch, no asset categories, no Raydium ---- */
body[data-product="titpad"].explore-page .explore-chain-switch, body[data-product="titpad"].explore-page .explore-categories, body[data-product="titpad"].explore-page [data-explore-launch-mode="raydium"] { display: none !important; }
body[data-product="titpad"].explore-page .explore-browse-bar { grid-template-columns: minmax(0, 1fr) auto; }
body[data-product="titpad"].relay-terminal.explore-page .explore-stage-tabs > button[aria-pressed=true] { color: var(--acc-soft); }
body[data-product="titpad"].explore-page .explore-stage-tabs > .explore-indicator { height: 3px; border-radius: 3px; background: var(--acc); box-shadow: none; }
body[data-product="titpad"].relay-terminal.explore-page .explore-browse-bar { background: var(--bg); }
body[data-product="titpad"] .tp-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); margin: 0 0 var(--space-6); }
body[data-product="titpad"] .tp-tile { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 86px; padding: 14px 18px; border: 1px solid var(--line-card); border-radius: var(--radius-card); background: var(--panel); color: var(--text); text-decoration: none; transition: transform var(--motion-mid) var(--motion-ease), border-color var(--motion-mid) ease, box-shadow var(--motion-mid) ease; }
body[data-product="titpad"] .tp-tile:hover { transform: translate3d(0, -3px, 0); border-color: var(--line-card-hover); box-shadow: var(--shadow-card-hover); }
body[data-product="titpad"] .tp-tile > .tp-ic { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--sel-bg); color: var(--acc-soft); }
body[data-product="titpad"] .tp-tile-logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
body[data-product="titpad"] .tp-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body[data-product="titpad"] .tp-tile-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body[data-product="titpad"] .tp-tile-value { font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
body[data-product="titpad"] .tp-tile-note { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-product="titpad"] .tp-tile-note .up { color: var(--up); } body[data-product="titpad"] .tp-tile-note .dn { color: var(--down); }
body[data-product="titpad"] .tp-count b { font-weight: 700; color: var(--acc-soft); }
body[data-product="titpad"] .tp-tile-cta { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
body[data-product="titpad"] .tp-tile-cta:hover { background: var(--acc-soft); border-color: var(--acc-soft); box-shadow: 0 14px 40px -18px var(--acc); }
body[data-product="titpad"] .tp-tile-cta > .tp-ic { background: #1B110922; color: var(--acc-ink); }
body[data-product="titpad"] .tp-tile-cta .tp-tile-value { color: var(--acc-ink); font-size: 20px; }
body[data-product="titpad"] .tp-tile-cta .tp-tile-note { color: #1B1109b3; white-space: normal; line-height: 1.3; }
body[data-product="titpad"] .tp-tile-arrow { margin-left: auto; font-size: 22px; font-weight: 700; color: var(--acc-ink); transition: transform var(--motion-mid) var(--motion-spring, ease); }
body[data-product="titpad"] .tp-tile-cta:hover .tp-tile-arrow { transform: translateX(4px); }
@media (max-width: 1180px) { body[data-product="titpad"] .tp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body[data-product="titpad"] .tp-strip { gap: 10px; margin-bottom: var(--space-5); }
  body[data-product="titpad"] .tp-tile { min-height: 0; padding: 12px 14px; gap: 10px; border-radius: 16px; }
  body[data-product="titpad"] .tp-tile-pair, body[data-product="titpad"] .tp-tile-cta { grid-column: 1 / -1; }
  body[data-product="titpad"] .tp-tile > .tp-ic, body[data-product="titpad"] .tp-tile-logo { width: 34px; height: 34px; flex-basis: 34px; padding: 8px; }
  body[data-product="titpad"] .tp-tile-label { font-size: 10.5px; letter-spacing: .06em; }
  body[data-product="titpad"] .tp-tile-value { font-size: 15px; white-space: normal; line-height: 1.2; }
  body[data-product="titpad"] .tp-tile-bonfire .tp-tile-note, body[data-product="titpad"] .tp-tile-payday .tp-tile-note { display: none; }
  body[data-product="titpad"] .tp-tile-cta .tp-tile-value { font-size: 18px; }
  body[data-product="titpad"] .tp-tile-cta .tp-tile-note { font-size: 12px; }
}
/* The Everything tab: the whole $BTC rack (shell-rendered) replaces the feed's own "all" grid; the feed's other sorts keep it. */
body[data-product="titpad"].explore-page #tp-rack-all, body[data-product="titpad"].explore-page #tp-rack-all-status { display: none; }
body[data-product="titpad"].explore-page #explore-coins[data-explore-stage="all"] #tp-rack-all { display: grid; }
body[data-product="titpad"].explore-page #explore-coins[data-explore-stage="all"] #tp-rack-all-status { display: block; margin: 0 0 var(--space-4); font-size: 13px; font-weight: 500; color: var(--muted); }
body[data-product="titpad"].explore-page #explore-coins[data-explore-stage="all"] #explore-all-grid, body[data-product="titpad"].explore-page #explore-coins[data-explore-stage="all"] #explore-all-message, body[data-product="titpad"].explore-page #explore-coins[data-explore-stage="all"] #explore-all-pagination, body[data-product="titpad"].explore-page #explore-coins[data-explore-stage="all"] .explore-status-row { display: none !important; }
body[data-product="titpad"].explore-page .explore-coin-secondary > span.up { color: var(--up); } body[data-product="titpad"].explore-page .explore-coin-secondary > span.dn { color: var(--down); }
body[data-product="titpad"].relay-terminal.explore-page .explore-coin-badge.is-titpad { color: var(--acc-soft); border-color: #FC660266; }
body[data-product="titpad"].relay-terminal.explore-page .explore-coin-badge.is-graduated { color: var(--tp-gold); border-color: #FFD23F66; }
body[data-product="titpad"].relay-terminal.explore-page .explore-coin-image > span { font-family: var(--display); font-weight: 400; color: var(--acc-soft); }
body[data-product="titpad"].explore-page .explore-coin.is-fresh .explore-coin-image::after { font-family: var(--sans); background: var(--acc); color: var(--acc-ink); }
body[data-product="titpad"].explore-page .explore-coin.is-fresh .explore-coin-image::before { display: none; }
body[data-product="titpad"].explore-page .explore-empty > span { color: var(--acc-soft); }
body[data-product="titpad"].explore-page .explore-empty .explore-empty-aside, body[data-product="titpad"].explore-page .explore-empty .explore-empty-gotchi { display: none !important; }
body[data-product="titpad"].explore-page .explore-empty { padding-bottom: var(--space-8) !important; }
body[data-product="titpad"].explore-page .explore-mini-coin > img { background: var(--s3); }
body[data-product="titpad"] #explore-spark-fill stop { stop-color: var(--acc); }
body[data-product="titpad"].explore-page .explore-spark .explore-chart-latest { fill: var(--text); }
body[data-product="titpad"].explore-page .explore-spark .explore-chart-latest-bg { fill: var(--panel); stroke: var(--acc); }
body[data-product="titpad"].explore-page .explore-spark .explore-chart-extreme { fill: var(--text); stroke: var(--panel); }
body[data-product="titpad"].explore-page .explore-spark .explore-chart-extreme-label { fill: var(--text-2); }
body[data-product="titpad"].explore-page .explore-spark .explore-chart-extreme-label.is-low { fill: var(--muted); }
body[data-product="titpad"].explore-page .explore-spark .explore-chart-axis { fill: var(--muted); }
body[data-product="titpad"].explore-page .explore-spark .explore-chart-grid { stroke: var(--line); }
body[data-product="titpad"].explore-page .explore-chart-tip { color: var(--text); }
body[data-product="titpad"] .explore-spark .explore-spark-dot { background: var(--acc-soft); }

/* ---- The phone bar (phones only; the header links hide there) ---- */
body[data-product="titpad"] .tp-bar { display: none; }
@media (max-width: 640px) {
  body[data-product="titpad"] .tp-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 58; height: 64px; padding: 0 4px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--s1); display: flex; justify-content: space-around; align-items: center; box-shadow: 0 20px 40px -20px #000000cc; }
  body[data-product="titpad"] .tp-bar a.tp-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1; height: 56px; border-radius: 16px; color: var(--muted); font: 600 11px/1 var(--sans); text-decoration: none; }
  body[data-product="titpad"] .tp-bar a.tp-item[aria-current="page"] { color: var(--acc); }
  body[data-product="titpad"] .tp-bar .tp-ic { width: 22px; height: 22px; }
  body[data-product="titpad"].relay-terminal[data-navigation=top] main, body[data-product="titpad"].relay-terminal[data-navigation=top] #explore-main { padding-bottom: 100px; }
  body[data-product="titpad"].relay-terminal[data-navigation=top] footer.site-footer { padding-bottom: 80px; }
}

/* ---- The footer ---- */
body[data-product="titpad"].relay-terminal[data-navigation=top] footer.site-footer { background: var(--bg); }
body[data-product="titpad"] .site-footer-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .02em; }
body[data-product="titpad"] .site-footer-brand img { width: 28px; height: 28px; border-radius: 50%; }
body[data-product="titpad"] .site-footer-links a { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0; }
body[data-product="titpad"] .site-footer-social { border-radius: 50%; font-family: var(--sans); font-weight: 700; }

/* ---- The launch page ---- */
body[data-product="titpad"].launch-page .launch-chain-section, body[data-product="titpad"].launch-page .launch-robinhood-section, body[data-product="titpad"].launch-page .launch-pairs, body[data-product="titpad"].launch-page #launch-pair-note, body[data-product="titpad"].launch-page #launch-pair-label,
body[data-product="titpad"].launch-page #launch-reward-options, body[data-product="titpad"].launch-page #launch-hooks, body[data-product="titpad"].launch-page #launch-basket, body[data-product="titpad"].launch-page #launch-gotchi-picker, body[data-product="titpad"].launch-page #launch-agent-settings,
body[data-product="titpad"].launch-page [data-launch-venue="raydium"], body[data-product="titpad"].launch-page [data-launch-venue="damm-pump"], body[data-product="titpad"].launch-page [data-launch-venue="pump-public"], body[data-product="titpad"].launch-page [data-launch-venue="pump"],
body[data-product="titpad"].launch-page #launch-pump-test, body[data-product="titpad"].launch-page #launch-pump-funded, body[data-product="titpad"].launch-page .launch-heading-glow, body[data-product="titpad"].launch-page .launch-welcome-halo, body[data-product="titpad"].launch-page #launch-catalogue-note { display: none !important; }
body[data-product="titpad"].launch-page #launch-mode-select { display: block !important; }
body[data-product="titpad"].launch-page .launch-welcome-card { border-radius: 28px; }
body[data-product="titpad"].launch-page .launch-welcome-mark { border-radius: 50%; }
body[data-product="titpad"].launch-page .launch-segments button { border-radius: 999px; }
body[data-product="titpad"].launch-page .tp-generator { margin: 16px 0 0; padding: 16px 18px 14px; border-radius: 20px; border: 1px dashed var(--line-strong); background: var(--s2); }
body[data-product="titpad"].launch-page .tp-generator h3 { margin: 0 0 4px; font-size: 16px; }
body[data-product="titpad"].launch-page .tp-gen-help { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
body[data-product="titpad"].launch-page .tp-gen-row { display: flex; gap: 8px; flex-wrap: wrap; }
body[data-product="titpad"].launch-page .tp-gen-input { flex: 1 1 180px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 16px; font: 700 15px var(--sans); text-transform: uppercase; }
body[data-product="titpad"].launch-page .tp-gen-roll, body[data-product="titpad"].launch-page .tp-gen-again { height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink); font: 700 14px var(--sans); cursor: pointer; }
body[data-product="titpad"].launch-page .tp-gen-again { background: transparent; color: var(--text); border-color: var(--line); }
body[data-product="titpad"].launch-page .tp-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
body[data-product="titpad"].launch-page .tp-names:empty { display: none; }
body[data-product="titpad"].launch-page .tp-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); transition: transform .15s ease, border-color .15s ease; }
body[data-product="titpad"].launch-page .tp-name:hover { border-color: var(--acc); transform: translateY(-2px); }
body[data-product="titpad"].launch-page .tp-name strong { font-size: 15px; } body[data-product="titpad"].launch-page .tp-name span { font-size: 12px; color: var(--muted); font-weight: 500; }
body[data-product="titpad"].launch-page .tp-gen-status { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-weight: 500; min-height: 1em; }
body[data-product="titpad"].launch-page .tp-judge { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); min-height: 1em; }
body[data-product="titpad"].launch-page .tp-judge[data-state="ok"] { color: var(--up); } body[data-product="titpad"].launch-page .tp-judge[data-state="no"] { color: var(--down); }
body[data-product="titpad"].launch-page .tp-pair-note { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--s2); }
body[data-product="titpad"].launch-page .tp-pair-note img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
body[data-product="titpad"].launch-page .tp-pair-note strong { display: block; font-size: 15px; } body[data-product="titpad"].launch-page .tp-pair-note span { font-size: 13px; color: var(--muted); font-weight: 500; }
body[data-product="titpad"].launch-page .tp-start { display: none; margin: 0 0 14px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--s2); }
body[data-product="titpad"].launch-page:has([data-launch-venue="meteora"][aria-pressed="true"]) .tp-start { display: block; }
body[data-product="titpad"].launch-page .tp-start legend { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
body[data-product="titpad"].launch-page .tp-start-option { display: grid !important; grid-template-columns: 24px minmax(0, 1fr) !important; grid-template-areas: "i t" "i s"; column-gap: 12px !important; row-gap: 2px !important; align-items: center; padding: 12px 14px !important; margin: 8px 0 0 !important; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
body[data-product="titpad"].launch-page .tp-start-option input { grid-area: i; margin: 0; width: 18px; height: 18px; accent-color: var(--acc); }
body[data-product="titpad"].launch-page .tp-start-option strong { grid-area: t; font-size: 15px; }
body[data-product="titpad"].launch-page .tp-start-option > span { grid-area: s; font-size: 13px; color: var(--muted); font-weight: 500; }
body[data-product="titpad"].launch-page .tp-start-option:has(input:checked) { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
body[data-product="titpad"].launch-page .tp-pfp { margin-top: 14px; }
body[data-product="titpad"].launch-page .tp-pfp-stage { margin-top: 12px; }
body[data-product="titpad"].launch-page .tp-pfp-preview { display: block; width: 220px; height: 220px; border-radius: 28px; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--acc); }
body[data-product="titpad"].launch-page .tp-pfp-use { background: var(--up); border-color: var(--up); color: #0E0B08; }
/* The launch page's own purples → the TITPAD orange (its local tokens plus the hard-coded ones that show). */
body[data-product="titpad"].launch-page.relay-terminal { --lp-gold: #FF8E4A; --lp-peach: #FC6602; --lp-coral: #E05600; --lp-done: #FC6602; --lp-line-hover: #FC6602; --lp-label: var(--text-2); }
body[data-product="titpad"].launch-page.relay-terminal .launch-section-heading h2::before { color: var(--acc-soft); border-radius: 50%; }
body[data-product="titpad"].launch-page.relay-terminal .launch-section.is-complete .launch-section-heading h2::before { background: var(--acc); color: var(--acc-ink); box-shadow: none; }
body[data-product="titpad"].launch-page.relay-terminal .launch-section:focus-within { box-shadow: 0 0 0 4px #FC66021a; }
body[data-product="titpad"].launch-page.relay-terminal .launch-upload-button { border-color: var(--acc); background: var(--acc); color: var(--acc-ink); border-radius: 999px; }
body[data-product="titpad"].launch-page.relay-terminal .launch-mode-select [data-launch-venue][aria-pressed=true] { border-color: var(--acc); background: var(--sel-bg); }
body[data-product="titpad"].launch-page.relay-terminal [data-launch-venue][aria-pressed=true] .launch-venue-copy::after, body[data-product="titpad"].launch-page.relay-terminal .launch-section.is-complete .launch-section-hint { color: var(--acc); }
body[data-product="titpad"].launch-page.relay-terminal .launch-card-symbol { border-color: var(--acc); background: var(--sel-bg); color: var(--acc-soft); border-radius: 999px; }
body[data-product="titpad"].launch-page.relay-terminal .launch-socials summary::before { color: var(--acc); border-radius: 8px; }
body[data-product="titpad"].launch-page.relay-terminal .launch-section input[name=symbol]:not(:placeholder-shown):invalid { border-color: var(--down); box-shadow: 0 0 0 3px #FF5A5A1f; }
body[data-product="titpad"].launch-page.relay-terminal .launch-chain.launch-venue { border-radius: 999px; }
body[data-product="titpad"].launch-page.relay-terminal .launch-steps li.is-active .launch-step-mark, body[data-product="titpad"].launch-page.relay-terminal .launch-steps li[aria-current] .launch-step-mark { border-color: var(--acc); color: var(--acc-soft); }
body[data-product="titpad"].launch-page.relay-terminal .launch-preview-curve-line { stroke: var(--acc); }
body[data-product="titpad"].launch-page.relay-terminal .launch-preview-top .eyebrow { color: var(--acc-soft); }
body[data-product="titpad"].launch-page.relay-terminal .launch-preview-curve-dot { fill: var(--acc-soft); }

/* ---- TITPAD's own pages: Browse the rack, the bonfire, payday (Curve's frame, the rack head on top) ---- */
body[data-product="titpad"].explore-page .tp-rack-head { margin: 0 0 var(--space-5); }
body[data-product="titpad"].explore-page .tp-rack-head h1 { margin: 0 0 6px; font-size: 44px; line-height: 1.05; }
body[data-product="titpad"].explore-page .tp-rack-head p { margin: 0; color: var(--muted); font-weight: 500; font-size: 16px; max-width: 760px; }
body[data-product="titpad"].explore-page .tp-rack-head p a { color: var(--acc); font-weight: 700; text-decoration: none; }
body[data-product="titpad"].browse-page .tp-browse-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 14px; }
body[data-product="titpad"].browse-page .tp-search-input { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; height: 46px; margin: 0; padding: 0 12px 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
body[data-product="titpad"].browse-page .tp-search-input svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body[data-product="titpad"].browse-page .tp-search-input input { flex: 1; height: 100%; border: 0; background: transparent; color: var(--text); font: 500 15px var(--sans); outline: none; padding: 0; border-radius: 0; box-shadow: none; }
body[data-product="titpad"].browse-page .tp-search-input input::placeholder { color: var(--muted); }
body[data-product="titpad"].browse-page .tp-search-input:focus-within { border-color: var(--acc); box-shadow: var(--glow-acc); }
body[data-product="titpad"].browse-page .tp-browse-status { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
body[data-product="titpad"].browse-page .explore-coin-secondary > span.up { color: var(--up); } body[data-product="titpad"].browse-page .explore-coin-secondary > span.dn { color: var(--down); }
body[data-product="titpad"] .tp-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--acc); color: var(--acc-ink); }
body[data-product="titpad"] .tp-pill.new { background: var(--up); color: #0E0B08; }
body[data-product="titpad"] .tp-pill.gold { background: var(--tp-gold); color: #1B1109; }
body[data-product="titpad"] .tp-pill.muted { background: var(--s4); color: var(--text-2); }
body[data-product="titpad"] .tp-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; }
body[data-product="titpad"] .tp-card h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
body[data-product="titpad"] .tp-big { font-weight: 700; font-size: 32px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1; color: var(--acc); }
body[data-product="titpad"] .tp-big small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 6px; }
body[data-product="titpad"] .tp-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
body[data-product="titpad"] .tp-slot { border: 1px solid var(--line); border-radius: 16px; padding: 10px 4px; background: var(--s2); text-align: center; }
body[data-product="titpad"] .tp-slot b { display: block; font-size: 22px; color: var(--acc); }
body[data-product="titpad"] .tp-slot span { font-size: 10px; font-weight: 500; color: var(--muted); white-space: nowrap; }
body[data-product="titpad"] .tp-countdown { display: flex; gap: 8px; margin-top: 10px; }
body[data-product="titpad"] .tp-countdown b { flex: 1; border-radius: 14px; background: var(--acc); color: var(--acc-ink); text-align: center; padding: 8px 0; font-size: 22px; font-variant-numeric: tabular-nums; }
body[data-product="titpad"] .tp-countdown b small { display: block; font-size: 10px; font-weight: 500; color: #1B1109aa; }
body[data-product="titpad"] .tp-note { margin: 12px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.5; }
body[data-product="titpad"] .tp-cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 19px; box-shadow: 0 12px 30px -12px var(--acc); text-decoration: none; transition: transform .2s ease; }
body[data-product="titpad"] .tp-cta:hover { transform: translateY(-2px); }
body[data-product="titpad"].bonfire-page .tp-bonfire, body[data-product="titpad"].payday-page .tp-payday { display: flex; flex-direction: column; gap: 16px; max-width: 1040px; }
body[data-product="titpad"].bonfire-page .tp-rack-head p, body[data-product="titpad"].payday-page .tp-rack-head p { font-size: 17px; }
body[data-product="titpad"] .tp-status { margin: 0; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--s2); font-size: 14px; font-weight: 600; color: var(--text-2); }
body[data-product="titpad"] .tp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body[data-product="titpad"] .tp-stat .tp-big { font-size: 40px; }
body[data-product="titpad"] .tp-stat .tp-big small, body[data-product="titpad"] .tp-pot .tp-big small { white-space: normal; }
body[data-product="titpad"] .tp-slots-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
body[data-product="titpad"] .tp-slots-wide .tp-slot { padding: 16px 10px; }
body[data-product="titpad"] .tp-slots-wide .tp-slot b { font-size: 34px; }
body[data-product="titpad"] .tp-slots-wide .tp-slot span { font-size: 13px; white-space: normal; }
body[data-product="titpad"] .tp-pots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body[data-product="titpad"] .tp-pot { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--s2); }
body[data-product="titpad"] .tp-pot .tp-big { font-size: 30px; }
body[data-product="titpad"] .tp-list { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--text-2); }
body[data-product="titpad"] .tp-list:empty { display: none; }
body[data-product="titpad"] .tp-steps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--text-2); }
body[data-product="titpad"] .tp-steps li::marker { color: var(--acc); font-weight: 700; }
body[data-product="titpad"] .tp-steps strong { color: var(--text); }
body[data-product="titpad"] .tp-link { color: var(--acc); font-weight: 700; text-decoration: none; }
body[data-product="titpad"] .tp-link:hover { text-decoration: underline; }
body[data-product="titpad"] .tp-countdown-big { margin-top: 4px; gap: 12px; max-width: 560px; }
body[data-product="titpad"] .tp-countdown-big b { font-size: 44px; padding: 16px 0 12px; border-radius: 20px; }
body[data-product="titpad"] .tp-countdown-big b small { font-size: 12px; margin-top: 2px; }
body[data-product="titpad"] .tp-rounds { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
body[data-product="titpad"] .tp-round { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--s2); }
body[data-product="titpad"] .tp-round-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
body[data-product="titpad"] .tp-round-body { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; }
body[data-product="titpad"] .tp-round-body b { font-size: 22px; color: var(--acc); font-variant-numeric: tabular-nums; }
body[data-product="titpad"] .tp-round-body span { font-size: 13px; font-weight: 500; color: var(--muted); }
body[data-product="titpad"] .tp-round-txs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
body[data-product="titpad"] .tp-tx { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 11px; font-weight: 700; text-decoration: none; font-family: var(--mono); }
body[data-product="titpad"] .tp-tx:hover { border-color: var(--acc); color: var(--acc); }
@media (max-width: 980px) {
  body[data-product="titpad"].explore-page .tp-rack-head h1 { font-size: 34px; }
  body[data-product="titpad"].browse-page .tp-search-input { flex-basis: 100%; }
  body[data-product="titpad"] .tp-stats, body[data-product="titpad"] .tp-pots { grid-template-columns: 1fr; }
  body[data-product="titpad"] .tp-stat .tp-big { font-size: 34px; }
  body[data-product="titpad"] .tp-slots-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body[data-product="titpad"] .tp-slots-wide .tp-slot b { font-size: 24px; }
  body[data-product="titpad"] .tp-slots-wide .tp-slot span { font-size: 11px; }
  body[data-product="titpad"] .tp-countdown-big b { font-size: 32px; padding: 12px 0 10px; }
}

/* Curve's grey ramp as tokens (src/titpad/skin.mjs TITPAD_NEUTRALS): dark, then light. */
body[data-product="titpad"] { --tp-n121214: #15110C; --tp-n141416: #17120D; --tp-n202024: #281E14; --tp-n000000: #0A0806; --tp-n0b0b0c: #0E0B08; --tp-n18181b: #1E1710; --tp-n1f1f23: #261D13; --tp-n2a2a30: #33271B; --tp-n3a3a42: #3F3022; --tp-n4a4a53: #4E3C2A; --tp-n5e5e67: #665038; --tp-n7a7a85: #8A7257; --tp-n9a9aa3: #B39A80; --tp-nc9c9cf: #E6D8C8; --tp-ne4e4e7: #F3E8DC; --tp-nf4f4f5: #FFF7EE; --tp-nffffff: #FFFFFF; }
html[data-theme="light"] body[data-product="titpad"] { --tp-n121214: #FFF9F5; --tp-n141416: #FFF8F3; --tp-n202024: #FAE8DC; --tp-n000000: #FFFFFF; --tp-n0b0b0c: #FFFDFB; --tp-n18181b: #FFF3EB; --tp-n1f1f23: #FBEADF; --tp-n2a2a30: #F5DECE; --tp-n3a3a42: #EDCFBB; --tp-n4a4a53: #E2BFA6; --tp-n5e5e67: #C7A98E; --tp-n7a7a85: #A88B6E; --tp-n9a9aa3: #8A6B48; --tp-nc9c9cf: #4F3B29; --tp-ne4e4e7: #35251A; --tp-nf4f4f5: #1B1109; --tp-nffffff: #000000; }
