:root {
  --ink: #11253d;
  --ink-soft: #33506f;
  --sea: #1f5d92;
  --sea-deep: #123b61;
  --sky: #79bfd6;
  --gold: #e4c265;
  --sand: #f3ead8;
  --stone: #dac6a7;
  --white: #fbfdff;
  --line: rgba(17, 37, 61, 0.1);
  --mexico-vision-strength: 0;
  --matrix-vision-strength: 0;
  --gun-cursor-x: -240px;
  --gun-cursor-y: -240px;
  --shadow-xl: 0 30px 70px rgba(17, 37, 61, 0.18);
  --shadow-lg: 0 18px 40px rgba(17, 37, 61, 0.14);
  --shadow-sm: 0 10px 24px rgba(17, 37, 61, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.96), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(121, 191, 214, 0.24), transparent 20%),
    linear-gradient(150deg, #f8fbff 0%, #ecf3f8 38%, #f4ecdf 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)),
    repeating-linear-gradient(115deg, transparent 0 28px, rgba(17, 37, 61, 0.018) 28px 29px);
  pointer-events: none;
  z-index: -1;
}

.vision-layers {
  position: fixed;
  inset: 0;
  z-index: 140;
  overflow: hidden;
  pointer-events: none;
}

.vision-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

.vision-layer-wash {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 240, 173, calc(var(--mexico-vision-strength) * 0.34)), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(92, 255, 162, calc(var(--matrix-vision-strength) * 0.22)), transparent 28%),
    linear-gradient(
      135deg,
      rgba(247, 201, 73, calc(var(--mexico-vision-strength) * 0.46)) 0%,
      rgba(255, 240, 183, calc(var(--mexico-vision-strength) * 0.18)) 38%,
      rgba(72, 255, 149, calc(var(--matrix-vision-strength) * 0.18)) 65%,
      rgba(9, 38, 18, calc(var(--matrix-vision-strength) * 0.18)) 100%
    );
  mix-blend-mode: soft-light;
  opacity: calc((var(--mexico-vision-strength) * 0.92) + (var(--matrix-vision-strength) * 0.88));
}

.vision-layer-mexico {
  inset: -8%;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 245, 193, calc(var(--mexico-vision-strength) * 0.52)), transparent 30%),
    radial-gradient(circle at 76% 66%, rgba(222, 167, 53, calc(var(--mexico-vision-strength) * 0.28)), transparent 34%),
    linear-gradient(180deg, rgba(255, 221, 122, calc(var(--mexico-vision-strength) * 0.24)), rgba(124, 80, 11, calc(var(--mexico-vision-strength) * 0.1)));
  opacity: calc(var(--mexico-vision-strength) * 0.94);
  mix-blend-mode: screen;
  backdrop-filter:
    sepia(calc(var(--mexico-vision-strength) * 0.82))
    saturate(calc(1 + (var(--mexico-vision-strength) * 1.35)))
    brightness(calc(1 + (var(--mexico-vision-strength) * 0.08)))
    contrast(calc(1 - (var(--mexico-vision-strength) * 0.05)));
}

.vision-layer-mexico::before {
  content: "";
  position: absolute;
  inset: -5%;
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 245, 213, calc(var(--mexico-vision-strength) * 0.18)) 0 9%, transparent 34%),
    radial-gradient(circle at 76% 24%, rgba(255, 207, 103, calc(var(--mexico-vision-strength) * 0.18)) 0 8%, transparent 28%),
    radial-gradient(circle at 58% 78%, rgba(114, 76, 16, calc(var(--mexico-vision-strength) * 0.14)) 0 4%, transparent 20%);
  opacity: calc(var(--mexico-vision-strength) * 0.92);
  mix-blend-mode: soft-light;
  filter: blur(calc(16px + (var(--mexico-vision-strength) * 18px)));
  transform: translate3d(0, 0, 0) scale(1.02);
  animation: mexicoHeatShimmer 7.2s ease-in-out infinite alternate;
}

.vision-layer-matrix {
  background:
    linear-gradient(180deg, rgba(72, 255, 149, calc(var(--matrix-vision-strength) * 0.14)), rgba(7, 18, 11, calc(var(--matrix-vision-strength) * 0.24))),
    repeating-linear-gradient(
      180deg,
      rgba(194, 255, 218, calc(var(--matrix-vision-strength) * 0.14)) 0 2px,
      rgba(8, 28, 14, calc(var(--matrix-vision-strength) * 0.16)) 2px 4px
    );
  opacity: calc(var(--matrix-vision-strength) * 0.96);
  mix-blend-mode: screen;
  backdrop-filter:
    contrast(calc(1 + (var(--matrix-vision-strength) * 0.26)))
    saturate(calc(1 + (var(--matrix-vision-strength) * 0.72)))
    brightness(calc(1 - (var(--matrix-vision-strength) * 0.04)));
  box-shadow:
    inset 0 0 120px rgba(82, 255, 156, calc(var(--matrix-vision-strength) * 0.18)),
    inset 0 0 240px rgba(4, 18, 9, calc(var(--matrix-vision-strength) * 0.28));
}

.vision-layer-matrix::before {
  content: "";
  position: absolute;
  inset: -26% 0;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(118, 255, 182, calc(var(--matrix-vision-strength) * 0.2)) 44%,
      rgba(11, 56, 26, calc(var(--matrix-vision-strength) * 0.3)) 54%,
      transparent 100%
    );
  opacity: calc(var(--matrix-vision-strength) * 0.74);
  mix-blend-mode: screen;
  filter: blur(22px);
  animation: matrixSweep 6.8s linear infinite;
}

@keyframes mexicoHeatShimmer {
  0% {
    transform: translate3d(-1.4%, -0.8%, 0) scale(1.02);
  }

  50% {
    transform: translate3d(1.6%, 0.8%, 0) scale(1.05);
  }

  100% {
    transform: translate3d(-0.7%, 1.4%, 0) scale(1.03);
  }
}

@keyframes matrixSweep {
  0% {
    transform: translate3d(0, -34%, 0);
  }

  100% {
    transform: translate3d(0, 34%, 0);
  }
}

body.gun-enabled,
body.gun-enabled *,
body.gun-enabled *::before,
body.gun-enabled *::after {
  cursor: none !important;
}

.gun-cursor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: block;
  width: clamp(120px, 12vw, 172px);
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  filter:
    drop-shadow(0 10px 18px rgba(17, 37, 61, 0.28))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transform: translate3d(calc(var(--gun-cursor-x) - 30px), calc(var(--gun-cursor-y) - 30px), 0);
}

.gun-cursor-overlay[hidden] {
  display: none;
}

.gunshot-hole {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 115;
  display: block;
  width: clamp(58px, 4.8vw, 84px);
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform:
    translate(-50%, -50%)
    translateY(var(--gunshot-shift-y, 0))
    rotate(var(--gunshot-rotation, 0deg))
    scaleX(var(--gunshot-scale-x, var(--gunshot-scale, 1)))
    scaleY(var(--gunshot-scale-y, var(--gunshot-scale, 1)));
  transform-origin: var(--gunshot-origin-x, center) var(--gunshot-origin-y, center);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
}

