:root {
  --ink: #163039;
  --ink-soft: #52636a;
  --paper: #f4efe6;
  --paper-strong: #fffaf1;
  --card: #ffffff;
  --red: #d92932;
  --red-dark: #991d25;
  --green: #16745e;
  --green-soft: #d9efe7;
  --blue: #234f7a;
  --blue-soft: #dcecf5;
  --mustard: #f0b847;
  --tomato: #ee6b3b;
  --track: #25282b;
  --shadow: 0 18px 46px rgba(28, 35, 38, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-strong), var(--paper));
  font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(22, 48, 57, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 48, 57, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(22, 48, 57, 0.12);
  background: rgba(255, 250, 241, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: cover;
  background: white;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(35, 79, 122, 0.24);
}

.nav-links {
  gap: clamp(0.5rem, 3vw, 1.5rem);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 76svh;
  padding: clamp(2.5rem, 5vw, 4.4rem) clamp(1rem, 5vw, 5rem) 2rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.98) 0%, rgba(244, 239, 230, 0.9) 45%, rgba(244, 239, 230, 0.36) 72%),
    url("assets/frans.jpg") right clamp(-7rem, -4vw, -2rem) bottom / min(50vw, 44rem) auto no-repeat,
    linear-gradient(135deg, #dcecf5, #f4efe6);
}

.hero::before {
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  bottom: 1.8rem;
  width: min(34rem, 62vw);
  height: 9rem;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(37, 40, 43, 0.72) 8% 11%, transparent 11% 23%, rgba(37, 40, 43, 0.72) 23% 26%, transparent 26% 38%, rgba(37, 40, 43, 0.72) 38% 41%, transparent 41%),
    linear-gradient(180deg, transparent 0 46%, var(--track) 46% 50%, transparent 50% 60%, var(--track) 60% 64%, transparent 64%);
  transform: skewX(-8deg);
  opacity: 0.35;
}

.hero-copy {
  max-width: 46rem;
}

.mobile-portrait {
  display: none;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.hero-lead {
  max-width: 42rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.5;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(5.2rem, 1fr));
  gap: 0.75rem;
  max-width: 41rem;
  margin: 1rem 0 0.8rem;
}

.countdown-cell {
  min-width: 0;
  padding: 0.85rem 0.75rem;
  border: 1px solid rgba(22, 48, 57, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(35, 79, 122, 0.08);
}

.countdown-value {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
}

.countdown-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.retirement-state {
  min-height: 1.5rem;
  color: var(--ink-soft);
  font-weight: 650;
}

.hero-actions,
.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(22, 48, 57, 0.2);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--blue-soft);
}

.button-ghost {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  color: var(--ink-soft);
  background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--ink);
  background: var(--blue-soft);
}

.departure-board {
  align-self: end;
  margin-bottom: 1rem;
  color: #e9fff2;
  background: #17343b;
  border: 8px solid #10262b;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: "Cascadia Mono", Consolas, monospace;
  overflow: hidden;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(6.4rem, 0.85fr) minmax(10.5rem, 1.2fr) minmax(6.4rem, 0.85fr);
  gap: 0;
  min-height: 4rem;
  padding: 0;
  border-bottom: 1px solid rgba(233, 255, 242, 0.18);
}

.board-row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  text-align: center;
}

.board-head {
  color: #132a30;
  background: var(--mustard);
  font-weight: 800;
}

.board-foot {
  padding: 0.75rem 0.9rem;
  color: #c9e2d3;
  font-size: 0.78rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  color: white;
  background: var(--track);
}

