:root {
  color-scheme: dark;
  --bg-outer: #05080f;
  --bg-app: #0b101b;
  --bg-card: #121a2b;
  --bg-card-elevated: #172136;
  --bg-subtle: #0e1524;
  --border-subtle: rgba(148, 169, 201, 0.14);
  --border-strong: rgba(184, 255, 44, 0.34);
  --text-primary: #f4f7fd;
  --text-secondary: #a2b2cc;
  --text-muted: #70829e;
  --accent-lime: #b8ff2c;
  --accent-lime-ink: #0a1204;
  --status-positive-bg: rgba(52, 211, 153, 0.14);
  --status-positive-fg: #5eead4;
  --status-caution-bg: rgba(251, 191, 36, 0.14);
  --status-caution-fg: #fcd34d;
  --status-alert-bg: rgba(248, 113, 113, 0.14);
  --status-alert-fg: #fca5a5;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 0%, #131c31 0%, var(--bg-outer) 65%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.phone-stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--bg-app);
  padding: 14px 16px 36px;
  position: relative;
}

@media (min-width: 500px) {
  .phone-stage {
    padding: 24px 16px;
  }

  .app-shell {
    min-height: calc(100dvh - 48px);
    border-radius: 30px;
    border: 1px solid rgba(148, 169, 201, 0.18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  }
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 10px rgba(184, 255, 44, 0.75);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}

.region-pill-label {
  color: var(--text-muted);
  font-weight: 600;
}

.region-pill:focus-within {
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 2px rgba(184, 255, 44, 0.22);
}

.region-pill select {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding-right: 12px;
  cursor: pointer;
  outline: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-lime) 50%),
    linear-gradient(135deg, var(--accent-lime) 50%, transparent 50%);
  background-position: calc(100% - 6px) 55%, calc(100% - 2px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

/* Player Hero */
.player-hero {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(128deg, rgba(165, 0, 68, 0.34) 0%, rgba(0, 77, 152, 0.32) 55%, rgba(18, 26, 43, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  margin-bottom: 20px;
}

.player-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jersey-badge {
  width: 58px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, #a50044 0%, #004d98 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.jersey-club {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #facc15;
}

.jersey-number {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
}

.player-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.player-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.player-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Schedule Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tz-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 999px;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.competition-tag {
  font-weight: 700;
  color: var(--text-secondary);
}

.venue-tag {
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.team-side-away {
  justify-content: flex-end;
  text-align: right;
}

.team-crest {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.team-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.vs-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-subtle);
}

.kickoff-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid rgba(148, 169, 201, 0.09);
  border-radius: 13px;
  padding: 11px 12px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-top: 2px;
}

.kickoff-value {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.kickoff-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}

.appearance-block {
  border-top: 1px solid rgba(148, 169, 201, 0.09);
  padding-top: 8px;
}

.appearance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.status-chip.positive {
  background: var(--status-positive-bg);
  color: var(--status-positive-fg);
}

.status-chip.caution {
  background: var(--status-caution-bg);
  color: var(--status-caution-fg);
}

.appearance-detail {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Single Primary CTA Button on Match Card */
.watch-cta-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--accent-lime);
  color: var(--accent-lime-ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.watch-cta-btn:hover {
  filter: brightness(1.04);
}

.watch-cta-btn:active {
  transform: scale(0.985);
}

.watch-cta-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Experiment Telemetry & QA Panel */
.experiment-panel {
  margin-top: 26px;
  padding: 16px;
  border-radius: 18px;
  background: #0e1525;
  border: 1px dashed rgba(148, 169, 201, 0.28);
}

.experiment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.experiment-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-lime);
  margin-bottom: 3px;
}

.experiment-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.experiment-actions {
  display: flex;
  gap: 6px;
}

.ghost-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 9px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.ghost-btn:hover {
  color: var(--text-primary);
  border-color: rgba(184, 255, 44, 0.4);
}

.ghost-btn-danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.ctr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 12px;
}

.ctr-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ctr-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.ctr-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-lime);
  font-variant-numeric: tabular-nums;
}

.ctr-breakdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-subtle);
}

.ctr-stat {
  flex: 1;
  text-align: center;
}