.gunshot-hole.is-slit {
  width: clamp(60px, 5vw, 88px);
}

.griffin-float {
  position: fixed;
  top: 50%;
  left: clamp(8px, 1.8vw, 26px);
  z-index: 26;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 14px 24px rgba(17, 37, 61, 0.22))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
}

.griffin-float img {
  display: block;
  width: clamp(126px, 12vw, 184px);
  height: auto;
}

.griffin-speech {
  position: absolute;
  top: 10px;
  left: calc(100% + 12px);
  width: min(220px, 28vw);
  padding: 11px 13px 12px;
  border: 2px solid rgba(17, 37, 61, 0.16);
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.97);
  box-shadow: 0 16px 28px rgba(17, 37, 61, 0.18);
}

.griffin-speech[hidden] {
  display: none;
}

.griffin-speech::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -10px;
  width: 16px;
  height: 16px;
  border-left: 2px solid rgba(17, 37, 61, 0.16);
  border-bottom: 2px solid rgba(17, 37, 61, 0.16);
  background: rgba(255, 252, 244, 0.97);
  transform: rotate(45deg);
}

.griffin-speech-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.griffin-note {
  position: absolute;
  top: 56%;
  left: calc(100% + 8px);
  width: min(240px, 30vw);
  padding: 10px 12px 11px;
  border: 2px solid rgba(17, 37, 61, 0.14);
  border-radius: 16px;
  background: rgba(255, 248, 236, 0.97);
  box-shadow: 0 14px 24px rgba(17, 37, 61, 0.16);
}

.griffin-note[hidden] {
  display: none;
}

.griffin-note-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.28;
}

.griffin-meter {
  width: 100%;
  padding: 10px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 252, 244, 0.9);
  box-shadow:
    0 12px 24px rgba(17, 37, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.griffin-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.griffin-meter-label,
.griffin-meter-status {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.griffin-meter-status {
  color: var(--sea-deep);
}

.griffin-meter-track {
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(17, 37, 61, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(17, 37, 61, 0.12), rgba(17, 37, 61, 0.04)),
    rgba(255, 255, 255, 0.7);
}

.griffin-meter-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #f6d85b 0%, #f0a327 58%, #c95a1c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 12px rgba(240, 163, 39, 0.34);
  transform-origin: left center;
}

.griffin-bottle-layer {
  position: fixed;
  inset: 0;
  z-index: 28;
  pointer-events: none;
}

.griffin-beer-bottle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 28;
  width: clamp(108px, 11.6vw, 148px);
  height: auto;
  opacity: 1;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 12px 18px rgba(17, 37, 61, 0.18))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
  transition: opacity 320ms ease, filter 180ms ease;
}

.griffin-beer-bottle.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.griffin-beer-bottle.is-dragging {
  cursor: grabbing;
  transition: none;
  filter:
    drop-shadow(0 18px 24px rgba(17, 37, 61, 0.28))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  transition: filter 240ms ease, transform 240ms ease;
}

body.modal-open .page-shell {
  filter: blur(18px);
  transform: scale(0.992);
  pointer-events: none;
  user-select: none;
}

body.prank-active {
  overflow: hidden;
  animation: siteJolt 160ms steps(2, end) infinite;
}

