:root {
  --exam-navy: #101b2d;
  --exam-deep: #17283f;
  --exam-gold: #d6b77a;
  --exam-soft-gold: #e8d5a5;
  --exam-ivory: #f8f4ea;
  --exam-cream: #eee7d8;
  --exam-muted: #a9b5c3;
  --exam-approved: #26734b;
  --exam-approved-ink: #185b3b;
  --exam-approved-bg: #e5f1e4;
  --exam-approved-light: #b7d0bc;
}

body.exam-mode {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color-scheme: dark;
  color: var(--exam-ivory);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(52, 70, 91, .64), transparent 49%),
    linear-gradient(145deg, #0b1422, var(--exam-navy) 52%, #15243a);
  font-family: "DM Sans", sans-serif;
}

.exam-mode *,
.exam-mode *::before,
.exam-mode *::after { box-sizing: border-box; }
.exam-mode button { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.exam-mode .exam-shell { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; padding: 0 22px calc(54px + env(safe-area-inset-bottom)); }
.exam-mode .exam-shell::before,
.exam-mode .exam-shell::after { position: fixed; z-index: -1; inset: 0; pointer-events: none; content: ""; }
.exam-mode .exam-shell::before {
  opacity: .48;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #f8e6bd 98%, transparent),
    radial-gradient(1px 1px at 74% 12%, #f8e6bd 98%, transparent),
    radial-gradient(1px 1px at 87% 42%, #f8e6bd 98%, transparent),
    radial-gradient(1px 1px at 21% 61%, #f8e6bd 98%, transparent),
    radial-gradient(1px 1px at 54% 83%, #f8e6bd 98%, transparent);
  background-size: 290px 250px;
  animation: exam-stars 18s linear infinite;
}
.exam-mode .exam-shell::after {
  background: radial-gradient(ellipse at 50% 70%, transparent 25%, rgba(5, 11, 19, .18) 100%);
}
.exam-mode .airport-backdrop { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.exam-mode .airport-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .82; filter: brightness(.82) saturate(.95); }
.exam-mode .airport-terminal {
  position: absolute; right: -3%; bottom: 17%; left: -3%; height: 28%;
  border-top: 1px solid rgba(190, 211, 221, .15); opacity: .35;
  background:
    linear-gradient(180deg, rgba(110, 139, 158, .05), rgba(11, 21, 33, .18)),
    repeating-linear-gradient(90deg, transparent 0 7.8%, rgba(174, 209, 224, .13) 8% 8.15%, transparent 8.3% 12.5%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
}
.exam-mode .airport-runway {
  position: absolute; right: 0; bottom: -16%; left: 0; height: 44%;
  background:
    linear-gradient(90deg, transparent 12%, rgba(232, 213, 165, .14) 12.2%, transparent 12.5%, transparent 87.5%, rgba(232, 213, 165, .14) 87.8%, transparent 88%),
    linear-gradient(180deg, rgba(11, 22, 35, .08), rgba(4, 9, 16, .64));
  clip-path: polygon(23% 0, 77% 0, 100% 100%, 0 100%);
}
.exam-mode .airport-runway::before {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(248, 226, 170, .42) 0 10px, transparent 10px 31px);
  content: "";
}
.exam-mode .ambient-plane {
  position: absolute; top: 20%; left: -12%; color: rgba(232, 213, 165, .74);
  font-size: clamp(24px, 3.4vw, 42px); line-height: 1;
  filter: drop-shadow(0 0 12px rgba(173, 202, 220, .35));
  animation: airport-plane-flight 42s linear infinite;
}
.exam-mode .ambient-plane-two {
  top: 38%; color: rgba(202, 222, 231, .52); font-size: clamp(17px, 2.2vw, 28px);
  animation-duration: 55s; animation-delay: -27s;
}
.exam-mode .airport-video-credit {
  position: fixed; z-index: 2; right: max(12px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom));
  margin: 0; padding: 4px 7px; border: 1px solid rgba(214, 183, 122, .16); border-radius: 2px;
  color: rgba(248, 244, 234, .72); background: rgba(7, 15, 25, .72); font-size: 9px;
}
.exam-mode .airport-video-credit a { color: inherit; text-decoration-color: rgba(232, 213, 165, .5); text-underline-offset: 2px; }
.exam-mode .exam-header { width: min(100%, 1060px); margin: 0 auto; padding: 24px 0 17px; border-bottom: 1px solid rgba(214, 183, 122, .23); }
.exam-mode .exam-brand { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--exam-soft-gold); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.exam-mode .exam-brand strong { color: var(--exam-ivory); font: 20px "Playfair Display", serif; letter-spacing: .02em; text-transform: none; }
.exam-mode .exam-progress { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; width: min(100%, 600px); margin: 20px auto 0; }
.exam-mode .progress-step { position: relative; height: 3px; border-radius: 6px; background: rgba(248, 244, 234, .15); transition: background .4s; }
.exam-mode .progress-step.done,
.exam-mode .progress-step.current { background: var(--exam-gold); }
.exam-mode .progress-copy { display: flex; justify-content: space-between; width: min(100%, 600px); margin: 8px auto 0; color: var(--exam-muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.exam-mode .exam-scene { display: none; width: min(100%, 900px); min-height: calc(100vh - 132px); min-height: calc(100dvh - 132px); margin: 0 auto; padding: 48px 0 22px; text-align: center; animation: exam-enter .7s both; }
.exam-mode .exam-scene.active { display: block; }
.exam-mode .exam-kicker { margin: 0 0 14px; color: var(--exam-gold); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.exam-mode .exam-scene h1,
.exam-mode .exam-scene h2,
.exam-mode .exam-scene h3 { font-family: "Playfair Display", serif; font-weight: 600; }
.exam-mode .exam-scene h1,
.exam-mode .exam-scene h2 { margin: 0; font-size: clamp(36px, 7vw, 66px); line-height: 1.07; }
.exam-mode .exam-scene h1 em,
.exam-mode .exam-scene h2 em { color: var(--exam-soft-gold); font-weight: 500; }
.exam-mode .exam-copy { max-width: 590px; margin: 18px auto 26px; color: #d1d7de; font-size: 15px; line-height: 1.8; }
.exam-mode .exam-cta {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 13px;
  padding: 13px 22px; border: 1px solid var(--exam-gold); border-radius: 2px;
  color: var(--exam-navy); background: var(--exam-gold); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s, transform .25s;
}
.exam-mode .exam-cta:focus-visible,
.exam-mode .stamp-button:focus-visible,
.exam-mode .envelope:focus-visible,
.exam-mode .exam-input:focus-visible { outline: 2px solid var(--exam-soft-gold); outline-offset: 4px; }
.exam-mode .exam-secondary { display: block; margin: 18px auto 0; border: 0; color: var(--exam-muted); background: none; font-size: 11px; cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .exam-mode .exam-cta:hover { color: var(--exam-soft-gold); background: transparent; transform: translateY(-2px); }
  .exam-mode .exam-secondary:hover { color: var(--exam-soft-gold); }
  .exam-mode .stamp-button:hover .stamp-circle { transform: rotate(0) scale(1.04); }
}

/* Passport cover and identity portrait */
.exam-mode .cover-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(250px, 1.1fr); align-items: center; gap: clamp(24px, 6vw, 70px); max-width: 790px; margin: 4px auto 0; text-align: left; }
.exam-mode .cover-copy h1 { font-size: clamp(40px, 6.7vw, 67px); }
.exam-mode .cover-copy .exam-copy { margin-left: 0; }
.exam-mode .cover-note { color: var(--exam-soft-gold); font: 20px/1.5 "Playfair Display", serif; }
.exam-mode .passport-object { position: relative; width: min(100%, 370px); min-height: 480px; justify-self: center; padding: 27px 24px 24px; overflow: hidden; border: 1px solid rgba(232, 213, 165, .7); border-radius: 8px 18px 18px 8px; background: linear-gradient(125deg, #243952, #14253a 53%, #20334b); box-shadow: -18px 24px 45px rgba(0, 0, 0, .3), inset 5px 0 8px rgba(2, 8, 16, .32), inset 0 0 0 7px rgba(214, 183, 122, .06); transform: perspective(900px) rotateY(-7deg); }
.exam-mode .passport-object.opening { transform: perspective(900px) rotateY(-92deg) translateX(24px); opacity: 0; transition: transform .6s ease-in, opacity .45s ease-in; }
.exam-mode .passport-object::before { position: absolute; inset: 12px; border: 1px solid rgba(214, 183, 122, .37); border-radius: 5px 12px 12px 5px; content: ""; pointer-events: none; }
.exam-mode .passport-object::after { position: absolute; top: 0; bottom: 0; left: 18px; width: 1px; background: rgba(232, 213, 165, .22); box-shadow: 3px 0 rgba(5, 12, 21, .22); content: ""; }
.exam-mode .passport-emblem { display: grid; width: 70px; height: 70px; place-items: center; margin: 16px auto 15px; border: 1px solid var(--exam-gold); border-radius: 50%; color: var(--exam-gold); font-size: 32px; }
.exam-mode .passport-title { color: var(--exam-soft-gold); font: 600 19px "Playfair Display", serif; letter-spacing: .14em; text-align: center; }
.exam-mode .passport-subtitle { margin-top: 6px; color: rgba(232, 213, 165, .75); font-size: 8px; letter-spacing: .32em; text-align: center; }
.exam-mode .passport-photo-frame { position: relative; width: 114px; height: 146px; margin: 20px auto 14px; overflow: hidden; border: 3px solid var(--exam-soft-gold); background: #d9d2c3; box-shadow: 0 5px 15px rgba(0, 0, 0, .25); }
.exam-mode .passport-photo { display: none; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.exam-mode .passport-photo-frame.photo-loaded .passport-photo { display: block; }
.exam-mode .photo-placeholder { display: grid; width: 100%; height: 100%; align-content: center; gap: 8px; padding: 8px; color: #5a5a55; background: repeating-linear-gradient(135deg, #e1dbce, #e1dbce 8px, #d8d1c3 8px, #d8d1c3 16px); font-size: 8px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-align: center; }
.exam-mode .photo-placeholder b { font-size: 21px; font-weight: 400; }
.exam-mode .passport-fields { display: grid; gap: 9px; margin: 0 19px; color: rgba(248, 244, 234, .82); font-size: 8px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.exam-mode .passport-fields strong { display: block; margin-top: 4px; color: var(--exam-soft-gold); font-size: 10px; letter-spacing: .08em; }
.exam-mode .passport-machine { margin-top: 17px; color: rgba(232, 213, 165, .65); font: 10px monospace; letter-spacing: .13em; text-align: center; }
.exam-mode .cover-open { display: block; margin: 23px auto 0; }

/* Identity verification */
.exam-mode .identity-panel { display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center; max-width: 650px; margin: 35px auto 0; padding: 28px; border: 1px solid rgba(214, 183, 122, .45); background: linear-gradient(120deg, rgba(248, 244, 234, .08), rgba(248, 244, 234, .025)); text-align: left; }
.exam-mode .identity-panel .passport-photo-frame { width: 125px; height: 158px; margin: auto; }
.exam-mode .identity-panel h3 { margin: 0 0 10px; color: var(--exam-soft-gold); font-size: 25px; }
.exam-mode .identity-panel p { margin: 0 0 16px; color: #d1d7de; font-size: 14px; line-height: 1.65; }
.exam-mode .exam-input { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid rgba(214, 183, 122, .48); border-radius: 0; color: var(--exam-ivory); background: rgba(8, 15, 26, .5); text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: .3em; }
.exam-mode .exam-input[type="date"] { color-scheme: dark; cursor: pointer; font-size: 16px; letter-spacing: normal; text-align: left; }
.exam-mode .exam-date-hint { margin: 7px 0 0 !important; color: var(--exam-muted) !important; font-size: 11px !important; }
.exam-mode .identity-panel .exam-cta { margin-top: 13px; }
.exam-mode .exam-feedback { min-height: 22px; margin: 12px 0 0; color: var(--exam-soft-gold); font-size: 13px; line-height: 1.5; }
.exam-mode .verified-stamp { display: none; width: fit-content; margin: 18px auto 0; padding: 8px 12px; border: 2px solid var(--exam-approved); color: var(--exam-approved-ink); background: var(--exam-approved-bg); font-size: 12px; font-weight: 800; letter-spacing: .2em; transform: rotate(-8deg) scale(1.5); opacity: 0; }
.exam-mode .verified-stamp.visible { display: block; animation: exam-stamp .65s cubic-bezier(.2, .8, .25, 1.3) forwards; }
.exam-mode .identity-continue { display: none; margin-top: 18px; }
.exam-mode .identity-continue.visible { display: inline-flex; }

/* Passport stamps */
.exam-mode .booklet { position: relative; max-width: 700px; min-height: 335px; margin: 35px auto 17px; padding: 28px; border: 1px solid rgba(118, 93, 49, .42); border-radius: 5px; color: #283143; background: linear-gradient(135deg, #f8f2e5, #e8dfce); box-shadow: 0 20px 50px rgba(0, 0, 0, .26), inset 0 0 0 7px rgba(255,255,255,.24); }
.exam-mode .booklet.page-turn { animation: booklet-turn .45s ease-out; }
.exam-mode .booklet::before { position: absolute; inset: 13px; border: 1px solid rgba(111, 93, 57, .25); content: ""; pointer-events: none; }
.exam-mode .booklet-heading { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(63, 67, 69, .2); color: #565c60; font-size: 9px; letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.exam-mode .booklet-heading strong { color: #29364a; font: 19px "Playfair Display", serif; letter-spacing: .04em; }
.exam-mode .stamp-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: center; min-height: 175px; padding: 21px 0 13px; }
.exam-mode .stamp-button { display: grid; min-width: 0; justify-items: center; gap: 9px; padding: 6px 2px; border: 0; color: #343c49; background: none; cursor: pointer; }
.exam-mode .stamp-circle { position: relative; display: grid; width: clamp(75px, 10vw, 104px); height: clamp(75px, 10vw, 104px); align-content: center; justify-items: center; gap: 4px; padding: 7px; overflow: hidden; border: 2px dashed #c39b22; border-radius: 50%; color: #805f0d; background: rgba(233, 207, 123, .16); font-size: 8px; font-weight: 800; letter-spacing: .08em; line-height: 1.25; text-align: center; text-transform: uppercase; transform: rotate(-10deg); transition: color .25s, background .25s, border .25s, transform .25s; }
.exam-mode .stamp-button.pending .stamp-circle { animation: pending-glow 2s ease-in-out infinite; }
.exam-mode .stamp-name,
.exam-mode .stamp-status { position: relative; z-index: 1; max-width: 100%; font-size: 6px; letter-spacing: .05em; }
.exam-mode .stamp-plane { position: absolute; top: 50%; left: 50%; display: none; color: var(--exam-approved); font-size: 39px; line-height: 1; opacity: .2; transform: translate(-50%, -50%) rotate(-24deg); }
.exam-mode .stamp-button.approved .stamp-circle { border: 3px double var(--exam-approved); color: var(--exam-approved-ink); background: var(--exam-approved-bg); box-shadow: inset 0 0 0 3px rgba(38, 115, 75, .1); animation: stamp-hit .62s cubic-bezier(.2, .8, .25, 1.3); }
.exam-mode .stamp-button.approved .stamp-plane { display: block; }
.exam-mode .stamp-label { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.exam-mode .stamp-message { position: relative; min-height: 64px; max-width: 520px; margin: 0 auto; padding: 13px 17px; border-top: 1px solid rgba(63, 67, 69, .18); color: #39414b; font: 16px/1.55 "Playfair Display", serif; }
.exam-mode .booklet-footer { position: relative; display: flex; justify-content: space-between; margin-top: 7px; color: #687079; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.exam-mode .stamps-next:disabled { opacity: .42; cursor: not-allowed; }

/* Departure board */
.exam-mode .destination-title { margin-bottom: 32px !important; color: var(--exam-soft-gold); font-size: 13px !important; letter-spacing: .18em; }
.exam-mode .departure-board { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 22px; max-width: 700px; margin: 0 auto 28px; padding: 24px; border: 1px solid rgba(214, 183, 122, .44); background: linear-gradient(120deg, rgba(7, 13, 23, .9), rgba(26, 42, 62, .83)); box-shadow: 0 20px 45px rgba(0,0,0,.2); text-align: left; }
.exam-mode .board-head { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(214, 183, 122, .25); color: var(--exam-muted); font-size: 9px; letter-spacing: .15em; }
.exam-mode .board-destination { padding: 19px 0 12px; color: var(--exam-soft-gold); font: 35px "Playfair Display", serif; }
.exam-mode .board-status { align-self: center; color: var(--exam-approved-light); font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.exam-mode .board-route { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; padding: 14px 0 0; border-top: 1px solid rgba(214, 183, 122, .18); color: #d6dbe0; font-size: 10px; letter-spacing: .09em; }
.exam-mode .route-line { position: relative; grid-column: 1 / -1; height: 31px; margin-top: 7px; border-bottom: 1px dashed rgba(214, 183, 122, .6); }
.exam-mode .route-line span { position: absolute; right: 14%; bottom: -7px; display: inline-block; color: var(--exam-gold); font-size: 20px; animation: plane-cross 7s ease-in-out infinite alternate; }
.exam-mode .destination-message { max-width: 610px; margin: 18px auto 27px; color: #d7dce2; font: 20px/1.55 "Playfair Display", serif; }

/* Co-pilot letter */
.exam-mode .letter-scene { max-width: 710px; }
.exam-mode .letter-envelope-wrap { position: relative; min-height: 420px; margin: 26px auto 0; padding: 52px 25px 20px; }
.exam-mode .envelope { position: relative; display: block; width: min(100%, 410px); height: 258px; margin: 0 auto; border: 0; background: transparent; cursor: pointer; perspective: 700px; }
.exam-mode .envelope-body { position: absolute; inset: 32px 0 0; overflow: hidden; border: 1px solid #d5c7aa; background: linear-gradient(145deg, #eee5d3, #d9cdb6); box-shadow: 0 17px 30px rgba(0,0,0,.25); }
.exam-mode .envelope-body::before,
.exam-mode .envelope-body::after { position: absolute; bottom: 0; width: 0; height: 0; border-bottom: 135px solid #e8deca; content: ""; }
.exam-mode .envelope-body::before { left: 0; border-right: 205px solid transparent; }
.exam-mode .envelope-body::after { right: 0; border-left: 205px solid transparent; }
.exam-mode .envelope-flap { position: absolute; z-index: 2; top: 32px; left: 0; width: 100%; height: 0; border-top: 132px solid #f5eddd; border-right: 205px solid transparent; border-left: 205px solid transparent; transform-origin: top; transition: transform .8s; }
.exam-mode .envelope-seal { position: absolute; z-index: 3; top: 125px; left: calc(50% - 23px); display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #9a7640; border-radius: 50%; color: #805d2b; background: var(--exam-soft-gold); font: 22px "Playfair Display", serif; transition: opacity .3s; }
.exam-mode .envelope-note { position: absolute; z-index: 1; left: 8%; bottom: -38px; width: 84%; min-height: 230px; padding: 20px 22px; color: #343b44; background: #f8f4ea; box-shadow: 0 7px 22px rgba(0,0,0,.22); text-align: left; transition: transform .9s .25s; }
.exam-mode .envelope-note strong { display: block; margin-bottom: 13px; color: #705b39; font: 21px "Caveat", cursive; }
.exam-mode .envelope-note span { color: #77776f; font: 16px "Caveat", cursive; }
.exam-mode .envelope.open .envelope-flap { z-index: 0; transform: rotateX(180deg); }
.exam-mode .envelope.open .envelope-seal { opacity: 0; }
.exam-mode .envelope.open .envelope-note { z-index: 4; transform: translateY(-146px); }
.exam-mode .letter-content { display: none; max-width: 630px; margin: -35px auto 25px; padding: 28px 30px; border: 1px solid rgba(117, 92, 48, .3); color: #353a40; background: #f8f4ea; box-shadow: 0 24px 55px rgba(0,0,0,.27); text-align: left; }
.exam-mode .letter-content.visible { display: block; animation: exam-enter .8s both; }
.exam-mode .letter-content h3 { margin: 0 0 13px; color: #675535; font-size: 24px; }
.exam-mode .letter-body { white-space: pre-line; font: 16px/1.75 "DM Sans", sans-serif; }
.exam-mode .letter-signature { margin-top: 21px; color: #775d34; font: 22px "Caveat", cursive; text-align: right; }
.exam-mode .letter-continue { display: none; }
.exam-mode .letter-continue.visible { display: inline-flex; }

/* Boarding pass and finale */
.exam-mode .boarding-pass { position: relative; display: grid; grid-template-columns: 1fr 145px; max-width: 720px; margin: 38px auto 26px; overflow: hidden; border: 1px solid rgba(214, 183, 122, .65); color: #29354a; background: var(--exam-ivory); box-shadow: 0 22px 50px rgba(0,0,0,.3); text-align: left; }
.exam-mode .exam-scene[data-stage="6"].active .boarding-pass { animation: ticket-reveal .8s both; }
.exam-mode .ticket-main { padding: 25px 27px 20px; color: #101b2d; }
.exam-mode .ticket-side { display: grid; align-content: center; justify-items: center; gap: 13px; padding: 18px; border-left: 1px dashed #8b8b82; color: #17283f; background: #eee7d8; text-align: center; }
.exam-mode .ticket-eyebrow { display: flex; justify-content: space-between; gap: 8px; color: #465361; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.exam-mode .ticket-main h3 { margin: 20px 0 18px; color: #21334c; font-size: 27px; letter-spacing: .05em; }
.exam-mode .ticket-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.exam-mode .ticket-fields div { min-width: 0; color: #4b5663; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.exam-mode .ticket-fields strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: #17283f; font-size: 14px; letter-spacing: .02em; }
.exam-mode .ticket-note { margin: 19px 0 0; padding-top: 13px; border-top: 1px solid #d5d0c3; color: #29364a; font: 15px/1.55 "Playfair Display", serif; }
.exam-mode .barcode { width: 100%; height: 58px; background: repeating-linear-gradient(90deg, #26364a 0 2px, transparent 2px 4px, #26364a 4px 5px, transparent 5px 8px); }
.exam-mode .ticket-side small { color: #424d58; font-size: 9px; letter-spacing: .12em; }
.exam-mode .takeoff-stamp { position: absolute; z-index: 10; top: 50%; left: 50%; display: none; width: 154px; height: 154px; pointer-events: none; opacity: 0; }
.exam-mode .takeoff-stamp.visible { display: grid; place-items: center; animation: takeoff-stamp-in .65s cubic-bezier(.2, .8, .25, 1.3) forwards; }
.exam-mode .takeoff-seal { position: relative; display: flex; width: 146px; height: 146px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 5px double var(--exam-approved); border-radius: 50%; color: var(--exam-approved-ink); background: rgba(229, 241, 228, .96); box-shadow: inset 0 0 0 5px rgba(38, 115, 75, .08), 0 5px 16px rgba(16, 27, 45, .25); text-align: center; }
.exam-mode .takeoff-seal::before { position: absolute; inset: 7px; border: 1px dashed var(--exam-approved); border-radius: 50%; content: ""; }
.exam-mode .takeoff-copy { position: relative; z-index: 1; font-size: 11px; font-weight: 900; letter-spacing: .15em; line-height: 1.35; }
.exam-mode .takeoff-plane { position: relative; z-index: 1; color: var(--exam-approved); font-size: 30px; line-height: 1; animation: takeoff-plane-flight 1.4s ease-in-out infinite alternate; }
.exam-mode .final-scene { position: relative; display: none; min-height: calc(100vh - 136px); min-height: calc(100dvh - 136px); flex-direction: column; justify-content: center; overflow: visible; }
.exam-mode .final-scene.active { display: flex; }
.exam-mode .final-scene::before { position: absolute; z-index: -1; right: -25%; bottom: 0; left: -25%; height: 44%; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 100%, rgba(214, 183, 122, .46), rgba(196, 144, 82, .13) 37%, transparent 72%); content: ""; filter: blur(12px); }
.exam-mode .final-horizon { margin: 0 auto 26px; color: var(--exam-gold); font-size: 38px; animation: horizon-plane 12s ease-in-out infinite; }
.exam-mode .final-scene h2 { font-size: clamp(39px, 8vw, 82px); }
.exam-mode .final-message-box { width: min(100%, 610px); margin: 22px auto 28px; padding: clamp(20px, 4vw, 30px); border: 1px solid rgba(214, 183, 122, .85); color: var(--exam-navy); background: linear-gradient(145deg, rgba(248, 244, 234, .98), rgba(238, 231, 216, .97)); box-shadow: 0 18px 45px rgba(0, 0, 0, .24); text-align: left; }
.exam-mode .final-copy { max-width: none; margin: 0; color: #17283f; font: 18px/1.8 "Playfair Display", serif; white-space: pre-line; }
.exam-mode .final-line { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(118, 93, 49, .35); color: #705825; font: 22px/1.5 "Playfair Display", serif; text-align: center; }
.exam-mode .final-destination { margin: 22px auto 0; color: var(--exam-muted); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.exam-mode .final-destination strong { display: block; margin-top: 7px; color: var(--exam-gold); font-size: 11px; }

@keyframes exam-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes exam-stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(1.7); } 75% { opacity: 1; transform: rotate(-8deg) scale(.93); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes takeoff-stamp-in { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(1.6); } 75% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(.94); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); } }
@keyframes takeoff-plane-flight { from { transform: translateX(-19px) rotate(-8deg); } to { transform: translateX(19px) translateY(-3px) rotate(8deg); } }
@keyframes exam-stars { to { background-position: 290px 250px; } }
@keyframes booklet-turn { 50% { transform: perspective(900px) rotateY(-3deg); } }
@keyframes pending-glow { 50% { box-shadow: 0 0 13px rgba(217, 180, 51, .38), inset 0 0 0 2px rgba(217, 180, 51, .15); } }
@keyframes stamp-hit { 0% { transform: rotate(-10deg) scale(1.3); } 75% { transform: rotate(-8deg) scale(.93); } 100% { transform: rotate(-8deg) scale(1); } }
@keyframes ticket-reveal { from { opacity: 0; transform: translateY(15px) rotateX(7deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes plane-cross { from { right: 4%; transform: translateY(5px) rotate(-8deg); } to { right: 86%; transform: translateY(-5px) rotate(8deg); } }
@keyframes horizon-plane { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(34px, -20px); } }
@keyframes airport-plane-flight {
  0% { transform: translate3d(-5vw, 0, 0) rotate(-7deg); opacity: 0; }
  8% { opacity: .8; }
  48% { transform: translate3d(58vw, -3vh, 0) rotate(-4deg); opacity: .75; }
  92% { opacity: .65; }
  100% { transform: translate3d(122vw, -7vh, 0) rotate(-2deg); opacity: 0; }
}

@media (max-width: 640px) {
  .exam-mode .exam-shell { padding: 0 max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .exam-mode .exam-header { padding-top: max(14px, env(safe-area-inset-top)); }
  .exam-mode .exam-brand { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 9px; letter-spacing: .14em; }
  .exam-mode .exam-brand strong { font-size: 19px; }
  .exam-mode .exam-progress { gap: 5px; margin-top: 14px; }
  .exam-mode .progress-copy { font-size: 9px; letter-spacing: .08em; }
  .exam-mode .exam-scene { min-height: calc(100vh - 108px); min-height: calc(100dvh - 108px); padding-top: clamp(20px, 5vh, 32px); }
  .exam-mode .exam-kicker { font-size: 9px; }
  .exam-mode .exam-copy { font-size: 14px; }
  .exam-mode .cover-layout { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .exam-mode .cover-copy .exam-copy { margin: 17px auto 20px; }
  .exam-mode .cover-note { font-size: 18px; }
  .exam-mode .passport-object { width: min(100%, 330px); min-height: 432px; }
  .exam-mode .passport-emblem { width: 57px; height: 57px; margin-top: 13px; font-size: 26px; }
  .exam-mode .passport-photo-frame { width: 98px; height: 125px; }
  .exam-mode .identity-panel { grid-template-columns: 1fr; gap: 19px; padding: 20px; text-align: center; }
  .exam-mode .identity-panel p { font-size: 13px; }
  .exam-mode .booklet { min-height: 310px; padding: 22px 17px; }
  .exam-mode .booklet-heading { font-size: 8px; }
  .exam-mode .booklet-heading strong { font-size: 15px; }
  .exam-mode .stamp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 15px 0 9px; }
  .exam-mode .stamp-button { grid-column: span 2; padding-inline: 0; }
  .exam-mode .stamp-button:nth-child(4) { grid-column: 2 / span 2; }
  .exam-mode .stamp-button:nth-child(5) { grid-column: 4 / span 2; }
  .exam-mode .stamp-circle { width: 72px; height: 72px; font-size: 7px; }
  .exam-mode .stamp-name, .exam-mode .stamp-status { font-size: 7px; }
  .exam-mode .stamp-label { font-size: 8px; }
  .exam-mode .stamp-message { font-size: 14px; }
  .exam-mode .departure-board { gap: 0 10px; padding: 17px 14px; }
  .exam-mode .board-destination { font-size: 25px; }
  .exam-mode .board-route { font-size: 9px; }
  .exam-mode .destination-message { font-size: 18px; }
  .exam-mode .letter-envelope-wrap { min-height: 405px; padding-inline: 0; }
  .exam-mode .envelope { height: 235px; }
  .exam-mode .letter-envelope-wrap { --envelope-half: min(205px, calc((100vw - 32px) / 2)); }
  .exam-mode .envelope-flap { border-right-width: var(--envelope-half); border-left-width: var(--envelope-half); }
  .exam-mode .envelope-body::before { border-right-width: var(--envelope-half); }
  .exam-mode .envelope-body::after { border-left-width: var(--envelope-half); }
  .exam-mode .envelope-note { padding: 16px; }
  .exam-mode .letter-content { padding: 22px 19px; }
  .exam-mode .letter-body { font-size: 14px; }
  .exam-mode .boarding-pass { grid-template-columns: minmax(0, 1fr) 74px; }
  .exam-mode .ticket-main { padding: 19px 14px; }
  .exam-mode .ticket-side { padding: 12px 8px; }
  .exam-mode .takeoff-stamp { width: 126px; height: 126px; }
  .exam-mode .takeoff-seal { width: 120px; height: 120px; gap: 6px; border-width: 4px; }
  .exam-mode .takeoff-copy { font-size: 9px; }
  .exam-mode .takeoff-plane { font-size: 25px; }
  .exam-mode .ticket-main h3 { margin: 17px 0; font-size: 21px; }
  .exam-mode .ticket-fields { gap: 14px 8px; }
  .exam-mode .ticket-fields div { font-size: 9px; }
  .exam-mode .ticket-fields strong { font-size: 11px; }
  .exam-mode .ticket-note { font-size: 12px; }
  .exam-mode .barcode { height: 44px; }
  .exam-mode .final-copy { font-size: 16px; }
  .exam-mode .final-line { font-size: 18px; }
}

@media (max-width: 380px) {
  .exam-mode .exam-shell { padding-right: 12px; padding-left: 12px; }
  .exam-mode .exam-brand strong { font-size: 18px; }
  .exam-mode .exam-copy { font-size: 13px; line-height: 1.65; }
  .exam-mode .passport-object { min-height: 410px; padding: 22px 18px; }
  .exam-mode .booklet { padding-right: 13px; padding-left: 13px; }
  .exam-mode .stamp-circle { width: 66px; height: 66px; }
  .exam-mode .stamp-label { font-size: 8px; }
  .exam-mode .ticket-main { padding: 16px 10px; }
  .exam-mode .ticket-side { padding: 10px 5px; }
  .exam-mode .ticket-eyebrow { font-size: 8px; }
  .exam-mode .ticket-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .exam-mode .ticket-fields div { font-size: 8px; }
  .exam-mode .ticket-fields strong { font-size: 11px; }
  .exam-mode .takeoff-stamp { width: 108px; height: 108px; }
  .exam-mode .takeoff-seal { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .exam-mode .airport-video { display: none; }
  body.exam-mode *,
  body.exam-mode *::before,
  body.exam-mode *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