.stats-strip div {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: linear-gradient(135deg, var(--blue), #17343b);
}

.stats-strip div:nth-child(2) {
  background: linear-gradient(135deg, var(--green), #17343b);
}

.stats-strip div:nth-child(3) {
  background: linear-gradient(135deg, var(--tomato), #17343b);
}

.stats-strip div:nth-child(4) {
  background: linear-gradient(135deg, var(--red), #17343b);
}

.stat-number,
.stat-label {
  display: block;
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.section {
  scroll-margin-top: 5rem;
  padding: clamp(3.3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.route-section {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.68), rgba(220, 236, 245, 0.52));
}

.route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  max-width: 78rem;
  margin: 0 auto;
}

.route-line::before {
  position: absolute;
  top: 2rem;
  left: 7%;
  right: 7%;
  height: 0.42rem;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(37, 40, 43, 0.68) 0 1.4rem, transparent 1.4rem 2.15rem),
    linear-gradient(180deg, var(--track), var(--track));
  border-radius: 999px;
}

.route-stop {
  position: relative;
  min-width: 0;
  padding: 0 0.3rem;
  text-align: center;
}

.stop-marker {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin-bottom: 1rem;
  color: white;
  background: var(--blue);
  border: 0.35rem solid var(--paper-strong);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(35, 79, 122, 0.24);
  font-weight: 800;
}

.route-stop:nth-child(2) .stop-marker,
.route-stop:nth-child(5) .stop-marker {
  background: var(--green);
}

.route-stop:nth-child(3) .stop-marker {
  background: var(--tomato);
}

.route-stop:nth-child(4) .stop-marker {
  background: var(--red);
}

.final-stop .stop-marker {
  background: var(--mustard);
  color: var(--ink);
}

.route-stop p {
  color: var(--ink-soft);
  line-height: 1.45;
}

.career-section {
  background: var(--paper-strong);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 58rem;
  margin: 0 auto;
  --career-track-left: 8.25rem;
  --career-track-width: 3.1rem;
}

.timeline::before {
  position: absolute;
  top: -0.8rem;
  bottom: -0.8rem;
  left: var(--career-track-left);
  width: var(--career-track-width);
  content: "";
  background-image:
    linear-gradient(
      90deg,
      transparent 0 0.62rem,
      rgba(37, 40, 43, 0.72) 0.62rem 0.82rem,
      transparent 0.82rem 2.22rem,
      rgba(37, 40, 43, 0.72) 2.22rem 2.42rem,
      transparent 2.42rem
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0 0.78rem,
      rgba(37, 40, 43, 0.4) 0.78rem 0.96rem,
      transparent 0.96rem 1.8rem
    );
  background-size: 100% 100%, 100% 1.8rem;
  border-radius: 999px;
  opacity: 0.55;
  animation: career-sleeper-roll 1.15s linear infinite;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 5.4rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.45rem;
  padding: 1.15rem;
  border: 1px solid rgba(22, 48, 57, 0.12);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 24px rgba(22, 48, 57, 0.07);
  overflow: hidden;
}

.timeline-item::before {
  position: absolute;
  top: -0.2rem;
  bottom: -0.2rem;
  left: var(--career-track-left);
  width: var(--career-track-width);
  content: "";
  background-image:
    linear-gradient(
      90deg,
      transparent 0 0.62rem,
      rgba(37, 40, 43, 0.64) 0.62rem 0.82rem,
      transparent 0.82rem 2.22rem,
      rgba(37, 40, 43, 0.64) 2.22rem 2.42rem,
      transparent 2.42rem
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0 0.78rem,
      rgba(37, 40, 43, 0.32) 0.78rem 0.96rem,
      transparent 0.96rem 1.8rem
    );
  background-size: 100% 100%, 100% 1.8rem;
  opacity: 0.3;
  animation: career-sleeper-roll 1.15s linear infinite;
}

.timeline-year {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: start;
  min-width: 4.5rem;
  padding: 0.42rem 0.5rem;
  color: white;
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
}

.timeline-logo,
.timeline-copy {
  position: relative;
  z-index: 1;
}

.timeline-logo {
  display: grid;
  align-self: center;
  justify-self: center;
  width: 5.4rem;
  min-height: 3.2rem;
  place-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(22, 48, 57, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 22px rgba(22, 48, 57, 0.09);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.timeline-logo small {
  font-size: 0.68rem;
  font-weight: 850;
}

.logo-postbank {
  color: #1676b8;
}

.logo-postbank .logo-dot {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  margin-bottom: 0.14rem;
  background: #3cb6df;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-35deg);
}

.logo-council {
  gap: 0.25rem;
  color: #1f5e89;
}

.logo-council small {
  display: inline-block;
  padding: 0.18rem 0.32rem;
  color: white;
  background: var(--red);
  border-radius: 999px;
}

.logo-duo {
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.logo-ing,
.logo-nvb {
  display: block;
  width: 100%;
  padding: 0.28rem 0.35rem;
  border-radius: 6px;
}

.logo-ing {
  color: white;
  background: #f36c21;
}

.logo-nvb {
  color: white;
  background: #18965d;
}

.logo-bvn {
  grid-template-columns: auto auto;
  gap: 0.35rem;
  color: #1d6f9f;
}

.logo-hex {
  width: 1.25rem;
  height: 1.25rem;
  background: linear-gradient(135deg, #8bd4ee, #2e84b8);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.logo-epc {
  gap: 0.22rem;
  color: #244f96;
}

.logo-epc::before {
  display: block;
  color: var(--mustard);
  content: "★";
  font-size: 1.05rem;
  line-height: 1;
}

.logo-pension {
  grid-template-columns: auto auto;
  gap: 0.05rem;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.logo-pension span {
  font-size: 1.45rem;
}

.timeline-item:nth-child(2n) .timeline-year {
  background: var(--green);
}

.timeline-item:nth-child(3n) .timeline-year {
  background: var(--red);
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.media-section {
  background: #e8f0ed;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.7fr);
  align-items: stretch;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 78rem;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid rgba(22, 48, 57, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.venice-story {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  color: white;
  background: var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.venice-story .eyebrow {
  color: #ffd36f;
}

.venice-story h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.venice-story p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.venice-story blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--mustard);
  font-size: 1.12rem;
  font-weight: 800;
}

.venice-story .button {
  color: var(--ink);
  background: white;
}

@keyframes career-sleeper-roll {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 0, 0 1.8rem;
  }
}

.game-section {
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.4), rgba(22, 48, 57, 0.08)),
    var(--paper);
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 0.45fr);
  gap: 1rem;
  max-width: 88rem;
  margin: 0 auto;
}

.game-stage,
.game-panel,
.quote-card {
  border: 1px solid rgba(22, 48, 57, 0.12);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.game-stage {
  position: relative;
  overflow: hidden;
}

.game-stage.has-visible-overlay {
  min-height: min(34rem, 82svh);
}

#handover-game {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dcecf5;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  overflow-y: auto;
  text-align: center;
  background: rgba(22, 48, 57, 0.76);
  color: white;
}

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

.game-overlay h3 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.game-overlay p {
  max-width: 28rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.overlay-breakdown {
  white-space: pre-line;
  font-weight: 700;
}

.score-submit-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  width: min(100%, 31rem);
  margin: 0 auto;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.score-submit-form[hidden] {
  display: none;
}

.score-submit-form label {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.score-submit-form input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
}

.score-submit-form input:focus {
  outline: 3px solid rgba(240, 184, 71, 0.38);
  border-color: var(--mustard);
}

.score-submit-form p {
  grid-column: 1 / -1;
  min-height: 1.3rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.game-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1rem;
}

.panel-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meter {
  height: 0.85rem;
  margin-bottom: 0.45rem;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 999px;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--mustard));
  border-radius: inherit;
  transition: width 180ms ease-out;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.panel-grid > div {
  padding: 0.9rem;
  background: var(--paper-strong);
  border-radius: var(--radius);
}

.panel-grid strong,
#handover-percent {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.effect-indicator {
  padding: 0.85rem;
  background: var(--paper-strong);
  border: 1px solid rgba(22, 48, 57, 0.1);
  border-radius: var(--radius);
}

.effect-indicator[hidden] {
  display: none;
}

.effect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.effect-head strong,
.effect-head span {
  color: var(--ink);
  font-weight: 850;
}

.effect-meter {
  height: 0.55rem;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 999px;
}

.effect-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--mustard);
  border-radius: inherit;
  transition: width 90ms linear;
}

.effect-indicator[data-effect="slow"] .effect-meter span {
  background: var(--blue);
}

.effect-indicator[data-effect="fast"] .effect-meter span {
  background: var(--mustard);
}

.game-message {
  min-height: 3rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.score-help {
  padding: 0.9rem;
  background: var(--paper-strong);
  border-radius: var(--radius);
}

.game-score-help {
  max-width: 88rem;
  margin: 1rem auto 0;
  border: 1px solid rgba(22, 48, 57, 0.1);
}

.score-help ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.game-score-help ul {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-left: 0;
  list-style-position: inside;
}

.game-controls .button {
  flex: 1 1 9rem;
}

.leaderboard {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid rgba(22, 48, 57, 0.12);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.game-leaderboard {
  max-width: 88rem;
  margin: 1rem auto 0;
}

.leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.leaderboard ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem;
  background: var(--paper-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.leaderboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.leaderboard-pagination[hidden] {
  display: none;
}

.leaderboard-pagination .button {
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
}

.leaderboard-pagination .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.leaderboard-rank {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 800;
}

.leaderboard-name,
.leaderboard-score {
  color: var(--ink);
  font-weight: 800;
}

.leaderboard-score {
  min-width: 4.6rem;
  text-align: right;
  white-space: nowrap;
}

.leaderboard-name {
  overflow-wrap: anywhere;
}

.leaderboard-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
}

#leaderboard-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

#leaderboard-status {
  margin: -0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.community-section {
  background: #fffaf1;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 78rem;
  margin: 0 auto;
}

.poll-panel,
.guestbook-panel,
.guestbook-wall {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(22, 48, 57, 0.12);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.poll-panel h3,
.guestbook-panel h3,
.guestbook-wall h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.poll-panel fieldset {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0 1rem;
  padding: 0;
  border: 0;
}

.poll-option {
  position: relative;
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.85rem;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid rgba(22, 48, 57, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
}

.poll-option:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(35, 79, 122, 0.12);
}

.poll-option input {
  position: absolute;
  top: 1rem;
  left: 0.8rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
}

.poll-option-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding-left: 1.45rem;
}

.poll-option-copy strong {
  overflow-wrap: anywhere;
}

.poll-percentage {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.poll-bar {
  display: block;
  height: 0.42rem;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 999px;
}

.poll-bar > span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 240ms ease-out;
}

.poll-actions,
.guestbook-actions,
.guestbook-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.poll-actions > span,
.guestbook-actions > span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.guestbook-form {
  display: grid;
  gap: 0.85rem;
}

.guestbook-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.6fr);
  gap: 0.75rem;
}

.guestbook-form label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guestbook-message-composer {
  display: grid;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid rgba(22, 48, 57, 0.18);
  border-radius: var(--radius);
}

.guestbook-message-composer:focus-within {
  outline: 3px solid rgba(35, 79, 122, 0.13);
  border-color: var(--blue);
}

.guestbook-message-prefix {
  padding: 0.8rem 0.8rem 0.2rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.guestbook-form input,
.guestbook-form select,
.guestbook-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid rgba(22, 48, 57, 0.18);
  border-radius: var(--radius);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.guestbook-form input.sr-only {
  width: 1px;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.guestbook-form input,
.guestbook-form select {
  min-height: 2.9rem;
}

.guestbook-form textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.5;
}

.guestbook-message-composer textarea {
  min-height: 7.5rem;
  padding-top: 0.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.guestbook-message-composer textarea:focus {
  outline: 0;
}

.guestbook-form input:focus,
.guestbook-form select:focus,
.guestbook-form textarea:focus {
  outline: 3px solid rgba(35, 79, 122, 0.13);
  border-color: var(--blue);
}

.guestbook-form .guestbook-message-composer textarea:focus {
  outline: 0;
  border-color: transparent;
}

.guestbook-photo-field {
  display: grid;
  gap: 0.45rem;
}

.guestbook-field-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guestbook-field-label small {
  margin-left: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.guestbook-form .photo-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--blue-soft);
  border: 1px dashed rgba(35, 79, 122, 0.42);
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}

.guestbook-form .photo-picker:hover,
.guestbook-form .photo-picker:focus-within {
  background: #cfe3ef;
  border-color: var(--blue);
}

.photo-picker-mark {
  display: grid;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.photo-picker > span:last-child {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.photo-picker small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.guestbook-photo-preview {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  background: var(--green-soft);
  border: 1px solid rgba(22, 116, 94, 0.2);
  border-radius: var(--radius);
}

.guestbook-photo-preview[hidden] {
  display: none;
}

.guestbook-photo-preview img {
  width: 5rem;
  height: 4rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.guestbook-photo-preview > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.guestbook-photo-preview strong,
.guestbook-photo-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guestbook-photo-preview span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.photo-remove {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(22, 48, 57, 0.18);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
}

.photo-remove:hover,
.photo-remove:focus-visible {
  color: white;
  background: var(--red-dark);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 1.35rem;
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status[data-state="error"] {
  color: var(--red-dark);
}

.form-status[data-state="success"] {
  color: var(--green);
  font-weight: 750;
}

.guestbook-wall {
  max-width: 78rem;
  margin: 1.25rem auto 0;
}

.guestbook-wall-head {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.guestbook-wall-head .eyebrow {
  margin-bottom: 0.35rem;
}

.guestbook-wall-head h3 {
  margin-bottom: 0;
}

.guestbook-wall-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

#guestbook-export-status:not(:empty) {
  margin: -0.25rem 0 1rem;
}

.guestbook-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.guestbook-entry {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-width: 0;
  padding: 1rem;
  background: var(--paper-strong);
  border-top: 4px solid var(--mustard);
  border-radius: var(--radius);
}

.guestbook-entry-photo {
  width: 100%;
  max-height: 16rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.guestbook-entry[data-kind="wens"] {
  border-top-color: var(--green);
}

.guestbook-entry[data-kind="tip"] {
  border-top-color: var(--blue);
}

.guestbook-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.guestbook-entry strong {
  overflow-wrap: anywhere;
}

.guestbook-kind {
  flex: none;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guestbook-entry p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.guestbook-entry time {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

#guestbook-empty {
  margin: 0;
  color: var(--ink-soft);
}

.guestbook-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.guestbook-pagination[hidden] {
  display: none;
}

.guestbook-pagination .button {
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
}

.guestbook-pagination .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.quote-section {
  background: linear-gradient(135deg, var(--green-soft), var(--paper-strong));
}

.quote-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.quote-card img {
  width: clamp(6.5rem, 16vw, 10rem);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(22, 48, 57, 0.18);
}

.quote-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.site-footer {
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 78rem;
  margin: 0 auto;
}

.site-footer span {
  margin-left: 0.4rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 78svh;
    padding-bottom: 11rem;
    background:
      linear-gradient(180deg, rgba(244, 239, 230, 0.98) 0%, rgba(244, 239, 230, 0.86) 54%, rgba(244, 239, 230, 0.24) 100%),
      url("assets/frans.jpg") right -5rem bottom / min(36rem, 86vw) auto no-repeat,
      linear-gradient(135deg, #dcecf5, #f4efe6);
  }

  .departure-board {
    width: min(100%, 30rem);
    margin: 0;
  }

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

  .route-line::before {
    display: none;
  }

  .media-layout,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .venice-story {
    min-height: 18rem;
  }

  .game-shell {
    grid-template-columns: 1fr;
  }

  .game-stage.has-visible-overlay {
    min-height: clamp(25rem, 74svh, 34rem);
  }

  .score-submit-form {
    grid-template-columns: 1fr;
  }

  .leaderboard ol {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 1.4rem;
    background:
      linear-gradient(180deg, rgba(244, 239, 230, 0.98) 0%, rgba(244, 239, 230, 0.86) 100%),
      linear-gradient(135deg, #dcecf5, #f4efe6);
  }

  .hero::before {
    bottom: 0.2rem;
    width: 80%;
    height: 5rem;
  }

  .mobile-portrait {
    position: absolute;
    top: 1.35rem;
    right: 1rem;
    display: block;
    width: 4.8rem;
    height: 4.8rem;
    border: 0.28rem solid white;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(22, 48, 57, 0.2);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.25rem;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.35rem);
  }

  .hero-lead {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.45;
  }

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

  .countdown-grid {
    margin-top: 0.75rem;
  }

  .countdown-value {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .button {
    min-height: 2.55rem;
    padding: 0.7rem 0.82rem;
  }

  .section {
    padding-block: clamp(2.2rem, 8vw, 3.5rem);
  }

  .departure-board {
    display: none;
  }

  .game-stage.has-visible-overlay {
    min-height: clamp(26rem, 78svh, 32rem);
  }

  .game-overlay {
    place-content: center;
    gap: 0.7rem;
    padding: 1rem;
  }

  .game-overlay h3 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .game-overlay p {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .overlay-breakdown {
    font-size: 0.88rem;
  }

  .score-submit-form {
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .game-panel {
    gap: 0.75rem;
  }

  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .panel-grid > div {
    padding: 0.75rem;
  }

  .game-message {
    min-height: auto;
  }

  .game-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .game-score-help ul {
    grid-template-columns: 1fr;
  }

  .guestbook-list,
  .guestbook-fields {
    grid-template-columns: 1fr;
  }

  .guestbook-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .route-line {
    grid-template-columns: 1fr;
  }

  .route-stop {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 1rem;
    text-align: left;
  }

  .route-stop h3 {
    align-self: end;
  }

  .route-stop p {
    grid-column: 2;
  }

  .timeline::before {
    left: 2.15rem;
    width: 2.7rem;
  }

  .timeline-item {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    column-gap: 0.85rem;
    padding-left: 0.9rem;
  }

  .timeline-item::before {
    left: 1.75rem;
    width: 2.7rem;
    opacity: 0.22;
  }

  .timeline-logo {
    grid-column: 1;
    grid-row: 2;
    width: 4.6rem;
    min-height: 2.8rem;
    font-size: 0.7rem;
  }

  .timeline-logo small {
    font-size: 0.6rem;
  }

  .timeline-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .timeline-item p {
    grid-column: auto;
  }

  .timeline-year {
    justify-self: start;
  }

  .quote-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .site-header {
    padding-block: 0.6rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .hero {
    padding-inline: 0.9rem;
  }

  .mobile-portrait {
    top: 1.05rem;
    right: 0.9rem;
    width: 4.2rem;
    height: 4.2rem;
  }

  .countdown-grid {
    gap: 0.55rem;
  }

  .countdown-cell {
    padding: 0.8rem 0.5rem;
  }

  .board-row {
    grid-template-columns: minmax(4rem, 0.85fr) minmax(8rem, 1.2fr) minmax(4rem, 0.85fr);
    font-size: 0.82rem;
  }

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

  .site-footer span {
    display: block;
    margin: 0.35rem 0 0;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.35rem 0.45rem;
    font-size: 0.84rem;
  }

  .game-stage.has-visible-overlay {
    min-height: 32rem;
  }

  .game-controls .button {
    min-height: 2.45rem;
    padding-inline: 0.55rem;
    font-size: 0.9rem;
  }

  .leaderboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-head .button {
    width: 100%;
  }

  .leaderboard-pagination {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .leaderboard-pagination .button {
    width: 100%;
  }

  .poll-actions,
  .guestbook-wall-head {
    align-items: stretch;
    flex-direction: column;
  }

  .poll-actions .button,
  .guestbook-wall-head .button {
    width: 100%;
  }

  .guestbook-wall-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .guestbook-pagination {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .guestbook-pagination .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    padding-top: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