body.death-active {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

body.prank-active .page-shell {
  filter: blur(14px) saturate(0.38);
  transform: scale(0.972) rotate(-0.24deg);
  pointer-events: none;
  user-select: none;
}

body.death-active .page-shell {
  filter: blur(6px) brightness(0.26) saturate(0.68);
  transform: scale(1.012);
  pointer-events: none;
  user-select: none;
}

.settings-panel {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 39;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.settings-trigger {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(17, 37, 61, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.94), rgba(233, 241, 248, 0.9));
  box-shadow:
    0 16px 28px rgba(17, 37, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  backdrop-filter: blur(10px);
}

.settings-trigger:hover,
.settings-panel.is-open .settings-trigger {
  transform: translateY(-2px) rotate(-8deg);
  box-shadow:
    0 18px 30px rgba(17, 37, 61, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.settings-trigger-image {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.settings-menu {
  width: min(348px, calc(100vw - 36px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(17, 37, 61, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(243, 234, 216, 0.94)),
    linear-gradient(135deg, rgba(121, 191, 214, 0.12), rgba(255, 255, 255, 0));
  box-shadow:
    0 20px 34px rgba(17, 37, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.settings-menu[hidden] {
  display: none;
}

.settings-menu-title {
  margin: 0 0 14px;
  color: var(--sea-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.settings-slider-group + .settings-slider-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 37, 61, 0.08);
}

.settings-slider-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.settings-slider-label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-slider-value {
  color: var(--sea-deep);
  font-family: "Baskerville", "Palatino Linotype", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 0.9;
}

.settings-slider {
  width: 100%;
  margin: 14px 0 0;
  background: transparent;
  accent-color: var(--sea-deep);
}

.settings-slider::-webkit-slider-runnable-track {
  height: 14px;
  border: 1px solid rgba(17, 37, 61, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(31, 93, 146, 0.92), rgba(121, 191, 214, 0.82) 55%, rgba(228, 194, 101, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 16px rgba(17, 37, 61, 0.12);
}

.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -6px;
  border: 2px solid rgba(17, 37, 61, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(251, 253, 255, 0.9) 50%, rgba(218, 198, 167, 0.94));
  box-shadow:
    0 8px 14px rgba(17, 37, 61, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.settings-slider::-moz-range-track {
  height: 14px;
  border: 1px solid rgba(17, 37, 61, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(31, 93, 146, 0.92), rgba(121, 191, 214, 0.82) 55%, rgba(228, 194, 101, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 16px rgba(17, 37, 61, 0.12);
}

.settings-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(17, 37, 61, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(251, 253, 255, 0.9) 50%, rgba(218, 198, 167, 0.94));
  box-shadow:
    0 8px 14px rgba(17, 37, 61, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.settings-slider-mexico {
  accent-color: #d68c1b;
}

.settings-slider-mexico::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, rgba(156, 74, 8, 0.9), rgba(229, 164, 42, 0.88) 48%, rgba(255, 239, 165, 0.94));
}

.settings-slider-mexico::-moz-range-track {
  background:
    linear-gradient(90deg, rgba(156, 74, 8, 0.9), rgba(229, 164, 42, 0.88) 48%, rgba(255, 239, 165, 0.94));
}

.settings-slider-matrix {
  accent-color: #2ccd6d;
}

.settings-slider-matrix::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, rgba(8, 38, 18, 0.9), rgba(22, 147, 72, 0.9) 45%, rgba(167, 255, 191, 0.94));
}

.settings-slider-matrix::-moz-range-track {
  background:
    linear-gradient(90deg, rgba(8, 38, 18, 0.9), rgba(22, 147, 72, 0.9) 45%, rgba(167, 255, 191, 0.94));
}

.gun-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 37, 61, 0.16);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: rgba(251, 253, 255, 0.88);
  box-shadow: 0 16px 28px rgba(17, 37, 61, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  user-select: none;
}

.gun-toggle:hover {
  background: rgba(251, 253, 255, 0.96);
}

.gun-toggle-input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--sea-deep);
  cursor: pointer;
}

.gun-toggle-text {
  line-height: 1;
  cursor: pointer;
}

.main-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 37, 61, 0.28);
}

.main-popup[hidden] {
  display: none;
}

.prank-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  isolation: isolate;
  align-items: center;
  padding: 74px 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 25, 25, 0.84), rgba(19, 0, 0, 0.96));
  backdrop-filter: blur(10px) saturate(1.2);
  animation: overlayStrobe 300ms steps(2, end) infinite;
}

.prank-overlay[hidden] {
  display: none;
}

.prank-dismiss {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 61;
  min-width: 132px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(14, 0, 0, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.prank-overlay-grid {
  position: relative;
  z-index: 1;
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  pointer-events: none;
}

.prank-overlay.prank-gauntlet-active .prank-overlay-grid {
  filter: saturate(1.35) contrast(1.05);
  opacity: 0.9;
}

.prank-gamble {
  position: fixed;
  left: 50%;
  top: 52%;
  z-index: 61;
  width: min(860px, calc(100vw - 84px));
  max-height: calc(100vh - 122px);
  overflow: auto;
  transform: translate(-50%, -50%) rotate(-0.9deg);
  pointer-events: auto;
}

.prank-gamble[hidden] {
  display: none;
}

.prank-gamble-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 4px solid rgba(255, 240, 204, 0.92);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(40, 0, 0, 0.96), rgba(14, 0, 0, 0.98)),
    linear-gradient(135deg, rgba(255, 184, 36, 0.18), transparent 44%);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.48),
    0 0 0 8px rgba(126, 4, 4, 0.36),
    0 0 44px rgba(255, 189, 53, 0.22);
}

.prank-gamble-frame::before,
.prank-gamble-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prank-gamble-frame::before {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 222, 143, 0.2), transparent 16%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(140deg, transparent 0 56%, rgba(255, 183, 0, 0.12) 100%);
  mix-blend-mode: screen;
}

.prank-gamble-frame::after {
  inset: 10px;
  border: 1px dashed rgba(255, 224, 175, 0.24);
  border-radius: 24px;
}

.prank-gamble-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.prank-gamble-kicker,
.prank-gamble-stage-label {
  margin: 0;
  color: rgba(255, 224, 173, 0.94);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.prank-gamble-stage-label {
  color: rgba(255, 253, 237, 0.7);
  text-align: right;
}

.prank-gamble-progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.prank-gamble-progress-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255, 235, 204, 0.18);
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.prank-gamble-progress-chip.is-active {
  color: #1f0900;
  background: linear-gradient(180deg, rgba(255, 225, 160, 0.98), rgba(255, 171, 59, 0.98));
  box-shadow: 0 10px 22px rgba(255, 160, 0, 0.22);
}

.prank-gamble-progress-chip.is-cleared:not(.is-active) {
  color: rgba(255, 233, 194, 0.9);
  border-color: rgba(255, 217, 139, 0.36);
  background: rgba(255, 186, 62, 0.14);
}

.prank-gamble-title,
.prank-gamble-copy,
.prank-gamble-status,
.prank-stage-note,
.prank-roulette-prompt,
.prank-roulette-selection {
  position: relative;
  z-index: 1;
}

.prank-gamble-title {
  max-width: none;
  color: #fff2dd;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 0.9;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.prank-gamble-copy,
.prank-stage-note,
.prank-roulette-prompt,
.prank-roulette-selection {
  margin: 0;
  color: rgba(255, 242, 227, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.prank-gamble-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 130, 0.22);
  color: rgba(255, 247, 230, 0.96);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  background: rgba(255, 200, 93, 0.12);
}

.prank-gamble-body {
  position: relative;
  z-index: 1;
  display: grid;
}

.prank-stage {
  display: grid;
  gap: 16px;
}

.prank-stage[hidden] {
  display: none;
}

.scratch-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: 24px;
  border: 2px solid rgba(255, 236, 208, 0.24);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 219, 147, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(80, 0, 0, 0.94), rgba(26, 0, 0, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.scratch-card-prize {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.scratch-card-prize-value {
  color: #fff7e2;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 7vw, 4.4rem);
  letter-spacing: 0.06em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 10px 24px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(255, 211, 120, 0.2);
}

.scratch-card-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.prank-slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prank-slot-reel {
  display: grid;
  place-items: center;
  min-height: 136px;
  padding: 18px 12px 14px;
  border-radius: 22px;
  border: 2px solid rgba(255, 230, 183, 0.18);
  color: #fff3dc;
  background:
    linear-gradient(180deg, rgba(22, 0, 0, 0.96), rgba(68, 0, 0, 0.94)),
    linear-gradient(135deg, rgba(255, 193, 72, 0.12), transparent 48%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(0, 0, 0, 0.28);
}

.prank-slot-reel span {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 7vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 8px 18px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(255, 190, 67, 0.2);
}

.prank-stage-action {
  justify-self: start;
  padding: 14px 20px 13px;
  border: 0;
  border-radius: 999px;
  color: #220500;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 228, 165, 0.98), rgba(255, 170, 54, 0.98));
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(124, 32, 0, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.prank-stage-action:hover:not(:disabled) {
  transform: translateY(-2px);
}

.prank-stage-action:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.prank-roulette-board {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.prank-roulette-pocket {
  min-height: 46px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: rgba(255, 246, 228, 0.96);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: rgba(36, 0, 0, 0.84);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.prank-roulette-pocket[data-color="red"] {
  background: linear-gradient(180deg, rgba(152, 11, 11, 0.96), rgba(92, 0, 0, 0.96));
}

.prank-roulette-pocket[data-color="black"] {
  background: linear-gradient(180deg, rgba(42, 42, 48, 0.96), rgba(8, 8, 12, 0.98));
}

.prank-roulette-pocket[data-color="green"] {
  background: linear-gradient(180deg, rgba(15, 120, 71, 0.96), rgba(0, 67, 37, 0.98));
}

.prank-roulette-pocket:hover:not(:disabled) {
  transform: translateY(-1px);
}

.prank-roulette-pocket.is-selected {
  border-color: rgba(255, 232, 182, 0.82);
  box-shadow: 0 0 0 2px rgba(255, 207, 90, 0.42);
}

.prank-roulette-pocket.is-active {
  transform: scale(1.04);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.24),
    0 0 20px rgba(255, 214, 120, 0.28);
}

.prank-roulette-pocket.is-result:not(.is-active) {
  border-color: rgba(255, 223, 154, 0.92);
  box-shadow:
    0 0 0 2px rgba(255, 190, 67, 0.34),
    0 0 18px rgba(255, 177, 73, 0.22);
}

.prank-roulette-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.prank-gamble.is-locked .scratch-card-surface {
  pointer-events: none;
}

.prank-insult {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: rgba(10, 0, 0, 0.66);
}

.prank-insult[hidden] {
  display: none;
}

.prank-insult-text {
  margin: 0;
  padding: 28px 34px 24px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  color: #ffffff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, rgba(145, 0, 0, 0.98), rgba(35, 0, 0, 0.98));
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.44),
    0 0 42px rgba(255, 30, 30, 0.34);
}

.death-counter {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 68;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
  color: rgba(255, 245, 237, 0.44);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.death-counter-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.death-counter-label {
  display: block;
  color: rgba(185, 33, 33, 0.96);
  text-shadow: 0 0 18px rgba(185, 33, 33, 0.32);
}

.death-counter strong {
  color: rgba(185, 33, 33, 0.96);
  font-family: "Baskerville", "Palatino Linotype", serif;
  font-size: 1.42rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(185, 33, 33, 0.32);
}

.death-store-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 33, 33, 0.42);
  border-radius: 16px;
  color: rgba(255, 232, 225, 0.9);
  text-decoration: none;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(84, 0, 0, 0.92), rgba(18, 0, 0, 0.98));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(185, 33, 33, 0.18);
  pointer-events: auto;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.death-store-link:hover,
.death-store-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 126, 126, 0.68);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(255, 82, 82, 0.26);
}

.death-store-link:focus-visible {
  outline: 2px solid rgba(255, 186, 186, 0.82);
  outline-offset: 3px;
}

.death-store-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(185, 33, 33, 0.32));
}

.death-overlay {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(4, 2, 2, 0.92);
  isolation: isolate;
}

.death-overlay[hidden] {
  display: none;
}

.death-overlay::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 50% 52%, rgba(138, 10, 10, 0.38), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(82, 0, 0, 0.72), transparent 34%),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.05), transparent 14%),
    radial-gradient(circle at 80% 72%, rgba(255, 255, 255, 0.04), transparent 14%),
    radial-gradient(circle at 38% 84%, rgba(255, 255, 255, 0.035), transparent 18%);
  filter: blur(36px);
  opacity: 0.78;
  transform: scale(1.08);
}