.ctr-stat-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.ctr-stat-caption {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ctr-divider {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.ctr-formula-note {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.session-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.session-kv {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.session-kv span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.session-kv strong,
.session-kv code {
  font-size: 12px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.session-kv code {
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.events-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.telemetry-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 155px;
  overflow-y: auto;
}

.telemetry-log li {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-secondary);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(148, 169, 201, 0.08);
}

.telemetry-log li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.telemetry-empty {
  color: var(--text-muted) !important;
  font-style: italic;
}

/* Bottom Sheet Modal */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.76);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.sheet-backdrop[hidden] {
  display: none;
}

.watch-sheet {
  width: 100%;
  max-width: 430px;
  background: #141d30;
  border-top: 1px solid rgba(184, 255, 44, 0.25);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px 28px;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.6);
  max-height: 88dvh;
  overflow-y: auto;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 169, 201, 0.3);
  margin: 0 auto 12px;
}

.sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-context {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.sheet-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-region-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.sheet-region-bar strong {
  color: var(--text-primary);
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.provider-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--bg-card-elevated);
  border: 1px solid rgba(184, 255, 44, 0.25);
  color: var(--text-primary);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.provider-link:hover {
  border-color: var(--accent-lime);
  background: #1c2842;
}

.provider-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
}

.provider-meta {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.provider-action {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(184, 255, 44, 0.16);
  color: var(--accent-lime);
  font-size: 12px;
  font-weight: 800;
}

.handoff-feedback {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(52, 211, 153, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 12.5px;
  line-height: 1.45;
}

.handoff-feedback strong {
  color: #6ee7b7;
  display: block;
  margin-bottom: 4px;
}

.handoff-feedback p {
  margin: 0 0 8px;
  color: var(--text-primary);
}

.handoff-open-mock {
  color: var(--accent-lime);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

.notice-card {
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.notice-card.warning {
  border-color: rgba(251, 191, 36, 0.35);
}

.notice-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.notice-badge.warning {
  background: var(--status-caution-bg);
  color: var(--status-caution-fg);
}

.notice-badge.neutral {
  background: var(--status-alert-bg);
  color: var(--status-alert-fg);
}

.notice-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.notice-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.notice-subnote {
  margin-top: 10px !important;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 169, 201, 0.1);
  font-size: 11.5px !important;
  color: var(--text-muted) !important;
}

.quick-region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.quick-region-btn {
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 7px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.quick-region-btn:hover {
  border-color: var(--accent-lime);
}

.sheet-footnote {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Community Positioning, Roster Switcher, Activation & Embed Styles */
.purity-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--status-positive-fg);
  background: var(--status-positive-bg);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.roster-switcher {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}

.roster-switcher::-webkit-scrollbar {
  display: none;
}

.roster-pill {
  flex-shrink: 0;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.roster-pill.active {
  background: rgba(184, 255, 44, 0.15);
  color: var(--accent-lime);
  border-color: rgba(184, 255, 44, 0.55);
}

.hero-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.follow-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.follow-alert-btn {
  border: 1px solid rgba(184, 255, 44, 0.45);
  background: rgba(11, 16, 27, 0.72);
  color: var(--accent-lime);
  border-radius: 10px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.follow-alert-btn.active {
  background: var(--accent-lime);
  color: var(--accent-lime-ink);
  border-color: var(--accent-lime);
}

.reminder-select {
  background: rgba(11, 16, 27, 0.72);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 7px 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  outline: none;
}

.share-trigger-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.share-trigger-btn:hover {
  border-color: var(--accent-lime);
}

.community-handoff-box {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.install-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-lime);
}

.install-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.install-cta-link {
  flex-shrink: 0;
  text-decoration: none;
  background: rgba(184, 255, 44, 0.16);
  color: var(--accent-lime);
  border: 1px solid rgba(184, 255, 44, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 800;
}

.wishlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 169, 201, 0.1);
  font-size: 11.5px;
  color: var(--text-muted);
}

.text-action-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.text-action-btn:hover {
  color: var(--accent-lime);
}

.share-action-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.share-kit-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
}

.share-kit-btn:hover {
  border-color: var(--accent-lime);
}

.share-kit-btn strong {
  font-size: 13.5px;
  font-weight: 800;
}

.share-kit-btn span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.share-feedback-msg {
  margin: 11px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
}

/* Substack / Blog Clean Embed Mode (?embed=1 or /embed) */
body[data-embed="1"] .experiment-panel,
body[data-embed="1"] .community-handoff-box,
body[data-embed="1"] .roster-switcher,
body[data-embed="1"] .monetization-strip,
body[data-embed="1"] .low-balance-card,
body[data-embed="1"] .browse-ad-slot {
  display: none;
}

body[data-embed="1"] .phone-stage {
  padding: 0;
  min-height: auto;
}

body[data-embed="1"] .app-shell {
  min-height: auto;
  border-radius: 18px;
  padding-bottom: 16px;
}

.embed-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.embed-footer[hidden] {
  display: none;
}

.embed-footer a {
  color: var(--accent-lime);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Dual-Platform Monetization Strip, Browse Adaptive Banner, Low-Balance & Credits Sheet */
.monetization-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 12px;
}

.platform-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.platform-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.platform-btn.active {
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.wallet-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid rgba(184, 255, 44, 0.36);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.wallet-pill-btn:hover {
  border-color: var(--accent-lime);
}

.wallet-dot {
  color: var(--text-muted);
}

.wallet-ads-badge {
  color: var(--status-caution-fg);
}

.wallet-ads-badge.ad-free {
  color: var(--status-positive-fg);
}

.low-balance-card {
  margin: 0 0 18px;
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.13) 0%, rgba(18, 26, 43, 0.96) 100%);
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.low-balance-card[hidden],
.browse-ad-slot[hidden],
.ad-click-feedback[hidden],
.rewarded-player-box[hidden],
.share-feedback-msg[hidden] {
  display: none !important;
}

.low-balance-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.low-balance-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--status-caution-bg);
  color: var(--status-caution-fg);
}

.low-balance-top strong {
  font-size: 13px;
  color: var(--text-primary);
}

.low-balance-desc {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.low-balance-actions {
  display: flex;
  gap: 8px;
}

.low-balance-btn {
  flex: 1;
  border-radius: 10px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.low-balance-btn.primary {
  border: none;
  background: var(--accent-lime);
  color: var(--accent-lime-ink);
}

.low-balance-btn.secondary {
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.12);
  color: var(--status-positive-fg);
}

.browse-ad-slot {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #0e1627;
  border: 1px solid rgba(94, 234, 212, 0.24);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-slot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ad-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--status-positive-fg);
  background: var(--status-positive-bg);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.ad-unit-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-remove-btn {
  border: 1px solid rgba(184, 255, 44, 0.35);
  background: transparent;
  color: var(--accent-lime);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ad-creative-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.ad-creative-link:hover {
  border-color: var(--status-positive-fg);
}

.ad-creative-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ad-creative-copy strong {
  font-size: 12.5px;
  font-weight: 800;
}

.ad-creative-copy span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.ad-cta-chip {
  flex-shrink: 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.14);
  color: var(--status-positive-fg);
  font-size: 11.5px;
  font-weight: 800;
}

.ad-click-feedback {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(94, 234, 212, 0.11);
  border: 1px solid rgba(94, 234, 212, 0.3);
  font-size: 11.5px;
  color: var(--text-primary);
}

.ad-click-feedback a {
  color: var(--accent-lime);
  font-weight: 700;
  margin-left: 6px;
}

.monetization-telemetry-card {
  margin-bottom: 12px;
}

.monetization-kv-grid {
  margin-bottom: 0;
}

.credits-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credits-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.credits-stat-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credits-stat-pill span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.credits-stat-pill strong {
  font-size: 12px;
  color: var(--text-primary);
}

.monetization-path-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monetization-path-card.highlight {
  border-color: rgba(184, 255, 44, 0.42);
}

.path-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.path-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 999px;
}

.path-tag.lime {
  background: rgba(184, 255, 44, 0.16);
  color: var(--accent-lime);
}

.path-tag.teal {
  background: var(--status-positive-bg);
  color: var(--status-positive-fg);
}

.sku-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monetization-path-card h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
}

.monetization-path-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.rewarded-cta-btn {
  width: 100%;
  border: 1px solid rgba(94, 234, 212, 0.48);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(94, 234, 212, 0.14);
  color: var(--status-positive-fg);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.rewarded-cta-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.rewarded-player-box {
  margin-top: 4px;
  padding: 11px;
  border-radius: 12px;
  background: #0a101d;
  border: 1px dashed rgba(94, 234, 212, 0.45);
}

.rewarded-player-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--status-positive-fg);
}

.rewarded-player-sub {
  margin: 4px 0 9px !important;
  font-size: 11.5px !important;
}

.rewarded-player-actions {
  display: flex;
  gap: 8px;
}

.placement-guardrail-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.guardrail-copy {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
}
