:root {
  --navy-950: #04111d;
  --navy-900: #061a2b;
  --navy-800: #0b2940;
  --navy-700: #123d59;
  --cream: #f8f3e8;
  --paper: #fffdf8;
  --gold-100: #fff3ca;
  --gold-300: #f4d485;
  --gold-500: #cda449;
  --gold-700: #8d6823;
  --italy-green: #16724f;
  --italy-red: #bd453e;
  --ink: #102131;
  --muted: #62717b;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(12, 42, 62, 0.12);
  --shadow-dark: 0 28px 80px rgba(0, 8, 15, 0.32);
  --shadow-card: 0 22px 60px rgba(12, 39, 57, 0.13);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --content: min(1240px, calc(100vw - 64px));
  --header-height: 82px;
  color-scheme: dark light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--navy-950);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 78% 8%, rgba(33, 100, 129, 0.22), transparent 28%),
    radial-gradient(circle at 16% 28%, rgba(205, 164, 73, 0.08), transparent 24%),
    linear-gradient(145deg, #04111d 0%, #061a2b 48%, #071421 100%);
}

body.modal-open {
  overflow: hidden;
}

a,
button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

svg {
  display: block;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--italy-green), var(--gold-300) 48%, var(--italy-red));
  box-shadow: 0 0 20px rgba(244, 212, 133, 0.7);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.18;
}

.ambient-one {
  top: 8%;
  right: -180px;
  background: #278ab0;
}

.ambient-two {
  top: 47%;
  left: -240px;
  background: #b8872e;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 14px max(32px, calc((100vw - 1360px) / 2));
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(4, 17, 29, 0.84), rgba(4, 17, 29, 0));
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-dark);
  background: rgba(4, 17, 29, 0.86);
  backdrop-filter: blur(18px) saturate(130%);
}

.event-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  min-height: 48px;
  color: #fff;
  text-decoration: none;
}

.event-mark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.event-mark small {
  color: var(--gold-300);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.nav-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-source:hover,
.nav-source:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-source {
  border: 1px solid rgba(244, 212, 133, 0.36);
  color: var(--gold-100);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: center;
  width: var(--content);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 78px) 0 86px;
}

.hero::before {
  position: absolute;
  top: 17%;
  left: -11vw;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.014),
    0 0 0 140px rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.flag-mark {
  width: 29px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--italy-green) 0 33.3%, #fff 33.3% 66.6%, var(--italy-red) 66.6%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
.milestone-card strong,
.result-copy strong {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.94;
}

h1 span {
  display: block;
}

.gold-type {
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(135deg, #fff9e2 0%, #f4d485 42%, #a87722 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 8px 34px rgba(205, 164, 73, 0.16));
}

.hero-lead {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 520;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button svg,
.text-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button-primary {
  background: linear-gradient(135deg, #f7dda0, #bd8d32);
  color: #142231;
  box-shadow: 0 14px 36px rgba(189, 141, 50, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 44px rgba(189, 141, 50, 0.32);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(244, 212, 133, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--line-dark);
}

.hero-facts div {
  min-height: 88px;
  padding: 18px 16px;
  background: rgba(6, 26, 43, 0.82);
}

.hero-facts span,
.boarding-pass span,
.result-meta span,
.result-copy > span,
.rules-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.hero-facts strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  z-index: 3;
  min-width: 0;
  perspective: 1200px;
}

.route-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 18%, rgba(43, 119, 150, 0.26), transparent 30%),
    linear-gradient(160deg, rgba(21, 58, 80, 0.78), rgba(5, 20, 33, 0.9));
  box-shadow: var(--shadow-dark);
  transform: rotateY(-3deg) rotateX(1deg);
  transform-origin: center;
  transition: transform 400ms cubic-bezier(.2, .75, .25, 1), border-color 300ms ease;
  backdrop-filter: blur(12px);
}

.route-card:hover {
  border-color: rgba(244, 212, 133, 0.3);
  transform: rotateY(0) rotateX(0) translateY(-3px);
}

.route-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
  pointer-events: none;
}