.death-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 14%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.94) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(58, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.92));
  pointer-events: none;
}

.death-overlay.is-active {
  display: grid;
  visibility: visible;
  pointer-events: auto;
  animation: deathOverlaySequence var(--death-duration, 3000ms) cubic-bezier(0.2, 0.02, 0.14, 1) both;
}

.death-overlay.is-active::before {
  animation: deathSmokeShift calc(var(--death-duration, 3000ms) * 1.05) linear both;
}

.death-impact {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 10%),
    radial-gradient(circle at center, rgba(140, 12, 12, 0.24), transparent 28%);
}

.death-overlay.is-active .death-impact {
  animation: deathImpactFlash 420ms ease-out both;
}

.death-stage {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  text-align: center;
}

.death-title {
  margin: 0;
  color: rgba(232, 221, 212, 0.97);
  font-family: "Baskerville", "Palatino Linotype", serif;
  font-size: clamp(4rem, 12vw, 8.6rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 0.9;
  text-transform: uppercase;
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.1) translateY(12px);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(145, 18, 18, 0.26),
    0 0 56px rgba(145, 18, 18, 0.34),
    0 8px 24px rgba(0, 0, 0, 0.8);
}

.death-overlay.is-active .death-title {
  animation: deathTitleSequence var(--death-duration, 3000ms) cubic-bezier(0.18, 0.02, 0.12, 1) both;
}

.death-whisper {
  margin: 16px 0 0;
  color: rgba(231, 219, 210, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
}

.death-overlay.is-active .death-whisper {
  animation: deathWhisperSequence var(--death-duration, 3000ms) ease both;
}

.prank-tile {
  margin: 0;
  min-height: 190px;
  overflow: hidden;
  border-radius: 26px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  background: rgba(30, 0, 0, 0.92);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(255, 40, 40, 0.32);
  transform: rotate(var(--tile-rotate, 0deg)) scale(1.02);
  animation: tileBuck 420ms steps(2, end) infinite;
}

.prank-tile img,
.prank-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.24) contrast(1.08);
}

.main-popup-card {
  width: min(560px, 100%);
  padding: 34px 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.95), rgba(243, 234, 216, 0.94)),
    linear-gradient(145deg, rgba(121, 191, 214, 0.16), transparent 48%);
  box-shadow: 0 28px 72px rgba(17, 37, 61, 0.24);
  backdrop-filter: blur(18px);
  text-align: center;
}

.main-popup-kicker {
  margin: 0 0 12px;
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.main-popup-card h2 {
  max-width: none;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.main-popup-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero {
  position: relative;
  padding: 24px 24px 36px;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-orbit-left {
  width: 360px;
  height: 360px;
  left: -100px;
  top: 180px;
  background: radial-gradient(circle, rgba(228, 194, 101, 0.76), rgba(228, 194, 101, 0));
}

.hero-orbit-right {
  width: 440px;
  height: 440px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(121, 191, 214, 0.68), rgba(31, 93, 146, 0));
}

.topbar,
.hero-grid,
.hero-stage,
.section,
.footer {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(251, 253, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.warning-banner-shell {
  width: 100vw;
  margin: 0 calc(50% - 50vw) 22px;
  text-align: center;
}

.warning-banner {
  display: block;
  width: 100%;
  border: 3px outset #d8d8d8;
  padding: 14px 16px;
  border-radius: 0;
  cursor: pointer;
  color: #ffff33;
  font-family: Verdana, Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff3030 0%, #c40000 55%, #7e0000 100%);
  box-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.42);
  text-shadow: 1px 1px 0 #550000;
  animation: flashAlert 520ms step-end infinite;
  transition: none;
}

.warning-banner:hover {
  background: linear-gradient(180deg, #ff4a4a 0%, #ce0000 55%, #8a0000 100%);
}

.warning-banner:focus-visible {
  outline: 3px dotted #ffff33;
  outline-offset: 4px;
}

.warning-banner::before,
.warning-banner::after {
  content: none;
}

.warning-banner-copy {
  display: block;
  padding: 5px 8px;
  border: 1px dashed #ffff99;
  background: rgba(0, 0, 0, 0.12);
}

.brand {
  font-family: "Baskerville", "Palatino Linotype", serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  color: rgba(17, 37, 61, 0.84);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--sea-deep);
  background: rgba(31, 93, 146, 0.08);
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 6px;
}

.hero-stage {
  margin-bottom: 30px;
}

.hero-copy,
.hero-panel,
.beauty-spotlight,
.feature-card,
.heritage-card,
.pillar,
.quote-band,
.strength-section,
.mini-card,
.band-shell,
.fact-toolbar,
.fact-card,
.timeline-card,
.source-card {
  animation: rise 900ms ease both;
}

.hero-copy,
.hero-panel,
.hero-scene,
.beauty-spotlight,
.heritage-card,
.quote-band,
.strength-section,
.band-shell,
.fact-toolbar,
.fact-card,
.timeline-card,
.source-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 54px 52px 34px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.9), rgba(243, 234, 216, 0.9)),
    linear-gradient(145deg, rgba(121, 191, 214, 0.12), transparent 48%);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.48), transparent 45%),
    radial-gradient(circle at top right, rgba(228, 194, 101, 0.2), transparent 28%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baskerville", "Palatino Linotype", serif;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 4.3vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: 1.48rem;
  line-height: 1;
}

