/* ============================================
   THE OFFICIAL TROUBLE ZONE — style.css
   Crafted lovingly in Microsoft FrontPage 98
   ============================================ */

:root {
  --ink: #14001f;
  --paper: #fffae8;
  --hot: #ff1493;
  --hot-light: #ff66c4;
  --cyan: #00e5ff;
  --yellow: #ffe600;
  --purple: #5b00a8;
  --green: #39ff14;
  --red: #d10000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body,
a,
button,
input,
textarea,
select,
label,
summary {
  cursor: url("anger-cursor.png") 24 24, url("anger-cursor.svg") 24 24, auto;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", "Trebuchet MS", cursive;
  font-size: 17px;
  line-height: 1.45;
  background-color: #12002b;
  background-image:
    radial-gradient(circle at 16% 12%, rgba(255, 20, 147, 0.22), transparent 35%),
    radial-gradient(circle at 84% 78%, rgba(0, 229, 255, 0.16), transparent 38%),
    url("bg-tile.svg");
  background-size: auto, auto, 64px 64px;
  background-attachment: fixed, fixed, fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.035) 0,
    rgba(0, 0, 0, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

::selection {
  background: var(--yellow);
  color: #000;
}

::-webkit-scrollbar {
  width: 18px;
}

::-webkit-scrollbar-track {
  background: #1a0036;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--hot), var(--yellow));
  border: 2px solid #000;
}

[hidden] {
  display: none !important;
}

/* ---------- floating anger images ---------- */

#floaters {
  position: fixed;
  inset: 0;
  z-index: 800;
  overflow: hidden;
  pointer-events: none;
}

.floater {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  opacity: 0.94;
  filter:
    drop-shadow(0 0 1px #fff)
    drop-shadow(0 0 2px #fff)
    drop-shadow(3px 5px 0 rgba(0, 0, 0, 0.18));
}

/* ---------- the page, inside a fake browser ---------- */

.page-wrap {
  position: relative;
  z-index: 10;
  width: min(960px, calc(100% - 28px));
  margin: 28px auto 64px;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 9px;
  background: linear-gradient(#4a7fbd, #2a5a94 55%, #1f4a7e);
  border: 2px solid #0a2a4d;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-family: Tahoma, Verdana, sans-serif;
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.browser-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.browser-title {
  flex: 1;
  min-width: 0;
  padding: 2px 7px;
  background: #fff;
  border: 2px inset #bfbfbf;
  color: #000;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-btns {
  display: flex;
  gap: 3px;
  flex: none;
}

.browser-btns span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 16px;
  background: linear-gradient(#f5f5f5, #c9c9c9);
  border: 1px solid #333;
  color: #000;
  font-size: 9px;
}

.page {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 7px ridge var(--hot-light);
  border-top: none;
  box-shadow:
    0 0 0 3px var(--ink),
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(255, 20, 147, 0.35);
}

.top-strip {
  background: #000;
  color: var(--yellow);
  border-bottom: 3px solid var(--hot);
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.top-strip marquee {
  padding: 6px 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 22px 18px 8px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 0, 0.35), transparent 60%),
    linear-gradient(180deg, #fff6c9, var(--paper));
}

.kicker {
  display: inline-block;
  padding: 5px 12px;
  background: var(--ink);
  color: var(--yellow);
  border: 2px dashed var(--yellow);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  transform: rotate(-1deg);
}

.wordart {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0 10px;
  font-family: Impact, "Arial Black", "Haettenschweiler", sans-serif;
  font-size: clamp(50px, 9.6vw, 104px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wordart span {
  display: block;
  background: linear-gradient(180deg, #fff700 0%, #ffb300 45%, #ff006e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  filter:
    drop-shadow(5px 5px 0 var(--cyan))
    drop-shadow(9px 9px 0 rgba(0, 0, 0, 0.3));
  transform: rotate(-1deg);
}

.wordart .alt {
  background: linear-gradient(180deg, #b6ffff 0%, #00d5ff 45%, #7a00ff 100%);
  transform: rotate(1.5deg);
}

.subtitle {
  max-width: 640px;
  margin: 14px auto 18px;
  padding: 8px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  font-size: 18px;
  font-weight: bold;
  transform: rotate(0.4deg);
}

.marquee-wrap {
  margin: 0 -18px;
  background: #000;
  border-top: 3px solid var(--hot);
  border-bottom: 3px solid var(--hot);
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
}

.marquee-wrap marquee {
  padding: 9px 0;
}

/* ---------- main + panels ---------- */

main {
  padding: 18px 22px;
}

.panel {
  position: relative;
  margin: 20px 0;
  padding: 18px;
  background: #fffdf3;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--hot-light);
}

.panel h2 {
  margin: -18px -18px 16px;
  padding: 9px 14px;
  background: linear-gradient(90deg, #3d006e, #b0008c 55%, var(--hot));
  border-bottom: 3px solid var(--ink);
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 0 #000;
}

.panel h2 .count {
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 0.55em;
  text-shadow: 1px 1px 0 #000;
}

.tiny {
  font-size: 13px;
  color: #5a3a66;
}

/* ---------- exhibit A ---------- */

.exhibit-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 26px;
  align-items: start;
}

.polaroid {
  position: relative;
  width: 100%;
  max-width: 270px;
  margin: 6px auto 0;
  padding: 10px 10px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow:
    7px 7px 0 #ffb3e6,
    10px 10px 0 var(--ink);
  transform: rotate(-3deg);
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.polaroid figcaption {
  margin-top: 9px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 84px;
  height: 24px;
  background: rgba(255, 240, 120, 0.82);
  border-left: 1px dashed rgba(0, 0, 0, 0.18);
  border-right: 1px dashed rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) rotate(-4deg);
}

.witness {
  position: relative;
  padding-bottom: 34px;
}

.witness h3 {
  margin: 0 0 8px;
  color: #b0008c;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
}

.witness p {
  margin: 8px 0;
}

.crimes {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.crimes li {
  position: relative;
  margin: 8px 0;
  padding-left: 30px;
  font-weight: bold;
}

.crimes li::before {
  content: "☑";
  position: absolute;
  top: -2px;
  left: 0;
  color: #0a9b00;
  font-size: 21px;
}

.witness-note {
  padding-left: 11px;
  border-left: 4px solid var(--hot);
  font-style: italic;
}

.stamp {
  position: absolute;
  right: 2px;
  bottom: -2px;
  padding: 4px 10px;
  border: 4px double var(--red);
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0.82;
  mix-blend-mode: multiply;
  transform: rotate(-12deg);
}

/* ---------- anger meter ---------- */

.meter {
  height: 38px;
  padding: 4px;
  background: #1a001a;
  border: 3px inset #bbb;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5);
}

.meter-fill {
  position: relative;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--hot) 0 12px,
    #ff8a00 12px 24px,
    var(--yellow) 24px 36px
  );
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.45);
  transition: width 0.85s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.meter-fill span {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.meter-caption {
  margin: 10px 0 0;
  font-size: 18px;
}

.meter-caption strong {
  color: #b0008c;
}

.meter.maxed .meter-fill {
  animation: meterPulse 0.45s ease-in-out infinite alternate;
}

@keyframes meterPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.65) saturate(1.5); }
}

/* ---------- buttons ---------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 18px 0 8px;
}

.btn {
  position: relative;
  display: inline-block;
  min-width: 148px;
  padding: 12px 18px;
  background: linear-gradient(#fff45c, #ffb300);
  border: 3px outset #fff;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #000;
  color: #21002e;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  filter: saturate(1.35) brightness(1.05);
  transform: translate(-1px, -1px) rotate(-1deg);
  box-shadow: 6px 6px 0 #000;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #000;
}

.btn:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 3px;
}

.btn-big {
  min-width: 190px;
  background: linear-gradient(#ff6ec7, var(--hot));
  color: #fff;
  font-size: 23px;
  text-shadow: 2px 2px 0 #8b0050;
}

#sorryBtn {
  z-index: 2;
  transition: transform 0.13s ease-out;
  will-change: transform;
}

.action-msg {
  min-height: 27px;
  margin: 12px 0 0;
  color: #b0008c;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* ---------- fake ad ---------- */

.ad {
  position: relative;
  margin: 24px 0;
  padding: 4px;
  background: #000;
  border: 3px solid #000;
  box-shadow: 7px 7px 0 var(--cyan);
}

.ad-label {
  position: absolute;
  top: -12px;
  left: 10px;
  z-index: 1;
  padding: 0 5px;
  background: #000;
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
}

.ad-banner {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: repeating-linear-gradient(
    90deg,
    #ff00d4 0 60px,
    #ffe600 60px 120px,
    #00f0ff 120px 180px
  );
  background-size: 360px 100%;
  border: 0;
  color: #000;
  font-family: Impact, "Arial Black", sans-serif;
  text-align: center;
  text-transform: uppercase;
  animation: adScroll 2.2s linear infinite;
  -webkit-appearance: none;
  appearance: none;
}

.ad-banner:hover {
  filter: saturate(1.5) contrast(1.1);
}

.ad-line1 {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
}

.ad-line2 {
  display: block;
  margin-top: 5px;
  font-size: clamp(12px, 2.2vw, 16px);
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #fff;
}

@keyframes adScroll {
  to { background-position: 360px 0; }
}

/* ---------- guestbook ---------- */

.gb-list {
  margin-bottom: 16px;
}

.gb-entry {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 2px dotted #d39ac0;
}

.gb-entry:last-child {
  border-bottom: none;
}

.gb-entry.new {
  animation: newEntry 1.1s ease-out;
}

@keyframes newEntry {
  0% { background: var(--yellow); transform: translateX(-8px); }
  100% { background: transparent; transform: translateX(0); }
}

.gb-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  background: linear-gradient(#fff45c, #ff9ad5);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.gb-body {
  min-width: 0;
}

.gb-meta {
  font-size: 13px;
  color: #7a2a66;
}

.gb-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.gb-body p {
  margin: 2px 0 0;
  font-size: 16px;
}

.gb-form {
  margin-top: 16px;
}

.gb-form-row {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

#gbInput {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 3px inset #ccc;
  border-radius: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}

#gbInput:focus {
  outline: 3px solid var(--hot);
  outline-offset: 1px;
  background: #fffef0;
}

.gb-form .btn {
  flex: none;
  min-width: 130px;
  padding: 9px 14px;
  font-size: 16px;
}

/* ---------- under construction ---------- */

.under-construction {
  margin: 26px 0 4px;
  padding: 9px;
  background: repeating-linear-gradient(
    45deg,
    var(--yellow) 0 16px,
    var(--ink) 16px 32px
  );
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--hot);
}

.uc-inner {
  padding: 15px 18px;
  background: var(--paper);
  text-align: center;
}

.uc-title {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(18px, 3vw, 25px);
  letter-spacing: 1px;
}

.cone {
  display: inline-block;
  animation: coneBounce 0.9s ease-in-out infinite alternate;
}

@keyframes coneBounce {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-6px) rotate(4deg); }
}

.uc-inner p {
  margin: 9px 0 13px;
  font-size: 15px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 32px;
  border: 1px solid #000;
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.05;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.badge-netscape {
  background: linear-gradient(#0b3f8f, #071f4a);
}

.badge-notepad {
  background: linear-gradient(#7a7a7a, #3b3b3b);
}

.badge-html {
  background: linear-gradient(#d14400, #8c1d00);
}

.badge-y2k {
  background: linear-gradient(#0a8f42, #064d24);
}

/* ---------- footer ---------- */

.footer {
  margin-top: 26px;
  padding: 20px 22px 4px;
  border-top: 4px double var(--hot);
  text-align: center;
}

.counter-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.odometer {
  display: inline-flex;
  gap: 3px;
  padding: 5px;
  background: #000;
  border: 3px inset #666;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
}

.odometer span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 36px;
  background: #061006;
  border: 1px solid #1d3d1d;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 25px;
  font-weight: bold;
  text-shadow: 0 0 7px var(--green);
}

.online {
  margin: 12px 0 5px;
  font-size: 14px;
  font-weight: bold;
}

.webring-line {
  margin: 8px 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
}

.webring-line a {
  color: #b0008c;
  text-decoration: underline;
}

.webring-line a:hover {
  background: var(--yellow);
  color: #000;
}

.copyright {
  margin: 14px 0 0;
  color: #6b4a76;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- fake popup ---------- */

.popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
  width: min(370px, calc(100vw - 24px));
  background: #ece9d8;
  border: 2px solid #0a246a;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
  color: #000;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 13px;
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 5px 4px 8px;
  background: linear-gradient(90deg, #0a246a, #3a6ea5);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.popup-x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 18px;
  padding: 0;
  background: #d4d0c8;
  border: 2px outset #fff;
  color: #000;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}

.popup-x:active {
  border-style: inset;
}

.popup-body {
  padding: 15px;
}

.popup-body p {
  margin: 0 0 10px;
}

.popup-big {
  font-size: 16px;
  font-weight: bold;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.win-btn {
  padding: 5px 14px;
  background: #d4d0c8;
  border: 2px outset #fff;
  color: #000;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.win-btn:active {
  border-style: inset;
}

.win-btn:first-child {
  outline: 2px solid #0a246a;
  outline-offset: 1px;
}

/* ---------- snack modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 5500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 0, 20, 0.62);
}

.modal-card {
  width: min(440px, 100%);
  background: #ece9d8;
  border: 2px solid #0a246a;
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.6);
  color: #000;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 13px;
  animation: popIn 0.22s ease-out;
}

.modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 5px 4px 8px;
  background: linear-gradient(90deg, #0a246a, #3a6ea5);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.modal-body {
  padding: 18px;
}

.modal-body h3 {
  margin: 0 0 12px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 27px;
  letter-spacing: 1px;
  line-height: 1.05;
  text-align: center;
}

.snack-list {
  margin: 12px 0;
  padding-left: 22px;
}

.snack-list li {
  margin: 6px 0;
}

.modal-body .btn {
  display: block;
  margin: 14px auto 0;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
}

/* ---------- toast + effects ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 6000;
  max-width: calc(100vw - 30px);
  padding: 11px 18px;
  background: #000;
  border: 2px solid var(--green);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.5);
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pop-word {
  position: fixed;
  z-index: 7000;
  color: #ff004c;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  pointer-events: none;
  text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
  transform: translate(-50%, -50%);
  animation: popWord 0.75s ease-out forwards;
}

@keyframes popWord {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4) rotate(-8deg); }
  35% { opacity: 1; transform: translate(-50%, -85%) scale(1.25) rotate(5deg); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1) rotate(-5deg); }
}

.emoji-confetti {
  position: fixed;
  z-index: 6500;
  font-size: 26px;
  pointer-events: none;
  will-change: transform, opacity;
}

.shake {
  animation: shake 0.45s linear;
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  15% { transform: translate(-9px, 4px) rotate(-0.35deg); }
  30% { transform: translate(8px, -5px) rotate(0.35deg); }
  45% { transform: translate(-7px, -3px) rotate(-0.25deg); }
  60% { transform: translate(6px, 4px) rotate(0.25deg); }
  75% { transform: translate(-4px, 2px) rotate(-0.15deg); }
  90% { transform: translate(3px, -2px) rotate(0.1deg); }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .page-wrap {
    width: calc(100% - 12px);
    margin: 8px auto 40px;
  }

  .browser-chrome {
    display: none;
  }

  .page {
    border-top: 7px ridge var(--hot-light);
  }

  main {
    padding: 14px 12px;
  }

  .hero {
    padding: 18px 12px 8px;
  }

  .marquee-wrap {
    margin: 0 -12px;
  }

  .wordart {
    font-size: clamp(46px, 15vw, 82px);
  }

  .wordart span {
    -webkit-text-stroke-width: 2px;
    filter:
      drop-shadow(3px 3px 0 var(--cyan))
      drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.3));
  }

  .subtitle {
    font-size: 16px;
  }

  .panel {
    padding: 14px;
    box-shadow: 5px 5px 0 var(--hot-light);
  }

  .panel h2 {
    margin: -14px -14px 14px;
    padding: 8px 10px;
    letter-spacing: 1px;
  }

  .exhibit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .polaroid {
    max-width: 240px;
  }

  .witness {
    padding-bottom: 42px;
  }

  .stamp {
    font-size: 19px;
  }

  .button-row {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    font-size: 17px;
  }

  .btn-big {
    font-size: 21px;
  }

  .gb-form-row {
    flex-direction: column;
  }

  .gb-form .btn {
    width: 100%;
  }

  .ad {
    box-shadow: 5px 5px 0 var(--cyan);
  }

  .odometer span {
    width: 20px;
    height: 30px;
    font-size: 20px;
  }

  .popup {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cone,
  .ad-banner,
  .meter.maxed .meter-fill,
  .gb-entry.new {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
