:root {
  --ink: #120914;
  --ink-2: #201022;
  --paper: #fff7df;
  --paper-2: #fffdf4;
  --cyan: #00dcff;
  --green: #7dff3f;
  --pink: #ff2f91;
  --orange: #ff9d00;
  --yellow: #ffe83d;
  --danger: #ff3b30;
  --muted: #786f80;
  --line: rgba(255,255,255,0.18);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, #120914 0%, #201022 34%, #2b1227 62%, #101719 100%);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.start-screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,220,255,0.12), transparent 16%, transparent 84%, rgba(255,47,145,0.13)),
    repeating-linear-gradient(90deg, rgba(255,232,61,0.08) 0 1px, transparent 1px 42px),
    var(--ink);
  border-left: 1px solid rgba(255,232,61,0.26);
  border-right: 1px solid rgba(0,220,255,0.22);
}

.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,47,145,0.1) 55%, rgba(0,0,0,0.45) 100%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.035) 18px 19px);
  mix-blend-mode: screen;
}

.start-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(18,9,20,0.82);
  backdrop-filter: blur(14px);
}

.brand-stack {
  min-width: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  border: 2px solid #050505;
  background: linear-gradient(135deg, var(--green), var(--yellow) 48%, var(--pink));
  color: #090909;
  font-weight: 1000;
  box-shadow: 4px 4px 0 #000;
}

.brand-name {
  font-size: 17px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
  color: var(--paper);
  text-shadow: 2px 2px 0 rgba(255,47,145,0.65);
}

.app-version {
  margin-left: 8px;
  font-size: 12px;
  color: #9bdaf0;
  font-weight: 800;
  opacity: 0.95;
}

.welcome {
  margin-top: 5px;
  max-width: min(335px, 72vw);
  color: #c6f8ff;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bell {
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 44px;
  border: 2px solid #000;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--paper), var(--yellow));
  box-shadow: 4px 4px 0 #000;
}

.bell-core {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 19px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 3px solid #111;
  border-bottom-width: 5px;
  border-radius: 12px 12px 7px 7px;
}

.bell-core::before,
.bell-core::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
}

.bell-core::before {
  top: -8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bell-core::after {
  bottom: -10px;
  width: 9px;
  height: 5px;
  border-radius: 0 0 7px 7px;
}

.badge {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 2px 2px 0 #000;
}

.consent-area {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 12px 13px 176px;
}

.consent-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 24px;
  scrollbar-color: var(--green) transparent;
}

.consent-hero,
.choice-panel,
.consent-copy {
  border: 2px solid #000;
  background: var(--paper);
  color: #15110b;
  box-shadow: 7px 7px 0 #000;
}

.consent-hero {
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(0,220,255,0.16), transparent 34%),
    linear-gradient(135deg, #fff7df 0%, #fffdf4 62%, #e8ff78 100%);
}

.compliance-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: -5px -5px 10px;
  padding: 6px 7px;
  border: 1px solid #111;
  background: #111;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.consent-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: #101010;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 0.88;
  font-weight: 1000;
  letter-spacing: 0;
}

.hero-copy {
  margin: 11px 0 0;
  color: #2a1b22;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.metric {
  min-width: 0;
  padding: 9px 7px;
  border: 2px solid #111;
  background: #fff;
  box-shadow: 3px 3px 0 #111;
}

.metric strong {
  display: block;
  color: var(--pink);
  font-size: 22px;
  line-height: 1;
  font-weight: 1000;
}

.metric span {
  display: block;
  margin-top: 3px;
  color: #2f3033;
  font-size: 9px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-panel {
  margin-top: 13px;
  padding: 10px;
  background: #101010;
  color: var(--paper);
}

.panel-title {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 7px;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #111;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: #f5f0da;
  font-size: 12px;
  font-weight: 700;
}

.setting-row:first-of-type {
  border-top: 0;
}

.name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 42%);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: #f5f0da;
  font-size: 12px;
  font-weight: 900;
}

.name-row input {
  min-width: 0;
  width: 100%;
  border: 2px solid #000;
  border-radius: 7px;
  background: #fffdf4;
  color: #141014;
  box-shadow: 2px 2px 0 #000;
  padding: 8px 9px;
  font-size: 13px;
  font-weight: 900;
}

.name-row input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.maroon-link-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--orange);
  opacity: 0.75;
  padding: 4px 0 2px;
  text-transform: uppercase;
}

.toggle {
  min-width: 63px;
  padding: 5px 8px;
  border: 2px solid #000;
  border-radius: 999px;
  background: var(--green);
  color: #070707;
  text-align: center;
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 2px 2px 0 #000;
}

.toggle.locked {
  background: var(--cyan);
}

.toggle.warning {
  background: var(--pink);
  color: #fff;
}

.consent-copy {
  margin-top: 13px;
  padding: 9px 12px;
  background: var(--paper-2);
}

.leaderboard-panel {
  margin-top: 13px;
  padding: 10px;
  border: 2px solid #000;
  background:
    linear-gradient(135deg, rgba(255,47,145,0.13), transparent 46%),
    #101010;
  color: var(--paper);
  box-shadow: 7px 7px 0 #000;
}

.leaderboard-grid,
.death-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.leaderboard-list {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  padding: 7px;
}

.leaderboard-list h2 {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.leaderboard-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  color: #fff7df;
  font-size: 10px;
  line-height: 1.1;
}

.leaderboard-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-list li strong {
  color: var(--yellow);
  font-size: 11px;
}