.lead,
.section-copy,
.feature-card p,
.heritage-card p,
.pillar p,
.quote-band p,
.strength-copy p,
.mini-card p,
.footer p,
.beauty-spotlight p,
.hero-panel p,
.fact-card p,
.timeline-card p,
.source-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.68;
}

.lead {
  max-width: 61ch;
  margin-top: 24px;
  color: rgba(17, 37, 61, 0.92);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  box-shadow: 0 16px 34px rgba(31, 93, 146, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 37, 61, 0.08);
}

.hero-ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-ribbon span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(17, 37, 61, 0.08);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: 34px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(13, 39, 64, 0.96), rgba(28, 84, 127, 0.84)),
    linear-gradient(145deg, rgba(251, 253, 255, 0.12), transparent 56%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(228, 194, 101, 0.18), transparent 22%),
    linear-gradient(145deg, transparent 50%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}

.panel-label {
  margin-bottom: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.counter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.counter-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-sm);
}

.counter-value {
  display: block;
  font-family: "Baskerville", "Palatino Linotype", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--gold);
}

.counter-text {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.45;
}

.panel-note {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.8);
}

.panel-sunrise {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -34px;
  bottom: -76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 194, 101, 0.82), rgba(228, 194, 101, 0.06) 60%, transparent 65%);
}

.hero-scene {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 34px;
  border-radius: 38px;
  color: var(--white);
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(9, 22, 38, 0.18), rgba(9, 22, 38, 0.42)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(12, 34, 58, 0.98), rgba(32, 89, 137, 0.94));
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.hero-scene-idf {
  min-height: clamp(760px, 88vh, 980px);
  padding: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(145deg, rgba(8, 20, 35, 0.98), rgba(18, 49, 77, 0.96));
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 45%), rgba(255, 255, 255, 0.24), transparent 20%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 38%);
  pointer-events: none;
  z-index: 1;
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 255, 255, 0.04) 118px 119px);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.hero-scene:hover {
  box-shadow: 0 34px 88px rgba(7, 21, 38, 0.28);
}

.scene-photo-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 14px;
  padding: 14px;
  z-index: 0;
}

.scene-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  background: rgba(6, 18, 31, 0.96);
  box-shadow: 0 22px 48px rgba(3, 12, 22, 0.26);
}

.scene-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.08), rgba(8, 18, 31, 0.2)),
    linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 32%);
  pointer-events: none;
}

.scene-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.scene-photo-lead {
  grid-row: 1 / span 2;
}

.scene-photo-square {
  grid-column: 2;
  grid-row: 1;
}

.scene-photo-wide {
  grid-column: 2;
  grid-row: 2;
}

.scene-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
  display: grid;
  gap: 18px;
  padding: 26px 28px 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(6, 17, 32, 0.66), rgba(10, 30, 55, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 52px rgba(5, 15, 28, 0.28);
  backdrop-filter: blur(10px);
}

.hero-scene-idf .scene-copy {
  max-width: 620px;
  padding: 30px 32px 32px;
  background: linear-gradient(180deg, rgba(5, 14, 26, 0.76), rgba(9, 25, 45, 0.42));
}

.hero-scene-idf .scene-copy h2 {
  max-width: 11ch;
  font-size: clamp(3rem, 4.6vw, 5.4rem);
}

.hero-scene-idf .scene-lead {
  max-width: 40ch;
  font-size: 1.08rem;
}

.scene-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scene-copy h2 {
  max-width: 13ch;
  color: var(--white);
  text-shadow: 0 12px 30px rgba(4, 14, 25, 0.36);
}

.scene-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.03rem;
  line-height: 1.72;
}

.scene-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-statline span {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scene-credit {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(8, 18, 31, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.scene-panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 7 12;
}

.scene-band {
  fill: rgba(255, 255, 255, 0.14);
  mix-blend-mode: screen;
  animation: bannerDrift 12s ease-in-out infinite;
}

.scene-band-bottom {
  opacity: 0.8;
  animation-duration: 16s;
  animation-direction: reverse;
}

.scene-sun {
  opacity: 0.94;
  animation: pulseGlow 7s ease-in-out infinite;
}

.scene-aura-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2;
  stroke-dasharray: 6 14;
  transform-box: fill-box;
  transform-origin: center;
  animation: slowSpin 18s linear infinite;
}

.scene-aura-ring.secondary {
  opacity: 0.74;
  animation-duration: 28s;
  animation-direction: reverse;
}

.scene-signal-beam {
  opacity: 0.76;
  transform-origin: 790px 202px;
  animation: beaconSweep 9s ease-in-out infinite;
}

.scene-star-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: floatStar 8s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.22));
}

.scene-star-outline {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 6;
  stroke-linejoin: round;
}

.scene-star-core {
  fill: rgba(121, 191, 214, 0.2);
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2;
  stroke-linejoin: round;
}

.scene-dot {
  fill: rgba(255, 255, 255, 0.92);
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 4.4s ease-in-out infinite;
}

.scene-dot.d2 {
  animation-delay: 0.6s;
}

.scene-dot.d3 {
  animation-delay: 1.1s;
}

.scene-dot.d4 {
  animation-delay: 1.8s;
}

.scene-dot.d5 {
  animation-delay: 2.2s;
}

.scene-city-back {
  fill: rgba(13, 31, 54, 0.42);
}

.scene-city-front {
  fill: rgba(9, 27, 49, 0.86);
}

.scene-stone-line {
  fill: rgba(219, 195, 146, 0.84);
}

.scene-wave-line {
  fill: none;
  stroke: rgba(228, 246, 255, 0.84);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 20;
  animation: waveShift 12s linear infinite;
}

.scene-wave-line.two {
  opacity: 0.58;
  stroke-width: 3;
  animation-duration: 18s;
  animation-direction: reverse;
}

.section {
  position: relative;
  padding: 28px 0 84px;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading.wide,
.section-heading.narrow {
  max-width: 920px;
}

.atmosphere-band {
  padding-top: 0;
  padding-bottom: 74px;
}

.band-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(251, 253, 255, 0.84), rgba(243, 234, 216, 0.84));
}

.band-shell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.beauty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 22px;
  align-items: stretch;
}

.beauty-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.beauty-photo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 340px;
  border-radius: 30px;
  background: rgba(12, 24, 38, 0.94);
  box-shadow: var(--shadow-lg);
}

.beauty-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.beauty-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.06), rgba(4, 11, 20, 0.22) 42%, rgba(4, 11, 20, 0.9) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%);
  pointer-events: none;
}