.route-card-top {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.route-card-top span:last-child {
  text-align: right;
}

.route-status {
  padding: 7px 10px;
  border: 1px solid rgba(244, 212, 133, 0.3);
  border-radius: 99px;
  color: var(--gold-100);
  font-size: 9px;
}

.route-map {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: 360px;
  overflow: visible;
}

.route-map text {
  fill: rgba(255, 255, 255, 0.58);
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.map-coast {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.4;
}

.flight-path {
  fill: none;
  stroke: rgba(244, 212, 133, 0.28);
  stroke-width: 2;
  stroke-dasharray: 4 9;
  stroke-linecap: round;
}

.flight-path-glow {
  fill: none;
  stroke: url(#routeGlow);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  filter: url(#glow);
  animation: draw-route 2.2s 0.4s cubic-bezier(.16, .84, .34, 1) forwards;
}

.city-dot {
  fill: var(--gold-300);
  filter: url(#glow);
}

.city-rom {
  fill: #fff4c7;
}

.city-pulse {
  fill: none;
  stroke: rgba(244, 212, 133, 0.58);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: city-pulse 2s 3 ease-out;
}

.pulse-delay {
  animation-delay: 1.4s;
}

.plane {
  fill: var(--gold-100);
  filter: url(#glow);
  offset-path: path("M92 292C216 77 439 57 586 219");
  offset-distance: 0%;
  offset-rotate: auto;
  animation: fly-route 3.8s 0.55s cubic-bezier(.27, .8, .31, 1) forwards;
}

.passport-stamped .plane {
  animation: none;
}

.passport-stamped.is-flying .plane {
  animation: fly-route-again 2.8s cubic-bezier(.24, .78, .28, 1) forwards;
}

.colosseum {
  fill: rgba(244, 212, 133, 0.035);
  stroke: rgba(244, 212, 133, 0.36);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boarding-pass {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 22px 26px;
  border: 1px solid rgba(244, 212, 133, 0.26);
  border-radius: 20px;
  background: rgba(4, 17, 29, 0.76);
  box-shadow: 0 18px 46px rgba(0, 8, 15, 0.26);
  backdrop-filter: blur(14px);
}

.boarding-pass > div:last-child {
  text-align: right;
}

.boarding-pass strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(21px, 2.1vw, 31px);
  letter-spacing: -0.04em;
}

.boarding-pass b {
  color: var(--gold-300);
  font-size: 1.35em;
}

.boarding-pass svg {
  width: 50px;
  height: 50px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.56);
  stroke-width: 1.6;
}

.passport-stamp {
  position: absolute;
  top: 83px;
  right: 39px;
  z-index: 6;
  display: grid;
  place-content: center;
  width: 112px;
  height: 112px;
  border: 3px double rgba(189, 69, 62, 0.76);
  border-radius: 50%;
  color: rgba(217, 91, 80, 0.84);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  transform: rotate(-16deg) scale(1.8);
  transition: opacity 180ms ease, transform 440ms cubic-bezier(.2, .9, .2, 1.25);
}

.passport-stamp span {
  font-size: 12px;
}

.passport-stamped .passport-stamp {
  opacity: 1;
  transform: rotate(-16deg) scale(1);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold-300), transparent);
  transform-origin: top;
  animation: scroll-cue 1.6s 3 ease-out;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(94px, 10vw, 148px) 0;
}

.section-reward {
  position: relative;
  color: var(--ink);
}

.section-reward::before,
.calculator-section::before,
.timeline-section::before,
.details-section::before {
  position: absolute;
  left: 50%;
  z-index: -1;
  width: 100vw;
  content: "";
  transform: translateX(-50%);
}

.section-reward::before {
  inset-block: 0;
  background: var(--cream);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.48fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: 58px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -18px;
  color: var(--gold-700);
}

.section-heading h2,
.calculator-copy h2,
.detail-card h2,
.modal h2 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(40px, 4.4vw, 66px);
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.milestone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 386px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 26px rgba(12, 39, 57, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.milestone-card:hover {
  border-color: rgba(141, 104, 35, 0.32);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.milestone-card.featured {
  background: linear-gradient(150deg, #0e334b, #061a2b);
  color: #fff;
  box-shadow: var(--shadow-card);
  transform: translateY(-18px);
}

.milestone-card.featured:hover {
  transform: translateY(-24px);
}

.milestone-card.infinite {
  background:
    radial-gradient(circle at 80% 10%, rgba(205, 164, 73, 0.2), transparent 28%),
    #f3e9d3;
}

.milestone-card > p {
  margin: 0;
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.milestone-card.featured > p {
  color: var(--gold-300);
}

.milestone-card strong {
  display: block;
  margin-top: 42px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.milestone-card strong span {
  color: var(--gold-700);
  font-size: clamp(72px, 7vw, 104px);
  line-height: 0.8;
}

.milestone-card.featured strong span {
  color: var(--gold-300);
}

.reward-arrow {
  width: 100%;
  height: 1px;
  margin: auto 0 22px;
  background: linear-gradient(90deg, rgba(141, 104, 35, 0.18), rgba(141, 104, 35, 0.7));
}

.featured .reward-arrow {
  background: linear-gradient(90deg, rgba(244, 212, 133, 0.12), rgba(244, 212, 133, 0.62));
}

.milestone-card b {
  font-size: 18px;
  line-height: 1.5;
}

.milestone-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.milestone-card.featured small {
  color: rgba(255, 255, 255, 0.48);
}

.calculator-section {
  position: relative;
  width: min(1320px, calc(100vw - 40px));
}

.calculator-section::before {
  inset-block: 0;
  background:
    radial-gradient(circle at 12% 36%, rgba(45, 113, 141, 0.18), transparent 26%),
    linear-gradient(145deg, #071c2d, #04111d);
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow-dark);
}

.calculator-copy .section-kicker,
.detail-card .section-kicker,
.modal .section-kicker {
  margin-bottom: 14px;
}

.calculator-copy h2 {
  color: #fff;
}

.calculator-copy > p:not(.section-kicker):not(.field-hint) {
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.61);
  font-size: 16px;
  line-height: 1.8;
}

.calculator-copy label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 780;
}

.number-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 8px 18px 8px 22px;
  border: 1px solid rgba(244, 212, 133, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.number-field:focus-within {
  border-color: var(--gold-300);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(244, 212, 133, 0.09);
}

.number-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 500;
  line-height: 1;
}

.number-field span {
  flex: none;
  color: var(--gold-300);
  font-size: 16px;
  font-weight: 850;
}

.performance-range {
  width: 100%;
  height: 44px;
  margin: 22px 0 0;
  border: 0;
  background: transparent;
  accent-color: var(--gold-300);
  cursor: pointer;
}

.performance-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--italy-green), var(--gold-300), var(--italy-red));
}

.performance-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 4px solid var(--navy-900);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--gold-300), 0 5px 14px rgba(0, 0, 0, 0.28);
  -webkit-appearance: none;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 760;
}

