/* Cinematic title cards for world entry screens: one picture, one ENTER. Loaded after each page's own CSS. */
.tc-gate{isolation:isolate;background:#050608;backdrop-filter:none;display:flex;overflow-y:auto;padding-bottom:16px}
.tc-pic{position:absolute;inset:0;overflow:hidden;z-index:-1;background:#050608;pointer-events:none}
.tc-gate>.tc-pic{position:fixed}
.tc-pic img{position:absolute;top:0;left:0;width:128%;height:100%;object-fit:cover;object-position:50% 40%;animation:tcdrift 60s ease-in-out infinite alternate;will-change:transform}
.tc-pic::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,8,.55) 0,rgba(5,6,8,.2) 35%,rgba(5,6,8,.4) 60%,rgba(5,6,8,.9) 100%)}
@keyframes tcdrift{from{transform:translateX(0)}to{transform:translateX(-21.8%)}}
@media (prefers-reduced-motion:reduce){.tc-pic img{animation:none;width:100%}}
:root[data-calm='1'] .tc-pic img{animation:none;width:100%}

.tc-card{width:min(560px,calc(100vw - 32px));max-width:none;margin:auto;padding:0 4px;border:0;background:none;box-shadow:none;max-height:none!important;overflow:visible!important;backdrop-filter:none;text-align:center;display:flex;flex-direction:column;align-items:center;animation:none}
.tc-card .tc-eyebrow{font-family:var(--type-eyebrow,inherit);font-weight:600;font-size:14px;letter-spacing:.2em;color:#ffc9a3;margin:0 0 12px;padding:7px 14px;background:rgba(5,6,8,.72);border-radius:3px;text-shadow:none}
.tc-card .tc-title{font-family:var(--type-display,Impact,sans-serif);font-weight:900;font-size:clamp(48px,14vw,76px);line-height:.92;letter-spacing:.01em;margin:0 0 14px;color:#fff;background:none;-webkit-text-fill-color:#fff;filter:none;text-shadow:0 2px 0 #050608,0 8px 40px rgba(0,0,0,.85)}
.tc-card .tc-line{font:500 18px/1.4 var(--type-body,inherit);color:#f6f1e6;margin:0 0 22px;max-width:30em;text-shadow:0 1px 12px #000,0 0 3px #000}
.tc-card .tc-enter,#gc-continue.tc-enter{display:inline-flex;align-items:center;justify-content:center;min-width:min(320px,100%);min-height:60px;margin:0;padding:14px 36px;font:700 22px/1 var(--type-button,inherit);letter-spacing:.14em;color:#0a0a0c;background:#ff6b2c;border:2px solid #ff6b2c;border-radius:3px;box-shadow:0 6px 0 #7a2a0a,0 12px 30px rgba(0,0,0,.6);cursor:pointer;text-decoration:none;filter:none;transform:none}
.tc-card .tc-enter:hover:not(:disabled),#gc-continue.tc-enter:hover:not(:disabled){background:#ff864f;transform:translateY(-2px)}
.tc-card .tc-enter:disabled{opacity:.75;cursor:progress;letter-spacing:.08em}
.tc-card .tc-enter:focus-visible,.tc-card .tc-alt:focus-visible,.tc-how summary:focus-visible{outline:3px solid #fff;outline-offset:3px}
.tc-actions{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.tc-card .tc-alt,.tc-card #gal-launch.tc-alt{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:10px 24px;font:600 15px/1 var(--type-button,inherit);letter-spacing:.12em;color:#fff;background:rgba(5,6,8,.6);border:1px solid rgba(255,255,255,.5);border-radius:3px;box-shadow:none;cursor:pointer}
.tc-card .tc-alt:hover:not(:disabled){background:rgba(5,6,8,.8);border-color:#ff9a5c;transform:none;box-shadow:none}
.tc-extras{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:16px;width:100%}
.tc-extras{align-items:flex-start}
.tc-extras>button,.tc-extras>.tc-chip{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;height:44px;margin:0!important;padding:0 18px;font:600 14px/1 var(--type-button,inherit);letter-spacing:.1em;color:#fff;background:rgba(5,6,8,.6);border:1px solid rgba(255,255,255,.5);border-radius:999px;cursor:pointer}
.tc-how summary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;height:44px;padding:0 18px;list-style:none;cursor:pointer;font:600 14px/1 var(--type-button,inherit);letter-spacing:.1em;color:#fff;background:rgba(5,6,8,.6);border:1px solid rgba(255,255,255,.5);border-radius:999px}
.tc-how summary::-webkit-details-marker{display:none}
.tc-how[open]{flex:1 1 100%}
.tc-how[open] summary{margin:0 auto;display:flex;width:max-content}
.tc-how-body{margin-top:10px;padding:14px;max-height:38vh;overflow:auto;text-align:center;font:500 14px/1.5 var(--type-caption,inherit);color:#eee8da;background:rgba(8,10,14,.92);border:1px solid rgba(255,255,255,.25)}
.tc-how-body>*{margin-top:0}
.tc-how-body .gal-keys,.tc-how-body .gal-hints-touch{background:none;border:0;padding:0;margin:0 0 10px}
.tc-how-body p{margin:0 0 8px;font-size:14px}
.tc-how-body p:last-child{margin-bottom:0}
.tc-card .tc-status{margin:12px auto 0;font-size:14px;color:#e8e2d4}

@media(min-width:768px){
  .tc-card{width:min(720px,calc(100vw - 96px))}
  .tc-card .tc-title{font-size:clamp(76px,9vw,116px);margin-bottom:18px}
  .tc-card .tc-line{font-size:22px;margin-bottom:28px}
  .tc-card .tc-enter,#gc-continue.tc-enter{min-width:360px;min-height:68px;font-size:26px}
  .tc-how-body{font-size:16px}
}
@media(max-height:520px){
  .tc-gate{padding-top:60px!important}
  .tc-card .tc-eyebrow{margin-bottom:4px}
  .tc-card .tc-title{font-size:clamp(34px,10vh,48px);margin-bottom:8px}
  .tc-card .tc-title br{display:none}
  .tc-card .tc-line{font-size:16px;margin-bottom:10px}
  .tc-card .tc-enter,#gc-continue.tc-enter{min-height:48px;font-size:18px;padding:10px 28px}
  .tc-actions{flex-direction:row;justify-content:center}
  .tc-extras{margin-top:10px}
  .tc-how-body{max-height:30vh}
}

/* Training hub hero (not a fixed gate) */
.tc-hero{position:relative;min-height:100svh;display:flex;overflow:hidden;isolation:isolate;padding:76px 16px 32px}
.tc-hero .tc-card .rank{margin:18px 0 0;border:0;background:rgba(5,6,8,.65);padding:8px 14px;font-size:14px}

/* Planet gate sits at the bottom over the picture */
#pl-top{z-index:5}
#pl-gate.tc-gate{pointer-events:none;align-items:flex-end;overflow:visible;padding:24px 16px calc(24px + var(--sa-b,0px))}
#pl-gate .tc-card{pointer-events:auto;margin:0 auto;max-height:calc(100dvh - 88px)!important;overflow:auto!important}
#pl-gate .tc-card #pl-worlds{margin-top:14px}
#pl-gate #pl-start.tc-enter{width:min(360px,100%);min-height:60px;background:#ff6b2c;color:#0a0a0c;font-size:22px;border-radius:3px}
#pl-gate #pl-start.tc-enter:hover:not(:disabled){background:#ff864f}
@media(max-height:520px){#pl-gate #pl-start.tc-enter{min-height:48px;font-size:18px}}
@media(max-height:520px){#pl-gate .tc-eyebrow{display:none}#pl-gate.tc-gate{padding-top:8px!important}}

.tc-card .tc-alt,.tc-card #gal-launch.tc-alt{border-radius:999px;text-transform:uppercase}.tc-how summary,.tc-extras>button,.tc-title{text-transform:uppercase}