.leaderboard-list li em {
  color: var(--cyan);
  font-style: normal;
  font-size: 9px;
  font-weight: 1000;
}

.leaderboard-list .empty-score {
  display: block;
  color: rgba(255,247,223,0.6);
  font-size: 10px;
}

/* ── Ad bar (below header) ── */
.ad-bar {
  position: relative;
  z-index: 2;
  background: rgba(18, 9, 20, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 4px 13px 6px;
  min-height: 90px;
}

.ad-bar ins {
  width: 100%;
  min-height: 90px;
}

.ad-label {
  display: block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: right;
  margin-bottom: 2px;
  opacity: 0.6;
}

.consent-paragraph {
  margin: 10px 0;
  color: #292128;
  font-size: 12px;
  line-height: 1.44;
}

.consent-paragraph::first-letter {
  font-weight: 900;
  color: var(--pink);
}

.trust-strip {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.trust-strip span {
  flex: 0 0 auto;
  border: 2px solid #000;
  background: var(--cyan);
  color: #050505;
  box-shadow: 3px 3px 0 #000;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.reviews {
  margin: 8px 0 2px;
  display: grid;
  gap: 7px;
}

.review {
  border: 1px dashed rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff7df;
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.25;
}

.start-footer {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  width: min(448px, calc(100% - 28px));
  max-height: 66px;
  overflow: hidden;
  padding: 9px 10px;
  border: 2px solid #000;
  background: rgba(18,9,20,0.9);
  color: #d4faff;
  box-shadow: 5px 5px 0 #000;
  text-align: center;
  backdrop-filter: blur(12px);
  font-size: 10px;
  line-height: 1.2;
}

.start-footer .tagline {
  margin-top: 4px;
  color: var(--yellow);
  font-weight: 900;
}

.accept-btn {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(428px, calc(100% - 24px));
  min-height: 62px;
  transform: translateX(-50%);
  border: 3px solid #000;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.58), transparent) -220px 0 / 180px 100% no-repeat,
    linear-gradient(135deg, var(--green), var(--yellow) 52%, var(--orange));
  color: #090909;
  box-shadow: 7px 7px 0 #000, 0 0 24px rgba(125,255,63,0.42);
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: ctaSweep 1900ms linear infinite, ctaThump 2200ms ease-in-out infinite;
}

.accept-btn::before {
  content: "Pay rate: 0.0003 credits per accepted event";
  display: block;
  margin-bottom: 2px;
  color: #3d1900;
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 9px),
    rgba(0,0,0,0.9);
  color: var(--paper);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 13vw, 62px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 #000, 0 0 28px var(--pink);
}

.death-panel {
  width: min(520px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 36px));
  overflow-y: auto;
  border: 3px solid #000;
  border-radius: 10px;
  background:
    repeating-linear-gradient(-45deg, rgba(255,59,48,0.16) 0 8px, transparent 8px 16px),
    #120914;
  box-shadow: 9px 9px 0 #000, 0 0 38px rgba(255,47,145,0.52);
  padding: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-shadow: none;
}

.death-title {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 14vw, 72px);
  line-height: 0.9;
  font-weight: 900;
  text-shadow: 4px 4px 0 #000, 0 0 28px var(--pink);
}

.death-copy {
  margin: 10px auto 0;
  max-width: 360px;
  border: 2px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.36);
  color: #ffef9a;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.28;
  font-weight: 900;
  text-transform: uppercase;
  white-space: pre-line;
}

.death-score {
  margin: 10px 0 13px;
  display: inline-flex;
  border: 2px solid #000;
  background: var(--cyan);
  color: #050505;
  box-shadow: 4px 4px 0 #000;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 1000;
}

.death-boards {
  margin-top: 7px;
}

.death-return-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 46px;
  border: 3px solid #000;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  color: #090909;
  box-shadow: 5px 5px 0 #000;
  font-size: 15px;
  font-weight: 1000;
}

.hidden { display: none !important; }

.game-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,47,145,0.16), transparent 20%, transparent 80%, rgba(0,220,255,0.18)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #0f0812, #1c1012 52%, #071b18);
}

.game-screen::before {
  content: "LIVE PARTNER AUCTION  |  RELEVANCE GRAPH WARMING  |  CONSENT SURFACE ACTIVE";
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  padding: 7px 0;
  border-block: 1px solid rgba(255,232,61,0.4);
  background: rgba(0,0,0,0.38);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 1000;
  text-align: center;
  white-space: nowrap;
}

.game-hud {
  position: fixed;
  z-index: 80;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  min-width: 112px;
  border: 2px solid #000;
  border-radius: 7px;
  background: var(--cyan);
  color: #050505;
  box-shadow: 4px 4px 0 #000;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 1000;
}

.level-hud {
  position: fixed;
  z-index: 82;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 178px));
  min-height: 38px;
  border: 2px solid #000;
  border-radius: 7px;
  background: rgba(18,9,20,0.92);
  color: var(--paper);
  box-shadow: 4px 4px 0 #000;
  padding: 6px 10px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.level-hud .level-kicker {
  display: block;
  color: var(--green);
  font-size: 9px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.level-hud strong {
  display: block;
  margin-top: 3px;
  color: var(--yellow);
  font-size: 12px;
  line-height: 1.05;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.level-hud.level-up {
  animation: levelUpPulse 850ms steps(2, end);
}

.game-placeholder {
  position: relative;
  z-index: 1;
  width: min(350px, calc(100% - 48px));
  border: 2px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.32);
  color: #e4fbff;
  padding: 18px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0,220,255,0.26);
}

.game-placeholder span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-placeholder strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.15;
}