.field-hint,
.calculator-note {
  color: rgba(255, 255, 255, 0.43);
  font-size: 12px;
  line-height: 1.7;
}

.field-hint {
  margin: 18px 0 0;
}

.result-panel {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px 28px;
  align-items: center;
  min-height: 444px;
  overflow: hidden;
  padding: 38px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.98), transparent 35%),
    linear-gradient(145deg, #fffdf8, #eee1c7);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 8, 15, 0.3);
}

.result-panel::after {
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(141, 104, 35, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 40px rgba(141, 104, 35, 0.04), 0 0 0 80px rgba(141, 104, 35, 0.025);
}

.gauge {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: conic-gradient(var(--gold-500) var(--gauge-progress), rgba(12, 42, 62, 0.09) 0);
  transition: background 260ms ease;
}

.gauge::before {
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: var(--paper);
  content: "";
}

.gauge > div {
  position: relative;
  z-index: 2;
  text-align: center;
}

.gauge span,
.gauge small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.gauge strong {
  display: block;
  margin: 5px 0;
  color: var(--gold-700);
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 1;
}

.result-copy {
  position: relative;
  z-index: 2;
}

.result-copy > span {
  color: var(--muted);
}

.result-copy strong {
  display: block;
  margin-top: 12px;
  color: var(--navy-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4.2vw, 58px);
  line-height: 1;
}

.result-copy p {
  margin: 15px 0 0;
  color: var(--gold-700);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.55;
}

.ticket-line {
  grid-column: 1 / -1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(12, 42, 62, 0.17) 0 8px, transparent 8px 14px);
}

.result-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
  gap: 14px;
}

.result-meta div {
  padding: 16px;
  border: 1px solid rgba(12, 42, 62, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.48);
}

.result-meta span {
  color: var(--muted);
}

.result-meta b {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.calculator-note {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 0 22px;
  text-align: center;
}

.timeline-section {
  position: relative;
  color: var(--ink);
}

.timeline-section::before {
  inset-block: 0;
  background: var(--paper);
}

.section-heading.compact {
  display: block;
  max-width: 800px;
}

.section-heading.compact .section-kicker {
  margin-bottom: 16px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 40px;
}

.timeline::before {
  position: absolute;
  top: 59px;
  right: 8%;
  left: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--italy-green), var(--gold-500) 55%, var(--italy-red));
}

