:root {
  --rc-blue: #1a73e8;
  --rc-blue-dark: #1765cc;
  --rc-green: #0f9d58;
  --rc-text: #202124;
  --rc-muted: #555;
  --gold: #c4a574;
  --ink: #2c1810;
  --cream: #f4eadb;
  --rose: #e7c4b8;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui, Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
}
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.screen { min-height: 100dvh; }
[hidden] { display: none !important; }

/* ========== GATE ========== */
.screen-gate {
  background: #f5f5f5;
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
  font-family: var(--font-ui, Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  color: var(--rc-text);
}

.gate-inner {
  width: min(520px, 100%);
  max-width: 100%;
  text-align: center;
}

.gate-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #80868b;
}

.gate-title {
  margin: 0 0 18px;
  max-width: 100%;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.gate-sub {
  margin: 10px 0 28px;
  color: #5f6368;
  font-size: 14px;
}
.gate-sub:empty { display: none; }

.rc-anchor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 304px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 14px 12px 16px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-align: left;
}

.rc-anchor:focus-visible {
  outline: 2px solid var(--rc-blue);
  outline-offset: 3px;
}

.rc-anchor-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.rc-checkbox {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 auto;
}

.rc-check {
  position: absolute;
  inset: 1px;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
.rc-check path {
  fill: none;
  stroke: var(--rc-green);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rc-anchor.is-ok .rc-checkbox { border-color: transparent; }
.rc-anchor.is-ok .rc-check {
  opacity: 1;
  transform: scale(1);
  transition: 0.18s ease;
}

.rc-spin {
  position: absolute;
  inset: 2px;
  border: 3px solid var(--rc-blue);
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0;
}
.rc-anchor.is-wait .rc-spin { opacity: 1; animation: rcspin 0.7s linear infinite; }
.rc-anchor.is-wait .rc-checkbox { border-color: transparent; }
@keyframes rcspin { to { transform: rotate(360deg); } }

.rc-anchor-text { font-size: 14px; font-weight: 400; }

.rc-anchor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  flex: 0 0 auto;
}
.rc-logo-mark { width: 32px; height: 32px; }
.rc-logo-mark svg { width: 100%; height: 100%; display: block; }
.rc-logo-name {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: #555;
  letter-spacing: -0.02em;
}
.rc-logo-links { font-size: 8px; color: #9b9b9b; }

.gate-foot {
  margin: 22px auto 0;
  max-width: 320px;
  font-size: 12px;
  color: #80868b;
  line-height: 1.45;
}

/* ========== CHALLENGE ========== */
.rc-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(245, 245, 245, 0.94);
  backdrop-filter: blur(6px);
}

.rc-challenge {
  width: min(368px, 100%);
  background: #fff;
  border: 1px solid #d3d3d3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: var(--font-ui, Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  overflow: hidden;
}

.rc-challenge.is-shake { animation: shake 0.35s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.rc-head {
  background: var(--rc-blue);
  color: #fff;
  padding: 22px 22px 18px;
}
.rc-head-line { margin: 0; font-size: 14px; font-weight: 400; }
.rc-head-title {
  margin: 2px 0 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}
.rc-head-sub { margin: 0; font-size: 13px; opacity: 0.95; }

.rc-body { padding: 8px; }

.rc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.rc-grid.is-loading { opacity: 0.35; pointer-events: none; }

.rc-tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #e8eaed center / cover no-repeat;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}
.rc-tile img, .rc-tile object {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.rc-tile.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 115, 232, 0.42);
}
.rc-tile.is-on::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rc-blue) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9.2 16.2 5 12l1.4-1.4 2.8 2.8 8-8L18.6 6.8z"/></svg>') center / 16px no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.rc-math { padding: 10px 10px 4px; }
.rc-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 112px;
  margin-bottom: 14px;
  background:
    repeating-linear-gradient(90deg, #2b2b2b 0 2px, #1a1a1a 2px 6px),
    #222;
  color: #f3f3f3;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: "Times New Roman", serif;
  transform: skewX(-6deg) rotate(-1.5deg);
  text-shadow: 2px 0 #0ff, -2px 0 #f0f;
  user-select: none;
}
.rc-op { font-size: 40px; }

