.antidoom-root {
  all: initial;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2147483647;
  box-sizing: border-box;
  transform: rotate(var(--antidoom-rotate, 0deg));
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.antidoom-card {
  position: relative;
  width: min(320px, calc(100vw - 24px));
  color: #171717;
  background:
    linear-gradient(135deg, rgba(255, 243, 71, 0.99), rgba(255, 140, 66, 0.99) 58%, rgba(255, 84, 84, 0.98));
  border: 3px solid #171717;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.28);
  border-radius: 14px;
  overflow: hidden;
  transform-origin: center;
  animation: antidoom-burst-in 280ms cubic-bezier(0.2, 0.9, 0.2, 1.15);
}

/* --- Windows 98 system dialog --- */
.antidoom-card[data-style="win98"] {
  background: #c0c0c0;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4),
    inset 2px 2px 0 #fff, inset -2px -2px 0 #808080;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
}

.antidoom-card[data-style="win98"] .antidoom-header {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
}

.antidoom-card[data-style="win98"] .antidoom-message {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 20px;
  text-transform: none;
  color: #000;
}

.antidoom-card[data-style="win98"] .antidoom-body::before { content: none; }

.antidoom-card[data-style="win98"] .antidoom-kicker {
  background: #ffffe1;
  border-color: #000;
  border-radius: 0;
}

.antidoom-card[data-style="win98"] .antidoom-button {
  background: #c0c0c0;
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080;
  text-transform: none;
}

/* --- Neon "YOU ARE THE 1000th VISITOR" --- */
.antidoom-card[data-style="neon"] {
  background: #05010a;
  border: 3px solid #39ff14;
  box-shadow: 0 0 18px #39ff14, 0 0 40px rgba(255, 0, 200, 0.6);
  color: #39ff14;
}

.antidoom-card[data-style="neon"] .antidoom-header {
  background: #ff00c8;
  color: #05010a;
}

.antidoom-card[data-style="neon"] .antidoom-message {
  color: #fdff00;
  text-shadow: 0 0 8px #39ff14;
  animation: antidoom-blink 0.7s steps(2, start) infinite;
}

.antidoom-card[data-style="neon"] .antidoom-subtext { color: #39ff14; }
.antidoom-card[data-style="neon"] .antidoom-body::before {
  background: #fdff00;
  color: #ff00c8;
  border-color: #39ff14;
}

.antidoom-card[data-style="neon"] .antidoom-kicker {
  background: #ff00c8;
  color: #fff;
  border-color: #39ff14;
}

.antidoom-card[data-style="neon"] .antidoom-button {
  background: #39ff14;
  color: #05010a;
  border-color: #fdff00;
}

/* --- MS-DOS terminal --- */
.antidoom-card[data-style="dos"] {
  background: #000;
  border: 2px solid #00ff66;
  border-radius: 0;
  box-shadow: 0 0 0 2px #000, 6px 6px 0 rgba(0, 255, 102, 0.25);
  color: #00ff66;
  font-family: "Courier New", monospace;
}

.antidoom-card[data-style="dos"] .antidoom-header {
  background: #00ff66;
  color: #000;
  font-family: "Courier New", monospace;
}

.antidoom-card[data-style="dos"] .antidoom-message {
  font-family: "Courier New", monospace;
  color: #00ff66;
  font-size: 18px;
  text-transform: none;
}

.antidoom-card[data-style="dos"] .antidoom-subtext {
  color: #00cc55;
  font-family: "Courier New", monospace;
}

.antidoom-card[data-style="dos"] .antidoom-body::before { content: "C:\\>"; background: #000; color: #00ff66; border-color: #00ff66; transform: none; }

.antidoom-card[data-style="dos"] .antidoom-kicker {
  background: #000;
  color: #00ff66;
  border-color: #00ff66;
  border-radius: 0;
}

.antidoom-card[data-style="dos"] .antidoom-button {
  background: #000;
  color: #00ff66;
  border-color: #00ff66;
  border-radius: 0;
  font-family: "Courier New", monospace;
}

/* --- Fake browser toolbar / "your PC is infected" --- */
.antidoom-card[data-style="toolbar"] {
  background: #f4f4f4;
  border: 2px solid #b00020;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(176, 0, 32, 0.5);
  color: #202020;
}

.antidoom-card[data-style="toolbar"] .antidoom-header {
  background: linear-gradient(#fff, #dcdcdc);
  color: #b00020;
  text-transform: none;
  letter-spacing: 0;
}

.antidoom-card[data-style="toolbar"] .antidoom-message {
  color: #b00020;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.antidoom-card[data-style="toolbar"] .antidoom-body::before {
  content: "⚠ WARNING";
  background: #b00020;
  color: #fff;
  border-color: #b00020;
}

.antidoom-card[data-style="toolbar"] .antidoom-kicker {
  background: #fff3cd;
  border-color: #b00020;
}

.antidoom-card[data-style="toolbar"] .antidoom-button-primary {
  background: #2e7d32;
  color: #fff;
  border-color: #1b5e20;
}

.antidoom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: move;
  user-select: none;
  touch-action: none;
  background:
    linear-gradient(90deg, #171717, #363636);
  color: #fff7cc;
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.antidoom-body {
  position: relative;
  padding: 18px 16px 12px;
}

.antidoom-body::before {
  content: "ACT NOW";
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 6px;
  border: 2px solid #171717;
  background: #fff;
  color: #d43131;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: rotate(8deg);
}

.antidoom-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 2px solid #171717;
  background: #fff8cf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.antidoom-message {
  margin: 0;
  max-width: 280px;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.antidoom-subtext {
  margin: 10px 0 0;
  max-width: 310px;
  color: rgba(23, 23, 23, 0.86);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.antidoom-footer {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}

.antidoom-button {
  all: unset;
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 10px;
  border: 2px solid #171717;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.antidoom-button-primary {
  background: #171717;
  color: #fff7cc;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12);
}

.antidoom-button-secondary {
  background: rgba(255, 255, 255, 0.4);
  color: #171717;
}

.antidoom-button-snooze {
  background: transparent;
  color: rgba(23, 23, 23, 0.55);
  border-color: rgba(23, 23, 23, 0.3);
  font-size: 11px;
}

.antidoom-close {
  all: unset;
  cursor: pointer;
  color: inherit;
  font-size: 22px;
  line-height: 1;
}

/* Delay tax: close X shows a countdown and can't be clicked yet. */
.antidoom-close-locked {
  cursor: not-allowed;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.antidoom-button-snooze:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* --- Clipped burst shapes: 5-point star & spiky sun --- */
.antidoom-card[data-style="star"],
.antidoom-card[data-style="sunburst"] {
  width: min(400px, calc(100vw - 24px));
  height: min(400px, calc(100vw - 24px));
  padding: 24% 22% 22%;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  filter: drop-shadow(3px 4px 0 rgba(23, 23, 23, 0.55));
}

.antidoom-card[data-style="star"] {
  width: min(460px, calc(100vw - 24px));
  height: min(413px, calc((100vw - 24px) * 0.897));
  /* burst art sits ~2% high (SVG translate -5.56); nudge text up to match */
  padding: 24% 29% 28%;
  background: center/contain no-repeat
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 310.93 278.96'><path d='M153.75 37l13.92 44 69.13-67.75-21.27 95.5h73.11l-46.92 53L297 179.3l-81.47 19.22 32.88 49.09-71.06-21.35-19 40.8-28.24-40.8-71.02 44.56 23.21-83.9-47.43-5.3 42.52-28-66.89-31.45 93.07-1.82-21.27-95.5L130.15 81z' transform='translate(.24 -5.56)' fill='%23fff' stroke='%23000' stroke-width='5' stroke-miterlimit='10'/></svg>");
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.85));
  color: #000;
  font-family: "Courier New", monospace;
}

/* Star is stripped down: just the message and one button. */
.antidoom-card[data-style="star"] .antidoom-header,
.antidoom-card[data-style="star"] .antidoom-kicker,
.antidoom-card[data-style="star"] .antidoom-button-secondary,
.antidoom-card[data-style="star"] .antidoom-button-snooze {
  display: none;
}

.antidoom-card[data-style="star"] .antidoom-message {
  font-family: "Courier New", monospace;
  font-size: 17px;
  color: #000;
  letter-spacing: 0;
}

.antidoom-card[data-style="star"] .antidoom-footer {
  justify-content: center;
  padding-top: 12px;
}

.antidoom-card[data-style="star"] .antidoom-button-primary {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 3px 3px 0 #000;
  font-family: "Courier New", monospace;
}

.antidoom-card[data-style="sunburst"] {
  background: radial-gradient(circle at 50% 45%, #fff27a, #ffbf1f 55%, #ff7a00);
  clip-path: polygon(50.0% 0.0%, 57.8% 10.8%, 69.1% 3.8%, 72.2% 16.7%, 85.4% 14.6%, 83.3% 27.8%, 96.2% 30.9%, 89.2% 42.2%, 100.0% 50.0%, 89.2% 57.8%, 96.2% 69.1%, 83.3% 72.2%, 85.4% 85.4%, 72.2% 83.3%, 69.1% 96.2%, 57.8% 89.2%, 50.0% 100.0%, 42.2% 89.2%, 30.9% 96.2%, 27.8% 83.3%, 14.6% 85.4%, 16.7% 72.2%, 3.8% 69.1%, 10.8% 57.8%, 0.0% 50.0%, 10.8% 42.2%, 3.8% 30.9%, 16.7% 27.8%, 14.6% 14.6%, 27.8% 16.7%, 30.9% 3.8%, 42.2% 10.8%);
}

/* Both burst shapes hide the header: wide sponsor lines clip on the spikes,
   and the dodging close button would land outside the clipped shape. */
.antidoom-card[data-style="star"] .antidoom-header,
.antidoom-card[data-style="sunburst"] .antidoom-header {
  display: none;
}

.antidoom-card[data-style="star"] .antidoom-body,
.antidoom-card[data-style="sunburst"] .antidoom-body {
  padding: 4px 0;
}

.antidoom-card[data-style="star"] .antidoom-body::before,
.antidoom-card[data-style="sunburst"] .antidoom-body::before,
.antidoom-card[data-style="star"] .antidoom-subtext,
.antidoom-card[data-style="sunburst"] .antidoom-subtext {
  display: none;
}

.antidoom-card[data-style="star"] .antidoom-kicker,
.antidoom-card[data-style="sunburst"] .antidoom-kicker {
  background: #171717;
  color: #fff27a;
  margin-bottom: 6px;
}

.antidoom-card[data-style="star"] .antidoom-message,
.antidoom-card[data-style="sunburst"] .antidoom-message {
  max-width: none;
  font-size: 16px;
  line-height: 1.1;
}

/* The star's jagged burst narrows sharply — wrap its text into short lines. */
.antidoom-card[data-style="star"] .antidoom-message {
  max-width: 175px;
  margin-left: auto;
  margin-right: auto;
}

.antidoom-card[data-style="star"] .antidoom-footer,
.antidoom-card[data-style="sunburst"] .antidoom-footer {
  justify-content: center;
  padding: 8px 0 0;
  gap: 6px;
}

.antidoom-card[data-style="star"] .antidoom-button,
.antidoom-card[data-style="sunburst"] .antidoom-button {
  padding: 7px 9px;
  font-size: 11px;
}

/* --- "Sorry, we're LOCKING IN" storefront sign --- */
.antidoom-card[data-style="closedsign"] {
  width: min(400px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border: 3px solid #111;
  border-radius: 18px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px #111, 10px 12px 0 rgba(0, 0, 0, 0.25);
  overflow: visible;
  font-family: "Arial Black", Arial, sans-serif;
}

.antidoom-card[data-style="closedsign"] .antidoom-header,
.antidoom-card[data-style="closedsign"] .antidoom-kicker,
.antidoom-card[data-style="closedsign"] .antidoom-button-secondary,
.antidoom-card[data-style="closedsign"] .antidoom-button-snooze {
  display: none;
}

.antidoom-card[data-style="closedsign"] .antidoom-body {
  padding: 22px 20px 8px;
  text-align: center;
}

.antidoom-card[data-style="closedsign"] .antidoom-body::before {
  content: "SORRY, WE'RE\A LOCKING IN";
  white-space: pre-line;
  position: static;
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  transform: none;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 40px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #57c7ea 0%, #8fe06a 55%, #d7f43a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #111;
}

.antidoom-card[data-style="closedsign"] .antidoom-subtext {
  display: none;
}

.antidoom-card[data-style="closedsign"] .antidoom-message {
  max-width: none;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

.antidoom-card[data-style="closedsign"] .antidoom-footer {
  justify-content: center;
  padding: 10px 20px 18px;
}

.antidoom-card[data-style="closedsign"] .antidoom-button-primary {
  background: linear-gradient(135deg, #57c7ea, #8fe06a);
  color: #111;
  border: 2px solid #111;
  border-radius: 8px;
}

/* --- Comic speech bubble --- */
.antidoom-card[data-style="bubble"] {
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border: 3px solid #111;
  border-radius: 42px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
  overflow: visible;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}

.antidoom-card[data-style="bubble"]::before {
  content: "";
  position: absolute;
  left: 46px;
  top: 100%;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #111;
}

.antidoom-card[data-style="bubble"]::after {
  content: "";
  position: absolute;
  left: 50px;
  top: 100%;
  margin-top: -3px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #fff;
}

.antidoom-card[data-style="bubble"] .antidoom-header,
.antidoom-card[data-style="bubble"] .antidoom-kicker,
.antidoom-card[data-style="bubble"] .antidoom-subtext,
.antidoom-card[data-style="bubble"] .antidoom-body::before,
.antidoom-card[data-style="bubble"] .antidoom-button-secondary,
.antidoom-card[data-style="bubble"] .antidoom-button-snooze {
  display: none;
}

.antidoom-card[data-style="bubble"] .antidoom-body {
  padding: 22px 26px 6px;
  text-align: center;
}

.antidoom-card[data-style="bubble"] .antidoom-message {
  max-width: none;
  color: #111;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.antidoom-card[data-style="bubble"] .antidoom-footer {
  justify-content: center;
  padding: 6px 26px 20px;
}

.antidoom-card[data-style="bubble"] .antidoom-button-primary {
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 20px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}

/* --- 3D extruded "WARNING: ATTENTION HIJACKING" --- */
.antidoom-card[data-style="warning3d"] {
  width: min(430px, calc(100vw - 24px));
  background: #1b1030;
  color: #fff;
  border: 3px solid #04e7fe;
  border-radius: 12px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.antidoom-card[data-style="warning3d"] .antidoom-header,
.antidoom-card[data-style="warning3d"] .antidoom-kicker,
.antidoom-card[data-style="warning3d"] .antidoom-subtext,
.antidoom-card[data-style="warning3d"] .antidoom-button-secondary,
.antidoom-card[data-style="warning3d"] .antidoom-button-snooze {
  display: none;
}

.antidoom-card[data-style="warning3d"] .antidoom-body {
  padding: 28px 20px 8px;
  text-align: center;
}

.antidoom-card[data-style="warning3d"] .antidoom-body::before {
  content: "WARNING:\A ATTENTION HIJACKING";
  white-space: pre-line;
  position: static;
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 34px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ff79ff;
  text-shadow:
    -1px -1px 0 #04e7fe, 1px 1px 0 #3f2e53, 2px 2px 0 #3f2e53,
    3px 3px 0 #3f2e53, 4px 4px 0 #3f2e53, 5px 5px 0 #2a1f38, 6px 6px 0 #2a1f38;
  animation: antidoom-sway 1.8s ease-in-out infinite alternate;
}

.antidoom-card[data-style="warning3d"] .antidoom-message {
  max-width: none;
  color: #e5d8ff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.antidoom-card[data-style="warning3d"] .antidoom-footer {
  justify-content: center;
  padding: 12px 20px 18px;
}

.antidoom-card[data-style="warning3d"] .antidoom-button-primary {
  background: #ff79ff;
  color: #1b1030;
  border: 2px solid #04e7fe;
  border-radius: 8px;
}

@keyframes antidoom-sway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(2deg); }
}

/* --- Surgeon General's warning label --- */
.antidoom-card[data-style="surgeon"] {
  width: min(400px, calc(100vw - 24px));
  background: #f3f1e7;
  color: #111;
  border: 4px solid #111;
  border-radius: 0;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.antidoom-card[data-style="surgeon"] .antidoom-header,
.antidoom-card[data-style="surgeon"] .antidoom-kicker,
.antidoom-card[data-style="surgeon"] .antidoom-subtext,
.antidoom-card[data-style="surgeon"] .antidoom-message,
.antidoom-card[data-style="surgeon"] .antidoom-button-secondary,
.antidoom-card[data-style="surgeon"] .antidoom-button-snooze {
  display: none;
}

.antidoom-card[data-style="surgeon"] .antidoom-body {
  padding: 18px;
}

.antidoom-card[data-style="surgeon"] .antidoom-body::before {
  content: "SURGEON GENERAL'S WARNING:\A Social media is dangerous for your mental health.";
  white-space: pre-line;
  position: static;
  display: block;
  transform: none;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid #111;
  background: transparent;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: #111;
}

.antidoom-card[data-style="surgeon"] .antidoom-footer {
  justify-content: center;
  padding: 0 18px 18px;
}

.antidoom-card[data-style="surgeon"] .antidoom-button-primary {
  background: #111;
  color: #f3f1e7;
  border: 2px solid #111;
  border-radius: 0;
  font-family: Arial, sans-serif;
}

/* --- Ringing alarm clock --- */
.antidoom-card[data-style="clock"] {
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border: 3px solid #e6342a;
  border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

.antidoom-card[data-style="clock"] .antidoom-header,
.antidoom-card[data-style="clock"] .antidoom-kicker,
.antidoom-card[data-style="clock"] .antidoom-subtext,
.antidoom-card[data-style="clock"] .antidoom-message,
.antidoom-card[data-style="clock"] .antidoom-button-secondary,
.antidoom-card[data-style="clock"] .antidoom-button-snooze {
  display: none;
}

.antidoom-card[data-style="clock"] .antidoom-body {
  padding: 22px 20px 6px;
  text-align: center;
}

.antidoom-card[data-style="clock"] .antidoom-body::before {
  content: "";
  display: block;
  height: 108px;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  top: auto;
  right: auto;
  position: static;
  background: center/contain no-repeat
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 122'><g fill='none' stroke='%23111' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'><circle cx='28' cy='26' r='15' fill='%23e6342a'/><circle cx='92' cy='26' r='15' fill='%23e6342a'/><line x1='60' y1='9' x2='60' y2='22'/><circle cx='60' cy='70' r='38' fill='%23fff'/><line x1='40' y1='103' x2='32' y2='116'/><line x1='80' y1='103' x2='88' y2='116'/><line x1='60' y1='70' x2='60' y2='46'/><line x1='60' y1='70' x2='79' y2='75'/><circle cx='60' cy='70' r='3.5' fill='%23111' stroke='none'/></g></svg>");
  animation: antidoom-ring 0.25s ease-in-out infinite;
}

.antidoom-card[data-style="clock"] .antidoom-body::after {
  content: "Your precious time is being wasted.";
  display: block;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
}

.antidoom-card[data-style="clock"] .antidoom-footer {
  justify-content: center;
  padding: 12px 20px 18px;
}

.antidoom-card[data-style="clock"] .antidoom-button-primary {
  background: #e6342a;
  color: #fff;
  border: 2px solid #111;
  border-radius: 8px;
}

@keyframes antidoom-ring {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* --- Spinning 3D WordArt flip card --- */
.antidoom-flip {
  all: initial;
  position: fixed;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483645;
  perspective: 870px;
  pointer-events: none;
  animation: antidoom-flip-fade 9s ease-in-out forwards;
}

.antidoom-flip-inner {
  position: relative;
  width: min(440px, 90vw);
  height: 150px;
  transform-style: preserve-3d;
  animation: antidoom-flip-spin 3.5s linear infinite;
}

.antidoom-flip-front,
.antidoom-flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #0000aa;
  border-radius: 12px;
  box-shadow: 2px 3px 10px rgba(44, 44, 55, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.antidoom-flip-front {
  background: wheat;
  transform: rotateY(0deg);
}

.antidoom-flip-back {
  background: #d7fbff;
  transform: rotateY(180deg);
}

.antidoom-flip-text {
  display: block;
  font-family: Impact, "Arial Narrow Bold", Haettenschweiler, sans-serif;
  font-size: 46px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  color: #24c0fd;
  -webkit-text-stroke: 0.01em #0000aa;
  text-shadow: 0.09em -0.09em 0 #0000aa;
}

@keyframes antidoom-flip-spin {
  to { transform: rotateY(360deg); }
}

@keyframes antidoom-flip-fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Wavy rainbow WordArt "FREE YOURSELF" --- */
.antidoom-wavy {
  all: initial;
  position: fixed;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483645;
  pointer-events: none;
  animation: antidoom-wavy-fade 8s ease-in-out forwards;
}

.antidoom-wavy-card {
  position: relative;
  padding: 40px 50px;
  border-radius: 8px;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.antidoom-wavy-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: repeating-linear-gradient(
    135deg,
    #ffff9f,
    #93dfb8,
    #ffff9f,
    #00cc99,
    #ffff9f 320px
  );
  filter: url("#antidoom-turb-bg");
}

.antidoom-wavy-inner {
  position: relative;
  filter: url("#antidoom-turb-text");
}

.antidoom-wavy-fill,
.antidoom-wavy-outline {
  margin: 0;
  font-family: "Comic Sans MS", "Chewy", "Arial Black", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 66px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: none;
}

.antidoom-wavy-space {
  display: inline-block;
  width: 0.3em;
}

.antidoom-wavy-outline {
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  -webkit-text-stroke: 4px rgba(0, 0, 0, 0.72);
}

@keyframes antidoom-wavy-fade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Ghost text that fades over the page --- */
.antidoom-ghost {
  all: initial;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2147483646;
  max-width: 92vw;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(28px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: rgba(23, 23, 23, 0.82);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.6);
  pointer-events: none;
  animation: antidoom-ghost-fade 3.4s ease-in-out forwards;
}

@keyframes antidoom-ghost-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes antidoom-blink {
  50% { opacity: 0.25; }
}

@keyframes antidoom-burst-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.88) rotate(4deg);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
}
