:root {
  --achttien-achtergrond: #711d3a;
  --achttien-achtergrond-diep: #4f1730;
  --achttien-tekst: #ffc1cf;
  --achttien-fel: #ff648b;
  --achttien-licht: #ffe5eb;
}

.achttien-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--achttien-tekst);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 124, 157, .18), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(255, 77, 122, .16), transparent 34%),
    linear-gradient(145deg, var(--achttien-achtergrond), var(--achttien-achtergrond-diep));
}

.achttien-body > .globalnav {
  width: min(96vw, 1180px);
  color: var(--achttien-licht);
  margin-bottom: 0;
}

.achttien-body > .globalnav a:last-child {
  color: #fff;
  font-weight: 700;
}

.achttien-pagina {
  box-sizing: border-box;
  min-height: calc(100vh - 42px);
  display: grid;
  place-items: center;
  padding: 28px 20px 54px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.achttien-inhoud {
  width: min(94vw, 980px);
  position: relative;
  z-index: 2;
}

.achttien-kopregel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  margin-bottom: 12px;
}

.achttien-badge {
  display: grid;
  place-items: center;
  width: clamp(58px, 8vw, 92px);
  aspect-ratio: 1;
  border: clamp(5px, .65vw, 8px) solid var(--achttien-licht);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,100,139,.75), 0 8px 22px rgba(48,0,18,.28);
  color: var(--achttien-licht);
  background: rgba(111,17,52,.62);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1;
  transform: rotate(-5deg);
}

.achttien-pagina h1 {
  margin: 0;
  color: var(--achttien-licht);
  font-size: clamp(58px, 9vw, 118px);
  line-height: .9;
  letter-spacing: -.04em;
  text-shadow: 0 4px 0 rgba(91, 14, 44, .4);
}

.achttien-welkom {
  max-width: 850px;
  margin: 22px auto 10px;
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1.45;
}

.achttien-getal {
  margin: clamp(18px, 4vh, 42px) auto 8px;
  color: var(--achttien-licht);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: clamp(150px, 31vw, 430px);
  line-height: .78;
  letter-spacing: -.06em;
  text-shadow:
    0 8px 0 rgba(121, 24, 58, .42),
    0 18px 45px rgba(51, 0, 19, .28);
  transform-origin: center;
}

.achttien-getal.is-nieuw {
  animation: achttien-pop 520ms cubic-bezier(.2,.7,.28,1);
}

@keyframes achttien-pop {
  0% { opacity: .15; transform: scale(.82) rotate(-1.2deg); }
  58% { opacity: 1; transform: scale(1.045) rotate(.4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.achttien-decoratie {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.achttien-symbool {
  position: absolute;
  opacity: .22;
  filter: saturate(.75);
  font-size: clamp(36px, 6vw, 92px);
  animation: achttien-zweef 12s ease-in-out infinite alternate;
}
.achttien-symbool:nth-child(1)  { left: 5%;  top: 14%;  animation-duration: 14s; }
.achttien-symbool:nth-child(2)  { right: 7%; top: 20%;  animation-duration: 11s; animation-delay: -3s; }
.achttien-symbool:nth-child(3)  { left: 11%; top: 58%;  animation-duration: 16s; animation-delay: -6s; }
.achttien-symbool:nth-child(4)  { right: 11%; bottom: 11%; animation-duration: 13s; animation-delay: -8s; }
.achttien-symbool:nth-child(5)  { left: 18%; top: 33%;  font-size: clamp(32px, 5vw, 76px); animation-duration: 18s; animation-delay: -2s; }
.achttien-symbool:nth-child(6)  { right: 18%; top: 41%; font-size: clamp(30px, 4.8vw, 72px); animation-duration: 17s; animation-delay: -9s; }
.achttien-symbool:nth-child(7)  { left: 47%; top: 7%;   font-size: clamp(24px, 4vw, 58px); animation-duration: 18s; animation-delay: -2s; }
.achttien-symbool:nth-child(8)  { left: 7%;  bottom: 13%; animation-duration: 15s; animation-delay: -4s; }
.achttien-symbool:nth-child(9)  { right: 22%; top: 8%;  font-size: clamp(26px, 4.2vw, 62px); animation-duration: 19s; animation-delay: -10s; }
.achttien-symbool:nth-child(10) { left: 36%; bottom: 8%; font-size: clamp(28px, 4.4vw, 66px); animation-duration: 12s; animation-delay: -5s; }
.achttien-symbool:nth-child(11) { right: 6%;  top: 61%; font-size: clamp(34px, 5.2vw, 78px); animation-duration: 20s; animation-delay: -7s; }


/* Af en toe duikt een monochroom Banddraaja-logo gedimd op de achtergrond op. */
.achttien-logo-laag {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.achttien-spooklogo {
  position: absolute;
  display: block;
  width: var(--spook-breedte, 240px);
  max-width: 38vw;
  max-height: 26vh;
  object-fit: contain;
  opacity: 0;
  filter: invert(91%) sepia(16%) saturate(460%) hue-rotate(292deg) brightness(105%) contrast(101%);
  transform: translate(-50%, -50%) rotate(var(--spook-draai, 0deg)) scale(.86);
  transform-origin: center;
  animation: achttien-spooklogo var(--spook-duur, 5.5s) ease-in-out forwards;
}

@keyframes achttien-spooklogo {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--spook-draai, 0deg)) scale(.82); }
  18%  { opacity: var(--spook-opacity, .13); transform: translate(-50%, -50%) rotate(var(--spook-draai, 0deg)) scale(1); }
  72%  { opacity: var(--spook-opacity, .13); transform: translate(-50%, -50%) rotate(var(--spook-draai, 0deg)) scale(1.03); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--spook-draai, 0deg)) scale(1.08); }
}

@keyframes achttien-zweef {
  from { transform: translateY(-8px) rotate(-7deg); }
  to   { transform: translateY(12px) rotate(7deg); }
}

.achttien-noot {
  margin: 18px 0 0;
  color: rgba(255,229,235,.68);
  font-size: 12px;
}

@media (max-width: 680px) {
  .achttien-body > .globalnav {
    width: auto;
    margin: 10px 12px 0;
  }
  .achttien-pagina {
    min-height: calc(100vh - 62px);
    padding-top: 20px;
  }
  .achttien-kopregel { gap: 12px; }
  .achttien-welkom { margin-top: 16px; }
  .achttien-getal { font-size: clamp(120px, 42vw, 260px); }
}

@media (prefers-reduced-motion: reduce) {
  .achttien-symbool,
  .achttien-getal.is-nieuw { animation: none; }
  .achttien-spooklogo { display: none; }
}