.game-screen.retention-wall-active {
  background:
    linear-gradient(90deg, rgba(10,116,218,0.12), transparent 18%, transparent 82%, rgba(10,116,218,0.1)),
    #eef3f8;
}

.game-screen.retention-wall-active::before {
  content: "RETENTION OPTIMIZATION ACTIVE  |  PREMIUM CLIENT PROTECTION  |  SUPPORT AVAILABILITY PENDING";
  z-index: 9;
  border-block-color: rgba(24,92,168,0.24);
  background: rgba(255,255,255,0.72);
  color: #185ca8;
}

.game-screen.retention-wall-active .game-placeholder {
  display: none;
}

.retention-wall {
  --rw-panel-x: 50%;
  --rw-panel-y: 58%;
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  font-family: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  color: #1b2733;
  background-color: #eef3f8;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.82), rgba(10,116,218,0.08), rgba(255,255,255,0.72)),
    repeating-linear-gradient(0deg, transparent 0 52px, rgba(78,118,154,0.2) 52px 55px, rgba(236,249,255,0.9) 55px 57px),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(78,118,154,0.18) 96px 99px, rgba(236,249,255,0.85) 99px 101px);
}

.retention-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 95px, rgba(163,223,255,0.46) 96px 98px, rgba(255,255,255,0) 101px 192px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0) 0 53px, rgba(163,223,255,0.42) 54px 56px, rgba(255,255,255,0) 58px 106px);
  mix-blend-mode: screen;
}

.rw-legal-fog {
  position: absolute;
  top: 156px;
  left: 0;
  width: max-content;
  padding-block: 8px;
  color: rgba(24,92,168,0.28);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
  animation: legalFogScroll 18s linear infinite;
}

.rw-topbar {
  position: absolute;
  z-index: 10;
  left: 12px;
  right: 12px;
  top: calc(92px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(24,92,168,0.22);
  border-radius: 6px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 8px 28px rgba(24,44,70,0.14);
  padding: 8px 10px;
  color: #1a3550;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rw-topbar strong {
  color: #0a74da;
  font-size: 16px;
  font-weight: 1000;
}

.rw-hp {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: calc(138px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: min(370px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.rw-brick {
  position: relative;
  height: 28px;
  border: 1px solid rgba(24,92,168,0.26);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(228,235,242,0.94)),
    #edf2f6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8), 0 5px 14px rgba(24,44,70,0.13);
}

.rw-brick.current {
  outline: 2px solid rgba(10,116,218,0.42);
  outline-offset: 2px;
}

.rw-brick.removed {
  opacity: 0.3;
  transform: translateY(8px) rotate(-2deg);
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(10,116,218,0.24) 43% 47%, transparent 48%),
    rgba(255,255,255,0.36);
  box-shadow: none;
}

.rw-panel {
  position: absolute;
  z-index: 12;
  left: var(--rw-panel-x);
  top: var(--rw-panel-y);
  transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 34px));
  border: 1px solid rgba(24,92,168,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 44px rgba(24,44,70,0.22);
  padding: 13px;
  pointer-events: auto;
  transition: left 260ms ease, top 260ms ease, transform 160ms ease;
}

.rw-phase {
  color: #0a74da;
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.rw-title {
  margin: 8px 0 12px;
  color: #152332;
  font-size: clamp(18px, 5vw, 25px);
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: 0;
}

.rw-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #0b7ee8, #075ab2);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), 0 6px 14px rgba(10,116,218,0.28);
  padding: 10px 12px;
  font-family: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 1000;
  text-transform: uppercase;
  touch-action: pan-y;
}

.rw-help,
.rw-resolution {
  margin-top: 8px;
  color: #5c6c7a;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
}

.rw-feedback {
  position: absolute;
  z-index: 18;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(280px, calc(100vw - 40px));
  border: 1px solid rgba(24,92,168,0.24);
  border-left: 5px solid #0a74da;
  border-radius: 7px;
  background: rgba(255,255,255,0.95);
  color: #152332;
  box-shadow: 0 14px 36px rgba(24,44,70,0.2);
  padding: 10px 11px;
  text-align: left;
}

.rw-feedback strong,
.rw-feedback span {
  display: block;
}

.rw-feedback strong {
  color: #0a74da;
  font-size: 12px;
  line-height: 1;
  font-weight: 1000;
}

.rw-feedback span {
  margin-top: 4px;
  color: #536474;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.rw-bubbles,
.rw-nuisance-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rw-bubble {
  position: absolute;
  z-index: 8;
  max-width: min(250px, 72vw);
  border: 1px solid rgba(24,92,168,0.18);
  border-left: 4px solid #0a74da;
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  color: #263747;
  box-shadow: 0 12px 30px rgba(24,44,70,0.15);
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.22;
  font-weight: 760;
  animation: rwBubbleIn 180ms ease-out;
}

.rw-nuisance {
  position: absolute;
  z-index: 14;
  transform: translate(-50%, -50%);
  width: min(260px, calc(100vw - 42px));
  border: 1px solid rgba(24,92,168,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 16px 36px rgba(24,44,70,0.2);
  padding: 10px;
  pointer-events: auto;
}

.rw-nuisance span {
  display: block;
  color: #203345;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}

.rw-nuisance button {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: #0a74da;
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.retention-wall.rw-hit-tap .rw-panel,
.retention-wall.rw-hit-slide .rw-panel {
  transform: translate(-50%, -50%) scale(0.98);
}

.retention-wall.resolved .rw-panel {
  left: 50%;
  top: 54%;
}

.retention-wall.resolved .rw-brick {
  opacity: 0.18;
  transform: translateY(12px);
}

.back-btn {
  position: fixed;
  z-index: 90;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top));
  max-width: 132px;
  border: 2px solid #000;
  border-radius: 7px;
  background: var(--paper);
  color: #111;
  box-shadow: 4px 4px 0 #000;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 1000;
}

.powerup-btn {
  position: fixed;
  z-index: 95;
  left: 50%;
  top: calc(108px + env(safe-area-inset-top));
  transform: translateX(-50%);
  min-width: 174px;
  max-width: min(268px, calc(100vw - 32px));
  min-height: 44px;
  border: 3px solid #000;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, var(--yellow), var(--orange));
  color: #100900;
  box-shadow: 5px 5px 0 #000, 0 0 22px rgba(255,232,61,0.42);
  padding: 5px 14px 7px;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: smallCtaSweep 1200ms linear infinite, powerupPop 520ms ease-out 1;
}

.powerup-btn::before {
  content: attr(data-hint);
  display: block;
  font-size: 9px;
  line-height: 1;
  color: #4b2100;
}

.powerup-btn.do-not-track {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, var(--cyan), var(--green));
  color: #061014;
  box-shadow: 5px 5px 0 #000, 0 0 24px rgba(0,220,255,0.44);
}

.powerup-btn.popup-blocker {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, var(--pink), var(--cyan));
  color: #fff;
  box-shadow: 5px 5px 0 #000, 0 0 24px rgba(255,47,145,0.44);
}

.powerup-btn.popup-blocker::before {
  color: #fff0fb;
}

.powerup-btn.spam-filter {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, var(--green), var(--yellow));
}