.timeline-item {
  position: relative;
  min-height: 290px;
  padding: 62px 26px 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.timeline-item > span {
  position: absolute;
  top: 0;
  left: 26px;
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border: 6px solid var(--paper);
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  transform: translateY(-1px);
}

.timeline-item.destination {
  border-color: rgba(141, 104, 35, 0.28);
  background: linear-gradient(150deg, #f7ecd2, #fffdf8);
}

.timeline-item.destination > span {
  background: var(--gold-700);
}

.timeline-item time {
  color: var(--gold-700);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 24px 0 10px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.details-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.details-section::before {
  inset-block: 0;
  background: #e8e0d2;
}

.detail-card {
  min-height: 440px;
  padding: clamp(30px, 4vw, 52px);
  border-radius: var(--radius-lg);
}

.products-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 113, 141, 0.28), transparent 32%),
    linear-gradient(145deg, #0c314a, #051725);
  box-shadow: var(--shadow-dark);
}

.detail-card h2 {
  font-size: clamp(37px, 4vw, 56px);
}

.products-card h2 span {
  color: var(--gold-300);
  font-family: Georgia, serif;
  font-size: 1.15em;
}

.detail-card p:not(.section-kicker) {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.8;
}

.button-dark {
  margin-top: auto;
  background: #fff;
  color: var(--navy-900);
}

.source-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.source-card .section-kicker {
  color: var(--gold-700);
}

.source-card p:not(.section-kicker) {
  color: var(--muted);
}

.document-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--gold-700);
}

.document-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-light);
  border-radius: 99px;
  background: transparent;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.text-button:hover,
.text-button:focus-visible {
  border-color: rgba(141, 104, 35, 0.4);
  background: var(--cream);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 32px;
  border-top: 1px solid var(--line-dark);
  background: #030d16;
  text-align: center;
}

.footer-flag {
  display: block;
  width: 52px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--italy-green) 0 33.3%, #fff 33.3% 66.6%, var(--italy-red) 66.6%);
}

.site-footer small {
  max-width: 780px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  line-height: 1.7;
}

.modal {
  width: min(1080px, calc(100vw - 40px));
  max-height: min(86svh, 920px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 42, 62, 0.13);
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 8, 15, 0.45);
}

.modal::backdrop {
  background: rgba(1, 9, 16, 0.72);
  backdrop-filter: blur(10px);
}

.modal[open] {
  animation: modal-in 240ms cubic-bezier(.2, .8, .2, 1) both;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--line-light);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.modal .section-kicker {
  color: var(--gold-700);
}

.modal h2 {
  font-size: clamp(32px, 3.5vw, 48px);
}

.icon-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--cream);
  transform: rotate(4deg);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.product-tools {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 14px;
  padding: 22px 30px 8px;
}

.product-tools label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.product-tools input,
.product-tools select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.product-tools input:focus,
.product-tools select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(205, 164, 73, 0.11);
}

.result-summary {
  margin: 8px 30px 12px;
  color: var(--gold-700);
  font-size: 12px;
  font-weight: 780;
}

.table-wrap {
  max-height: 49svh;
  margin: 0 30px;
  overflow: auto;
  border: 1px solid var(--line-light);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(12, 42, 62, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy-800);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
}

tbody tr:hover {
  background: #fbf5e9;
}

td:first-child,
td:nth-child(3),
td:last-child {
  white-space: nowrap;
}

td:first-child {
  color: var(--gold-700);
  font-family: Georgia, serif;
  font-weight: 700;
}

.modal-note {
  margin: 14px 30px 26px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.rules-modal {
  width: min(820px, calc(100vw - 40px));
  padding-bottom: 30px;
  overflow-y: auto;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 26px 30px 8px;
}

.rules-grid article {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line-light);
  border-radius: 16px;
  background: #fff;
}

.rules-grid span {
  color: var(--muted);
}

.rules-grid strong {
  display: block;
  margin-top: 11px;
  color: var(--navy-800);
  font-size: 19px;
  line-height: 1.45;
}

.rules-grid small {
  display: block;
  margin-top: 4px;
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 760;
}

.rules-list {
  margin: 24px 30px 26px;
  padding-left: 25px;
  color: var(--muted);
}

.rules-list li {
  padding-left: 7px;
  margin-bottom: 12px;
  line-height: 1.72;
}

.rules-list li::marker {
  color: var(--gold-700);
  font-family: Georgia, serif;
  font-weight: 700;
}

.modal-pdf-button {
  margin-left: 30px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 1px solid rgba(244, 212, 133, 0.26);
  border-radius: 14px;
  background: rgba(4, 17, 29, 0.94);
  color: #fff;
  box-shadow: var(--shadow-dark);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 75;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 18px;
  border-radius: 2px;
  animation: confetti-fall var(--fall-duration) cubic-bezier(.16, .72, .35, 1) forwards;
  transform: rotate(var(--start-rotation));
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--italy-red);
  color: #fff;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2, .72, .25, 1), transform 700ms cubic-bezier(.2, .72, .25, 1);
}

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

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

