*{box-sizing:border-box;}
:root{--kyyeu-accent:#2E6E8E; --kyyeu-heading-font:'Cormorant Garamond',serif; --kyyeu-heading-scale:1;}
html{background:#BEDCEC;}
body{margin:0; color:#1E3240; font-family:'Literata',serif; line-height:1.8; overflow-x:hidden; background:var(--kyyeu-bg,#BEDCEC);}
.wrap{max-width:720px; margin:0 auto; position:relative; z-index:4;}
@media (prefers-reduced-motion: reduce){ .cloud-layer,.plane{animation:none !important;} }

/* BẦU TRỜI ĐỔI MÀU THEO CUỘN */
.sky-gradient{position:fixed; inset:0; z-index:0; transition:background 1.4s ease;
  background:linear-gradient(180deg,#8FC4E0 0%,#BEDCEC 55%,#E4F0F6 100%);}

/* MÂY PARALLAX 3 LỚP */
.cloud-layer{position:fixed; left:0; right:0; z-index:1; pointer-events:none; height:100%;
  background-repeat:repeat-x; background-position:0 center;}
.cloud-layer.far{
  background-image:radial-gradient(ellipse 120px 44px at 90px 22%, rgba(255,255,255,.55), transparent 70%),
                   radial-gradient(ellipse 160px 52px at 420px 58%, rgba(255,255,255,.45), transparent 70%);
  background-size:640px 100%; animation:cloudDrift 90s linear infinite; opacity:.75;}
.cloud-layer.mid{
  background-image:radial-gradient(ellipse 180px 58px at 200px 36%, rgba(255,255,255,.7), transparent 70%),
                   radial-gradient(ellipse 140px 46px at 600px 72%, rgba(255,255,255,.6), transparent 70%);
  background-size:820px 100%; animation:cloudDrift 55s linear infinite; opacity:.7;}
.cloud-layer.near{
  background-image:radial-gradient(ellipse 240px 74px at 120px 82%, rgba(255,255,255,.85), transparent 68%);
  background-size:1000px 100%; animation:cloudDrift 34s linear infinite; opacity:.55;}
@keyframes cloudDrift{from{background-position-x:0;} to{background-position-x:-1200px;}}

/* MÁY BAY BAY NGANG */
.plane{position:fixed; z-index:2; color:#F4FAFD; top:16%; left:-90px;
  animation:flyAcross 26s linear infinite; filter:drop-shadow(0 5px 10px rgba(0,0,0,.18));}
@keyframes flyAcross{
  0%{transform:translateX(0) translateY(0);}
  50%{transform:translateX(52vw) translateY(-26px);}
  100%{transform:translateX(112vw) translateY(10px);}
}
.contrail{position:absolute; right:100%; top:50%; width:150px; height:3px; transform:translateY(-50%);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.55)); border-radius:2px;}

/* VÉ MÁY BAY */
.cover{padding:56px 20px 26px; position:relative; z-index:4;}
.boarding-pass{max-width:520px; margin:0 auto; display:flex; background:#FDFBF6; border-radius:10px;
  overflow:hidden; box-shadow:0 26px 54px rgba(30,50,64,.28);}
.bp-left{flex:1; padding:24px 22px;}
.bp-label{display:block; font-size:9.5px; letter-spacing:.24em; color:#8A9AA4; margin-bottom:14px;}
.bp-left h1{font-family:var(--kyyeu-heading-font); font-weight:600;
  font-size:calc(34px * var(--kyyeu-heading-scale)); margin:0 0 4px; color:var(--kyyeu-accent);}
.bp-school{margin:0 0 20px; font-size:13px; color:#6E7E88;}
.bp-route{display:flex; align-items:center; gap:12px;}
.bp-point{text-align:center;}
.bp-point strong{display:block; font-family:var(--kyyeu-heading-font); font-size:20px; color:#1E3240;}
.bp-point span{display:block; font-size:8.5px; letter-spacing:.14em; color:#8A9AA4; margin-top:2px;}
.bp-path{flex:1; position:relative; height:16px;}
.bp-line{position:absolute; top:50%; left:0; right:0; height:1px; border-top:1px dashed #B8C6CE;}
.bp-plane{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:var(--kyyeu-accent); font-size:14px;
  background:#FDFBF6; padding:0 5px;}
.bp-stub{width:130px; border-left:2px dashed #DCE4E8; padding:20px 14px; text-align:center; background:#F6F2EA;}
.bp-photo{width:82px; height:82px; margin:0 auto 12px; border-radius:6px; overflow:hidden; border:2px solid #fff;
  box-shadow:0 4px 10px rgba(30,50,64,.18);}
.bp-photo img{width:100%; height:100%; object-fit:cover;}
.bp-seat{font-size:8.5px; letter-spacing:.12em; color:#8A9AA4; line-height:1.7;}
.bp-seat strong{font-family:var(--kyyeu-heading-font); font-size:19px; color:var(--kyyeu-accent); letter-spacing:0;}
@media(max-width:520px){.boarding-pass{flex-direction:column;} .bp-stub{width:100%; border-left:none; border-top:2px dashed #DCE4E8;}}

.scroll-cue{text-align:center; margin:22px 0 0; font-size:12px; color:#5A7A8A; font-style:italic;}

.section{padding:56px 24px 8px; position:relative; z-index:4;}
.section-head{text-align:center; margin-bottom:30px;}
.section h2{font-family:var(--kyyeu-heading-font); font-weight:600;
  font-size:calc(28px * var(--kyyeu-heading-scale)); color:var(--kyyeu-accent); margin:0 0 6px;}
.section .sub{font-size:12.5px; color:#5A7A8A;}

/* THÔNG BÁO CƠ TRƯỞNG */
.captain-msg{max-width:520px; margin:0 auto; background:rgba(253,251,246,.9); backdrop-filter:blur(6px);
  border-left:3px solid var(--kyyeu-accent); border-radius:0 10px 10px 0; padding:24px 26px;
  box-shadow:0 12px 28px rgba(30,50,64,.14);}
.cap-label{display:block; font-size:9.5px; letter-spacing:.2em; color:var(--kyyeu-accent); margin-bottom:12px;}
.captain-msg p{margin:0; font-size:15px; color:#26404E; line-height:1.85;}

/* CỬA SỔ MÁY BAY */
.porthole-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.porthole{margin:0; opacity:0; transform:translateY(20px);
  transition:opacity .9s ease var(--d), transform .9s cubic-bezier(.2,.85,.3,1) var(--d);}
.porthole.boarded{opacity:1; transform:translateY(0);}
.port-glass{position:relative; border-radius:50% / 34%; overflow:hidden; border:8px solid #EDF3F6;
  box-shadow:0 12px 26px rgba(30,50,64,.22), inset 0 0 20px rgba(30,50,64,.18);}
.port-glass img{width:100%; height:150px; object-fit:cover; display:block; transition:transform .7s ease;}
.porthole:hover .port-glass img{transform:scale(1.06);}
.port-shine{position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(125deg, rgba(255,255,255,.42) 0%, transparent 42%, transparent 100%);}
.porthole figcaption{text-align:center; font-size:12.5px; color:#5A7A8A; margin-top:10px; font-style:italic;}
@media(max-width:600px){.porthole-grid{grid-template-columns:repeat(2,1fr);}}

.see-full{text-align:center; margin:34px 0 0;}
.see-full a{font-family:var(--kyyeu-heading-font); font-size:15px; color:var(--kyyeu-accent);
  text-decoration:none; border-bottom:1px solid rgba(46,110,142,.4); padding-bottom:2px;}

/* BẢNG ĐIỂM ĐẾN SÂN BAY */
.departure-board{max-width:540px; margin:0 auto; background:#12212B; border-radius:8px; overflow:hidden;
  box-shadow:0 18px 38px rgba(18,33,43,.35);}
.db-head{display:grid; grid-template-columns:1.1fr 1.4fr .8fr; gap:10px; padding:12px 18px;
  background:#0B1720; font-size:9.5px; letter-spacing:.16em; color:#6E8A99;}
.db-row{display:grid; grid-template-columns:1.1fr 1.4fr .8fr; gap:10px; padding:13px 18px;
  border-bottom:1px solid rgba(110,138,153,.14); opacity:0; transform:translateY(8px);
  transition:opacity .6s ease var(--d), transform .6s ease var(--d);}
.db-row.landed{opacity:1; transform:translateY(0);}
.db-row:last-child{border-bottom:none;}
.db-name{font-size:13.5px; color:#DCE8EE;}
.db-dest{font-family:var(--kyyeu-heading-font); font-size:15px; color:#F0C860;}
.db-status{font-size:10px; letter-spacing:.1em; color:#4ADE9B; align-self:center;}
@media(max-width:520px){.db-head,.db-row{grid-template-columns:1fr 1fr; } .db-status{display:none;}}

/* HÀNH LÝ XÁCH TAY */
.carry-on{display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:540px; margin:0 auto;}
.carry-tag{background:rgba(253,251,246,.88); backdrop-filter:blur(4px); border-radius:8px; padding:15px 18px;
  box-shadow:0 8px 18px rgba(30,50,64,.12); position:relative;}
.carry-tag::before{content:""; position:absolute; top:12px; right:12px; width:9px; height:9px; border-radius:50%;
  border:2px solid var(--kyyeu-accent); opacity:.45;}
.carry-tag strong{display:block; font-family:var(--kyyeu-heading-font); font-size:16px; color:var(--kyyeu-accent);}
.carry-tag span{display:block; font-size:12.5px; color:#6E7E88; margin-top:4px; font-style:italic;}
@media(max-width:520px){.carry-on{grid-template-columns:1fr;}}

/* LỜI NHẮN */
.flight-notes{max-width:520px; margin:0 auto;}
.flight-note{background:rgba(253,251,246,.9); backdrop-filter:blur(4px); border-radius:10px; padding:17px 20px;
  margin-bottom:14px; box-shadow:0 8px 18px rgba(30,50,64,.1);}
.flight-note p{margin:0 0 8px; font-size:14.5px; color:#26404E;}
.flight-note cite{font-family:var(--kyyeu-heading-font); font-style:italic; font-size:13.5px; color:var(--kyyeu-accent);}

.share{margin:58px 24px 30px; padding:42px 26px; text-align:center; border-radius:14px;
  background:rgba(18,33,43,.9); color:#DCE8EE; position:relative; z-index:4;}
.share h2{font-family:var(--kyyeu-heading-font); font-size:26px; margin:0 0 8px; color:#F0C860;}
.share p{font-size:13px; margin:0 0 20px; color:#8AA4B2;}
#qrcode{background:#fff; display:inline-block; padding:9px; border-radius:8px; margin-bottom:16px;}
.link-row{display:flex; justify-content:center; gap:8px; flex-wrap:wrap; font-size:12.5px;}
.link-row code{background:rgba(240,200,96,.12); padding:7px 13px; border-radius:20px; color:#F0C860;}
.link-row button{background:#F0C860; color:#12212B; border:none; padding:7px 15px; border-radius:20px;
  font-size:12px; font-weight:700; cursor:pointer;}

.foot{text-align:center; font-size:11.5px; color:#5A7A8A; padding:0 20px 44px; position:relative; z-index:4;}

/* ============ NÂNG CẤP PREMIUM ============ */
/* Bảng màu bổ sung: vàng cabin ấm + xanh navy sâu — tương phản sang trọng */
:root{--kyyeu-cabin:#E0A94E; --kyyeu-navy:#12212B;}
body.night-mode{color:#DCE8EE;}
body.night-mode .section h2{color:#F0C860;}
body.night-mode .section .sub, body.night-mode .foot, body.night-mode .scroll-cue{color:#8AA4B2;}
body.night-mode .captain-msg{background:rgba(18,33,43,.86); color:#DCE8EE;}
body.night-mode .captain-msg p{color:#DCE8EE;}
body.night-mode .carry-tag{background:rgba(18,33,43,.8);}
body.night-mode .carry-tag strong{color:#F0C860;}
body.night-mode .carry-tag span{color:#8AA4B2;}
body.night-mode .flight-note{background:rgba(18,33,43,.82);}
body.night-mode .flight-note p{color:#DCE8EE;}
body.night-mode .porthole figcaption{color:#8AA4B2;}

/* 1. BẢN ĐỒ HÀNH TRÌNH — ĐƯỜNG BAY VẼ DẦN */
.route-map{max-width:560px; margin:0 auto; position:relative;
  background:rgba(18,33,43,.055); border:1px solid rgba(46,110,142,.2); border-radius:14px; padding:22px;}
.route-map svg{width:100%; height:auto; display:block;}
.rm-path{fill:none; stroke:var(--kyyeu-accent); stroke-width:2.2; stroke-dasharray:6 5;
  stroke-dashoffset:900; transition:stroke-dashoffset 3.2s cubic-bezier(.3,.7,.3,1);}
.route-map.charted .rm-path{stroke-dashoffset:0;}
.rm-stop{fill:#FDFBF6; stroke:var(--kyyeu-accent); stroke-width:2.4; opacity:0; transition:opacity .5s ease;}
.route-map.charted .rm-stop{opacity:1;}
.rm-stop:nth-of-type(2){transition-delay:.8s;} .rm-stop:nth-of-type(3){transition-delay:1.6s;}
.rm-stop:nth-of-type(4){transition-delay:2.4s;}
.rm-label{font-size:10px; fill:#5A7A8A; opacity:0; transition:opacity .6s ease .9s;}
.route-map.charted .rm-label{opacity:1;}
.rm-plane-icon{fill:var(--kyyeu-cabin); opacity:0;}
.route-map.charted .rm-plane-icon{opacity:1; animation:planeTrace 3.2s ease-in-out;}
@keyframes planeTrace{from{transform:translateX(-40px);} to{transform:translateX(0);}}

/* 2. BẢNG LẬT SÂN BAY (SPLIT-FLAP) */
.flap-board{max-width:520px; margin:0 auto; background:var(--kyyeu-navy); border-radius:10px; padding:22px;
  box-shadow:0 18px 40px rgba(18,33,43,.32);}
.flap-line{display:flex; justify-content:center; gap:4px; margin-bottom:12px;}
.flap-line:last-child{margin-bottom:0;}
.flap-cell{width:26px; height:36px; background:#0A1218; border-radius:3px; color:var(--kyyeu-cabin);
  display:flex; align-items:center; justify-content:center; font-family:'Courier New',monospace;
  font-size:19px; font-weight:700; position:relative; overflow:hidden;
  box-shadow:inset 0 -6px 10px rgba(0,0,0,.6);}
.flap-cell::after{content:""; position:absolute; left:0; right:0; top:50%; height:1px; background:rgba(0,0,0,.7);}
.flap-cell.flipping{animation:flapFlip .12s linear;}
@keyframes flapFlip{0%{transform:rotateX(0);} 50%{transform:rotateX(-88deg); opacity:.45;} 100%{transform:rotateX(0);}}
.flap-caption{text-align:center; margin-top:16px; font-size:11px; letter-spacing:.14em; color:#6E8A99;}

/* 3. HỘP ĐEN GHI ÂM */
.blackbox{max-width:520px; margin:0 auto; background:linear-gradient(150deg,#E0752E,#C25A1E); border-radius:14px;
  padding:26px 28px; color:#FFF6E8; box-shadow:0 18px 38px rgba(194,90,30,.28); position:relative; overflow:hidden;}
.blackbox::before{content:""; position:absolute; inset:0;
  background:repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px);}
.bb-tag{position:relative; display:inline-block; font-size:9.5px; letter-spacing:.22em; margin-bottom:14px;
  background:rgba(0,0,0,.24); padding:4px 12px; border-radius:3px;}
.bb-wave{position:relative; display:flex; align-items:center; gap:3px; height:26px; margin-bottom:16px;}
.bb-wave span{width:3px; background:rgba(255,246,232,.85); border-radius:2px; animation:bbPulse 1.2s ease-in-out infinite;}
@keyframes bbPulse{0%,100%{transform:scaleY(.3);} 50%{transform:scaleY(1);}}
.blackbox p{position:relative; margin:0; font-size:15px; line-height:1.85;}
.bb-sign{position:relative; display:block; margin-top:14px; font-family:var(--kyyeu-heading-font);
  font-style:italic; font-size:13.5px; opacity:.9;}