.beauty-photo-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(6, 17, 31, 0.72), rgba(8, 22, 39, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.beauty-photo-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.beauty-photo-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

.beauty-photo-caption a {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.beauty-photo-caption a:hover {
  text-decoration: underline;
}

.beauty-spotlight {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: end;
  padding: 34px;
  border-radius: 34px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 33, 52, 0.08), rgba(15, 33, 52, 0.54)),
    linear-gradient(145deg, #134669 0%, #2674a3 36%, #d8b26b 72%, #f4e7c6 100%);
}

.beauty-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 22%),
    linear-gradient(180deg, transparent 28%, rgba(15, 33, 52, 0.5) 100%);
  pointer-events: none;
}

.beauty-spotlight::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -30px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 0 0 24px rgba(255, 255, 255, 0.05),
    inset 0 0 0 58px rgba(255, 255, 255, 0.05);
}

.spotlight-tag {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.spotlight-copy h3 {
  max-width: 13ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.94;
}

.card-grid,
.heritage-grid,
.pillar-grid,
.strength-cards,
.fact-grid,
.timeline,
.source-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: 1fr;
}

.feature-card,
.pillar,
.heritage-card,
.fact-card,
.timeline-card,
.source-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transition: transform 220ms ease, opacity 180ms ease;
}

.feature-card:hover,
.pillar:hover,
.heritage-card:hover,
.mini-card:hover,
.fact-card:hover,
.timeline-card:hover,
.source-card:hover {
  transform: translateY(-4px);
}

.feature-card::before,
.pillar::before,
.heritage-card::before,
.mini-card::before,
.fact-card::before,
.timeline-card::before,
.source-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.4));
}

.feature-card.coast {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.04), rgba(251, 253, 255, 0.2)),
    linear-gradient(145deg, #0f3d63 0%, #2f78a7 48%, #f0d7a1 100%);
}

.feature-card.stone {
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.08), rgba(251, 253, 255, 0.46)),
    linear-gradient(145deg, #816d57 0%, #b9966d 52%, #f4ecdc 100%);
}

.feature-card.desert {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.05), rgba(251, 253, 255, 0.2)),
    linear-gradient(145deg, #7b4c34 0%, #b97249 55%, #f2c27e 100%);
}

.facts-section::before,
.heritage-section::before,
.innovation-section::before,
.idf-section::before,
.sources-section::before {
  content: "";
  position: absolute;
  inset: 30px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 37, 61, 0.14), transparent);
}

.fact-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(251, 253, 255, 0.86), rgba(243, 234, 216, 0.86));
}

.fact-filter {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.fact-filter:hover {
  transform: translateY(-1px);
  background: rgba(31, 93, 146, 0.1);
}

.fact-filter.is-active {
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(31, 93, 146, 0.22);
}

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.88), rgba(243, 234, 216, 0.88)),
    linear-gradient(135deg, rgba(31, 93, 146, 0.08), transparent 48%);
}

.fact-card::before {
  background:
    linear-gradient(135deg, rgba(31, 93, 146, 0.08), transparent 42%),
    radial-gradient(circle at right top, rgba(228, 194, 101, 0.18), transparent 22%);
}

.fact-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.fact-category,
.fact-year,
.source-role,
.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-category,
.source-role,
.timeline-year,
.heritage-label {
  color: var(--sea);
}

.fact-year {
  color: rgba(17, 37, 61, 0.56);
}

.fact-value {
  font-family: "Baskerville", "Palatino Linotype", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--sea-deep);
}

.fact-title {
  font-size: 1.34rem;
  margin: 0;
}

.fact-link,
.source-card a {
  color: var(--sea-deep);
  text-decoration: none;
  font-weight: 700;
}

.fact-link:hover,
.source-card a:hover {
  text-decoration: underline;
}

.heritage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.heritage-card {
  min-height: 170px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.86), rgba(243, 234, 216, 0.88)),
    linear-gradient(135deg, rgba(31, 93, 146, 0.06), transparent 50%);
}

.heritage-card::before {
  background: linear-gradient(135deg, rgba(31, 93, 146, 0.08), transparent 46%);
}

.heritage-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-band {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 34px 110px;
  margin-bottom: 32px;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(17, 37, 61, 0.94), rgba(104, 114, 79, 0.9));
}

.quote-band::before {
  content: "\"";
  position: absolute;
  left: 32px;
  top: 10px;
  color: rgba(255, 255, 255, 0.18);
  font-family: "Baskerville", "Palatino Linotype", serif;
  font-size: 7rem;
  line-height: 1;
}

.quote-band p {
  max-width: 58ch;
  font-size: 1.22rem;
}

.timeline-heading {
  margin-top: 10px;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-card {
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.9), rgba(238, 245, 251, 0.88)),
    linear-gradient(135deg, rgba(228, 194, 101, 0.08), transparent 50%);
}

.timeline-card::before {
  background:
    linear-gradient(135deg, rgba(31, 93, 146, 0.08), transparent 42%),
    radial-gradient(circle at top right, rgba(228, 194, 101, 0.14), transparent 18%);
}

.pillar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar {
  min-height: 250px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.88), rgba(243, 234, 216, 0.88));
  border: 1px solid var(--line);
}

.pillar::before {
  background:
    linear-gradient(135deg, rgba(31, 93, 146, 0.08), transparent 48%),
    radial-gradient(circle at top right, rgba(228, 194, 101, 0.22), transparent 18%);
}

.strength-section {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 36px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(228, 194, 101, 0.3), transparent 24%),
    linear-gradient(145deg, rgba(13, 35, 58, 0.98), rgba(28, 69, 106, 0.95));
}

.strength-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 93%, rgba(255, 255, 255, 0.08) 93% 94%, transparent 94%),
    linear-gradient(90deg, transparent 0 88%, rgba(255, 255, 255, 0.06) 88% 89%, transparent 89%);
  background-size: 100% 22px, 22px 100%;
  opacity: 0.18;
  pointer-events: none;
}

.idf-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: 18px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(228, 194, 101, 0.12), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-xl);
}

.idf-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  margin: 0;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-xl);
  background: rgba(9, 27, 49, 0.92);
}

.idf-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.01);
  transition: transform 400ms ease, filter 300ms ease;
}

.idf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 20, 36, 0.02), rgba(9, 20, 36, 0.15) 36%, rgba(9, 20, 36, 0.84) 100%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 34%);
  z-index: 1;
  pointer-events: none;
}

.idf-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.06);
}

.idf-card-wide {
  min-height: 660px;
  grid-row: span 2;
}

.idf-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 26px;
  color: var(--white);
}

.idf-caption.compact {
  gap: 10px;
}

.idf-caption h3 {
  color: var(--white);
  margin-bottom: 0;
  max-width: 18ch;
  text-shadow: 0 10px 26px rgba(6, 15, 26, 0.42);
}

.idf-caption p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.idf-caption a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.idf-caption a:hover {
  text-decoration: underline;
}

.idf-tag {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.idf-section {
  padding: 40px 36px 48px;
  border-radius: 40px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(228, 194, 101, 0.18), transparent 20%),
    linear-gradient(145deg, rgba(8, 21, 36, 0.98), rgba(21, 58, 91, 0.95));
  box-shadow: var(--shadow-xl);
}

