/* ============================================================
   CRYPT0 M1LLION$ 1998 — styles.css
   Chaotic on purpose. Organized under the hood.
   ============================================================ */

/* ============================================================
   EMBEDDED FONTS — bundled locally so desktop, Android and iOS
   render identical typography. Open-license lookalikes:
   Comic Neue (Comic Sans MS), Anton (Impact),
   Courier Prime (Courier New), Tinos (Times New Roman),
   Pixelated MS Sans Serif from 98.css (MIT).
   ============================================================ */
@font-face {
  font-family: "Comic Neue";
  src: url("assets/fonts/comic-neue-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("assets/fonts/comic-neue-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tinos";
  src: url("assets/fonts/tinos-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("assets/fonts/ms_sans_serif.woff2") format("woff2"),
       url("assets/fonts/ms_sans_serif.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("assets/fonts/ms_sans_serif_bold.woff2") format("woff2"),
       url("assets/fonts/ms_sans_serif_bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  color: #fff;
  background: #000;
  overflow-x: hidden;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.comic  { font-family: "Comic Neue", "Comic Sans MS", cursive; }
.impact { font-family: "Anton", Impact, "Arial Black", sans-serif; letter-spacing: 1px; }
.times  { font-family: "Tinos", "Times New Roman", serif; }
pre, .lcd, .ascii-chart, .matrix-text { font-family: "Courier Prime", "Courier New", monospace; }

/* the Win95 pixel font must stay crisp, not smoothed */
.win95-btn, .win-titlebar, .panel-title, .badge88, .win95-popup {
  -webkit-font-smoothing: none;
}

.big-text  { font-size: clamp(15px, 4vw, 22px); }
.tiny-text { font-size: 10px; }
.center    { text-align: center; }

/* ============================================================
   BACKGROUND LAYERS (all fixed, stacked, GPU-friendly)
   ============================================================ */
#bg-grid, #bg-stars, #bg-matrix, #bg-checker,
#scanlines, #vignette, #crt-flicker, #glitch-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* rotating purple vaporwave grid */
#bg-grid {
  z-index: -6;
  background:
    linear-gradient(transparent 95%, rgba(255, 0, 255, .45) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255, 0, 255, .45) 95%),
    linear-gradient(180deg, #14002a 0%, #2b0057 60%, #ff00cc22 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  animation: grid-scroll 3s linear infinite;
}
@keyframes grid-scroll { to { background-position: 0 40px, 40px 0, 0 0; } }

/* drifting star field (two layers via gradients) */
#bg-stars {
  z-index: -5;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 130px, #ff0, transparent),
    radial-gradient(2px 2px at 160px 60px, #0ff, transparent),
    radial-gradient(1px 1px at 230px 170px, #fff, transparent),
    radial-gradient(2px 2px at 300px 90px, #f0f, transparent);
  background-size: 340px 200px;
  animation: stars-drift 40s linear infinite;
  opacity: .8;
}
@keyframes stars-drift { to { background-position: -340px 200px; } }

/* matrix rain canvas (drawn by effects.js) */
#bg-matrix { z-index: -4; opacity: .22; }
#matrix-canvas { width: 100%; height: 100%; }

/* slow scrolling checkerboard, very faint */
#bg-checker {
  z-index: -3;
  background:
    repeating-conic-gradient(#fff 0% 25%, transparent 0% 50%) 0 0 / 60px 60px;
  opacity: .03;
  animation: checker-scroll 8s linear infinite;
}
@keyframes checker-scroll { to { background-position: 60px 60px; } }

/* CRT scanlines */
#scanlines {
  z-index: 9000;
  background: repeating-linear-gradient(0deg,
    rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
}

/* vignette */
#vignette {
  z-index: 9001;
  background: radial-gradient(ellipse at center,
    transparent 55%, rgba(0,0,0,.55) 100%);
}

/* CRT flicker */
#crt-flicker {
  z-index: 9002;
  background: rgba(255,255,255,.03);
  animation: crt-flicker .12s steps(2) infinite;
}
@keyframes crt-flicker { 50% { opacity: .4; } }

/* glitch flash (toggled by effects.js) */
#glitch-overlay {
  z-index: 9500;
  opacity: 0;
  background: repeating-linear-gradient(0deg,
    rgba(255,0,255,.35) 0 4px, rgba(0,255,255,.35) 4px 8px, transparent 8px 20px);
  mix-blend-mode: screen;
}
#glitch-overlay.on { animation: glitch-hit .35s steps(3) 1; }
@keyframes glitch-hit {
  0%   { opacity: 1; transform: translateX(-8px) skewX(4deg); }
  50%  { opacity: .7; transform: translateX(10px) skewX(-6deg); }
  100% { opacity: 0; transform: none; }
}
body.glitching { animation: body-glitch .35s steps(4) 1; }
@keyframes body-glitch {
  25% { filter: hue-rotate(90deg) saturate(3); }
  50% { filter: invert(1); }
  75% { filter: hue-rotate(-120deg); }
}

/* ============================================================
   SHARED 90s INGREDIENTS
   ============================================================ */
.blink       { animation: blink 1s steps(1) infinite; }
.blink-slow  { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.rainbow-text {
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-slide 2s linear infinite;
}
@keyframes rainbow-slide { to { background-position: 200% 0; } }

.rainbow-bg {
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 400% 100%;
  animation: rainbow-slide 3s linear infinite;
}

.glow { text-shadow: 0 0 6px #f0f, 0 0 18px #0ff, 3px 3px 0 #000; }

.shake { animation: shake .4s linear infinite; }
.shake-hover:hover { animation: shake .2s linear infinite; }
@keyframes shake {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-3px,2px) rotate(-1deg); }
  75% { transform: translate(3px,-2px) rotate(1deg); }
}

/* windows 95 bevels */
.bevel-out {
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
}
.bevel-in {
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
  background: #fff;
}

/* windows 95 button */
.win95-btn {
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  color: #000;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  padding: 4px 10px;
  cursor: pointer;
  outline: none;
}
.win95-btn:active {
  border-color: #404040 #fff #fff #404040;
  transform: translate(1px,1px);
}
.win95-btn.wide { display: block; width: 100%; margin: 4px 0; text-align: left; }

/* windows 95 titlebar */
.win-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  user-select: none;
}
.titlebar-btns { display: flex; gap: 2px; }
.tb-btn {
  font-style: normal;
  font-weight: bold;
  font-size: 10px;
  width: 16px; height: 14px;
  line-height: 12px;
  text-align: center;
  color: #000;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  cursor: pointer;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 2px 0;
  font-family: "Courier Prime", "Courier New", monospace;
  font-weight: bold;
  font-size: clamp(11px, 3vw, 14px);
  color: #0f0;
  background: #000;
  border-color: #0f0 #050 #050 #0f0;
  box-shadow: 0 0 12px #0f0;
}
.tick-up   { color: #0f0; }
.tick-down { color: #f33; }
.tick-sym  { color: #ff0; }

/* ============================================================
   HEADER
   ============================================================ */
#main-header { text-align: center; padding: 6px 0 0; }

.header-flames {
  font-size: clamp(13px, 4vw, 20px);
  letter-spacing: -4px;
  white-space: nowrap;
  overflow: hidden;
  animation: flame-pulse .5s ease-in-out infinite alternate;
}
.header-flames.flip { transform: scaleY(-1); }
@keyframes flame-pulse { from { filter: brightness(.8); } to { filter: brightness(1.4) saturate(1.5); } }

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2.5vw, 20px);
  padding: 0 4px;
}
.header-center { min-width: 0; }

#site-logo { margin: 0; font-size: clamp(22px, 6vw, 64px); cursor: pointer; overflow-wrap: break-word; }

.welcome-flash {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(18px, 4vw, 36px);
  color: #ff0;
  text-shadow: 2px 2px 0 red, 0 0 20px #ff0;
}

.subtitle { font-size: clamp(11px, 3vw, 14px); color: #0ff; text-shadow: 1px 1px 0 #000; padding: 0 6px; }
.parody-note { font-size: 10px; color: #aaa; font-family: "Courier Prime", "Courier New", monospace; }

.header-marquee {
  color: #ff0;
  font-weight: bold;
  background: rgba(128, 0, 128, .6);
  border-top: 2px dashed #f0f;
  border-bottom: 2px dashed #f0f;
  margin-top: 4px;
}

.spin-coin {
  display: inline-block;
  animation: coin-spin 1.2s linear infinite;
  color: gold;
  text-shadow: 0 0 10px gold;
}
.spin-coin.delay { animation-delay: .6s; }
.big-coin { font-size: clamp(26px, 7vw, 56px); flex-shrink: 0; }
@keyframes coin-spin { to { transform: rotateY(360deg); } }

/* ============================================================
   LAYOUT
   ============================================================ */
#layout {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(160px, 200px);
  gap: 10px;
  padding: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
#content, .sidebar, .panel { min-width: 0; }   /* grid/flex children may always shrink */

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

/* tablet (768–1200px): main content full-width on top, sidebars split into 2 columns */
@media (max-width: 1200px) {
  #layout { grid-template-columns: 1fr 1fr; }
  #content { grid-column: 1 / -1; order: -1; }
}

/* mobile (<768px): flatten sidebars so every panel stacks in one deliberate order.
   Must come after the base .sidebar rule so display:contents wins. */
@media (max-width: 767px) {
  #layout { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
  .sidebar, #content { display: contents; }
  .sec-welcome      { order: 1; }   /* main announcement */
  .sec-services     { order: 2; }   /* navigation */
  .sec-stats        { order: 3; }   /* statistics */
  .sec-chart        { order: 4; }   /* price chart */
  .sec-testimonials { order: 5; }
  .sec-radio        { order: 6; }
  .sec-globe        { order: 7; }
  .sec-ads          { order: 8; }
  .sec-badges       { order: 9; }
  .sec-hq           { order: 10; }
  .sec-dance        { order: 11; }
  .sec-construction { order: 12; }
}

.panel { color: #000; }
.panel-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
}
.panel-body { padding: 8px; }

/* counter */
.counter-box { margin: 6px; padding: 4px; text-align: center; cursor: pointer; }
.counter-label { font-size: 9px; font-weight: bold; }
.counter-digits {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #0f0;
  background: #000;
  border: 2px inset #808080;
  padding: 2px;
}
.stat-line { font-size: 11px; padding: 2px 8px; }

/* jukebox */
.jukebox { padding: 6px; }
.lcd {
  background: #001a00;
  color: #0f0;
  font-size: 11px;
  padding: 4px;
  border: 2px inset #808080;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 4px #0f0;
}
.jukebox-btns { display: flex; gap: 4px; margin-top: 4px; justify-content: center; }

/* globe */
.globe-box { text-align: center; cursor: pointer; }
.globe {
  font-size: clamp(44px, 12vw, 64px);
  display: inline-block;
  animation: globe-spin 4s linear infinite;
  filter: drop-shadow(0 0 12px #0af);
}
.globe.turbo { animation-duration: .3s; }
@keyframes globe-spin { to { transform: rotate(360deg); } }

/* download buttons */
.download-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.download-btn {
  font-family: "Anton", Impact, sans-serif;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(#0a0, #050);
  border-color: #6f6 #030 #030 #6f6;
  text-shadow: 1px 1px 0 #000;
  padding: 8px 14px;
}

/* live price chart */
.chart-panel { padding: 6px; }
.chart-stats {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 12px;
  color: #0f0;
  background: #000;
  border: 2px inset #808080;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: clamp(200px, 50vw, 300px);
  border: 2px inset #808080;
  background: #000;
}
.chart-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* testimonial live feed */
.feed-status {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 10px;
  color: #060;
  margin-bottom: 4px;
}
.feed-status .blink { color: #f00; }
#testimonial-feed { overflow: hidden; }
.testimonial {
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  font-size: 13px;
  margin: 0 0 2px;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid #808080;
  border-left: 4px solid #000080;
  overflow: hidden;
  max-height: 90px;
  transition: max-height .45s ease, opacity .45s ease, transform .45s ease;
}
.testimonial:nth-child(even) { background: #f0f0ff; }
.t-sig { color: #000080; font-size: 11px; font-weight: bold; }
.t-enter { animation: t-slide-in .5s ease-out; }
@keyframes t-slide-in {
  from { max-height: 0; opacity: 0; transform: translateX(-24px); padding-top: 0; padding-bottom: 0; }
  to   { max-height: 90px; opacity: 1; transform: none; }
}
.t-exit { max-height: 0 !important; opacity: 0; transform: translateX(24px); padding-top: 0; padding-bottom: 0; }

/* dancing zone */
.dancing-zone {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  font-size: clamp(30px, 9vw, 48px);
}
.dancing-baby { animation: baby-dance .6s ease-in-out infinite alternate; display: inline-block; }
.dancing-baby.d2 { animation-delay: .15s; }
.dancing-baby.d3 { animation-delay: .3s; }
.dancing-baby.d4 { animation-delay: .45s; }
@keyframes baby-dance {
  from { transform: rotate(-15deg) translateY(0) scaleX(1); }
  to   { transform: rotate(15deg) translateY(-14px) scaleX(-1); }
}

/* under construction */
.construction-bar {
  text-align: center;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(12px, 3.5vw, 18px);
  color: #000;
  background: repeating-linear-gradient(45deg, #ff0 0 20px, #000 20px 40px);
  background-size: 200% 100%;
  padding: 10px;
  border: 3px ridge #ff0;
  cursor: pointer;
  animation: stripes-move 1s linear infinite;
  text-shadow: 0 0 4px #ff0, 0 0 2px #fff;
}
@keyframes stripes-move { to { background-position: 56px 0; } }

/* ads */
.ad-banner {
  text-align: center;
  padding: 12px 6px;
  border: 3px outset #888;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
}
.ad-banner:hover { filter: brightness(1.3); }
.matrix-text { color: #0f0; font-weight: bold; font-size: 13px; text-shadow: 0 0 6px #0f0; }

/* badges */
.badge-wall { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; justify-content: center; }
.badge88 {
  width: 88px; height: 31px;
  font-size: 8px;
  color: #fff;
  text-align: center;
  border: 1px solid #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
}

.pixel-art {
  color: #ff0;
  font-size: 12px;
  text-align: center;
  margin: 0;
  padding: 6px;
  text-shadow: 2px 2px 0 #800;
}

/* footer */
footer {
  margin: 10px;
  color: #000;
  font-size: 11px;
  font-family: "Tinos", "Times New Roman", serif;
}
.footer-note {
  text-align: center;
  font-size: 9px;
  color: #555;
  padding: 2px;
  font-family: "Courier Prime", "Courier New", monospace;
}

/* close all */
#close-all-btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 10000;
  font-weight: bold;
  box-shadow: 0 0 10px #f00;
  max-width: calc(100vw - 20px);
}

/* ============================================================
   POPUPS (Windows 95 dialogs)
   ============================================================ */
#popup-layer { position: fixed; inset: 0; z-index: 8000; pointer-events: none; }

.win95-popup {
  position: absolute;
  width: min(340px, calc(100vw - 20px));   /* scales with viewport, never clipped */
  min-width: 0;
  max-width: calc(100vw - 20px);
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 6px 6px 0 rgba(0,0,0,.6);
  pointer-events: auto;
  color: #000;
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
}
.win95-popup .win-titlebar { cursor: move; }
.popup-body { padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.popup-icon { font-size: 32px; line-height: 1; }
.popup-text b { color: #000080; }
.popup-btn-row { display: flex; gap: 8px; justify-content: center; padding: 0 12px 12px; }

.popup-body input[type="text"],
.popup-body input[type="password"] {
  width: 100%;
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  border: 2px inset #808080;
  padding: 2px 4px;
  background: #fff;
}
.login-fields { flex: 1; }
.login-fields label { display: block; font-size: 11px; margin: 4px 0 1px; }
.login-disclaimer { font-size: 9px; color: #555; margin-top: 6px; }

/* popup entrance animations (picked at random per spawn) */
.pa-fade    { animation: pa-fade .4s ease-out; }
@keyframes pa-fade { from { opacity: 0; } }
.pa-zoom    { animation: pa-zoom .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pa-zoom { from { transform: scale(.1); opacity: 0; } }
.pa-slide-l { animation: pa-slide-l .35s ease-out; }
@keyframes pa-slide-l { from { transform: translateX(-110vw); } }
.pa-slide-r { animation: pa-slide-r .35s ease-out; }
@keyframes pa-slide-r { from { transform: translateX(110vw); } }
.pa-slide-t { animation: pa-slide-t .35s ease-out; }
@keyframes pa-slide-t { from { transform: translateY(-110vh); } }
.pa-slide-b { animation: pa-slide-b .35s ease-out; }
@keyframes pa-slide-b { from { transform: translateY(110vh); } }
.pa-bounce  { animation: pa-bounce .6s cubic-bezier(.28,.84,.42,1); }
@keyframes pa-bounce {
  0%   { transform: translateY(-80vh); }
  55%  { transform: translateY(0); }
  70%  { transform: translateY(-28px); }
  85%  { transform: translateY(0); }
  93%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.pa-spin    { animation: pa-spin .45s ease-out; }
@keyframes pa-spin { from { transform: rotate(-25deg) scale(.4); opacity: 0; } }

/* popup idle behaviors */
.popup-bounce { animation: popup-bounce 1.4s ease-in-out infinite; }
@keyframes popup-bounce { 50% { transform: translateY(-16px); } }
.popup-shake { animation: shake .3s linear infinite; }

/* win95 progress bar */
.progress-label { margin-bottom: 6px; }
.progress-track {
  height: 16px;
  border: 2px inset #808080;
  background: #fff;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg,
    #000080 0 10px, #fff 10px 12px);
  transition: width .25s steps(4);
}
.progress-pct { text-align: right; margin-top: 2px; }

/* checkbox / radio option dialogs */
.opt-list { margin-top: 6px; }
.opt-row {
  display: block;
  font-size: 12px;
  margin: 3px 0;
  cursor: pointer;
}
.opt-row input { margin-right: 4px; }

/* ============================================================
   EFFECT SPRITES (pooled by effects.js)
   ============================================================ */
.sparkle {
  position: fixed;
  z-index: 9600;
  pointer-events: none;
  font-size: 14px;
  animation: sparkle-fade .7s ease-out forwards;
}
@keyframes sparkle-fade {
  from { opacity: 1; transform: scale(1) rotate(0deg); }
  to   { opacity: 0; transform: scale(.2) rotate(180deg) translateY(-20px); }
}

.flyer {
  position: fixed;
  z-index: 9550;
  pointer-events: none;
  font-size: 26px;
  bottom: -40px;
  animation: fly-up linear forwards;
}
@keyframes fly-up {
  to { transform: translateY(-110vh) rotate(720deg); opacity: .2; }
}

.confetti-bit {
  position: fixed;
  z-index: 9650;
  pointer-events: none;
  width: 8px; height: 8px;
  animation: confetti-fall 1.6s ease-in forwards;
}
@keyframes confetti-fall {
  to { transform: translate(var(--dx), 105vh) rotate(1080deg); opacity: 0; }
}

.boom {
  position: fixed;
  z-index: 9700;
  pointer-events: none;
  font-size: 60px;
  animation: boom-pop .6s ease-out forwards;
}
@keyframes boom-pop {
  0%   { transform: scale(.2); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ============================================================
   RESPONSIVE POLISH
   ============================================================ */

/* comfortable tap targets on touch devices, same Win95 look */
@media (pointer: coarse) {
  .win95-btn { min-height: 34px; }
  .tb-btn { width: 22px; height: 20px; line-height: 18px; font-size: 12px; }
  .opt-row { padding: 4px 0; }
}

/* large phones (390–430px) and down */
@media (max-width: 430px) {
  .panel-body { padding: 6px; }
  .header-marquee { font-size: 12px; }
  .download-btn { font-size: 14px; padding: 8px 10px; }
  .testimonial { font-size: 12px; }
  .stat-line { font-size: 12px; }
  .ad-banner .big-text { font-size: 18px; }
  footer { margin: 8px; }
  #close-all-btn { font-size: 11px; padding: 6px 8px; }
  .popup-body { padding: 10px; }
  .popup-icon { font-size: 26px; }
}

/* small phones (320–360px) */
@media (max-width: 360px) {
  .counter-digits { font-size: 15px; letter-spacing: 1px; }
  .win-titlebar { font-size: 11px; }
  .panel-title { font-size: 10px; }
  .header-marquee { font-size: 11px; }
  .badge-wall { gap: 3px; padding: 4px; }
  .chart-stats { font-size: 11px; }
}

/* reduced motion: calm (almost) everything */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}