.powerup-btn.cookie-shredder {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, #ffffff, var(--orange));
  color: #170d05;
}

.powerup-btn.burner-email {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, #2f2f36, var(--cyan));
  color: #ffffff;
}

.powerup-btn.burner-email::before,
.powerup-btn.vpn-tunnel::before {
  color: #e8fdff;
}

.powerup-btn.vpn-tunnel {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, #101014, #00dcff 54%, #ff2f91);
  color: #ffffff;
}

.powerup-btn.reader-mode {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    linear-gradient(135deg, #fffdf4, #b6ff5b);
  color: #111111;
}

.powerup-btn.captcha-farm {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent) -140px 0 / 110px 100% no-repeat,
    repeating-linear-gradient(90deg, var(--yellow) 0 11px, #111 11px 22px);
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
}

.powerup-btn.captcha-farm::before {
  color: #ffffff;
}

.powerup-btn.powerup-motion-slide {
  animation: smallCtaSweep 1200ms linear infinite, powerupSlide 4700ms ease-in-out infinite;
}

.powerup-btn.powerup-motion-fall {
  animation: smallCtaSweep 1200ms linear infinite, powerupFall 5200ms linear infinite;
}

.powerup-btn.powerup-motion-drift {
  animation: smallCtaSweep 1200ms linear infinite, powerupDrift 5600ms ease-in-out infinite;
}

.game-screen.do-not-track-active .game-popup .gp-accept {
  min-height: 50px;
  outline: 3px solid #fff;
  outline-offset: -5px;
  transform: none !important;
  animation: smallCtaSweep 1200ms linear infinite !important;
}

.game-screen.do-not-track-active .game-popup .gp-decline {
  opacity: 0.48;
  filter: grayscale(0.65);
}

.powerup-status {
  position: fixed;
  z-index: 94;
  left: 12px;
  top: calc(60px + env(safe-area-inset-top));
  max-width: min(220px, calc(100vw - 164px));
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  border-radius: 999px;
  background: rgba(18,9,20,0.92);
  color: var(--cyan);
  box-shadow: 4px 4px 0 #000, 0 0 18px rgba(0,220,255,0.32);
  padding: 6px 9px;
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.popup-blocker-status {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,47,145,0.28), rgba(0,220,255,0.2)),
    rgba(18,9,20,0.94);
}

.game-screen.reader-mode-active .game-popup:not(.expired) .gp-body {
  max-height: 18px;
  overflow: hidden;
  color: transparent;
  text-shadow: none;
}

.game-screen.reader-mode-active .game-popup:not(.expired) .gp-body::before {
  content: "reader mode removed 17 tracking paragraphs";
  color: #101010;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-screen.reader-mode-active .game-popup:not(.expired) .gp-accept {
  min-height: 52px;
  transform: none !important;
  animation: smallCtaSweep 1200ms linear infinite !important;
}

.game-popup.burner-routed {
  opacity: 0.62;
  filter: saturate(0.65);
  transform: scale(0.96) rotate(2deg) !important;
}

.game-popup.burner-routed::after {
  content: "ROUTED TO BURNER";
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border: 2px solid #000;
  background: rgba(0,220,255,0.72);
  color: #031014;
  font-size: 16px;
  font-weight: 1000;
  pointer-events: none;
}

.bell.pulse {
  animation: bellPulse 700ms steps(2, end);
}

.start-screen.glitch .consent-scroll {
  animation: screenGlitch 700ms steps(2, end);
}

/* notes overlay (patch notes) */
#overlay-notes {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 9px),
    rgba(0,0,0,0.88);
}

