/* Coming-soon landing page: the Glensara Airways boarding pass (flight GL 2027 to The World of Glensara).
 * Hand-written (not generated by build_theme.py). Loaded only by coming-soon.php; logic in assets/js/soon.js. */
html.gb-on, html.gb-on body { margin: 0; height: 100%; overflow: hidden; background: #070605; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.gb { --gold: #c9a26c; --gold-hi: #e8ca92; --ink: #0d0b09; position: fixed; inset: 0; z-index: 10000; overflow: hidden; color: #eee6d8; font-family: Manrope, sans-serif; text-rendering: geometricPrecision; }
.gb *, .gb *::before, .gb *::after { box-sizing: border-box; }

/* Angkor at dawn behind the pass */
.gb__bg { position: absolute; inset: -20px; }
.gb__bg img, .gb__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.5) sepia(.35); transform: scale(1.05); }
.gb__bg video { opacity: 0; transition: opacity 1.4s; }
.gb__bg video.is-ready { opacity: 1; }
.gb__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 45%, rgba(7,6,5,.1), rgba(7,6,5,.8)); }

.gb__stage { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; row-gap: clamp(20px, 3.5vh, 34px); padding: 4vh 3vw 8vh; }
/* No 3D tilt: transforms soften text. The pass stays flat and sharp; a gold glow breathes around it. */
.gb__pass { display: grid; grid-template-columns: 1fr clamp(170px, 23%, 250px); width: min(1000px, 94vw); border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(201,162,108,.5), 0 0 60px rgba(232,190,120,.10); animation: gbAura 6s ease-in-out infinite; }
@keyframes gbAura { 50% { box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(201,162,108,.7), 0 0 90px rgba(232,190,120,.22); } }