.rc-field { display: block; }
.rc-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--rc-muted);
}
.rc-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d3d3d3;
  border-radius: 2px;
  font-size: 18px;
  outline: none;
}
.rc-field input:focus { border-color: var(--rc-blue); }

.rc-error {
  min-height: 20px;
  margin: 8px 10px 4px;
  color: #d93025;
  font-size: 13px;
  font-weight: 500;
}

.rc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 10px;
  border-top: 1px solid #e0e0e0;
}
.rc-tools { display: flex; gap: 2px; }
.rc-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #555;
}
.rc-icon svg { width: 100%; height: 100%; display: block; }
.rc-verify {
  min-width: 128px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: var(--rc-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.rc-verify:hover { background: var(--rc-blue-dark); }

/* ========== PRETTY ========== */
.screen-pretty {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 20% -10%, #fff6e8 0%, transparent 55%),
    radial-gradient(900px 600px at 110% 20%, #f3d5c8 0%, transparent 50%),
    linear-gradient(180deg, #f7efe4 0%, #ead9c6 100%);
  color: var(--ink);
  font-family: var(--font-pretty, Manrope, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif);
}

#pretty-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pretty-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  right: -10vw;
  top: 10vh;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.pretty-inner {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0 28px;
  text-align: center;
}

.pretty-stage {
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.pretty-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a6a4a;
}

.pretty-name {
  margin: 8px 0 12px;
  font-family: var(--font-display, "Cormorant Garamond", Palatino, Georgia, serif);
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 600;
  font-style: italic;
  line-height: 0.9;
  background: linear-gradient(120deg, #3b2218, #c4a574 45%, #7a3e3e 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: name-shimmer 8s ease infinite;
}
@keyframes name-shimmer {
  0%, 100% { filter: drop-shadow(0 10px 24px rgba(196, 165, 116, 0.18)); }
  50% { filter: drop-shadow(0 12px 32px rgba(214, 120, 120, 0.28)); }
}

.pretty-lead {
  margin: 0 auto 28px;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
  color: #5a4034;
}

.pretty-hero {
  margin: 0;
  width: min(280px, 70vw);
}
.pretty-hero img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 160px 160px 28px 28px;
  box-shadow: 0 24px 60px rgba(80, 40, 20, 0.22);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.pretty-hero figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #8a6a4a;
}

.pretty-letter {
  margin: 22px auto 16px;
  max-width: 540px;
  font-family: var(--font-display, "Cormorant Garamond", Palatino, Georgia, serif);
  font-size: 18px;
  line-height: 1.45;
  color: #4a3028;
}

.pretty-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.pretty-strip img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(80, 40, 20, 0.16);
  animation: bob 3.4s ease-in-out infinite;
}
.pretty-strip img:nth-child(2) { animation-delay: 0.4s; }
.pretty-strip img:nth-child(3) { animation-delay: 0.8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.pretty-copy .gift-btn { margin-top: 8px; }

.gift-btn {
  position: relative;
  padding: 16px 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #d7b07a, #b8894c);
  color: #2c1810;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(184, 137, 76, 0.35);
  overflow: hidden;
}
.gift-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%);
  transform: translateX(-120%);
  animation: shine 2.8s ease infinite;
}
@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}
.gift-btn span { position: relative; z-index: 1; }
.gift-btn:hover { transform: translateY(-1px); }

/* ========== SCARE SEQUENCE ========== */
.scare {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 8, 12, 0.28);
  overflow: hidden;
  user-select: none;
}
#scare-wins, #sticker-rain { position: absolute; inset: 0; pointer-events: none; }
#scare-wins > * { pointer-events: auto; }