.notes-panel {
  width: min(620px, calc(100% - 24px));
  max-height: min(780px, calc(100dvh - 32px));
  overflow: auto;
  position: relative;
  border: 3px solid #000;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0,220,255,0.16), transparent 35%),
    linear-gradient(180deg, #fff7df, #fffdf4);
  color: #141014;
  box-shadow: 9px 9px 0 #000, 0 0 40px rgba(255,47,145,0.42);
  padding: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
  text-shadow: none;
}

.notes-panel,
.notes-panel * {
  text-shadow: none !important;
}

.notes-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 31px;
  height: 31px;
  border: 2px solid #000;
  border-radius: 7px;
  background: #efefef;
  color: #595959;
  box-shadow: 2px 2px 0 #000;
  font-size: 13px;
  font-weight: 1000;
}

.notes-header {
  display: grid;
  gap: 5px;
  padding: 8px 44px 10px 9px;
  border: 2px solid #000;
  background: #101010;
  color: var(--paper);
  box-shadow: 4px 4px 0 #000;
}

.notes-header span {
  color: var(--green);
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.notes-header strong {
  color: var(--yellow);
  font-size: 24px;
  line-height: 0.95;
  font-weight: 1000;
}

.notes-meta {
  display: flex;
  gap: 7px;
  margin: 12px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.notes-meta span {
  flex: 0 0 auto;
  border: 2px solid #000;
  background: var(--cyan);
  color: #050505;
  box-shadow: 3px 3px 0 #000;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.notes-content {
  color: #241b23;
  font-size: 13px;
}

.notes-hero {
  border: 2px solid #000;
  background:
    repeating-linear-gradient(90deg, rgba(255,232,61,0.22) 0 10px, transparent 10px 20px),
    #fff;
  box-shadow: 4px 4px 0 #000;
  padding: 10px;
}

.notes-hero span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 7px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.notes-hero p {
  margin: 0;
  font-size: 13px;
  line-height: 1.34;
  font-weight: 800;
}

.notes-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.notes-stat-grid div {
  min-width: 0;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
  padding: 8px 6px;
}

.notes-stat-grid strong,
.notes-stat-grid span {
  display: block;
}

.notes-stat-grid strong {
  color: var(--pink);
  font-size: 20px;
  line-height: 1;
  font-weight: 1000;
}

.notes-stat-grid span {
  margin-top: 3px;
  color: #2f3033;
  font-size: 9px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.notes-card-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.notes-card {
  border: 2px solid #000;
  background: #101010;
  color: var(--paper);
  box-shadow: 4px 4px 0 #000;
  padding: 10px;
}

.notes-card h2 {
  display: inline-flex;
  margin: 0 0 7px;
  padding: 4px 7px;
  background: var(--yellow);
  color: #111;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.notes-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-card li {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 6px;
  color: #f5f0da;
  font-size: 12px;
  line-height: 1.28;
}

.notes-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.notes-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.notes-links a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid #000;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  color: #090909;
  box-shadow: 4px 4px 0 #000;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.notes-links a:nth-child(2) {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
}

#overlay-notes.hidden { display:none; }

.popup-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.game-popup {
  width: min(336px, calc(100vw - 24px));
  border: 3px solid #000;
  border-radius: 8px;
  background: var(--paper-2);
  color: #151313;
  box-shadow: 8px 8px 0 #000, 0 0 28px rgba(255,47,145,0.28);
  padding: 10px;
  pointer-events: auto;
}

.game-popup.expired {
  filter: grayscale(1) contrast(0.82);
  opacity: 0.78;
  transform: rotate(-2deg) scale(0.98);
}

.game-popup.expired::after {
  content: "TIMEOUT";
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(0,0,0,0.8);
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.18) 0 8px, rgba(255,255,255,0.1) 8px 16px),
    rgba(255,255,255,0.38);
  color: #111;
  font-size: 26px;
  font-weight: 1000;
  text-shadow: 1px 1px 0 #fff;
  pointer-events: none;
}

.game-popup.expired button,
.game-popup.expired a {
  cursor: not-allowed;
  pointer-events: none;
}

.game-popup.dialog {
  transform: rotate(-0.7deg);
}

.game-popup.dialog:nth-child(2n) {
  transform: rotate(0.8deg);
}

.gp-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.gp-title {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #080808;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 1000;
}

.gp-x {
  width: 28px;
  height: 28px;
  border: 2px solid #000;
  border-radius: 6px;
  background: #efefef;
  color: #595959;
  box-shadow: 2px 2px 0 #000;
  font-size: 13px;
  font-weight: 1000;
}

.gp-body {
  color: #272027;
  font-size: 12px;
  line-height: 1.36;
  margin-bottom: 9px;
}

.gp-timer {
  height: 11px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #f3f3f3;
  overflow: hidden;
  margin-bottom: 10px;
}

.gp-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--danger));
}

.gp-slider-wrap {
  --slider-progress: 0%;
  margin: 0 0 10px;
  border: 2px solid #111;
  background:
    linear-gradient(90deg, rgba(0,220,255,0.28) 0 var(--slider-progress), transparent var(--slider-progress)),
    #f7fbff;
  padding: 7px;
}

.gp-slider-label,
.gp-slider-status {
  color: #111;
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 1000;
  text-transform: uppercase;
}

.gp-slider-status {
  margin-top: 4px;
  color: #5f6c73;
}

.gp-slider {
  width: 100%;
  margin: 7px 0 2px;
  accent-color: var(--pink);
}

.game-popup.slider-complete .gp-slider-wrap {
  background:
    linear-gradient(90deg, rgba(182,255,91,0.5), rgba(0,220,255,0.32)),
    #f7fbff;
}

.game-popup.loading-mode .gp-accept:disabled {
  filter: grayscale(1);
  opacity: 0.58;
  cursor: not-allowed;
  animation: none;
}