@keyframes fly-route {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 1; }
}

@keyframes fly-route-again {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 1; }
}

@keyframes city-pulse {
  0% { opacity: 0.8; transform: scale(0.65); }
  100% { opacity: 0; transform: scale(2.1); }
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: scaleY(0); }
  40% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confetti-fall {
  0% { opacity: 1; translate: 0 0; }
  100% { opacity: 0; translate: var(--drift) 110svh; rotate: var(--end-rotation); }
}

@media (max-width: 1100px) {
  :root {
    --content: min(960px, calc(100vw - 48px));
  }

  .hero {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 30px;
  }

  h1 {
    font-size: clamp(58px, 6.5vw, 78px);
  }

  .route-card {
    min-height: 500px;
  }

  .boarding-pass {
    grid-template-columns: 1fr 38px 1fr;
    padding: 18px;
  }

  .boarding-pass svg {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .calculator-shell {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 30px;
  }

  .result-panel {
    grid-template-columns: 150px 1fr;
    padding: 28px;
  }

  .gauge {
    width: 150px;
    height: 150px;
  }

  .gauge strong {
    font-size: 46px;
  }
}

@media (max-width: 900px) {
  :root {
    --content: calc(100vw - 40px);
    --header-height: 72px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .event-mark span {
    font-size: 20px;
  }

  .main-nav a {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 110px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    font-size: clamp(66px, 12vw, 100px);
  }

  .hero-visual {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

  .route-card {
    transform: none;
  }

  .route-card:hover {
    transform: translateY(-3px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading .section-kicker {
    margin-bottom: 0;
  }

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

  .milestone-card,
  .milestone-card.featured {
    min-height: 310px;
    transform: none;
  }

  .milestone-card.featured:hover {
    transform: translateY(-6px);
  }

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

  .result-panel {
    min-height: 380px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }

  .timeline::before {
    display: none;
  }

  .details-section {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  :root {
    --content: calc(100vw - 28px);
    --radius-xl: 24px;
    --radius-lg: 20px;
  }

  .site-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .event-mark span {
    font-size: 18px;
  }

  .nav-source {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .hero {
    gap: 34px;
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(55px, 17.5vw, 76px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 72px;
  }

  .route-card {
    min-height: 420px;
  }

  .route-card-top {
    padding: 18px;
  }

  .route-map {
    width: 125%;
    max-width: none;
    margin-left: -12%;
  }

  .boarding-pass {
    right: 14px;
    bottom: 14px;
    left: 14px;
    grid-template-columns: 1fr 24px 1fr;
    gap: 8px;
    min-height: 92px;
    padding: 16px;
  }

  .boarding-pass svg {
    width: 24px;
    height: 24px;
    padding: 4px;
  }

  .boarding-pass strong {
    font-size: 18px;
  }

  .passport-stamp {
    top: 62px;
    right: 18px;
    width: 86px;
    height: 86px;
    font-size: 15px;
  }

  .section {
    padding-block: 86px;
  }

  .section-heading h2,
  .calculator-copy h2,
  .detail-card h2 {
    font-size: 38px;
  }

  .milestone-card {
    min-height: 285px;
    padding: 28px;
  }

  .milestone-card strong {
    margin-top: 30px;
  }

  .milestone-card strong span {
    font-size: 72px;
  }

  .calculator-section {
    width: calc(100vw - 20px);
  }

  .calculator-shell {
    padding: 22px 16px;
  }

  .result-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 18px;
    text-align: center;
  }

  .gauge {
    width: 150px;
    height: 150px;
    margin-inline: auto;
  }

  .result-meta {
    grid-template-columns: 1fr;
    text-align: left;
  }

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

  .timeline-item {
    min-height: 250px;
  }

  .detail-card {
    min-height: 430px;
  }

  .source-actions,
  .source-actions .text-button {
    width: 100%;
  }

  .modal {
    width: calc(100vw - 18px);
    max-height: 92svh;
    border-radius: 20px;
  }

  .modal-head {
    padding: 20px 16px 16px;
  }

  .modal h2 {
    font-size: 29px;
  }

  .product-tools,
  .rules-grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .result-summary,
  .modal-note,
  .rules-list {
    margin-inline: 16px;
  }

  .table-wrap {
    margin-inline: 16px;
  }

  table {
    min-width: 780px;
  }

  .modal-pdf-button {
    width: calc(100% - 32px);
    margin-left: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0.01ms !important;
  }

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

  .confetti-layer {
    display: none;
  }
}