.xp {
  position: absolute;
  width: min(380px, 92vw);
  background: #ece9d8;
  border: 3px solid #0831d9;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  font-family: Tahoma, "Segoe UI", sans-serif;
  color: #000;
  animation: pop-in 0.18s ease;
}
.xp-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  background: linear-gradient(180deg, #0a3ad8, #1660e8 12%, #0a3ad8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 1px 1px #003;
}
.xp-x {
  width: 22px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  background: #c00;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.xp-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 14px 10px;
  font-size: 13px;
  white-space: pre-line;
}
.xp-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e31c23;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #7a0d10;
}
.xp-actions { text-align: right; padding: 0 12px 12px; }
.xp-ok {
  min-width: 88px;
  padding: 4px 16px;
  border: 2px solid #003;
  background: #ece9d8;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
}

.term {
  position: absolute;
  width: min(440px, 94vw);
  background: #0b0b0b;
  color: #39ff14;
  border: 2px solid #39ff14;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.25);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  animation: pop-in 0.18s ease;
}
.term-bar {
  padding: 6px 10px;
  background: #111;
  color: #39ff14;
  border-bottom: 1px solid #39ff14;
  font-weight: 700;
}
.term-body { padding: 12px; min-height: 150px; line-height: 1.45; }
.term-bar-track { margin-top: 10px; height: 10px; background: #133; }
.term-bar-fill { height: 100%; width: 0; background: #39ff14; }

.tg {
  position: absolute;
  width: min(360px, 92vw);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #111;
  animation: pop-in 0.18s ease;
}
.tg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #2aabee;
  color: #fff;
}
.tg-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff url("../img/elif/shock.jpg") center / cover;
}
.tg-bar strong { display: block; font-size: 14px; }
.tg-bar span { font-size: 11px; opacity: 0.9; }
.tg-body { padding: 12px 14px 16px; font-size: 13px; }
.tg-log { min-height: 92px; color: #333; }
.tg-log div { margin: 4px 0; }
.tg-track { height: 8px; background: #e8f4fb; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.tg-fill { height: 100%; width: 0; background: #2aabee; }

.sticker-win {
  position: absolute;
  width: min(340px, 92vw);
  background: #fff;
  border: 4px solid #2aabee;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-family: "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  animation: pop-in 0.18s ease;
}
.sticker-win img { width: 52px; height: 52px; object-fit: contain; }
.sticker-win > img { width: 76px; height: 76px; }
.sticker-fall {
  position: absolute;
  width: 110px;
  height: 110px;
  object-fit: contain;
  pointer-events: none;
  animation: sticker-fall 2.4s linear forwards;
}
@keyframes pop-in {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes sticker-fall {
  0% { transform: translateY(-12vh) rotate(-20deg) scale(0.5); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(30deg) scale(1); opacity: 1; }
}

/* ========== CHAOS ========== */
.screen-chaos {
  position: relative;
  overflow-x: hidden;
  padding: 0 12px 130px;
  font-family: "Times New Roman", Times, serif;
  color: #ffe7a0;
  text-align: center;
  user-select: none;
  background-color: #160b22;
  background-image:
    radial-gradient(#d4a017 1.2px, transparent 1.4px),
    radial-gradient(#7b1c3a 1px, transparent 1.2px),
    repeating-linear-gradient(135deg, #120818 0 14px, #1c0e2c 14px 28px);
  background-size: 28px 28px, 42px 42px, auto;
  background-position: 0 0, 14px 18px, 0 0;
}
.screen-chaos::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(0, 0, 0, 0.35) 3px 4px
  );
}

.chaos-hazard {
  margin: 0 -12px 10px;
  padding: 8px 8px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(14px, 3.6vw, 22px);
  letter-spacing: 0.08em;
  color: #fff;
  background: repeating-linear-gradient(
    -28deg,
    #f5c400 0 16px,
    #111 16px 32px
  );
  text-shadow:
    -1px -1px 0 #000, 1px -1px 0 #000,
    -1px 1px 0 #000, 1px 1px 0 #000,
    0 0 8px #000;
}

.chaos-welcome,
.chaos-wordart-sub {
  margin: 8px auto;
  font-style: italic;
  color: #ffd36a;
  text-shadow: 0 0 8px #a30, 1px 1px 0 #000;
}
.chaos-welcome { font-size: 16px; color: #ffe9a0; }
.chaos-wordart-sub {
  font-family: Impact, "Arial Black", sans-serif;
  font-style: normal;
  letter-spacing: 0.12em;
  color: #ffefc2;
  animation: wordart-sub 1.6s ease-in-out infinite;
}
@keyframes wordart-sub {
  50% { letter-spacing: 0.28em; color: #ff9; }
}

.chaos-h1 {
  margin: 6px 8px 4px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(48px, 14vw, 108px);
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.03em;
  transform: skewX(-16deg) scaleY(1.18);
  background: linear-gradient(90deg, #ffe14d, #ff4d00, #ff2bd6, #7c5cff, #ffe14d);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(4px 4px 0 #3b0044);
  animation: wordart-slide 2.8s linear infinite, wordart-bounce 0.9s ease-in-out infinite;
}
@keyframes wordart-slide { to { background-position: 240% 0; } }
@keyframes wordart-bounce {
  0%, 100% { transform: skewX(-16deg) scaleY(1.18) translateY(0); }
  50% { transform: skewX(-16deg) scaleY(1.28) translateY(-8px); }
}

.mar {
  margin: 10px -12px;
  padding: 6px 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(18px, 5vw, 28px);
  color: #3b1500;
  background: linear-gradient(#ffd36a, #c47a12);
  border-top: 4px ridge #fff2b0;
  border-bottom: 4px ridge #6a3b00;
}
.chaos-intro {
  max-width: 720px;
  margin: 14px auto;
  padding: 10px 14px;
  font-size: clamp(18px, 4.6vw, 24px);
  text-align: justify;
  color: #ffe7a0;
  background: rgba(40, 10, 18, 0.55);
  border: 3px groove #c9a227;
}
.chaos-intro::first-letter {
  float: left;
  font-family: Impact, sans-serif;
  font-size: 2.4em;
  line-height: 0.8;
  padding: 4px 8px 0 0;
  color: #ffb347;
}

.chaos-photos {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.chaos-photos img,
.chaos-card img {
  width: min(260px, 78vw);
  max-height: 250px;
  object-fit: cover;
  border: 10px ridge #d4a017;
  outline: 3px solid #4a1030;
  box-shadow: 6px 6px 0 #000;
  background: #2a1020;
  filter: contrast(1.15) saturate(1.25);
}
.spin-slow { animation: sway 2.4s ease-in-out infinite; }
.tilt { transform: rotate(9deg) skewX(-6deg); }
.blink { animation: blink 0.7s steps(1) infinite; color: #7b001c; }
@keyframes sway {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
@keyframes blink { 50% { opacity: 0; } }

.chaos-btn,
.chaos-card button,
.run,
.virus button,
.cookie button,
.test-link button {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(16px, 4.2vw, 26px);
  padding: 12px 18px;
  margin: 8px;
  color: #fff8dc;
  text-shadow: 2px 2px 0 #4a0000;
  background: linear-gradient(#ffd36a, #e07010 45%, #8a1c00);
  border: 4px ridge #ffe9a0;
  box-shadow: 4px 4px 0 #000;
}

.run { position: fixed; z-index: 30; }

.chaos-card {
  background:
    repeating-linear-gradient(180deg, #fff4cc 0 28px, #f3e0a6 28px 56px);
  color: #3b1500;
  padding: 18px 14px 22px;
  margin: 18px auto;
  max-width: 740px;
  border: 8px ridge #a97810;
  box-shadow: 10px 10px 0 #000;
  text-align: center;
}
.chaos-card h2,
.chaos-card h3 {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 400;
  color: #4a1030;
  background: linear-gradient(#ffe08a, #d7a12a);
  border: 3px inset #7a4a00;
  padding: 6px 8px;
  text-transform: uppercase;
}
.chaos-card h2 { font-size: clamp(22px, 5vw, 34px); }
.chaos-card h3 { font-size: clamp(16px, 3.6vw, 22px); }
.chaos-card p, .chaos-card ul { font-size: 18px; }
.chaos-card ul {
  text-align: left;
  display: inline-block;
  padding-left: 22px;
}
.tiny { font-size: 12px; font-family: Tahoma, sans-serif; color: #5a3010; }

.dvd {
  position: fixed;
  z-index: 12;
  font-family: Impact, "Arial Black", sans-serif;
  font-style: italic;
  font-size: clamp(22px, 6vw, 42px);
  font-weight: 900;
  color: #ffd36a;
  text-shadow: 3px 3px #4a1030, 0 0 12px #ff7a00;
  pointer-events: none;
}

.chat {
  position: fixed;
  right: 6px;
  bottom: 6px;
  z-index: 20;
  width: 168px;
  height: 180px;
  overflow: auto;
  padding: 6px;
  background: #001040;
  color: #ffef9a;
  border: 3px ridge #c9a227;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  text-align: left;
}

.virus {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 80;
  width: min(340px, 92vw);
  transform: translate(-50%, -50%);
  background: #000060;
  color: #ffef9a;
  font-family: Tahoma, "Segoe UI", sans-serif;
  font-size: clamp(16px, 4.6vw, 22px);
  padding: 0 16px 16px;
  border: 6px ridge #c0c0c0;
  box-shadow: 0 0 0 4px #000, 12px 12px 0 #000;
}
.virus-bar {
  margin: 0 -16px 12px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.virus button {
  display: block;
  width: calc(100% - 16px);
  margin: 12px auto 0;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #3b1500;
  color: #ffd36a;
  border-top: 4px ridge #c9a227;
  font-family: Tahoma, sans-serif;
  font-size: 15px;
}

.win98 {
  position: fixed;
  z-index: 70;
  width: min(280px, 86vw);
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  box-shadow: 2px 2px 0 #000;
  font-family: Tahoma, sans-serif;
  text-align: left;
  color: #000;
}
.win98-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.win98-x {
  width: 16px;
  height: 14px;
  padding: 0;
  margin: 0;
  background: #c0c0c0;
  border: 1px solid #fff;
  font-size: 10px;
  line-height: 1;
}
.win98-body { padding: 12px; font-size: 13px; }

.toast {
  position: fixed;
  right: 12px;
  z-index: 60;
  max-width: 240px;
  padding: 10px 12px;
  background: #3b1500;
  color: #ffd36a;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  border: 3px ridge #c9a227;
}

.fly {
  position: fixed;
  z-index: 8;
  width: 90px;
  height: 110px;
  object-fit: cover;
  pointer-events: none;
  border: 4px ridge #d4a017;
}

.cursor-face {
  position: fixed;
  z-index: 90;
  width: 54px;
  height: 54px;
  margin: -20px 0 0 -20px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  border: 3px ridge #d4a017;
}

.meter { margin: 18px auto; max-width: 360px; }
.meter-bar {
  height: 22px;
  background: #1a0810;
  border: 3px inset #7a4a00;
}
.meter-fill {
  width: 67%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #c47a12 0 8px, #ffd36a 8px 16px);
  animation: meter 0.8s linear infinite alternate;
}
@keyframes meter { to { width: 100%; } }
.counter {
  font-family: "Courier New", monospace;
  font-size: 20px;
  color: #7b001c;
  background: #fff4cc;
  display: inline-block;
  padding: 4px 10px;
  border: 3px inset #7a4a00;
}
.ie6 {
  font-size: 13px;
  color: #000080;
  text-decoration: underline;
}
.chaos-webring {
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  color: #0000ee;
  text-decoration: underline;
}

@media (min-width: 860px) {
  .pretty-stage {
    grid-template-columns: 1fr 300px;
    text-align: left;
    justify-items: start;
  }
  .pretty-copy { max-width: 520px; }
  .pretty-lead { margin-left: 0; }
  .pretty-hero { width: 300px; }
}

@media (max-width: 420px) {
  .pretty-inner { padding-top: 28px; }
  .pretty-strip img { width: 64px; height: 64px; }
  .pretty-hero { width: min(220px, 68vw); }
  .rc-head { padding: 16px; }
  .rc-head-title { font-size: 22px; }
}