.idf-section::before {
  display: none;
}

.idf-section .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.idf-section h2 {
  color: var(--white);
}

.idf-section .section-copy {
  color: rgba(255, 255, 255, 0.84);
}

.strength-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.95fr);
  gap: 26px;
  align-items: start;
}

.strength-copy {
  display: grid;
  gap: 18px;
}

.strength-cards {
  grid-template-columns: 1fr;
}

.mini-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-sm);
}

.mini-card::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(circle at right top, rgba(228, 194, 101, 0.2), transparent 28%);
}

.mini-title {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-card {
  min-height: 176px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.9), rgba(243, 234, 216, 0.9)),
    linear-gradient(135deg, rgba(31, 93, 146, 0.06), transparent 50%);
}

.source-card::before {
  background:
    linear-gradient(135deg, rgba(31, 93, 146, 0.08), transparent 44%),
    radial-gradient(circle at top right, rgba(228, 194, 101, 0.16), transparent 18%);
}

.footer {
  padding: 4px 0 42px;
}

.footer p {
  color: rgba(17, 37, 61, 0.72);
}

.scroll-void {
  height: 30000vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(121, 191, 214, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(248, 251, 255, 0), rgba(236, 243, 248, 0.32) 18%, rgba(243, 234, 216, 0.5) 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatStar {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-6px, -10px, 0) scale(1.025);
  }
}

@keyframes waveShift {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -220;
  }
}

@keyframes beaconSweep {
  0%,
  100% {
    opacity: 0.22;
    transform: scaleX(0.96);
  }

  50% {
    opacity: 0.82;
    transform: scaleX(1.06);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.76;
  }

  50% {
    opacity: 1;
  }
}

@keyframes bannerDrift {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(12px) translateY(-4px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.84);
  }

  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@keyframes flashAlert {
  0%,
  49% {
    color: #ffff33;
    background: linear-gradient(180deg, #ff3030 0%, #c40000 55%, #7e0000 100%);
    box-shadow:
      3px 3px 0 rgba(0, 0, 0, 0.3),
      inset 1px 1px 0 rgba(255, 255, 255, 0.42);
    opacity: 1;
  }

  50%,
  100% {
    color: #cc0000;
    background: linear-gradient(180deg, #ffff33 0%, #ffd400 100%);
    box-shadow:
      3px 3px 0 rgba(0, 0, 0, 0.3),
      inset 1px 1px 0 rgba(255, 255, 255, 0.7);
    opacity: 0.45;
  }
}

@keyframes overlayStrobe {
  0%,
  49% {
    background:
      radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 24%),
      linear-gradient(180deg, rgba(255, 25, 25, 0.84), rgba(19, 0, 0, 0.96));
  }

  50%,
  100% {
    background:
      radial-gradient(circle at center, rgba(255, 255, 255, 0.26), transparent 18%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(160, 0, 0, 0.94));
  }
}

@keyframes tileBuck {
  0%,
  100% {
    transform: rotate(var(--tile-rotate, 0deg)) translate3d(0, 0, 0) scale(1.02);
  }

  50% {
    transform: rotate(calc(var(--tile-rotate, 0deg) * -1)) translate3d(0, -10px, 0) scale(1.08);
  }
}

@keyframes siteJolt {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(-7px, 5px, 0);
  }

  50% {
    transform: translate3d(8px, -6px, 0);
  }

  75% {
    transform: translate3d(-6px, -4px, 0);
  }
}

@keyframes deathOverlaySequence {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes deathTitleSequence {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: scale(1.12) translateY(18px);
  }

  16% {
    opacity: 1;
    filter: blur(0.4px);
    transform: scale(1) translateY(0);
  }

  80% {
    opacity: 1;
    filter: blur(0.4px);
    transform: scale(1) translateY(0);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.99) translateY(-2px);
  }
}

@keyframes deathWhisperSequence {
  0%,
  22% {
    opacity: 0;
  }

  32%,
  74% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes deathImpactFlash {
  0% {
    opacity: 0;
  }

  16% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
  }
}

