.portal-root, .portal-page { background: #030508; color: #f3f0e9; }
.portal-page { --portal-accent: #edc98a; --nav-offset-x: 0px; }
.portal-page button, .portal-page a { -webkit-tap-highlight-color: transparent; }
.portal-page a { color: inherit; text-decoration: none; }
.portal-page button { font: inherit; color: inherit; cursor: pointer; }
.portal-page :focus-visible { outline: 2px solid #e5d5b5; outline-offset: 6px; }
.portal-page .site-logo { top: 30px; left: 38px; z-index: 120; }
.portal-page .site-logo__img { width: 110px; height: auto; }
.portal-page .site-nav { padding-top: 24px; }
.portal-page .site-nav__inner { background: rgba(7, 11, 17, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.portal-page .site-nav__link { color: #a7afb9; }
.portal-page .site-nav__link:hover, .portal-page .site-nav__link.is-active { color: #faf6ee; }
.portal-language { position: fixed; z-index: 120; right: 35px; top: 32px; display: flex; align-items: center; gap: 7px; color: #68727f; font-size: 10px; }
.portal-language button { border: 0; background: none; padding: 9px 5px; font-size: 11px; color: #8c96a5; }
.portal-language button[aria-pressed="true"] { color: #f4eee1; }
#portalExperience { position: fixed; inset: 0; isolation: isolate; touch-action: pinch-zoom; user-select: none; -webkit-user-select: none; }
#portalCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 800ms ease; }
.portal-page.is-ready #portalCanvas { opacity: 1; }
.portal-boot { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, #1f191633, transparent 40%); transition: opacity 500ms; }
.portal-boot div { width: min(30vw, 260px); height: min(43vw, 360px); border-radius: 50%; border: 1px solid #ba95634f; box-shadow: 0 0 30px #e0b67815, inset 0 0 20px #e0b6780b; }
.portal-page.is-ready .portal-boot { opacity: 0; }
.portal-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#03050880, transparent 26%, transparent 65%, #030508c7); }
.portal-copy { position: absolute; top: 22%; left: 50%; width: min(850px, 90vw); transform: translateX(-50%); text-align: center; pointer-events: none; text-shadow: 0 2px 32px #04040780; transition: top 1.7s ease; }
.portal-eyebrow { font-size: 9px; font-weight: 400; letter-spacing: .35em; color: #c4bcae; margin-bottom: 20px; }
.portal-copy h1 { font-family: var(--font-hero); font-weight: 400; font-size: clamp(46px, 5.7vw, 84px); line-height: 1.05; letter-spacing: -.055em; text-wrap: balance; transition: font-size 1.7s ease; }
.portal-copy h1 span { display: block; }
.portal-copy h1 span:last-child { color: #e2dbcd; }
.portal-subtitle { color: #b9b3a8; font-size: 13px; margin-top: 21px; letter-spacing: .035em; transition: opacity 1s ease; }
.portal-page.has-entered .portal-copy { top: 15%; }
.portal-page.has-entered .portal-copy h1 { font-size: clamp(30px, 3.2vw, 47px); }
.portal-page.has-entered .portal-copy h1 span { display: inline; }
.portal-page.has-entered .portal-copy h1 span + span::before { content: ' '; }
.portal-page.has-entered .portal-eyebrow { font-size: 8px; margin-bottom: 11px; opacity: .7; }
.portal-page.has-entered .portal-subtitle { opacity: 0; }
.portal-follow { position: absolute; bottom: 24%; left: 50%; transform: translateX(-50%); color: #c5b69a; display: flex; flex-direction: column; align-items: center; gap: 15px; font-size: 8px; letter-spacing: .28em; pointer-events: none; transition: opacity 1s; }
.portal-follow__line { height: 28px; width: 1px; background: linear-gradient(transparent, #c5a87c); }
.portal-page.has-entered .portal-follow { opacity: 0; }
.portal-page[data-loading="true"] .portal-follow { opacity: 0; }
.portal-loading { position: absolute; z-index: 5; left: 50%; top: 69%; transform: translateX(-50%); width: min(280px, 76vw); color: #e3ddd1; text-align: center; pointer-events: none; }
.portal-loading[hidden] { display: none; }
#portalLoadingText { font-size: 13px; letter-spacing: .06em; text-shadow: 0 2px 12px #000; }
.portal-loading__track { position: relative; height: 3px; margin-top: 16px; border-radius: 2px; overflow: hidden; background: #e1cfaa26; }
.portal-loading__track span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: #e8d2aa; transition: transform .3s ease; }
.portal-loading__track::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--loading-stage, 0%); width: 25%; background: linear-gradient(90deg, transparent, #f5dfbccc, transparent); animation: loading-light 1.8s ease-in-out infinite alternate; }
@keyframes loading-light { from { opacity: .15; transform: scaleX(.35); } to { opacity: .9; transform: scaleX(1); } }
.portal-loading__detail { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 10px; color: #c0b9ac; text-shadow: 0 1px 8px #000; }
#portalLoadingStep { font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal-page.has-entered .portal-loading { top: auto; bottom: 140px; }
@media (max-width: 720px) { .portal-loading { top: 63%; } .portal-page.has-entered .portal-loading { bottom: 180px; } }
.portal-hud { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; padding: 0 42px 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; pointer-events: none; }
.portal-hud a, .portal-hud button { pointer-events: auto; }
.portal-world { flex: 1; min-width: 0; }
.portal-world__eyebrow { display: flex; align-items: center; gap: 13px; color: #a9a9aa; font-size: 8px; letter-spacing: .18em; }
.portal-world__eyebrow #worldNumber { color: var(--portal-accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.portal-world__rule { height: 1px; width: 30px; background: #9f927b5c; }
#worldTitle { margin-top: 12px; font-family: Georgia, 'Times New Roman', 'Songti SC', serif; font-style: italic; letter-spacing: -.03em; font-size: 29px; color: #e9e2d7; }
.portal-cta { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-bottom: 1px; }
.portal-download { min-width: 148px; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 11px 20px; border: 1px solid #d7c5a74a; border-radius: 5px; background: #0a0d134d; font-size: 11px; transition: background .2s, border-color .2s; }
.portal-download:hover { background: #cfb38a1a; border-color: #cfb38a; }
.portal-cta > a:last-child { font-size: 9px; color: #a9a7a2; letter-spacing: .025em; }
.portal-controls { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.portal-controls button { min-height: 46px; border: 1px solid #d7c5a72e; background: #070c1459; border-radius: 50%; transition: border-color .2s, background .2s; }
.portal-controls button:hover { border-color: #d7c5a78a; background: #d7c5a712; }
#portalPause { width: 46px; display: grid; place-items: center; }
#portalPause svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.portal-progress { position: absolute; bottom: 0; height: 2px; left: 0; width: 100%; background: #f2d5a30b; }
.portal-progress span { display: block; height: 100%; background: var(--portal-accent); transform: scaleX(0); transform-origin: left; opacity: .6; }
.portal-status { position: absolute; top: 57%; left: 50%; transform: translate(-50%,-50%); max-width: min(440px, 88vw); padding: 22px; border: 1px solid #cbb88d44; border-radius: 8px; color: #e3ddd1; font-size: 13px; text-align: center; line-height: 1.8; background: #080c15ed; }
.portal-status[hidden] { display: none; }
.portal-status a, .portal-status button { display: inline-block; margin: 14px 8px 0; color: #e5ca9e; font-size: 12px; background: transparent; border: 0; text-decoration: underline; }
.portal-skip { position: fixed; left: 15px; top: 15px; z-index: 200; padding: 12px 20px; background: #161b25; transform: translateY(-200%); }
.portal-skip:focus { transform: translateY(0); }
@media (max-width: 1100px) {
  .portal-page .site-nav__inner { gap: 7px; padding-inline: 16px; }
  .portal-page .site-nav__wordmark { display: none; }
  .portal-page .site-nav__links { gap: 17px; }
  .portal-page .site-logo { left: 22px; }
  .portal-language { right: 20px; }
  .portal-hud { padding-inline: 25px; }
  .portal-world__eyebrow { gap: 8px; font-size: 7px; }
  .portal-world__rule { width: 18px; }
}
@media (max-width: 720px) {
  .portal-page .site-logo { top: max(19px, env(safe-area-inset-top)); left: 22px; }
  .portal-page .site-logo__img { width: 88px; }
  .portal-language { top: max(15px, env(safe-area-inset-top)); right: 19px; }
  .portal-page .site-nav { padding-top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); }
  .portal-page .site-nav__shell { width: calc(100vw - 34px); transform: none; }
  .portal-page .site-nav.is-expanded .site-nav__inner { padding: 0 12px; min-width: 0; width: 100%; min-height: 42px; gap: 0; border-radius: 40px; }
  .portal-page .site-nav__star { display: none; }
  .portal-page .site-nav.is-expanded .site-nav__links { position: static; transform: none; max-width: none; width: 100%; justify-content: space-between; gap: 8px; margin: 0; }
  .portal-page .site-nav__link { display: grid; place-items: center; min-height: 40px; font-size: 9px; white-space: nowrap; }
  .portal-copy { top: 24%; width: calc(100% - 36px); }
  .portal-copy h1 { font-size: clamp(39px, 10.8vw, 65px); line-height: 1.1; }
  .portal-eyebrow { font-size: 7px; letter-spacing: .24em; margin-bottom: 17px; }
  .portal-subtitle { font-size: 11px; margin-top: 16px; }
  .portal-page.has-entered .portal-copy { top: 19%; }
  .portal-page.has-entered .portal-copy h1 { font-size: clamp(29px, 7.5vw, 43px); }
  .portal-page.has-entered .portal-copy h1 span { display: block; }
  .portal-page.has-entered .portal-copy h1 span + span::before { content: none; }
  .portal-page.has-entered .portal-eyebrow { font-size: 7px; }
  .portal-follow { bottom: 30%; font-size: 7px; }
  .portal-hud { padding: 0 22px calc(25px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 23px 12px; align-items: center; }
  .portal-world { flex-basis: calc(100% - 165px); }
  .portal-world__eyebrow { font-size: 7px; gap: 7px; }
  .portal-world__rule { width: 14px; }
  #worldStyle { display: none; }
  #worldTitle { font-size: 23px; margin-top: 8px; }
  .portal-cta { order: 3; flex-direction: row; justify-content: space-between; width: 100%; gap: 15px; margin-top: 0; }
  .portal-download { min-width: 130px; min-height: 40px; font-size: 10px; padding: 10px 17px; }
  .portal-cta > a:last-child { font-size: 10px; }
  .portal-controls { flex: 0 0 auto; gap: 8px; }
  .portal-controls button { min-height: 40px; }
  #portalPause { width: 40px; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .portal-page .site-nav { padding-top: 12px; }
  .portal-copy, .portal-page.has-entered .portal-copy { top: 22%; }
  .portal-copy h1, .portal-page.has-entered .portal-copy h1 { font-size: 31px; }
  .portal-copy h1 span { display: inline; }
  .portal-eyebrow, .portal-subtitle, .portal-follow, #worldStyle { display: none; }
  .portal-hud { padding-bottom: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-page *, .portal-page *::before, .portal-page *::after { transition: none !important; animation: none !important; }
}
