:root{
  color-scheme:dark;
  --bg:#091625;
  --text:#e9f3fa;
  --muted:#9bb2c8;
  --deep:#12263b;
  --panel:#102638;
  --border:rgba(188,228,247,.15);
  --teal:#76e1d1;
  --gold:#f4ca7e;
  --red:#f6a2a2;
  --shadow:0 22px 66px rgba(0,0,0,.28)
}

*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth
}
body{
  margin:0;
  min-height:100vh;
  background:radial-gradient(ellipse at 85% -15%,#1b4b60 0%,transparent 55%),linear-gradient(135deg,#07111e,#0d2135 60%,#0b1b2d);
  color:var(--text);
  font:16px/1.6 system-ui,-apple-system,"Noto Sans TC","Microsoft JhengHei",sans-serif
}
button,input{
  font:inherit
}
button{
  cursor:pointer
}
button:disabled{
  cursor:not-allowed;
  opacity:.5
}
button:focus-visible,input:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px
}
a{
  color:var(--teal)
}
.light-orbit{
  position:fixed;
  width:440px;
  height:440px;
  right:-170px;
  top:45%;
  border:1px solid rgba(118,225,209,.09);
  border-radius:50%;
  pointer-events:none;
  box-shadow:0 0 0 85px rgba(118,225,209,.02),0 0 0 165px rgba(118,225,209,.01)
}
.app-shell{
  max-width:1290px;
  margin:auto;
  padding:22px 22px 15px;
  position:relative
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 0 22px;
  border-bottom:1px solid var(--border)
}
.brand{
  display:flex;
  align-items:center;
  gap:12px
}
.logo{
  background:linear-gradient(140deg,#7be1cf,#286889);
  border:1px solid rgba(255,255,255,.25);
  color:#082332;
  border-radius:16px;
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  font-size:27px;
  font-weight:900
}
.brand strong{
  display:block;
  font-size:21px;
  letter-spacing:.04em
}
.brand small{
  display:block;
  font-size:11px;
  letter-spacing:.12em;
  color:var(--muted)
}
.top-actions{
  display:flex;
  align-items:center;
  gap:10px
}
.coin-tag{
  font-size:15px;
  white-space:nowrap;
  color:var(--gold);
  border:1px solid rgba(244,202,126,.25);
  background:rgba(244,202,126,.07);
  padding:8px 14px;
  border-radius:100px
}
.glass-button,.link-button{
  background:rgba(192,230,245,.075);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px 13px
}
.glass-button:hover,.link-button:hover{
  border-color:var(--teal)
}
.topbar-auth-slot{
  display:inline-flex;
  align-items:center
}
.auth-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:rgba(192,230,245,.075);
  border:1px solid var(--border);
  border-radius:100px;
  padding:5px 12px 5px 6px;
  color:var(--text);
  font-size:13px;
  cursor:pointer;
  transition:border-color .2s,background .2s
}
.auth-pill:hover{
  border-color:var(--teal);
  background:rgba(118,225,209,.1)
}
.auth-avatar{
  width:24px;
  height:24px;
  border-radius:50%;
  object-fit:cover;
  border:1.5px solid var(--teal);
  display:block;
  transition:border-color .3s ease,box-shadow .3s ease
}
.auth-avatar-fallback{
  width:24px;
  height:24px;
  border-radius:50%;
  background:linear-gradient(135deg,#286889,#15384d);
  color:var(--teal);
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:700;
  border:1.5px solid var(--teal);
  transition:border-color .3s ease,box-shadow .3s ease
}
.auth-name{
  font-size:12px;
  font-weight:600;
  max-width:85px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.auth-sync-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 6px rgba(118,225,209,.6);
  flex-shrink:0
}
.auth-sync-dot.syncing{
  background:var(--gold);
  box-shadow:0 0 6px rgba(244,202,126,.8);
  animation:auth-pulse 1s infinite
}
.auth-sync-dot.offline{
  background:var(--muted);
  box-shadow:none
}
@keyframes auth-pulse{
  0%,100%{opacity:1}
  50%{opacity:.3}
}
.auth-guest-btn{
  font-size:13px;
  white-space:nowrap
}
.modal-account-card{
  display:flex;
  flex-direction:column;
  gap:16px
}
.modal-account-header{
  display:flex;
  align-items:center;
  gap:14px
}
.modal-account-avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--teal);
  transition:border-color .3s ease,box-shadow .3s ease
}
.modal-account-avatar-fallback{
  width:52px;
  height:52px;
  border-radius:50%;
  background:linear-gradient(135deg,#286889,#15384d);
  color:var(--teal);
  display:grid;
  place-items:center;
  font-size:22px;
  font-weight:700;
  border:2px solid var(--teal);
  transition:border-color .3s ease,box-shadow .3s ease
}
.modal-account-info{
  display:flex;
  flex-direction:column;
  gap:4px
}
.modal-account-name{
  font-size:17px;
  font-weight:700
}
.modal-account-email{
  font-size:12px;
  color:var(--muted)
}
.modal-account-tier{
  display:inline-block;
  padding:2px 8px;
  border-radius:8px;
  font-size:11px;
  font-weight:700;
  width:fit-content
}
.modal-account-tier.tier-vip,
.modal-account-tier.tier-vocus_permanent_reader{
  background:rgba(244,202,126,.2);
  color:var(--gold);
  border:1px solid rgba(244,202,126,.4)
}
.modal-account-tier.tier-promo_unlocked{
  background:rgba(176,145,255,.2);
  color:#c7b1ff;
  border:1px solid rgba(176,145,255,.4)
}
.modal-account-tier.tier-general,
.modal-account-tier.tier-general_registered{
  background:rgba(118,225,209,.15);
  color:var(--teal);
  border:1px solid rgba(118,225,209,.3)
}
.modal-account-tier.tier-guest{
  background:rgba(145,185,196,.15);
  color:#9bbbc5;
  border:1px solid rgba(145,185,196,.25)
}
.modal-account-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  background:rgba(0,0,0,.2);
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:12px
}
.auth-pill.tier-vocus_permanent_reader{
  border-color:rgba(244,202,126,.65);
  box-shadow:0 0 14px rgba(244,202,126,.22)
}
.auth-pill.tier-promo_unlocked{
  border-color:rgba(176,145,255,.55)
}
.auth-pill.tier-promo_unlocked .auth-avatar,
.auth-pill.tier-promo_unlocked .auth-avatar-fallback,
.modal-account-card.tier-promo_unlocked .modal-account-avatar,
.modal-account-card.tier-promo_unlocked .modal-account-avatar-fallback{
  border-color:#b091ff;
  box-shadow:0 0 8px rgba(176,145,255,.55)
}
.auth-pill.tier-vocus_permanent_reader .auth-avatar,
.auth-pill.tier-vocus_permanent_reader .auth-avatar-fallback,
.vip-gold-card .modal-account-avatar,
.vip-gold-card .modal-account-avatar-fallback{
  border-color:var(--gold);
  box-shadow:0 0 10px rgba(244,202,126,.7),0 0 16px rgba(244,202,126,.25);
  animation:avatar-gold-pulse 3s infinite ease-in-out
}
@keyframes avatar-gold-pulse{
  0%,100%{
    box-shadow:0 0 8px rgba(244,202,126,.5),0 0 14px rgba(244,202,126,.2);
    border-color:#f6d289
  }
  50%{
    box-shadow:0 0 14px rgba(244,202,126,.9),0 0 22px rgba(244,202,126,.45);
    border-color:#ffe6a6
  }
}
.auth-vip-tag{
  font-size:10px;
  font-weight:800;
  color:var(--gold);
  background:rgba(244,202,126,.18);
  border:1px solid rgba(244,202,126,.45);
  padding:1px 6px;
  border-radius:999px
}
.auth-promo-tag{
  font-size:10px;
  font-weight:800;
  color:#c7b1ff;
  background:rgba(176,145,255,.18);
  border:1px solid rgba(176,145,255,.4);
  padding:1px 6px;
  border-radius:999px
}
.modal-account-card.vip-gold-card{
  background:linear-gradient(155deg,rgba(48,38,18,.35),rgba(16,35,48,.6));
  border:1px solid rgba(244,202,126,.45);
  border-radius:16px;
  padding:14px;
  box-shadow:0 0 24px rgba(244,202,126,.12)
}
.vip-keepsake-showcase{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  margin:10px 0;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(244,202,126,.14),rgba(32,58,74,.55));
  border:1px solid rgba(244,202,126,.48);
  box-shadow:0 4px 18px rgba(0,0,0,.22)
}
.vip-keepsake-icon{
  font-size:28px;
  line-height:1;
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(244,202,126,.18);
  border:1px solid rgba(244,202,126,.45);
  flex:none
}
.vip-keepsake-body{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0
}
.vip-keepsake-eyebrow{
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--gold)
}
.vip-keepsake-title{
  font-size:14px;
  font-weight:800;
  color:#fff
}
.vip-keepsake-desc{
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
  margin:2px 0 0
}
.redeem-stage-box{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px 16px;
  margin:12px 0;
  border-radius:14px;
  background:rgba(10,25,36,.65);
  border:1px solid var(--border)
}
.redeem-stage-box.redeem-stage-vip{
  background:linear-gradient(145deg,rgba(45,35,16,.38),rgba(10,25,36,.75));
  border-color:rgba(244,202,126,.45)
}
.redeem-stage-header{
  font-size:14px;
  font-weight:800;
  color:var(--ink)
}
.redeem-stage-vip .redeem-stage-header{
  color:var(--gold)
}
.modal-vip-celebration{
  display:flex;
  flex-direction:column;
  gap:12px
}
.vip-coin-box{
  text-align:center;
  padding:16px 14px;
  border-radius:16px;
  background:radial-gradient(circle at top,rgba(244,202,126,.25),rgba(14,32,46,.85));
  border:1px solid rgba(244,202,126,.6);
  box-shadow:0 0 24px rgba(244,202,126,.16)
}
.vip-coin-label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.1em;
  color:var(--gold)
}
.vip-coin-counter{
  font-size:26px;
  font-weight:900;
  color:#fff;
  margin:6px 0 4px;
  text-shadow:0 2px 10px rgba(244,202,126,.45)
}
.vip-coin-sub{
  font-size:12px;
  color:var(--muted)
}
.main-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:22px;
  margin-top:24px
}
.play-area{
  min-height:630px
}
.sidebar{
  min-width:0
}
.hero,.panel,.side-card,.story-card{
  background:linear-gradient(148deg,rgba(24,51,72,.95),rgba(12,32,49,.98));
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow)
}
.hero{
  padding:35px 37px;
  position:relative;
  overflow:hidden
}
.hero:after{
  content:"";
  position:absolute;
  right:-75px;
  top:-65px;
  width:260px;
  height:260px;
  border-radius:50%;
  border:32px solid rgba(118,225,209,.07);
  pointer-events:none
}
.eyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  color:var(--teal);
  text-transform:uppercase;
  margin:0 0 9px
}
.hero h1,.panel h1,.story-card h1{
  font-size:clamp(28px,4vw,42px);
  font-weight:720;
  line-height:1.24;
  letter-spacing:-.025em;
  margin:0 0 13px
}
.hero p{
  max-width:650px;
  color:#c6d9e9
}
.subhead{
  color:var(--muted);
  margin:0 0 22px
}
.primary,.secondary,.option,.nav-button{
  border:0;
  border-radius:14px;
  padding:13px 19px;
  font-weight:650;
  transition:transform .12s,filter .12s
}
.primary{
  background:linear-gradient(120deg,var(--teal),#b5e7c6);
  color:#092638;
  box-shadow:0 8px 22px rgba(85,224,206,.2)
}
.primary:hover:not(:disabled),.secondary:hover:not(:disabled),.option:hover:not(:disabled){
  filter:brightness(1.1);
  transform:translateY(-1px)
}
.secondary{
  background:#244456;
  color:var(--text);
  border:1px solid var(--border)
}
.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:11px;
  margin-top:23px
}
.panel{
  padding:29px;
  margin-bottom:20px
}
.story-card{
  padding:29px 33px;
  margin-bottom:20px
}
.story-title{
  font-size:30px;
  margin:0 0 7px;
  line-height:1.28
}
.chinese{
  display:block;
  color:#b8d0df;
  font-size:.88em;
  line-height:1.7;
  margin-top:3px
}
.english{
  display:block;
  color:var(--text)
}
.dual{
  margin:12px 0
}
.dual.small{
  font-size:14px
}
.dual.small .chinese{
  font-size:13px
}
.scene-text{
  font-size:17px;
  line-height:1.8
}
.scene-text .chinese{
  font-size:15px
}
.story-mark{
  font-size:13px;
  color:var(--muted);
  margin:2px 0 16px
}
.story-mark span{
  color:var(--teal)
}
.progress-track{
  height:7px;
  background:#1f4454;
  border-radius:20px;
  overflow:hidden;
  margin:17px 0 20px
}
.progress-fill{
  height:100%;
  background:linear-gradient(to right,var(--teal),var(--gold));
  border-radius:inherit
}
.quote{
  background:#123447;
  border-left:3px solid var(--teal);
  padding:12px 18px;
  border-radius:5px 12px 12px 5px;
  margin:16px 0
}
.quote strong{
  font-size:13px;
  color:var(--gold);
  display:block
}
.question{
  border-top:1px solid var(--border);
  margin-top:20px;
  padding-top:20px
}
.question h2{
  font-size:19px;
  margin:0
}
.choices{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  margin-top:20px
}
.option{
  background:rgba(170,214,234,.07);
  border:1px solid rgba(171,213,234,.22);
  color:var(--text);
  padding:15px 16px;
  text-align:left;
  font-weight:450;
  min-height:87px
}
.option .key{
  font-weight:850;
  color:var(--gold);
  font-size:12px;
  margin-right:6px
}
.option:hover{
  border-color:var(--teal);
  background:rgba(118,225,209,.10)
}
.answer-hint{
  background:rgba(244,202,126,.09);
  border:1px solid rgba(244,202,126,.3);
  padding:14px 16px;
  border-radius:13px;
  margin-top:14px
}
.answer-hint.error{
  background:rgba(246,162,162,.08);
  border-color:rgba(246,162,162,.28)
}
.side-card{
  padding:21px;
  margin-bottom:15px;
  box-shadow:none
}
.side-card h3{
  font-size:15px;
  margin:0 0 11px
}
.stat{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  margin:9px 0;
  color:var(--muted)
}
.stat strong{
  color:var(--text)
}
.mini-divider{
  height:1px;
  background:var(--border);
  margin:13px 0
}
.advanced-backup{
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:13px;
  background:rgba(14,42,61,.45);
  overflow:hidden
}
.advanced-backup-summary{
  cursor:pointer;
  padding:12px 15px;
  font-size:14px;
  font-weight:700;
  color:var(--muted);
  user-select:none;
  transition:color .18s ease,background .18s ease
}
.advanced-backup-summary:hover{
  color:var(--text);
  background:rgba(118,225,209,.06)
}
.advanced-backup[open] .advanced-backup-summary{
  color:var(--text);
  border-bottom:1px solid var(--border);
  background:rgba(14,42,61,.65)
}
.advanced-backup-body{
  padding:14px 15px
}
.advanced-backup-body p{
  margin-top:0
}
.nav-stack{
  display:grid;
  gap:8px
}
.nav-button{
  font-size:14px;
  text-align:left;
  background:rgba(119,193,213,.075);
  border:1px solid var(--border);
  color:var(--text);
  padding:11px 12px
}
.nav-button:hover{
  border-color:var(--teal)
}
.footnote{
  font-size:12px;
  color:var(--muted);
  line-height:1.6
}
.route-grid,.shop-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
  margin:22px 0
}
.route-card,.shop-card{
  background:rgba(14,42,61,.78);
  border:1px solid var(--border);
  padding:20px;
  border-radius:17px;
  display:flex;
  flex-direction:column;
  gap:9px
}
.state-guide-card{min-width:0}
.world-tier-banner{margin:18px 0 6px;padding:16px 18px;border-radius:16px;background:rgba(10,28,42,.72);border:1px solid rgba(118,225,209,.25);display:flex;flex-direction:column;gap:12px}
.world-tier-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.world-tier-step{display:flex;flex-direction:column;gap:4px;padding:11px 13px;border-radius:12px;background:rgba(16,40,58,.65);border:1px solid var(--border);font-size:12px}
.world-tier-step strong{font-size:13px;color:var(--text)}
.world-tier-step span{color:var(--muted);line-height:1.45}
.world-tier-step.is-unlocked{border-color:rgba(118,225,209,.45);background:rgba(118,225,209,.09)}
.world-tier-step.is-unlocked strong{color:var(--teal)}
.world-tier-step.is-highlight-reg{border-color:rgba(110,196,255,.45);background:rgba(72,155,218,.12)}
.world-tier-step.is-highlight-reg strong{color:#8fd3ff}
.world-tier-step.is-highlight-vip{border-color:rgba(244,202,126,.45);background:linear-gradient(145deg,rgba(56,42,16,.38),rgba(16,36,52,.7))}
.world-tier-step.is-highlight-vip strong{color:var(--gold)}
.world-tier-banner-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid rgba(188,228,247,.12)}
.world-tier-note{margin:0!important;font-size:12.5px;line-height:1.55;color:#d6e8f5!important;flex:1;min-width:240px}
.world-tier-actions{display:flex;flex-wrap:wrap;gap:8px}
.world-tier-btn{padding:8px 13px;font-size:12.5px;border-radius:10px;white-space:nowrap}
.world-tier-btn--reg{background:rgba(72,155,218,.18);border-color:rgba(110,196,255,.45);color:#b8e3ff}
.world-tier-btn--reg:hover:not(:disabled){border-color:#8fd3ff;background:rgba(72,155,218,.28)}
.world-tier-btn--vip{background:linear-gradient(135deg,rgba(196,140,38,.26),rgba(153,107,21,.22));border-color:rgba(244,202,126,.5);color:var(--gold)}
.world-tier-btn--vip:hover:not(:disabled){border-color:var(--gold);background:linear-gradient(135deg,rgba(196,140,38,.38),rgba(153,107,21,.32))}
.state-guide-card-header{display:flex;align-items:center;gap:13px;min-width:0}
.state-guide-thumbnail{position:relative;flex:0 0 136px;aspect-ratio:16/9;overflow:hidden;border-radius:11px;background:linear-gradient(145deg,#245369,#103045);border:1px solid rgba(145,215,210,.18)}
.state-lock-badge{position:absolute;top:6px;right:6px;background:rgba(16,48,69,.88);color:#ffd166;font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;border:1px solid rgba(255,209,102,.35);letter-spacing:.3px;backdrop-filter:blur(3px)}
.state-lock-badge--registered{background:rgba(14,48,74,.9);color:#9ad8ff;border-color:rgba(110,196,255,.45)}
.state-lock-badge--vip{background:rgba(36,28,14,.9);color:#ffd166;border-color:rgba(255,209,102,.45)}
.state-guide-card--locked{border-color:rgba(255,209,102,.2);background:linear-gradient(180deg,rgba(16,35,48,.8),rgba(14,24,34,.9))}
.state-guide-card--registered{border-color:rgba(110,196,255,.28)}
.state-guide-card--vip{border-color:rgba(255,209,102,.22)}
.state-guide-card--chest-claimed{border-color:rgba(118,225,209,.48);box-shadow:inset 0 0 0 1px rgba(118,225,209,.14)}
.state-guide-card--locked.state-guide-card--chest-claimed{border-color:rgba(118,225,209,.42);box-shadow:inset 0 0 0 1px rgba(118,225,209,.12)}
.state-guide-card--locked .state-guide-image{opacity:.75;filter:saturate(.85)}
.state-lock-action{background:linear-gradient(135deg,#c48c26,#996b15)!important;border-color:rgba(255,209,102,.5)!important;color:#fff!important}
.state-lock-action:hover{background:linear-gradient(135deg,#dca032,#ab7718)!important}
.state-lock-action--registered{background:linear-gradient(135deg,#2573a6,#19527a)!important;border-color:rgba(130,206,255,.5)!important;color:#fff!important}
.state-lock-action--registered:hover{background:linear-gradient(135deg,#2e86bf,#1f6291)!important}
@media(max-width:820px){.world-tier-steps{grid-template-columns:1fr}.world-tier-banner-footer{flex-direction:column;align-items:stretch}.world-tier-actions{width:100%}.world-tier-btn{flex:1;text-align:center}}
.modal-redeem-panel .input-field{width:100%;padding:12px 14px;border-radius:10px;border:1px solid var(--border);background:rgba(12,28,40,.8);color:#fff;font-size:14px;outline:none;transition:border-color .2s;box-sizing:border-box}
.modal-redeem-panel .input-field:focus{border-color:var(--gold);box-shadow:0 0 0 2px rgba(255,209,102,.2)}
.state-guide-image{display:block;width:100%;height:100%;object-fit:cover}
.state-guide-heading{min-width:0}
.state-guide-chinese{display:block}
.state-guide-english{display:block;font-size:12px;color:#a7cbd0;margin-top:3px;font-weight:400}
.state-chest-pill{display:inline-flex;align-items:center;gap:4px;margin-top:6px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;line-height:1.4;letter-spacing:.2px}
.state-chest-pill.is-unclaimed{color:#ffe29a;background:rgba(244,202,126,.12);border:1px solid rgba(244,202,126,.34)}
.state-chest-pill.is-claimed{color:#98ebd8;background:rgba(82,214,185,.14);border:1px solid rgba(118,225,209,.38)}
.route-card .state-guide-summary{font-size:13px;line-height:1.7;flex:1}
.state-guide-actions{display:flex;gap:9px;align-items:stretch;flex-wrap:wrap;margin-top:auto}
.state-guide-actions .primary{margin-top:0;flex:1;min-width:136px;width:auto}
.state-guide-link,.state-guide-pending{display:inline-flex;flex:1;align-items:center;justify-content:center;text-align:center;min-width:126px;padding:10px;border-radius:11px;border:1px solid rgba(126,213,201,.3);color:#a1e7d5;background:rgba(118,225,209,.08);font-size:12px;text-decoration:none}
.state-guide-link--unclaimed{border-color:rgba(244,202,126,.42);color:#f9e6b3;background:rgba(244,202,126,.09)}
.state-guide-link--claimed{border-color:rgba(118,225,209,.24);color:#9bd8cd;background:rgba(82,214,185,.07)}
.state-guide-pending{color:#9bbbc5;border-color:rgba(145,185,196,.12)}
.state-guide-link:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:600px){.state-guide-thumbnail{flex-basis:112px}.state-guide-card-header{gap:10px}.state-guide-actions{flex-direction:column}.state-guide-actions .primary{width:100%}}
.route-card h3,.shop-card h3{
  font-size:18px;
  margin:0
}
.route-card p,.shop-card p{
  color:var(--muted);
  margin:0;
  font-size:14px;
  flex:1
}
.route-card .primary,.shop-card .primary{
  margin-top:9px;
  width:100%
}
.symbol{
  font-size:26px
}
.pill{
  display:inline-flex;
  border-radius:100px;
  border:1px solid rgba(117,221,209,.27);
  font-size:11px;
  color:var(--teal);
  padding:2px 9px;
  align-self:start
}
.pill.warn{
  border-color:rgba(244,202,126,.25);
  color:var(--gold)
}
.side-label{
  color:var(--teal);
  font-size:12px;
  font-weight:750;
  letter-spacing:.07em;
  text-transform:uppercase
}
.muted{
  color:var(--muted)
}
.line-list{
  display:grid;
  gap:11px
}
.line-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border-bottom:1px solid var(--border);
  padding:10px 0
}
.line-item:last-child{
  border-bottom:0
}
.highlight-value{
  color:var(--gold);
  font-weight:750
}
.footer{
  display:flex;
  justify-content:space-between;
  gap:18px;
  border-top:1px solid var(--border);
  margin-top:34px;
  padding:15px 0;
  color:#7e9bb1;
  font-size:11px
}
.loading{
  padding:40px;
  color:var(--muted)
}
.error-block{
  background:rgba(246,162,162,.1);
  border:1px solid rgba(246,162,162,.35);
  padding:20px;
  border-radius:15px;
  white-space:pre-wrap;
  word-break:break-word
}
.toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:#18463f;
  border:1px solid #51bea9;
  border-radius:15px;
  max-width:min(90vw,600px);
  padding:12px 22px;
  box-shadow:var(--shadow);
  z-index:1000
}
.toast.error{
  background:#542934;
  border-color:#f2a6a6
}
.overlay{
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(2,10,20,.8);
  display:grid;
  place-items:center;
  padding:20px;
  overflow:auto
}
.dialog{
  max-width:620px;
  width:100%;
  padding:30px;
  border:1px solid rgba(151,222,219,.32);
  background:#122a3e;
  border-radius:22px;
  box-shadow:0 30px 100px rgba(0,0,0,.6)
}
.dialog h2{
  margin:0 0 12px
}
.dialog .quote{
  margin-top:14px
}
.tiny{
  font-size:11px;
  color:var(--muted)
}
.danger{
  color:var(--red)
}
.text-input{
  width:100%;
  padding:13px;
  background:#091d2d;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px
}
.checkline{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:13px
}
.checkline input{
  width:18px;
  height:18px
}
.blank{
  height:30px
}
@media(max-width:940px){
  .main-layout{
    grid-template-columns:1fr
  }
  .play-area{
    min-height:unset
  }
  .sidebar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px
  }
  .side-card{
    margin:0
  }
  .footer{
    flex-direction:column;
    gap:5px
  }
}
@media(max-width:600px){
  .app-shell{
    padding:13px 13px 20px
  }
  .topbar{
    padding-bottom:13px
  }
  .logo{
    height:40px;
    width:40px
  }
  .brand strong{
    font-size:19px
  }
  .top-actions{
    gap:6px
  }
  .glass-button{
    padding:8px
  }
  .auth-name{
    display:none
  }
  .auth-pill{
    padding:4px 8px 4px 4px;
    gap:5px
  }
  .coin-tag{
    padding:7px 9px
  }
  .main-layout{
    gap:16px;
    margin-top:16px
  }
  .hero,.panel,.story-card{
    padding:22px 19px;
    border-radius:20px
  }
  .story-title{
    font-size:24px
  }
  .choices,.route-grid,.shop-grid{
    grid-template-columns:1fr
  }
  .option{
    min-height:70px
  }
  .sidebar{
    grid-template-columns:1fr
  }
  .hero h1{
    font-size:31px
  }
  .footer{
    font-size:11px
  }
  .dialog{
    padding:22px 19px
  }
}


/* Phase 9: interaction, mobile navigation, and accessibility polish. */
.skip-link{
  position:absolute;
  z-index:200;
  left:16px;
  top:-100px;
  background:var(--gold);
  color:#092638;
  border-radius:8px;
  padding:8px 15px;
  text-decoration:none;
  font-weight:800
}

.skip-link:focus{
  top:8px
}

.journey-tip{
  display:flex;
  flex-direction:column;
  gap:5px;
  border:1px solid rgba(118,225,209,.27);
  background:rgba(118,225,209,.07);
  border-radius:14px;
  padding:14px 16px;
  margin-top:18px;
  color:#c8e4e7
}

.journey-tip strong{
  color:var(--teal)
}

.mobile-nav{
  display:none
}

.dialog{
  max-height:min(88dvh,900px);
  overflow:auto;
  overscroll-behavior:contain
}

.toast{
  width:max-content;
  text-align:center;
  max-width:min(92vw,600px)
}

.option{
  overflow-wrap:anywhere;
  line-height:1.48
}

.play-area :is(.hero,.panel,.story-card){
  overflow-wrap:break-word
}

@media(max-width:940px){
  .app-shell{
    padding-bottom:88px
  }
  .mobile-nav:not(:empty){
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:35;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    padding:9px max(8px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    background:rgba(9,25,39,.98);
    border-top:1px solid var(--border);
    box-shadow:0 -10px 28px rgba(0,0,0,.4)
  }
  .mobile-nav-button{
    display:block;
    min-width:0;
    min-height:44px;
    color:var(--text);
    font-size:13px;
    background:#173448;
    border:1px solid var(--border);
    border-radius:12px;
    padding:7px 2px;
    white-space:nowrap
  }
  .mobile-nav-button.current{
    color:#092638;
    background:var(--teal);
    font-weight:750
  }
  .toast{
    bottom:96px
  }

}
@media(max-width:380px){
  .mobile-nav-button{
    font-size:11.5px;
    padding:7px 1px
  }
}

@media(max-width:600px){
  .app-shell{
    padding-left:12px;
    padding-right:12px
  }
  .topbar{
    gap:8px;
    flex-wrap:wrap
  }
  .brand small{
    letter-spacing:0
  }
  .route-card,.shop-card{
    padding:17px
  }
  .choices{
    gap:9px
  }
  .option{
    min-height:64px;
    padding:14px
  }
  .quote{
    padding:11px 13px
  }
  .story-card{
    padding:19px 16px
  }
  .scene-text{
    font-size:16px
  }
  .footer{
    padding-bottom:15px
  }

}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}


/* Phase 10A: travel.html is the only shared game entry; back navigation is read-only. */
.return-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  min-height:38px
}

.return-home:hover{
  border-color:var(--teal);
  background:rgba(118,225,209,.12)
}

.return-home:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px
}

@media(max-width:600px){
  .return-home{
    padding:7px 9px;
    font-size:11px
  }
  .topbar .top-actions{
    flex-wrap:wrap;
    justify-content:flex-end
  }
  .coin-tag{
    font-size:12px
  }
}

/* Vintage Boarding Pass ticket confirmation dialog (mobile-first). */
.overlay:has(.boarding-pass){
  padding:16px 14px
}
.dialog:has(.boarding-pass){
  max-width:460px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:20px;
  max-height:min(92dvh,860px)
}
.boarding-pass{
  position:relative;
  color:#2b2117;
  background:
    radial-gradient(circle at 86% 14%,rgba(200,155,75,.14),transparent 42%),
    linear-gradient(168deg,#faf4e7 0%,#f3e8d2 58%,#ede0c6 100%);
  border:1px solid rgba(182,146,94,.65);
  border-radius:20px;
  box-shadow:0 26px 70px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,253,248,.9);
  overflow:hidden;
  animation:bpEnter .24s cubic-bezier(.2,.85,.32,1) both
}
.bp-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:13px 18px;
  background:linear-gradient(135deg,#153b4e,#1f5168);
  border-bottom:2px solid #c99b4c;
  color:#f6e8cc
}
.bp-brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-width:0
}
.bp-airline{
  font-size:12px;
  font-weight:850;
  letter-spacing:.14em;
  color:#f6d99a;
  white-space:nowrap
}
.bp-doc-type{
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.09em;
  color:#d9ebf0;
  white-space:nowrap
}
.bp-sr-title{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.bp-main{
  position:relative;
  padding:18px 18px 14px
}
.bp-postmark{
  position:absolute;
  right:-8px;
  top:-6px;
  color:#8f683a;
  opacity:.12;
  pointer-events:none;
  transform:rotate(-12deg)
}
.bp-postmark-svg{
  display:block;
  width:92px;
  height:92px
}
.bp-route{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr);
  align-items:center;
  gap:8px
}
.bp-endpoint{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0
}
.bp-endpoint--from{
  text-align:left
}
.bp-endpoint--to{
  text-align:right
}
.bp-endpoint-label{
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.1em;
  color:#8b6d4a;
  text-transform:uppercase
}
.bp-code{
  font-size:30px;
  font-weight:900;
  line-height:1.05;
  letter-spacing:.04em;
  color:#153b4e;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace
}
.bp-city-en{
  font-size:13px;
  font-weight:750;
  color:#2b2117;
  line-height:1.28;
  overflow-wrap:anywhere
}
.bp-city-zh{
  font-size:12px;
  color:#6c5740;
  line-height:1.35;
  overflow-wrap:anywhere
}
.bp-flight-mid{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  min-width:0
}
.bp-flight-no{
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.1em;
  color:#9c432e;
  background:rgba(163,67,46,.1);
  border:1px solid rgba(163,67,46,.24);
  border-radius:999px;
  padding:1px 8px;
  white-space:nowrap
}
.bp-flight-track{
  position:relative;
  width:100%;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.bp-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#1c4d63;
  flex:none
}
.bp-dashed-line{
  flex:1;
  height:0;
  border-top:1.5px dashed rgba(28,77,99,.42);
  margin:0 3px
}
.bp-plane-wrap{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  color:#184457;
  display:grid;
  place-items:center;
  background:#f5ecd9;
  padding:0 3px;
  border-radius:999px
}
.bp-plane-svg{
  display:block;
  width:21px;
  height:21px
}
.bp-flight-leg{
  font-size:9.5px;
  font-weight:750;
  letter-spacing:.14em;
  color:#8b6d4a
}
.bp-meta{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(145,113,70,.24)
}
.bp-meta-cell{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0
}
.bp-meta-label{
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.09em;
  color:#8b6d4a
}
.bp-meta-value{
  font-size:12.5px;
  font-weight:750;
  color:#2b2117;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.bp-perforation{
  position:relative;
  height:18px;
  display:flex;
  align-items:center
}
.bp-perforation::after{
  content:"";
  display:block;
  width:100%;
  margin:0 14px;
  border-top:1.5px dashed rgba(132,102,63,.45)
}
.bp-perforation::before,
.bp-stub::before{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(4,12,22,.88);
  box-shadow:inset 0 0 0 1px rgba(182,146,94,.45);
  pointer-events:none
}
.bp-perforation::before{
  left:-9px;
  top:0
}
.bp-stub{
  position:relative;
  padding:8px 18px 15px
}
.bp-stub::before{
  right:-9px;
  top:-18px
}
.bp-ledger{
  display:grid;
  gap:7px;
  padding:12px 14px;
  border-radius:13px;
  background:rgba(139,108,66,.085);
  border:1px solid rgba(139,108,66,.26)
}
.bp-ledger-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13.5px;
  line-height:1.4
}
.bp-ledger-row span{
  color:#6a553e;
  font-weight:600
}
.bp-ledger-row strong{
  color:#2b2117;
  font-weight:800;
  font-variant-numeric:tabular-nums
}
.bp-ledger-row--cost strong{
  color:#9f3926
}
.bp-ledger-row--after{
  padding-top:7px;
  border-top:1px dashed rgba(139,108,66,.3)
}
.bp-ledger-row--after strong{
  color:#146356;
  font-size:15px
}
.bp-ledger-row--after.is-shortage strong{
  color:#b53224
}
.bp-shortage-note{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:11px;
  background:rgba(181,50,36,.09);
  border:1px solid rgba(181,50,36,.28);
  color:#7c241b;
  font-size:12.5px;
  line-height:1.55
}
.bp-actions{
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:9px;
  margin-top:13px
}
.bp-confirm-btn,
.bp-cancel-btn,
.bp-guide-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:46px;
  padding:11px 14px;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  text-align:center;
  transition:transform .14s ease,filter .14s ease,background .14s ease
}
.bp-confirm-btn{
  border:1px solid #0e3040;
  background:linear-gradient(135deg,#184d63,#1f6670);
  color:#fcf6e8;
  box-shadow:0 6px 16px rgba(21,59,78,.28)
}
.bp-confirm-btn:hover:not(:disabled){
  filter:brightness(1.08);
  transform:translateY(-1px)
}
.bp-confirm-btn:disabled{
  background:#bfb29d;
  border-color:#a89b86;
  color:#5b4e3e;
  box-shadow:none;
  opacity:.85
}
.bp-cancel-btn{
  border:1px solid rgba(125,97,61,.4);
  background:rgba(255,252,245,.65);
  color:#4c3b29
}
.bp-cancel-btn:hover:not(:disabled){
  background:rgba(255,252,245,.95);
  border-color:rgba(125,97,61,.7)
}
.bp-guide-btn{
  grid-column:1/-1;
  border:1px solid rgba(173,121,36,.5);
  background:linear-gradient(135deg,#f3d48c,#e5ba61);
  color:#382610
}
.bp-guide-btn:hover{
  filter:brightness(1.05)
}
.bp-confirm-btn:focus-visible,
.bp-cancel-btn:focus-visible,
.bp-guide-btn:focus-visible{
  outline:3px solid #c47d1a;
  outline-offset:2px
}
.bp-barcode-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:13px;
  padding-top:10px;
  border-top:1px solid rgba(145,113,70,.2);
  color:#5b4834
}
.bp-barcode{
  display:block;
  flex:0 1 136px;
  min-width:0;
  opacity:.72
}
.bp-barcode-svg{
  display:block;
  width:100%;
  height:20px
}
.bp-ticket-ref{
  font-size:10px;
  font-weight:750;
  letter-spacing:.12em;
  color:#7c654b;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  white-space:nowrap
}
.bp-stamp{
  position:absolute;
  left:64%;
  top:79%;
  z-index:4;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:4px 12px;
  border:2.5px double rgba(179,54,39,.92);
  border-radius:7px;
  background:rgba(250,244,231,.84);
  color:#b33627;
  box-shadow:0 3px 10px rgba(179,54,39,.18);
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-50%) scale(1.9) rotate(-18deg)
}
.bp-stamp-en{
  font-size:15px;
  font-weight:900;
  letter-spacing:.16em;
  line-height:1.1
}
.bp-stamp-zh{
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
  margin-top:1px
}
.boarding-pass.is-boarding .bp-stamp{
  animation:bpStampSlam 1.5s cubic-bezier(.18,.9,.32,1.12) 0s forwards
}
.boarding-pass.is-boarding .bp-dashed-line{
  border-top-color:#c98a2c;
  transition:border-top-color .4s ease 1.4s
}
.boarding-pass.is-boarding .bp-plane-wrap{
  z-index:5;
  background:transparent;
  color:#a83d24;
  filter:drop-shadow(0 2px 6px rgba(168,61,36,.35));
  transition:color .35s ease 1.45s,filter .35s ease 1.45s;
  animation:bpPlaneTakeoff 2.5s cubic-bezier(.35,.08,.75,.22) 1.5s forwards
}
@media(prefers-reduced-motion:reduce){
  .boarding-pass.is-boarding .bp-stamp{
    animation:bpStampSlam 1.5s cubic-bezier(.18,.9,.32,1.12) 0s forwards!important
  }
  .boarding-pass.is-boarding .bp-dashed-line{
    transition:border-top-color .4s ease 1.4s!important
  }
  .boarding-pass.is-boarding .bp-plane-wrap{
    transition:color .35s ease 1.45s,filter .35s ease 1.45s!important;
    animation:bpPlaneTakeoff 2.5s cubic-bezier(.35,.08,.75,.22) 1.5s forwards!important
  }
}
@keyframes bpEnter{
  0%{opacity:0;transform:translateY(14px) scale(.97)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes bpStampSlam{
  0%{opacity:0;transform:translate(-50%,-50%) scale(2.05) rotate(-20deg)}
  24%{opacity:.96;transform:translate(-50%,-50%) scale(.93) rotate(-9deg)}
  38%{opacity:.94;transform:translate(-50%,-50%) scale(1.03) rotate(-12deg)}
  50%,100%{opacity:.92;transform:translate(-50%,-50%) scale(1) rotate(-11deg)}
}
@keyframes bpPlaneTakeoff{
  0%{left:50%;transform:translate(-50%,-50%) scale(1) rotate(0deg);opacity:1}
  20%{left:18%;transform:translate(-50%,-50%) scale(1.18) rotate(-4deg);opacity:1}
  70%{left:86%;transform:translate(-50%,-58%) scale(1.28) rotate(-12deg);opacity:1}
  90%{left:130%;transform:translate(-50%,-90%) scale(1.22) rotate(-18deg);opacity:.85}
  100%{left:162%;transform:translate(-50%,-118%) scale(1.12) rotate(-22deg);opacity:0}
}
@media(max-width:600px){
  .overlay:has(.boarding-pass){
    padding:12px 10px
  }
  .boarding-pass{
    border-radius:17px
  }
  .bp-header{
    padding:11px 14px
  }
  .bp-airline{
    font-size:11px;
    letter-spacing:.11em
  }
  .bp-doc-type{
    font-size:10px;
    letter-spacing:.06em
  }
  .bp-main{
    padding:14px 14px 12px
  }
  .bp-postmark-svg{
    width:78px;
    height:78px
  }
  .bp-route{
    grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);
    gap:6px
  }
  .bp-code{
    font-size:25px
  }
  .bp-city-en{
    font-size:12px
  }
  .bp-city-zh{
    font-size:11px
  }
  .bp-flight-no{
    font-size:10px;
    padding:1px 6px
  }
  .bp-plane-svg{
    width:18px;
    height:18px
  }
  .bp-meta{
    margin-top:11px;
    padding-top:10px
  }
  .bp-meta-value{
    font-size:12px
  }
  .bp-stub{
    padding:6px 14px 13px
  }
  .bp-ledger{
    padding:10px 12px;
    gap:6px
  }
  .bp-ledger-row{
    font-size:13px
  }
  .bp-ledger-row--after strong{
    font-size:14.5px
  }
  .bp-actions{
    grid-template-columns:1fr;
    gap:8px;
    margin-top:11px
  }
  .bp-confirm-btn{
    min-height:48px;
    font-size:14.5px
  }
  .bp-cancel-btn{
    min-height:44px
  }
  .bp-barcode-strip{
    margin-top:11px;
    padding-top:9px
  }
}
@media(max-width:360px){
  .bp-header{
    padding:10px 12px
  }
  .bp-airline{
    font-size:10.5px;
    letter-spacing:.08em
  }
  .bp-doc-type{
    font-size:9.5px
  }
  .bp-main{
    padding:12px 12px 10px
  }
  .bp-route{
    grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);
    gap:4px
  }
  .bp-code{
    font-size:22px
  }
  .bp-endpoint-label,
  .bp-meta-label,
  .bp-flight-leg{
    font-size:9px
  }
  .bp-city-en{
    font-size:11.5px
  }
  .bp-city-zh{
    font-size:10.5px
  }
  .bp-stub{
    padding:5px 12px 12px
  }
  .bp-barcode{
    flex-basis:106px
  }
  .bp-ticket-ref{
    font-size:9.5px;
    letter-spacing:.08em
  }
}

/* Warm Departure Lounge welcome screen (mobile-first). */
.welcome-lounge{
  padding:28px 30px 24px
}
.welcome-lounge > *{
  position:relative;
  z-index:1
}
.welcome-lounge .eyebrow{
  margin-bottom:12px
}
.welcome-voyage-art{
  display:block;
  width:100%;
  max-width:660px;
  margin:0 0 16px
}
.welcome-voyage-svg{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 10px 26px rgba(4,12,22,.32)
}
@keyframes welcome-twinkle{
  0%,100%{opacity:.95}
  50%{opacity:.35}
}
.welcome-star{
  animation:welcome-twinkle 3.4s ease-in-out infinite
}
.welcome-star--delay{
  animation-delay:1.5s
}
.welcome-lounge h1{
  font-size:clamp(24px,3.4vw,34px);
  line-height:1.26;
  margin:0 0 8px
}
.welcome-lead{
  margin:0 0 16px;
  font-size:15px;
  line-height:1.55;
  color:#d2e3f0
}
.welcome-kit{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px
}
.welcome-kit-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:11px 12px;
  border-radius:14px;
  background:rgba(9,24,38,.52);
  border:1px solid rgba(118,225,209,.16)
}
.welcome-kit-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center
}
.welcome-kit-icon--gold{
  background:rgba(244,202,126,.14);
  color:var(--gold)
}
.welcome-kit-icon--teal{
  background:rgba(118,225,209,.14);
  color:var(--teal)
}
.welcome-kit-icon--sky{
  background:rgba(155,205,255,.14);
  color:#a8d5ff
}
.welcome-kit-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0
}
.welcome-kit-copy strong{
  font-size:13.5px;
  font-weight:700;
  color:#eef6fc;
  line-height:1.3
}
.welcome-kit-copy span{
  font-size:12px;
  line-height:1.42;
  color:#b6ccde
}
.welcome-actions{
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-top:20px
}
.welcome-start-btn{
  min-height:48px;
  min-width:236px;
  padding:13px 24px;
  font-size:15.5px;
  letter-spacing:.02em
}
.welcome-restore-link{
  background:transparent;
  border:0;
  padding:6px 2px;
  min-height:38px;
  color:#a9d8e2;
  font-size:13px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-color:rgba(118,225,209,.45);
  cursor:pointer;
  transition:color .15s,text-decoration-color .15s
}
.welcome-restore-link:hover{
  color:var(--gold);
  text-decoration-color:var(--gold)
}
.welcome-restore-link:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px;
  border-radius:8px
}
.welcome-member-note{
  margin:0;
  font-size:12.5px;
  color:#a9e6dc
}
.welcome-footnote{
  margin:14px 0 0;
  color:#8da6bb
}
@media(max-width:760px){
  .welcome-kit{
    grid-template-columns:1fr;
    gap:8px
  }
  .welcome-kit-item{
    align-items:center;
    padding:9px 11px
  }
}
@media(max-width:600px){
  .welcome-lounge{
    padding:18px 16px 16px
  }
  .welcome-lounge .eyebrow{
    font-size:10.5px;
    margin-bottom:9px
  }
  .welcome-voyage-art{
    margin-bottom:12px
  }
  .welcome-lounge h1{
    font-size:23px;
    margin-bottom:5px
  }
  .welcome-lead{
    font-size:13.5px;
    margin-bottom:12px
  }
  .welcome-kit{
    gap:7px
  }
  .welcome-kit-item{
    padding:8px 10px;
    gap:9px;
    border-radius:12px
  }
  .welcome-kit-icon{
    flex:0 0 30px;
    width:30px;
    height:30px;
    border-radius:9px
  }
  .welcome-kit-icon svg{
    width:17px;
    height:17px
  }
  .welcome-kit-copy strong{
    font-size:13px
  }
  .welcome-kit-copy span{
    font-size:11.5px;
    line-height:1.35
  }
  .welcome-actions{
    align-items:stretch;
    gap:6px;
    margin-top:14px
  }
  .welcome-start-btn{
    width:100%;
    min-width:0;
    min-height:48px;
    font-size:15px
  }
  .welcome-restore-link{
    text-align:center;
    width:100%;
    font-size:12.5px
  }
  .welcome-member-note{
    text-align:center;
    font-size:12px
  }
  .welcome-footnote{
    margin-top:10px;
    text-align:center
  }
}
@media(max-width:360px){
  .welcome-lounge{
    padding:14px 12px 13px
  }
  .welcome-voyage-art{
    margin-bottom:9px
  }
  .welcome-lounge h1{
    font-size:18.5px;
    margin-bottom:4px
  }
  .welcome-lead{
    font-size:12px;
    margin-bottom:9px
  }
  .welcome-kit{
    gap:6px
  }
  .welcome-kit-item{
    padding:7px 9px
  }
  .welcome-kit-copy strong{
    font-size:12px
  }
  .welcome-kit-copy span{
    font-size:10.5px
  }
  .welcome-actions{
    margin-top:10px;
    gap:4px
  }
  .welcome-start-btn{
    min-height:46px;
    font-size:14.5px
  }
}
.state-guide-card.is-focused-target{
  border-color:rgba(244,202,126,.85)!important;
  box-shadow:0 0 0 2px rgba(244,202,126,.35),0 14px 36px rgba(0,0,0,.38);
  transition:box-shadow .35s ease,border-color .35s ease
}

/* Hotel Hub: Scheme A Dual-Clock Window Strip + Travel Guide Postcard Route Cards */
.hub-guide-hero > *{
  position:relative;
  z-index:1
}
.hub-greeting{
  margin:4px 0 14px;
  display:flex;
  flex-direction:column;
  gap:3px
}
.hub-greeting-en{
  margin:0!important;
  font-size:15px;
  line-height:1.5;
  color:#e2f1fa!important;
  font-weight:500
}
.hub-greeting-zh{
  margin:0!important;
  font-size:13.5px;
  line-height:1.58;
  color:#a8c7db!important
}
.hub-clock-strip{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);
  gap:10px;
  margin:0 0 16px;
  padding:10px;
  border-radius:16px;
  background:rgba(7,21,35,.72);
  border:1px solid rgba(154,218,236,.2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)
}
.hub-clock-cell{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(188,228,247,.12)
}
.hub-clock-cell--home{
  background:rgba(16,40,59,.62)
}
.hub-home-sky-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(118,225,209,.1);
  border:1px solid rgba(118,225,209,.22)
}
.hub-clock-cell--local{
  justify-content:space-between;
  gap:12px;
  transition:background .35s ease,border-color .35s ease
}
.hub-clock-cell--local.is-period-dawn{
  background:linear-gradient(135deg,rgba(26,44,77,.88),rgba(86,62,78,.72));
  border-color:rgba(244,202,126,.34)
}
.hub-clock-cell--local.is-period-day{
  background:linear-gradient(135deg,rgba(19,63,92,.85),rgba(32,96,118,.68));
  border-color:rgba(130,224,230,.36)
}
.hub-clock-cell--local.is-period-sunset{
  background:linear-gradient(135deg,rgba(36,34,68,.9),rgba(118,62,64,.72));
  border-color:rgba(244,166,114,.38)
}
.hub-clock-cell--local.is-period-night{
  background:linear-gradient(135deg,rgba(6,16,32,.96),rgba(14,32,58,.92));
  border-color:rgba(144,186,232,.3);
  box-shadow:inset 0 0 18px rgba(102,155,216,.1)
}
.hub-clock-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0
}
.hub-clock-label-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-width:0
}
.hub-clock-label{
  font-size:11.5px;
  font-weight:700;
  color:#b6d3e5;
  letter-spacing:.03em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.hub-clock-tz{
  display:inline-flex;
  align-items:center;
  padding:1px 6px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  color:var(--gold);
  background:rgba(244,202,126,.13);
  border:1px solid rgba(244,202,126,.28)
}
.hub-clock-readout{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px
}
.hub-clock-time{
  font-size:21px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:.03em;
  font-variant-numeric:tabular-nums;
  color:#f4faff
}
.hub-clock-cell--local.is-period-night .hub-clock-time{
  color:#e7effa;
  text-shadow:0 0 12px rgba(244,202,126,.25)
}
.hub-clock-period{
  font-size:11.5px;
  color:#a8c9dc;
  white-space:nowrap
}
.hub-window-art{
  flex:0 0 92px;
  width:92px;
  height:44px;
  display:block
}
.hub-window-svg{
  display:block;
  width:92px;
  height:44px;
  border-radius:9px;
  box-shadow:0 4px 12px rgba(0,0,0,.28)
}
.hub-sky-star{
  animation:welcome-twinkle 3.2s ease-in-out infinite
}
.hub-sky-star--delay{
  animation-delay:1.4s
}
.hub-progress-strip{
  margin-top:0;
  gap:8px;
  padding:13px 16px;
  background:rgba(11,34,50,.68);
  border-color:rgba(118,225,209,.24)
}
.hub-progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap
}
.hub-progress-badge{
  font-size:11.5px;
  font-weight:700;
  color:var(--gold);
  background:rgba(244,202,126,.11);
  border:1px solid rgba(244,202,126,.28);
  border-radius:999px;
  padding:2px 9px
}
.hub-progress-track{
  height:6px;
  border-radius:999px;
  background:rgba(188,228,247,.12);
  overflow:hidden
}
.hub-progress-fill{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--teal),var(--gold));
  transition:width .35s ease
}
.hub-progress-note{
  font-size:13px;
  color:#bfd7e5
}
.hub-postcard-grid{
  gap:16px;
  margin:20px 0 18px
}
.hub-postcard{
  padding:0;
  overflow:hidden;
  gap:0;
  border-radius:18px;
  background:linear-gradient(175deg,rgba(19,48,69,.94),rgba(11,29,44,.98));
  border:1px solid rgba(176,222,242,.2);
  box-shadow:0 12px 28px rgba(4,12,22,.28);
  transition:transform .16s ease,border-color .18s ease,box-shadow .18s ease
}
.hub-postcard:hover{
  transform:translateY(-2px);
  border-color:rgba(118,225,209,.42);
  box-shadow:0 16px 34px rgba(3,10,18,.38)
}
.hub-postcard--paused{
  border-color:rgba(244,202,126,.52);
  box-shadow:0 12px 30px rgba(244,202,126,.12)
}
.hub-postcard--completed{
  border-color:rgba(118,225,209,.36)
}
.hub-postcard-media{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:radial-gradient(circle at 78% 22%,rgba(244,202,126,.2),transparent 52%),linear-gradient(135deg,#18415a 0%,#102c41 58%,#0b1e30 100%)
}
.hub-postcard-backdrop{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background-image:repeating-linear-gradient(-35deg,rgba(188,228,247,.035) 0 10px,transparent 10px 22px)
}
.hub-postcard-symbol{
  font-size:40px;
  opacity:.82;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.35))
}
.hub-postcard-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  z-index:1;
  transition:transform .35s ease
}
.hub-postcard:hover .hub-postcard-image{
  transform:scale(1.03)
}
.hub-postcard-media::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(7,18,30,.36) 0%,rgba(7,18,30,.04) 44%,rgba(7,18,30,.72) 100%)
}
.hub-postcard-status{
  position:absolute;
  top:10px;
  left:10px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:750;
  letter-spacing:.03em;
  backdrop-filter:blur(6px)
}
.hub-postcard-status.is-new{
  background:rgba(11,30,46,.82);
  color:#d9f3ff;
  border:1px solid rgba(168,224,244,.38)
}
.hub-postcard-status.is-paused{
  background:rgba(62,40,12,.9);
  color:#ffd98a;
  border:1px solid rgba(244,202,126,.65)
}
.hub-postcard-status.is-completed{
  background:rgba(12,56,52,.88);
  color:#9cf2e1;
  border:1px solid rgba(118,225,209,.55)
}
.hub-postcard-stamp{
  position:absolute;
  top:8px;
  right:10px;
  z-index:3;
  width:52px;
  height:52px;
  color:rgba(220,240,250,.72);
  transform:rotate(11deg);
  pointer-events:none;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.45))
}
.hub-postcard-stamp.is-stamped{
  color:#f4ca7e;
  opacity:.95
}
.hub-postcard-caption{
  position:absolute;
  left:10px;
  right:10px;
  bottom:9px;
  z-index:3;
  font-size:11.5px;
  font-weight:650;
  color:#eef7fc;
  text-shadow:0 1px 4px rgba(0,0,0,.75);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.hub-postcard-edge{
  height:3px;
  width:100%;
  background:repeating-linear-gradient(90deg,rgba(118,225,209,.55) 0 14px,transparent 14px 20px,rgba(244,202,126,.55) 20px 34px,transparent 34px 40px);
  opacity:.7
}
.hub-postcard--paused .hub-postcard-edge{
  background:repeating-linear-gradient(90deg,rgba(244,202,126,.85) 0 14px,transparent 14px 20px);
  opacity:.9
}
.hub-postcard-body{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:9px;
  flex:1;
  min-width:0
}
.hub-postcard-title-group h3{
  font-size:17.5px;
  line-height:1.3;
  margin:0;
  color:#f2f8fd
}
.hub-postcard-zh{
  font-size:13.5px;
  color:#a8cadc;
  margin-top:3px
}
.hub-postcard-opening{
  font-size:13.5px;
  line-height:1.6;
  color:#b4ccdd;
  margin:0;
  flex:1;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.hub-postcard-progress{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:2px
}
.hub-postcard-mini-track{
  height:4px;
  border-radius:999px;
  background:rgba(188,228,247,.12);
  overflow:hidden
}
.hub-postcard-mini-fill{
  height:100%;
  border-radius:inherit;
  background:var(--teal)
}
.hub-postcard-mini-fill.is-paused{
  background:var(--gold)
}
.hub-postcard .route-progress{
  font-size:12px;
  color:#9ec0d4;
  flex:0 0 auto
}
.hub-postcard .route-frontier{
  font-size:12px;
  color:#f6d48f;
  background:rgba(244,202,126,.09);
  border:1px solid rgba(244,202,126,.24);
  border-radius:9px;
  padding:5px 9px;
  flex:0 0 auto
}
.hub-postcard-cta{
  width:100%;
  margin-top:4px;
  min-height:44px
}
.hub-postcard-cta--paused{
  background:linear-gradient(120deg,#f4ca7e,#f0b35a);
  color:#1f1606;
  box-shadow:0 8px 20px rgba(244,202,126,.22)
}
.hub-postcard-cta--completed{
  background:rgba(36,68,86,.75);
  border-color:rgba(118,225,209,.3);
  color:#d9f4ef
}
.hub-footer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:4px
}
.hub-guide-footnote{
  padding:20px 24px
}
.hub-guide-footnote h2{
  font-size:18px;
  margin:4px 0 6px
}
.hub-guide-footnote p{
  margin:0
}
@media(max-width:780px){
  .hub-clock-strip{
    grid-template-columns:1fr;
    gap:8px
  }
}
@media(max-width:600px){
  .hub-clock-strip{
    padding:8px;
    margin-bottom:14px
  }
  .hub-clock-cell{
    padding:8px 10px;
    gap:9px
  }
  .hub-clock-time{
    font-size:19px
  }
  .hub-window-art,.hub-window-svg{
    flex-basis:78px;
    width:78px;
    height:38px
  }
  .hub-postcard{
    padding:0
  }
  .hub-postcard-body{
    padding:14px 15px 15px
  }
  .hub-postcard-stamp{
    width:46px;
    height:46px
  }
  .hub-postcard-stamp .hub-stamp-svg{
    width:46px;
    height:46px
  }
  .hub-world-btn{
    width:100%
  }
}
@media(max-width:360px){
  .hub-clock-cell{
    padding:7px 8px;
    gap:7px
  }
  .hub-clock-label{
    font-size:10.5px
  }
  .hub-clock-time{
    font-size:17px
  }
  .hub-clock-period{
    font-size:10.5px
  }
  .hub-window-art,.hub-window-svg{
    flex-basis:68px;
    width:68px;
    height:34px
  }
  .hub-postcard-body{
    padding:12px 13px 14px
  }
  .hub-postcard-title-group h3{
    font-size:16px
  }
}
