/* Flavor Escape — level map / landing page */
html,body.hub-page{overflow:auto;height:auto;min-height:100%;user-select:auto;-webkit-user-select:auto;touch-action:auto;overscroll-behavior:auto}
body.hub-page{background:radial-gradient(120% 60% at 50% 0%,#2A2131 0%,var(--bg) 55%) fixed}
.hub-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;padding-top:env(safe-area-inset-top);
  background:rgba(26,21,31,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hub-top .brand{text-decoration:none}
.hub-top nav{flex:1;display:flex;justify-content:center;gap:4px}
.hub-top nav a{color:var(--muted);text-decoration:none;font-weight:700;font-size:14px;padding:8px 10px;border-radius:10px}
.hub-top nav a:hover{color:var(--ink);background:#251E2C}
main{max-width:1180px;margin:0 auto}
.hero{position:relative;height:min(76vh,640px);min-height:470px;overflow:hidden;border-radius:0 0 28px 28px}
#heroArt{position:absolute;inset:0;width:100%;height:100%}
.hero-copy{position:absolute;left:0;right:0;bottom:0;padding:24px 18px 26px;text-align:center;
  background:linear-gradient(transparent,rgba(22,18,27,.85) 40%,var(--bg))}
.hero .logo .l1{font-size:clamp(40px,11vw,74px)}.hero .logo .l2{font-size:clamp(50px,14vw,92px)}
.tag{margin:8px auto 0;max-width:520px;color:#D8CFE0;font-size:15.5px;line-height:1.45}
.hero-cta{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:360px;margin:12px auto 0}
.hero-cta .big-btn{margin-top:6px}
.hero-cta .note{color:var(--muted);font-size:13px}
.sec{padding:34px 16px 8px}
.sec-head{text-align:center;max-width:640px;margin:0 auto 18px}
.sec-head h2{font-family:var(--display);font-size:clamp(26px,6vw,36px);margin:6px 0}
.sec-head .muted{margin:0;line-height:1.45}

/* trail of acts */
.trail{position:relative;display:grid;grid-template-columns:1fr;gap:16px;max-width:560px;margin:0 auto}
.trail::before{content:"";position:absolute;left:44px;top:30px;bottom:30px;width:4px;border-radius:2px;
  background:repeating-linear-gradient(#5A4E66 0 10px,transparent 10px 20px)}
.act{position:relative;display:grid;grid-template-columns:92px 1fr;gap:14px;align-items:start;padding:14px;border-radius:22px;background:var(--bg2);
  border:1.5px solid var(--line);transition:transform .15s,border-color .2s;cursor:pointer;text-align:left;width:100%}
.act:hover{transform:translateY(-2px)}
.act .em{width:88px;height:88px;margin-left:-6px;border-radius:50%;display:grid;place-items:center;background:#1A151F;border:3px solid #3A3244;position:relative;z-index:1}
.act .em svg{width:76px;height:76px}
.act h3{margin:2px 0 2px;font-family:var(--display);font-size:21px}
.act .meta{font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.act p{margin:6px 0 0;font-size:14px;line-height:1.45;color:#D8CFE0}
.act .chip{display:inline-block;margin-top:10px;padding:5px 11px;border-radius:999px;font-size:12.5px;font-weight:800;background:#2A2330;color:var(--muted)}
.act .bar{margin-top:10px;max-width:240px}
.act.won{border-color:#6A8A3A}.act.won .em{border-color:#B8D435;box-shadow:0 0 24px rgba(184,212,53,.35)}
.act.won .chip{background:rgba(184,212,53,.18);color:#DDEB9A}
.act.open{border-color:#A8742A;box-shadow:0 0 0 1px rgba(244,166,42,.2),0 10px 40px rgba(244,166,42,.12)}
.act.open .em{border-color:#F4A62A;animation:glowpulse 1.8s infinite}
.act.open .chip{background:linear-gradient(180deg,#FFE2A0,#F4A62A);color:#2A1606}
.act.locked{opacity:.78}.act.locked .em svg{filter:grayscale(1) brightness(.7)}
.act.locked .chip::before{content:"🔒 ";}
@media (min-width:980px){
  .trail{grid-template-columns:repeat(5,1fr);max-width:none;gap:14px}
  .trail::before{left:40px;right:40px;top:58px;bottom:auto;width:auto;height:4px;background:repeating-linear-gradient(90deg,#5A4E66 0 10px,transparent 10px 20px)}
  .act{grid-template-columns:1fr;justify-items:center;text-align:center;padding:16px 12px 18px}
  .act .em{margin:0}
  .act .bar{margin:10px auto 0}
}

/* codex */
.codex-tiers{display:flex;flex-direction:column;gap:14px;max-width:980px;margin:0 auto}
.ct{background:var(--bg2);border:1px solid var(--line);border-radius:18px;padding:12px}
.ct h4{margin:0 0 8px;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between}
.ct .row{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.cc{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:84px;flex:1 1 84px;max-width:120px;padding:8px 6px;border-radius:14px;background:#1A151F;border:1.5px solid #2E2836}
.cc .gl{display:flex;gap:1px}
.cc small{font-size:11px;line-height:1.2;color:#6A6274;text-align:center}
.cc.on{border-color:var(--c,#F4A62A);background:radial-gradient(circle at 50% 0%,color-mix(in srgb,var(--c,#F4A62A) 25%,transparent),#1A151F 70%)}
.cc.on small{color:var(--ink)}
.how-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;max-width:880px;margin:0 auto}
@media (min-width:820px){.how-grid{grid-template-columns:repeat(4,1fr)}}
.how-grid div{background:var(--bg2);border:1px solid var(--line);border-radius:16px;padding:12px}
.how-grid b{font-family:var(--display);font-size:18px}.how-grid p{margin:4px 0 0;font-size:13.5px;color:#D8CFE0;line-height:1.4}
.how .small{text-align:center;max-width:640px;margin:14px auto 0}
.hub-foot{text-align:center;padding:30px 16px calc(40px + env(safe-area-inset-bottom));color:#7A7086;font-size:12.5px}
.hub-foot p{max-width:560px;margin:0 auto 12px;line-height:1.5}
/* hero animation */
.drift{animation:floaty 6s ease-in-out infinite}
.hero-orbit{animation:orbit 18s linear infinite;transform-box:view-box;transform-origin:500px 360px}
.hero-orbit .oc{animation:counter 18s linear infinite;transform-box:fill-box;transform-origin:center}
.tease-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tease-list span{padding:6px 10px;border-radius:999px;background:#1A151F;border:1px solid var(--line);font-size:12.5px}
@media (max-width:639px){
  .hero{height:auto;min-height:0;display:flex;flex-direction:column}
  #heroArt{position:relative;inset:auto;height:56vh;max-height:470px;min-height:340px}
  .hero-copy{position:relative;margin-top:-90px;padding-top:30px}
}