.gp-buttons,
.gp-action-group {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 7px;
}

.gp-accept,
.gp-decline,
.gp-fake-accept {
  min-height: 40px;
  border: 2px solid #000;
  border-radius: 7px;
  box-shadow: 3px 3px 0 #000;
  font-weight: 1000;
  letter-spacing: 0;
}

.gp-accept {
  flex: 1 1 auto;
  min-width: 116px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.48), transparent) -160px 0 / 130px 100% no-repeat,
    linear-gradient(135deg, var(--green), var(--yellow));
  color: #070707;
  text-transform: uppercase;
  animation: smallCtaSweep 1500ms linear infinite;
}

.gp-decline {
  flex: 0 1 auto;
  min-width: 76px;
  background: #e9e4e7;
  color: #706b72;
  font-size: 10px;
}

.game-popup.reversed .gp-buttons,
.game-popup.swapped .gp-buttons {
  flex-direction: row-reverse;
}

.game-popup.reversed.swapped .gp-buttons {
  flex-direction: row;
}

.game-popup.dialog.tier-2.reversed .gp-accept,
.game-popup.dialog.tier-2.swapped .gp-accept,
.game-popup.dialog.tier-6.reversed .gp-accept,
.game-popup.dialog.tier-6.swapped .gp-accept,
.game-popup.dialog.tier-7.reversed .gp-accept,
.game-popup.dialog.tier-7.swapped .gp-accept {
  order: 2;
}

.game-popup.dialog.tier-2.reversed .gp-decline,
.game-popup.dialog.tier-2.swapped .gp-decline,
.game-popup.dialog.tier-6.reversed .gp-decline,
.game-popup.dialog.tier-6.swapped .gp-decline,
.game-popup.dialog.tier-7.reversed .gp-decline,
.game-popup.dialog.tier-7.swapped .gp-decline {
  order: 1;
}

.game-popup.dialog.tier-2.reversed.swapped .gp-accept,
.game-popup.dialog.tier-6.reversed.swapped .gp-accept,
.game-popup.dialog.tier-7.reversed.swapped .gp-accept {
  order: 1;
}

.game-popup.dialog.tier-2.reversed.swapped .gp-decline,
.game-popup.dialog.tier-6.reversed.swapped .gp-decline,
.game-popup.dialog.tier-7.reversed.swapped .gp-decline {
  order: 2;
}

.game-popup.banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: auto;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 9px 9px 0 0;
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(0,220,255,0.17), transparent),
    var(--paper-2);
  box-shadow: 0 -7px 0 #000, 0 0 36px rgba(0,220,255,0.25);
}

.game-popup.banner .gp-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.game-popup.banner .gp-title {
  display: block;
  margin-bottom: 4px;
  padding-right: 0;
  font-size: 16px;
}

.game-popup.banner .gp-body {
  margin: 0;
  color: #302734;
  font-size: 11px;
  line-height: 1.32;
}

.game-popup.banner .gp-link {
  display: inline-block;
  margin-left: 4px;
  color: #6b5f64;
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
}

.game-popup.banner .gp-action-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
}

.game-popup.banner .gp-accept {
  order: 1;
  min-height: 48px;
  font-size: 16px;
}

.game-popup.banner .gp-decline {
  order: 2;
  min-width: 0;
  min-height: 48px;
  padding: 0 6px;
  opacity: 0.62;
}

.game-popup.tier-1 { border-color: #000; }
.game-popup.tier-1 .gp-timer-fill { background: linear-gradient(90deg, var(--cyan), var(--green)); }

.game-popup.dialog.tier-2 {
  padding: 13px;
  border-radius: 22px;
  border-color: rgba(255,255,255,0.65);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 34%),
    #121722;
  color: #f8fbff;
  box-shadow: 0 0 0 1px rgba(0,220,255,0.25), 0 18px 44px rgba(0,0,0,0.55);
}

.game-popup.dialog.tier-2::before {
  content: "System permission";
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,220,255,0.17);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-popup.dialog.tier-2 .gp-header {
  display: block;
  margin-bottom: 7px;
}

.game-popup.dialog.tier-2 .gp-title {
  color: #fff;
  font-size: 18px;
  line-height: 1.12;
}

.game-popup.dialog.tier-2 .gp-x {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 24px;
  height: 24px;
  border-color: rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  box-shadow: none;
}

.game-popup.dialog.tier-2 .gp-body {
  color: #c9d6df;
  font-size: 13px;
}

.game-popup.dialog.tier-2 .gp-timer {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

.game-popup.dialog.tier-2 .gp-timer-fill {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.game-popup.dialog.tier-2 .gp-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.game-popup.dialog.tier-2 .gp-accept {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  box-shadow: none;
}

.game-popup.dialog.tier-2 .gp-decline {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  box-shadow: none;
}

.game-popup.dialog.tier-3 {
  background: linear-gradient(180deg, #fff7df, #fff0c2);
  box-shadow: 8px 8px 0 #000, 0 0 34px rgba(255,157,0,0.4);
}

.game-popup.dialog.tier-3 .gp-header {
  padding-left: 7px;
  border-left: 8px solid var(--orange);
}

.game-popup.dialog.tier-4 {
  background:
    repeating-linear-gradient(-45deg, rgba(255,59,48,0.1) 0 8px, transparent 8px 16px),
    #fff5f5;
  box-shadow: 8px 8px 0 #000, 0 0 38px rgba(255,47,145,0.5);
}

.game-popup.dialog.tier-4 .gp-header {
  padding: 6px;
  background: var(--pink);
  border: 2px solid #000;
}

.game-popup.dialog.tier-4 .gp-title {
  color: #fff;
}

.game-popup.dialog.tier-5 {
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255,232,61,0.18), transparent 40%),
    #181208;
  color: #fff7df;
  box-shadow: 8px 8px 0 #000, 0 0 42px rgba(255,232,61,0.32);
}

.game-popup.dialog.tier-5::before {
  content: "Premium";
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 9px;
  border: 2px solid #000;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #090909;
  box-shadow: 3px 3px 0 #000;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-popup.dialog.tier-5 .gp-title {
  color: var(--yellow);
}

.game-popup.dialog.tier-5 .gp-body {
  color: #fff2bd;
}

.game-popup.dialog.tier-5 .gp-timer-fill {
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink));
}