@keyframes deathSmokeShift {
  0% {
    transform: scale(1.08) translate3d(0, 0, 0);
    opacity: 0.66;
  }

  36% {
    transform: scale(1.12) translate3d(-1%, 1.2%, 0);
    opacity: 0.88;
  }

  100% {
    transform: scale(1.18) translate3d(1.2%, -0.8%, 0);
    opacity: 0.76;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-copy,
  .hero-panel,
  .hero-scene,
  .beauty-spotlight,
  .feature-card,
  .heritage-card,
  .pillar,
  .quote-band,
  .strength-section,
  .mini-card,
  .band-shell,
  .fact-toolbar,
  .fact-card,
  .timeline-card,
  .source-card {
    animation: none;
    transition: none;
  }

  .hero-scene {
    transform: none;
  }

  .scene-band,
  .scene-sun,
  .scene-aura-ring,
  .scene-signal-beam,
  .scene-star-group,
  .scene-dot,
  .scene-wave-line {
    animation: none;
  }

  .prank-overlay,
  .prank-tile,
  body.prank-active,
  .death-overlay,
  .death-title,
  .death-whisper,
  .death-impact,
  .vision-layer-mexico::before,
  .vision-layer-matrix::before {
    animation: none;
  }

  .vision-layer {
    transition: none;
  }

  body.prank-active .page-shell {
    transform: scale(0.985);
  }

  .death-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }

  .death-overlay.is-active .death-title,
  .death-overlay.is-active .death-whisper {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .death-overlay.is-active .death-impact {
    opacity: 0.36;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .beauty-layout,
  .strength-layout,
  .idf-gallery,
  .pillar-grid,
  .heritage-grid,
  .timeline,
  .fact-grid,
  .source-grid,
  .prank-overlay-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    max-width: none;
  }

  .hero-scene {
    min-height: 680px;
  }

  .hero-scene-idf {
    min-height: 920px;
  }

  .prank-overlay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prank-gamble {
    width: min(760px, calc(100vw - 48px));
  }

  .prank-roulette-board {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .scene-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1.2fr 0.8fr 0.8fr;
  }

  .scene-photo-lead,
  .scene-photo-square,
  .scene-photo-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .idf-card-wide {
    min-height: 540px;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .griffin-float {
    left: 4px;
  }

  .griffin-float img {
    width: clamp(92px, 20vw, 136px);
  }

  .griffin-speech {
    top: -4px;
    left: calc(100% + 8px);
    width: min(172px, 34vw);
    padding: 9px 10px 10px;
    border-radius: 14px;
  }

  .griffin-speech-text {
    font-size: 0.72rem;
  }

  .griffin-note {
    width: min(184px, 36vw);
    padding: 8px 10px 9px;
  }

  .griffin-note-text {
    font-size: 0.66rem;
  }

  .griffin-meter {
    padding: 8px 8px 10px;
  }

  .griffin-meter-label,
  .griffin-meter-status {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .prank-gamble {
    top: 54%;
    width: min(680px, calc(100vw - 34px));
    max-height: calc(100vh - 108px);
  }

  .prank-gamble-frame {
    padding: 20px 18px;
  }

  .prank-gamble-head,
  .prank-roulette-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .prank-gamble-stage-label {
    text-align: left;
  }

  .prank-slot-reels {
    gap: 10px;
  }

  .prank-slot-reel {
    min-height: 114px;
  }

  .prank-roulette-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .hero-copy,
  .hero-panel,
  .hero-scene,
  .beauty-spotlight,
  .strength-section {
    padding: 26px;
  }

  .quote-band {
    padding: 30px 24px 24px 84px;
  }

  .band-shell {
    justify-content: flex-start;
  }

  .card-grid,
  .pillar-grid,
  .heritage-grid,
  .idf-gallery {
    grid-template-columns: 1fr;
  }

  .beauty-photo-grid {
    grid-template-columns: 1fr;
  }

  .counter-grid {
    grid-template-columns: 1fr;
  }

  .prank-overlay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-scene {
    min-height: 640px;
  }

  .hero-scene-idf {
    min-height: 900px;
  }

  .scene-copy {
    max-width: none;
    padding: 22px;
  }

  .scene-copy h2 {
    max-width: 15ch;
  }

  .scene-actions .button {
    width: calc(50% - 6px);
  }

  .scene-credit {
    left: 24px;
    right: auto;
    bottom: 22px;
  }

  .idf-card,
  .idf-card-wide {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .griffin-float {
    left: -8px;
  }

  .griffin-float img {
    width: clamp(78px, 24vw, 112px);
  }

  .griffin-speech {
    top: -10px;
    width: min(140px, 38vw);
    padding: 8px 9px;
  }

  .griffin-speech::before {
    top: 16px;
  }

  .griffin-speech-text {
    font-size: 0.64rem;
  }

  .griffin-note {
    top: 58%;
    width: min(152px, 40vw);
    padding: 7px 8px;
  }

  .griffin-note-text {
    font-size: 0.6rem;
  }

  .griffin-meter {
    padding: 7px 7px 8px;
    border-radius: 12px;
  }

  .griffin-meter-head {
    margin-bottom: 5px;
  }

  .griffin-meter-track {
    height: 10px;
  }

  .main-popup-card {
    padding: 26px 20px 22px;
    border-radius: 24px;
  }

  .main-popup-actions {
    flex-direction: column;
  }

  .main-popup-actions .button {
    width: 100%;
  }

  .prank-overlay {
    align-content: start;
    padding: 72px 14px 14px;
  }

  .prank-dismiss {
    top: 14px;
    right: 14px;
    min-width: 0;
  }

  .prank-gamble {
    top: 58%;
    width: calc(100vw - 22px);
    max-height: calc(100vh - 88px);
  }

  .prank-gamble-frame {
    gap: 14px;
    padding: 18px 14px 16px;
    border-radius: 24px;
  }

  .prank-gamble-progress {
    gap: 8px;
  }

  .prank-gamble-progress-chip {
    width: 14px;
    min-width: 14px;
    height: 14px;
    flex: 0 0 auto;
  }

  .scratch-card {
    min-height: 200px;
    border-radius: 20px;
  }

  .prank-slot-reels {
    gap: 8px;
  }

  .prank-slot-reel {
    min-height: 96px;
    border-radius: 18px;
  }

  .prank-stage-action {
    width: 100%;
    justify-self: stretch;
  }

  .prank-roulette-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .prank-roulette-pocket {
    min-height: 42px;
    font-size: 0.8rem;
  }

  .prank-roulette-controls {
    align-items: stretch;
  }

  .death-counter {
    top: 12px;
    right: 12px;
    gap: 8px;
    font-size: 0.66rem;
  }

  .death-counter-readout {
    gap: 8px;
  }

  .death-counter strong {
    font-size: 1.16rem;
  }

  .death-store-link {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .settings-panel {
    top: 12px;
    left: 12px;
  }

  .settings-trigger {
    width: 52px;
    height: 52px;
  }

  .settings-menu {
    width: min(320px, calc(100vw - 24px));
    padding: 14px 14px 13px;
    border-radius: 22px;
  }

  .settings-slider-value {
    font-size: 1.72rem;
  }

  .gun-toggle {
    right: 12px;
    bottom: 12px;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.66rem;
  }

  .gun-toggle-input {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding-inline: 14px;
  }

  .topbar,
  .hero-grid,
  .hero-stage,
  .section,
  .footer {
    width: min(1200px, calc(100% - 8px));
  }

  .hero-copy,
  .hero-panel,
  .hero-scene,
  .beauty-spotlight,
  .feature-card,
  .heritage-card,
  .pillar,
  .quote-band,
  .strength-section,
  .idf-card,
  .mini-card,
  .band-shell,
  .fact-toolbar,
  .fact-card,
  .timeline-card,
  .source-card {
    border-radius: 22px;
  }

  .hero-copy {
    padding: 24px 22px;
  }

  .hero-panel,
  .hero-scene,
  .beauty-spotlight,
  .strength-section {
    padding: 22px;
  }

  .beauty-photo-card {
    min-height: 300px;
    border-radius: 22px;
  }

  .beauty-photo-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .button {
    width: 100%;
  }

  .warning-banner {
    width: 100%;
    padding: 12px 10px;
    font-size: clamp(0.95rem, 5vw, 1.2rem);
    letter-spacing: 0.05em;
  }

  .warning-banner-copy {
    padding: 4px 6px;
  }

  .prank-overlay-grid {
    gap: 12px;
  }

  .prank-insult-text {
    padding: 22px 20px 18px;
    border-radius: 20px;
    letter-spacing: 0.05em;
  }

  .death-title {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
    letter-spacing: 0.09em;
  }

  .death-whisper {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .prank-tile {
    min-height: 140px;
    border-radius: 20px;
  }

  .hero-ribbon,
  .nav-links,
  .band-shell,
  .fact-toolbar {
    gap: 8px;
  }

  .quote-band {
    padding: 24px 20px 20px 20px;
  }

  .quote-band::before {
    position: static;
    display: block;
    margin-bottom: 10px;
    font-size: 4.5rem;
  }

  .spotlight-copy h3 {
    max-width: none;
  }

  .hero-scene {
    min-height: 580px;
    padding: 16px;
  }

  .hero-scene-idf {
    min-height: 780px;
    padding: 12px;
  }

  .scene-copy {
    padding: 18px;
    border-radius: 22px;
  }

  .scene-copy h2 {
    max-width: none;
  }

  .scene-statline span {
    width: 100%;
    text-align: center;
  }

  .scene-credit {
    position: relative;
    left: auto;
    bottom: auto;
    right: auto;
    margin-top: 12px;
    width: fit-content;
  }

  .scene-actions .button {
    width: 100%;
  }

  .idf-section {
    padding: 26px 18px 28px;
    border-radius: 24px;
  }

  .idf-card,
  .idf-card-wide {
    min-height: 340px;
  }

  .idf-caption {
    padding: 18px;
  }

  .idf-caption h3 {
    max-width: none;
  }
}