/* Main ticket: ivory paper, gold foil */
.gb__main { position: relative; min-width: 0; overflow: hidden; border-radius: 18px 0 0 18px; padding: clamp(18px, 3vw, 34px); color: var(--ink);
  background: radial-gradient(120% 80% at 0% 0%, #fbf4e4, #efe3c9 60%, #e6d6b6); transition: transform 1s cubic-bezier(.6,0,.3,1), opacity .9s; }
.gb__main::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); background-size: 250% 100%; animation: gbSheen 6s ease-in-out infinite; mix-blend-mode: soft-light; }
@keyframes gbSheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.gb__top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1.5px solid #b48a4f; }
.gb__top img { width: 46px; height: auto; }
.gb__brand { flex: 1; margin: 0; font: 700 clamp(14px, 1.9vw, 22px)/1 Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(180deg, #a87a3a, #6e4a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gb__kind { font: 800 12px/1 Manrope, sans-serif; letter-spacing: .34em; color: #6e4a1c; text-transform: uppercase; }
.gb__route { display: flex; align-items: center; justify-content: space-between; margin: clamp(14px, 2.4vw, 26px) 0 6px; }
.gb__city b { display: inline-flex; font: 700 clamp(40px, 7vw, 82px)/1 Cinzel, serif; letter-spacing: .04em; color: #1a140d; }
.gb__city small { display: block; margin-top: 4px; font: 800 10px/1 Manrope, sans-serif; letter-spacing: .3em; color: #6b5638; text-transform: uppercase; transition: opacity .35s; }
.gb__city small.is-out { opacity: 0; }
.gb__city--to { text-align: right; }
/* departure code rolls through world airports like a slot reel */
.gb__city .slot { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; text-align: center; transition: width .45s ease; }
.gb__city .reel { display: block; transition: transform .9s cubic-bezier(.2,.75,.25,1); }
.gb__city .reel i { display: block; height: 1em; line-height: 1; font-style: normal; }
/* Fixed columns: the codes can change width (airport tour) without moving the line or the plane. */
.gb__route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.3fr) minmax(0, 1fr); align-items: center; }
.gb__plane { position: relative; height: 26px; margin: 0 clamp(10px, 2vw, 24px); }
/* The dashed line has a real gap for the plane (no box behind it), so the pass texture shows through. */
.gb__plane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(110,74,28,.45);
  -webkit-mask: linear-gradient(90deg, #000 calc(50% - 24px), transparent calc(50% - 24px), transparent calc(50% + 24px), #000 calc(50% + 24px));
          mask: linear-gradient(90deg, #000 calc(50% - 24px), transparent calc(50% - 24px), transparent calc(50% + 24px), #000 calc(50% + 24px)); }
.gb__plane::after { content: "\2708"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-size: 26px; line-height: 1; color: #8b6430; }
.gb__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: clamp(12px, 2vw, 22px); }
.gb__facts small { display: block; font: 800 9px/1 Manrope, sans-serif; letter-spacing: .28em; color: #6b5638; text-transform: uppercase; }
.gb__facts b { display: block; margin-top: 6px; font: 700 clamp(12px, 1.6vw, 17px)/1.1 'JetBrains Mono', ui-monospace, monospace; color: #1a140d; text-transform: uppercase; }

/* Split-flap countdown */
.gb__cd { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 1.4vw, 16px); margin-top: clamp(16px, 2.6vw, 26px); padding: clamp(10px, 1.6vw, 16px); background: #12100c; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(201,162,108,.35); transition: box-shadow .4s; }
.gb__grp .cells { display: flex; gap: 4px; }
.gb__grp > span { display: block; margin-top: 8px; text-align: center; color: var(--gold); font: 800 9px/1 Manrope, sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.gb__sep { padding-bottom: 24px; color: var(--gold); font: 700 clamp(22px, 3vw, 36px)/1 'JetBrains Mono', ui-monospace, monospace; }
.gb__cell { --ch: clamp(44px, 6.4vw, 72px); position: relative; width: clamp(30px, 4.4vw, 50px); height: var(--ch); perspective: 300px; font: 700 clamp(28px, 4.4vw, 50px)/1 'JetBrains Mono', ui-monospace, monospace; color: #f6e2b6; }
.gb__cell .h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: #1d1913; border-radius: 5px 5px 0 0; }
.gb__cell .h span { display: block; width: 100%; height: var(--ch); line-height: var(--ch); text-align: center; }
.gb__cell .b { top: 50%; border-radius: 0 0 5px 5px; background: #17130f; }
.gb__cell .b span { transform: translateY(-50%); }
.gb__cell .t { top: 0; }
.gb__cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #050404; z-index: 3; }
.gb__cell .flip { z-index: 2; transform-origin: bottom; animation: gbFt .3s ease-in forwards; }
.gb__cell .flipb { z-index: 2; transform-origin: top; transform: rotateX(90deg); animation: gbFb .3s ease-out .28s forwards; }
@keyframes gbFt { to { transform: rotateX(-90deg); } }
@keyframes gbFb { to { transform: rotateX(0); } }

/* Stub: black with gold, perforated edge */
.gb__stub { position: relative; border-radius: 0 18px 18px 0; padding: clamp(18px, 2.6vw, 30px) clamp(14px, 2vw, 24px); background: linear-gradient(180deg, #15110c, #0c0a07); color: var(--gold-hi);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; transition: transform 1.1s cubic-bezier(.5,0,.3,1), opacity 1s; }
.gb__stub::before { content: ""; position: absolute; left: -9px; top: 0; bottom: 0; width: 18px; background: radial-gradient(circle at 9px 9px, #070605 6px, transparent 6.5px) 0 0 / 18px 22px repeat-y; }
.gb__stub img { width: clamp(70px, 9vw, 110px); height: auto; filter: drop-shadow(0 0 18px rgba(232,190,120,.35)); }
.gb__when { font: 700 clamp(16px, 1.8vw, 20px)/1.35 Cinzel, serif; letter-spacing: .08em; color: #f3d9a4; text-transform: uppercase; }
.gb__when small { display: block; margin-top: 10px; color: #d2c6b2; font: 800 11px/1.6 Manrope, sans-serif; letter-spacing: .26em; }
.gb__when small:first-child { margin-top: 0; }
.gb__bar { width: 100%; height: 54px; opacity: .9; background: repeating-linear-gradient(90deg, var(--gold-hi) 0 2px, transparent 2px 4px, var(--gold-hi) 4px 5px, transparent 5px 9px, var(--gold-hi) 9px 12px, transparent 12px 14px); }

.gb__note { margin: 0; text-align: center; color: #e6dccb; font: 700 clamp(13px, 1.25vw, 16px)/1.6 Manrope, sans-serif; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.8); transition: opacity .6s; }
.gb__note b { color: #f3d08f; }
.gb__foot { position: absolute; left: 16px; right: 16px; bottom: 2vh; margin: 0; text-align: center; color: #8f897f; font: 600 10px/1.6 Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.gb__foot a { color: var(--gold); text-decoration: none; margin: 0 8px; }
.gb__foot a:hover { color: #f1e6cf; }
.gb__legal { display: block; margin-top: 4px; }
.gb__legal a { color: #8f897f; }

/* ---- Launch finale ---- */
/* Final call: the last 10 seconds */
.gb.is-final .gb__kind { color: #9a2f1d; animation: gbBlink 1s steps(2, start) infinite; }
@keyframes gbBlink { to { visibility: hidden; } }
.gb.is-final .gb__cd { box-shadow: inset 0 0 0 1px rgba(232,190,120,.75), 0 0 26px rgba(232,170,90,.35); }
.gb.is-final .gb__note b { color: #ffcf7a; }
/* Boarding: stamp, gold sweep, a small thud */
.gb__sweep { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: linear-gradient(105deg, transparent 35%, rgba(255,226,170,.75) 50%, transparent 65%); transform: translateX(-130%); }
.gb.is-boarding .gb__sweep { animation: gbSweep 1.2s .25s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes gbSweep { to { transform: translateX(130%); } }
.gb__stamp { position: absolute; left: 50%; top: 47%; z-index: 5; padding: 12px 26px 10px; text-align: center; color: #8e2a1c; border: 4px double #8e2a1c; border-radius: 8px;
  transform: translate(-50%, -50%) rotate(-11deg) scale(2.6); opacity: 0; mix-blend-mode: multiply; pointer-events: none; }
.gb__stamp b { display: block; font: 700 clamp(26px, 4vw, 46px)/1 Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; }
.gb__stamp small { display: block; margin-top: 6px; font: 800 clamp(10px, 1.1vw, 13px)/1 Manrope, sans-serif; letter-spacing: .32em; text-transform: uppercase; }
.gb.is-boarding .gb__stamp { animation: gbStamp .32s cubic-bezier(.3,.8,.4,1.25) forwards; }
@keyframes gbStamp { to { transform: translate(-50%, -50%) rotate(-11deg) scale(1); opacity: .9; } }
.gb.is-boarding .gb__pass { animation: gbThud .35s .28s ease-out, gbAura 6s ease-in-out infinite; }
@keyframes gbThud { 30% { translate: 0 6px; } 60% { translate: 0 -2px; } }
.gb.is-boarding .gb__kind { animation: none; color: #8e2a1c; }
/* The stub tears off, then the pass rises away and the page fades */
.gb.is-torn .gb__stub { transform: translate(70px, 40px) rotate(9deg); opacity: 0; }
.gb.is-leaving .gb__main { transform: translateY(-60px); opacity: 0; }
.gb.is-leaving .gb__note { opacity: 0; }
.gb__veil { position: absolute; inset: 0; z-index: 20; background: #070605; opacity: 0; pointer-events: none; transition: opacity 1s ease .3s; }
.gb.is-leaving .gb__veil { opacity: 1; }

/* Phones: stub below the ticket */
@media (max-width: 760px) {
  .gb__pass { grid-template-columns: 1fr; }
  .gb__main { border-radius: 18px 18px 0 0; }
  .gb__stub { flex-direction: row; gap: 12px; border-radius: 0 0 18px 18px; }
  .gb__stub::before { display: none; }
  .gb__bar { width: 30%; height: 40px; }
  .gb__facts { grid-template-columns: repeat(2, 1fr); }
  .gb__kind { display: none; }
  .gb.is-final .gb__kind, .gb.is-boarding .gb__kind { display: block; font-size: 10px; letter-spacing: .2em; }
  .gb__city b { font-size: 40px; }
  .gb__city small { font-size: 8px; letter-spacing: .16em; }
  .gb__plane { margin: 0 8px; }
  .gb__cd { gap: 4px; padding: 10px 8px; }
  .gb__grp .cells { gap: 2px; }
  .gb__cell { --ch: 42px; width: 26px; font-size: 26px; }
  .gb__sep { font-size: 18px; padding-bottom: 22px; }
  .gb__grp > span { letter-spacing: .18em; }
  .gb__note, .gb__foot { font-size: 9px; letter-spacing: .12em; padding: 0 12px; }
  .gb__foot { left: 0; right: 0; }
  .gb.is-torn .gb__stub { transform: translate(20px, 90px) rotate(6deg); }
}
@media (max-width: 360px) { .gb__cell { --ch: 38px; width: 23px; font-size: 23px; } .gb__city b { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .gb__pass, .gb__main::after, .gb.is-final .gb__kind, .gb.is-boarding .gb__sweep, .gb.is-boarding .gb__pass { animation: none; }
  .gb__cell .flip, .gb__cell .flipb { animation-duration: .01s; animation-delay: 0s; }
  .gb.is-boarding .gb__stamp { animation-duration: .01s; }
}