.game-popup.dialog.tier-5 .gp-accept {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.game-popup.dialog.tier-5 .gp-decline {
  background: rgba(255,255,255,0.14);
  color: rgba(255,247,223,0.78);
}

.game-popup.dialog.tier-6 {
  border-radius: 4px;
  border-color: #7cf7ff;
  background:
    repeating-linear-gradient(90deg, rgba(124,247,255,0.08) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, rgba(255,59,48,0.2), transparent 35%),
    #071116;
  color: #eaffff;
  box-shadow: 8px 8px 0 #000, 0 0 44px rgba(124,247,255,0.42), inset 0 0 0 1px rgba(255,255,255,0.12);
}

.game-popup.dialog.tier-6::before {
  content: "Trust & Safety";
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 7px;
  border: 1px solid #7cf7ff;
  background: #101920;
  color: #7cf7ff;
  box-shadow: 2px 2px 0 #000;
  font-size: 9px;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-popup.dialog.tier-6 .gp-header {
  padding: 6px;
  border: 1px solid rgba(124,247,255,0.36);
  background: rgba(124,247,255,0.08);
}

.game-popup.dialog.tier-6 .gp-title {
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
}

.game-popup.dialog.tier-6 .gp-x {
  border-color: #ff3b30;
  background: #2d0710;
  color: #ffb6c2;
}

.game-popup.dialog.tier-6 .gp-body {
  color: #cfeff2;
  font-size: 11px;
}

.game-popup.dialog.tier-6 .gp-timer {
  border-color: #7cf7ff;
  background: #151a1f;
}

.game-popup.dialog.tier-6 .gp-timer-fill {
  background: linear-gradient(90deg, #7cf7ff, #ffe83d, #ff3b30);
}

.game-popup.dialog.tier-6 .gp-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(78px, 0.75fr);
  gap: 6px;
}

.game-popup.dialog.tier-6 .gp-accept {
  min-width: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent) -140px 0 / 120px 100% no-repeat,
    linear-gradient(135deg, #7cf7ff, #ffe83d);
  color: #051012;
  font-size: 11px;
  box-shadow: 0 0 0 2px #000, 3px 3px 0 #000;
}

.game-popup.dialog.tier-6 .gp-decline {
  min-width: 0;
  background: #2d0710;
  color: #ffb6c2;
  font-size: 9px;
  box-shadow: 3px 3px 0 #000;
}

.game-popup.dialog.tier-7 {
  border-radius: 2px;
  border-color: #1a1a1a;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #f7f9fb, #dfe8ee);
  color: #101418;
  box-shadow: 8px 8px 0 #000, 0 0 48px rgba(0,220,255,0.28);
}

.game-popup.dialog.tier-7::before {
  content: "Consent Management Platform";
  display: block;
  margin-bottom: 7px;
  padding: 5px 7px;
  border: 2px solid #111;
  background:
    repeating-linear-gradient(90deg, #111 0 8px, #ffe83d 8px 16px);
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  font-size: 9px;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.game-popup.dialog.tier-7 .gp-header {
  padding: 5px;
  border: 2px solid #111;
  background: #ffffff;
}

.game-popup.dialog.tier-7 .gp-title {
  color: #101418;
  font-family: "Courier New", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.game-popup.dialog.tier-7 .gp-body {
  color: #26323a;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.game-popup.loading-mode .gp-body::after {
  content: "Partner disclosures queued  |  regional template pending";
  display: block;
  margin-top: 8px;
  padding: 6px;
  border: 1px dashed #596773;
  background:
    linear-gradient(90deg, rgba(0,220,255,0.24) 0 63%, transparent 63%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.14) 0 6px, transparent 6px 12px),
    #f7fbff;
  color: #111;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-popup.dialog.tier-7 .gp-timer {
  height: 14px;
  border-radius: 0;
  border-color: #111;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.2) 0 7px, rgba(255,255,255,0.42) 7px 14px),
    #d4dde5;
}

.game-popup.dialog.tier-7 .gp-timer-fill {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.35) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, #00dcff, #ffe83d, #ff2f91);
}

.game-popup.dialog.tier-7 .gp-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(78px, 0.8fr);
  gap: 6px;
}

.game-popup.dialog.tier-7 .gp-accept {
  min-width: 0;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.48), transparent) -140px 0 / 120px 100% no-repeat,
    linear-gradient(135deg, #00dcff, #dfff5d);
  color: #071014;
  font-size: 10px;
}

.game-popup.dialog.tier-7 .gp-decline {
  min-width: 0;
  border-radius: 2px;
  background: #eef2f4;
  color: #5f6c73;
  font-size: 8px;
}

.game-popup.upcharge {
  border-color: var(--yellow);
  background:
    linear-gradient(180deg, #fff8cf, #ffd469 46%, #ff9d00);
  color: #15110b;
}

.game-popup.upcharge::before {
  content: "Convenience fee applies";
  display: block;
  margin: -2px 0 8px;
  padding: 5px 7px;
  border: 2px solid #000;
  background: #111;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.game-popup.upcharge .gp-title,
.game-popup.upcharge .gp-body {
  color: #15110b;
}

.game-popup.upcharge .gp-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.game-popup.upcharge .gp-accept {
  min-height: 48px;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  font-size: 18px;
}

.game-popup.upcharge .gp-decline {
  min-height: 34px;
  background: rgba(255,255,255,0.55);
  color: #4f3a00;
  font-size: 11px;
}

.gp-fake-accept {
  flex: 0 1 86px;
  background: linear-gradient(135deg, #b6ff5b, #fffbc2);
  color: #111;
  font-size: 10px;
  transform: translateY(1px);
  animation: fakeBlink 680ms steps(2, end) infinite;
}

.game-popup.jitter .gp-accept {
  animation: smallCtaSweep 1500ms linear infinite, acceptJitter 520ms steps(2, end) infinite;
}

.game-popup.accept-evasion .gp-accept.accept-dodged {
  transform: translate(var(--accept-dodge-x), var(--accept-dodge-y)) rotate(-4deg);
  animation: smallCtaSweep 1500ms linear infinite, dodgePulse 420ms ease-out 1;
}

.game-popup.jitter .gp-decline,
.game-popup.jitter .gp-fake-accept {
  animation: declineJitter 640ms steps(2, end) infinite;
}

.game-popup.label-cycle .gp-accept {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: -5px;
}

.game-popup.label-cycle.jitter .gp-accept {
  animation: smallCtaSweep 1500ms linear infinite, acceptJitter 520ms steps(2, end) infinite, labelStrobe 760ms steps(2, end) infinite;
}

.game-popup.label-cycle.accept-evasion .gp-accept.accept-dodged {
  animation: smallCtaSweep 1500ms linear infinite, dodgePulse 420ms ease-out 1, labelStrobe 760ms steps(2, end) infinite;
}

@keyframes popupTimer {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes ctaSweep {
  from { background-position: -220px 0, 0 0; }
  to { background-position: calc(100% + 220px) 0, 0 0; }
}

@keyframes smallCtaSweep {
  from { background-position: -160px 0, 0 0; }
  to { background-position: calc(100% + 160px) 0, 0 0; }
}

@keyframes ctaThump {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.015); }
}

@keyframes powerupPop {
  0% { transform: translateX(-50%) translateY(-10px) scale(0.86); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

@keyframes powerupSlide {
  0%, 100% { transform: translateX(calc(-50% - 94px)) rotate(-2deg); }
  50% { transform: translateX(calc(-50% + 94px)) rotate(2deg); }
}

@keyframes powerupFall {
  0% { transform: translateX(-50%) translateY(-130px) rotate(-3deg); opacity: 0.35; }
  16% { opacity: 1; }
  62% { transform: translateX(-50%) translateY(calc(100dvh - 290px)) rotate(3deg); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-130px) rotate(-3deg); opacity: 0.7; }
}

@keyframes powerupDrift {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  28% { transform: translateX(calc(-50% + 70px)) translateY(14px) rotate(2deg); }
  62% { transform: translateX(calc(-50% - 82px)) translateY(28px) rotate(-3deg); }
}

@keyframes legalFogScroll {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

@keyframes rwBubbleIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes levelUpPulse {
  0%, 100% { filter: none; transform: translateX(-50%) scale(1); }
  35% { filter: saturate(2.2) brightness(1.25); transform: translateX(-50%) scale(1.06); }
  70% { filter: hue-rotate(35deg) saturate(1.7); transform: translateX(-50%) scale(0.98); }
}

@keyframes bellPulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-8deg); }
  50% { transform: translateY(2px) rotate(8deg); }
  75% { transform: translateY(-3px) rotate(-6deg); }
}

@keyframes screenGlitch {
  0%, 100% { transform: translate(0,0); filter: none; }
  20% { transform: translate(5px,-2px); filter: hue-rotate(55deg) saturate(1.9); }
  40% { transform: translate(-4px,3px); filter: contrast(1.4); }
  60% { transform: translate(3px,1px); filter: hue-rotate(-35deg) saturate(1.6); }
  80% { transform: translate(-2px,-3px); filter: brightness(1.25); }
}

@keyframes fakeBlink {
  0%, 100% { filter: saturate(1); transform: translateY(1px); }
  50% { filter: saturate(1.8); transform: translateY(-2px); }
}

@keyframes acceptJitter {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(4px,-2px); }
  66% { transform: translate(-3px,2px); }
}

@keyframes declineJitter {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-5px,1px); }
}

@keyframes dodgePulse {
  0% { filter: saturate(1); }
  45% { filter: saturate(2.1) brightness(1.16); }
  100% { filter: saturate(1); }
}

@keyframes labelStrobe {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(2.2) brightness(1.22); }
}

@media (max-width: 390px) {
  .consent-area { padding-inline: 10px; }
  .name-row {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 8px;
  }
  .leaderboard-grid,
  .death-boards {
    grid-template-columns: minmax(0, 1fr);
  }
  .notes-stat-grid,
  .notes-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric-grid { gap: 6px; }
  .metric { padding-inline: 5px; }
  .metric strong { font-size: 19px; }
  .game-popup.banner .gp-action-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .game-popup.banner .gp-decline {
    min-height: 32px;
  }
  .level-hud {
    top: calc(58px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
