/* Optional Legend homepage preview. */
html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage {
  --hero-gold: #f4d49a;
  --hero-rule: #eacb9770;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(auto, 1fr) auto;
  align-content: stretch;
  justify-items: center;
  gap: clamp(1.7rem, 3.7vh, 3.7rem);
  min-height: 100svh;
  padding: max(calc(var(--portal-header-height) + 1.5rem), 36svh)
    max(1.2rem, 6vw) 4rem !important;
}
html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage::after {
  background:
    radial-gradient(ellipse at 50% 79%, #090b10a8, transparent 55%),
    linear-gradient(0deg, #090e15 1%, #0c1018e0 18%, #0c101877 49%, transparent 78%);
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-intro {
  align-self: center;
  justify-items: center;
  text-align: center;
  gap: .85rem;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-intro h1 {
  width: clamp(20rem, 27vw, 43.75rem);
  max-width: 100%;
  line-height: 0;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-intro h1 img {
  display: block;
  width: 100%;
  height: auto;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-edition {
  font-size: clamp(.8rem, .95vw, 1.2rem);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #ffedcf;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-edition span { background: var(--hero-rule); }
[data-home-style="cinema"][data-home-hero="legend"] .cinema-description {
  max-width: min(49ch, 100%);
  color: #fbf4e8;
  font-size: clamp(18px, 1.12vw, 1.5rem);
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-legend-detail {
  max-width: min(62ch, 100%);
  color: #eee3d3;
  font-size: clamp(18px, 1vw, 1.3rem);
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry {
  justify-content: center;
  flex-wrap: nowrap;
  gap: .75rem;
  margin-top: .55rem;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a {
  --entry-bevel: linear-gradient(170deg, #faf0d6, #b39566 28%, #574d46 52%, #c9b289 83%, #ecddbe);
  --entry-face: linear-gradient(180deg, #283746, #141d2a 52%, #101723);
  --entry-rivet: #d3ba8a;
  --entry-cut: clamp(.55rem, 1vw, 1.05rem);
  position: relative;
  isolation: isolate;
  min-height: clamp(48px, 3.6vw, 68px);
  padding: .75rem clamp(.9rem, 2vw, 2rem);
  border-color: transparent;
  background: transparent;
  color: #fff1d6;
  font: 700 clamp(1.0625rem, 1.14vw, 1.45rem)/1.15 system-ui, sans-serif;
  white-space: nowrap;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a::before,
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a::after,
html[data-home-style="cinema"] .portal-auth-page .auth-panel .button.primary::before,
html[data-home-style="cinema"] .portal-auth-page .auth-panel .button.primary::after {
  content: "";
  position: absolute;
  pointer-events: none;
  clip-path: polygon(var(--entry-cut) 0, calc(100% - var(--entry-cut)) 0, 100% 50%, calc(100% - var(--entry-cut)) 100%, var(--entry-cut) 100%, 0 50%);
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a::before,
html[data-home-style="cinema"] .portal-auth-page .auth-panel .button.primary::before {
  inset: 0;
  z-index: -2;
  background: var(--entry-bevel);
  opacity: .7;
  clip-path: polygon(evenodd,
    var(--entry-cut) 0, calc(100% - var(--entry-cut)) 0, 100% 50%,
    calc(100% - var(--entry-cut)) 100%, var(--entry-cut) 100%, 0 50%, var(--entry-cut) 0,
    calc(var(--entry-cut) + 4px) 3px, 4px 50%, calc(var(--entry-cut) + 4px) calc(100% - 3px),
    calc(100% - var(--entry-cut) - 4px) calc(100% - 3px), calc(100% - 4px) 50%,
    calc(100% - var(--entry-cut) - 4px) 3px, calc(var(--entry-cut) + 4px) 3px);
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a::after,
html[data-home-style="cinema"] .portal-auth-page .auth-panel .button.primary::after {
  inset: 3px 4px;
  z-index: -1;
  background:
    radial-gradient(circle at var(--entry-cut) 50%, var(--entry-rivet) 0 2px, transparent 2.75px),
    radial-gradient(circle at calc(100% - var(--entry-cut)) 50%, var(--entry-rivet) 0 2px, transparent 2.75px),
    linear-gradient(90deg, transparent 12%, #ead4a98c 50%, transparent 88%) center 2px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 12%, #ead4a960 50%, transparent 88%) center calc(100% - 2px) / 100% 1px no-repeat,
    var(--entry-face);
  opacity: .83;
  transition: filter 160ms ease;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry .cinema-register,
html[data-home-style="cinema"] .portal-auth-page .auth-panel .button.primary {
  --entry-bevel: linear-gradient(170deg, #fff2ba, #d7a65d 29%, #76512d 51%, #e5b970 79%, #fff0b4);
  --entry-face: linear-gradient(180deg, #784b24, #422618 51%, #342017);
  --entry-rivet: #f7d28a;
  color: #fff4db;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a:is(:hover,:focus-visible) {
  box-shadow: none;
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a:is(:hover,:focus-visible)::after,
html[data-home-style="cinema"] .portal-auth-page .auth-panel .button.primary:not(:disabled):is(:hover,:focus-visible)::after {
  filter: brightness(1.12);
}
[data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a:active::after {
  filter: brightness(.92);
}
@media (min-width: 481px) {
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a {
    min-width: clamp(11.5rem, 13.4vw, 17rem);
  }
}
[data-home-style="cinema"][data-home-hero="legend"] .stage a:focus-visible {
  outline: 2px solid #fff5d8;
  outline-offset: 4px;
}
html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage > .legend-hero-actions {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  width: min(100%, 103rem) !important;
  margin: 0;
}
html[data-home-style="cinema"][data-home-hero="legend"] .legend-hero-actions .legend-stats {
  display: grid;
  container-type: normal;
  grid-template-columns: minmax(13rem, 1.5fr) repeat(3, minmax(0, .8fr)) minmax(16rem, 1.55fr);
  align-items: center;
  gap: clamp(.5rem, 1vw, 1.4rem);
  padding: .8rem 0;
  border: solid var(--hero-rule);
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-stats dl { display: contents; }
[data-home-style="cinema"][data-home-hero="legend"] .legend-stats dl > div {
  gap: .35rem;
  border: 0;
  padding: 0;
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-stats dl > .legend-stats-world {
  grid-column: auto;
  justify-items: start;
  padding: 0;
  border: 0;
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-stats-world dd { align-items: start; gap: .26rem; text-align: start; }
[data-home-style="cinema"][data-home-hero="legend"] .legend-world-identity {
  color: #fff2da;
  font: 650 clamp(.86rem, .9vw, 1.02rem)/1.25 var(--pa-home-font, system-ui,sans-serif);
  letter-spacing: 0;
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-world-date {
  font: 500 clamp(.78rem, .77vw, 1rem)/1.36 var(--pa-home-font, system-ui,sans-serif);
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-stats dl > div:not(.legend-stats-world) dd {
  grid-row: 1;
  font-size: clamp(1.55rem, 2.15vw, 2.9rem);
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-stats dt {
  color: #fff2da;
  font-size: clamp(.72rem, .78vw, 1rem);
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-beta-clock {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-beta-clock > strong { display: none; }
[data-home-style="cinema"][data-home-hero="legend"] .legend-beta-clock small {
  margin: 0;
  font-size: clamp(.78rem, .83vw, 1.04rem);
  color: var(--hero-gold);
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-clock-units { width: 100%; gap: 0; }
[data-home-style="cinema"][data-home-hero="legend"] .legend-clock-units > div {
  padding: .12rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff0d4;
}
[data-home-style="cinema"][data-home-hero="legend"] .legend-clock-units > div + div { border-inline-start: 1px solid var(--hero-rule); }
[data-home-style="cinema"][data-home-hero="legend"] .legend-clock-units b { font-size: clamp(1.28rem, 1.65vw, 2.35rem); }
[data-home-style="cinema"][data-home-hero="legend"] .legend-clock-units span { font-size: clamp(.62rem, .63vw, .8rem); }
@media (max-width: 900px) {
  html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage {
    padding: max(calc(var(--portal-header-height) + 2rem), 30svh) 1rem 3.7rem !important;
    gap: 1.25rem;
  }
  html[data-home-style="cinema"][data-home-hero="legend"] .legend-hero-actions .legend-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem .3rem;
    max-width: 34rem;
    margin-inline: auto;
  }
  [data-home-style="cinema"][data-home-hero="legend"] .legend-stats dl > .legend-stats-world {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-items: center;
  }
  [data-home-style="cinema"][data-home-hero="legend"] .legend-stats-world dd { align-items: center; text-align: center; }
  [data-home-style="cinema"][data-home-hero="legend"] .legend-beta-clock {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(100%, 22rem);
    justify-self: center;
  }
}
@media (max-width: 480px) {
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-intro { gap: .65rem; }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-intro h1 { width: min(76vw, 23rem); }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry { gap: .5rem; }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a { padding-inline: .85rem; font-size: .9375rem; }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a::after {
    background: linear-gradient(90deg, transparent 12%, #ead4a98c 50%, transparent 88%) center 2px / 100% 1px no-repeat, var(--entry-face);
  }
}
@media (max-width: 350px) {
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry { gap: .35rem; }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a { padding-inline: .65rem; }
}
@media (560px <= width <= 900px) and (height <= 500px) and (orientation: landscape) {
  html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage {
    padding: calc(var(--portal-header-height) + 1.1rem) 1rem 3.25rem !important;
    gap: .75rem;
  }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-intro { gap: .4rem; }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-intro h1 { width: clamp(13rem, 30vw, 17.5rem); }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry { margin-top: .2rem; }
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-entry a { min-height: 44px; }
}
@media (max-width: 760px), (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage {
    grid-template-rows: auto auto;
    align-content: start;
  }
  [data-home-style="cinema"][data-home-hero="legend"] .legend-stats dl,
  [data-home-style="cinema"][data-home-hero="legend"] .cinema-legend-detail { display: none; }
  html[data-home-style="cinema"][data-home-hero="legend"] .legend-hero-actions .legend-stats {
    grid-template-columns: minmax(0, 1fr);
    max-width: 26rem;
    padding-block: .65rem;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage {
    padding-top: max(calc(var(--portal-header-height) + 1.5rem), 38svh) !important;
  }
}
@media (max-width: 350px) and (orientation: portrait) {
  html.portal-home[data-home-style="cinema"][data-home-hero="legend"] body .stage {
    padding-top: max(calc(var(--portal-header-height) + 1.5rem), 34svh) !important;
  }
}

html[data-home-style="cinema"] {
  --cinema-ink: #f0e4cf;
  --cinema-muted: #c4cecf;
  --cinema-surface: #0b1720;
  --cinema-card: #151f2a;
  --cinema-line: #94b9b54f;
  --cinema-frame: #9dd0c7;
  --cinema-files-accent: #d6d0f7;
  --cinema-shell: min(90vw, 142rem);
  --legend-gold: var(--cinema-ink);
  --legend-soft: var(--cinema-muted);
  --legend-edge: var(--cinema-line);
  --legend-surface: var(--cinema-surface);
  --portal-base: #091018;
  --header-matte: #101b25;
  background: var(--portal-base);
}
html.portal-home[data-home-style="cinema"] body::before { display: none; }
html.portal-home[data-home-style="cinema"] body .pa-fixed-header {
  background: #0c1520ed !important; box-shadow: 0 1px #b9dbd334;
}
[data-home-style="cinema"] .portal-header-decoration { display: none; }
[data-home-style="cinema"] .portal-header-bar { --portal-flag-inset: clamp(.6rem,3vw,3.6rem); }
[data-home-style="cinema"] .portal-language-tiles { border-inline-start: 0; }
[data-home-style="cinema"] .portal-header-bar :is(.portal-account,.portal-language-toggle) {
  border-color: #9bb9be70; background: #1a2938; color: #eef4ef;
}
[data-home-style="cinema"] #portal-navigation .portal-nav-button { border-inline-start-color: #b5d6e026; }
[data-home-style="cinema"] #portal-navigation .portal-nav-button:hover { box-shadow: inset 0 -2px #b1e0d3; }
html.portal-home[data-home-style="cinema"] body .stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .68fr);
  align-items: end;
  align-content: center;
  gap: 1.5rem;
  height: auto !important;
  min-height: max(42rem, 100svh);
  padding: calc(var(--portal-header-height) + 2.7rem) calc((100% - var(--cinema-shell)) / 2) 5.6rem !important;
  background: #0c1620;
}
html.portal-home[data-home-style="cinema"] body .stage::after {
  z-index: 3;
  background: linear-gradient(90deg,#09121eca 0%,#09121e8a 28%,transparent 58%,#0a131e48 100%),
    linear-gradient(0deg,#09121e 0%,transparent 46%);
}
html.portal-home[data-home-style="cinema"] body .stage > :is(.pa-v12-hero,.pa-v14-day-brand,.pa-v12-copy,.hit,.concept) {
  display: none !important;
}
[data-home-style="cinema"] .cinema-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
[data-home-style="cinema"] .cinema-scene > div { position: absolute; inset: 0; }
[data-home-style="cinema"] .cinema-painting {
  position: absolute; inset: 0;
  background: url('/site-media/legend-cinema-video-poster.webp?v=2') center / cover no-repeat;
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  [data-home-style="cinema"]:not([data-cinema-paused]) .cinema-scenery {
    transform: translate3d(0, var(--cinema-scroll-offset, 2%), 0) scale(1.06);
  }
}
[data-home-style="cinema"] .cinema-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0; transition: opacity .45s ease;
}
[data-home-style="cinema"] .cinema-video[data-playing] { opacity: 1; }
.cinema-video-status {
  position: absolute; z-index: 8; top: calc(var(--portal-header-height) + .55rem);
  left: max(1rem, calc((100% - var(--cinema-shell)) / 2)); width: min(19rem, 55vw);
  display: grid; gap: .4rem; padding: .48rem .68rem; border: 1px solid var(--cinema-glass-edge);
  border-radius: .55rem; background: #102033db; color: #e4f0ec;
  box-shadow: var(--cinema-glass-shadow); font: 600 .78rem/1.3 var(--pa-home-font, system-ui, sans-serif);
}
.cinema-video-status[hidden], .cinema-video-status [hidden] { display: none; }
.cinema-video-status progress {
  width: 100%; height: .27rem; accent-color: #9fdacf;
}
.cinema-video-status button {
  justify-self: start; min-height: 32px; padding: .25rem .55rem; font: inherit;
  color: #152d32; background: #b9e4d8; border: 1px solid #c5ebe2; border-radius: .35rem; cursor: pointer;
}
@media (max-width: 760px) {
  [data-home-style="cinema"] .cinema-video-status {
    width: min(19rem, calc(100% - 2rem));
    box-sizing: border-box;
  }
}
[data-home-style="cinema"] .cinema-mist {
  background: radial-gradient(ellipse at 46% 65%, #a9d7d54d, transparent 64%),
    radial-gradient(ellipse at 75% 35%,#649dad44,transparent 58%);
}
[data-home-style="cinema"] .cinema-glow {
  background: radial-gradient(ellipse at 52% 67%, #db9f6847, transparent 36%);
  mix-blend-mode: screen;
}
[data-home-style="cinema"] .cinema-embers i {
  position: absolute; left: var(--ember-x); top: var(--ember-y);
  width: 3px; height: 3px; border-radius: 50%; background: #ffd399; box-shadow: 0 0 8px 2px #eb9558;
  opacity: .38;
}
[data-home-style="cinema"] .cinema-intro {
  display: grid; grid-column: 1; grid-row: 1; justify-items: start; gap: clamp(.7rem, 1.5vw, 1.35rem);
  position: relative; z-index: 6; min-width: 0;
  color: var(--cinema-ink);
  text-shadow: 0 3px 12px #03070b;
}
[data-home-style="cinema"] .cinema-intro > img { display: block; width: clamp(12rem, 20vw, 24rem); max-width: 100%; height: auto; }
[data-home-style="cinema"] .cinema-intro h1 {
  margin: 0; max-width: 14ch; font: 600 clamp(2.5rem, 4vw, 7rem)/.99 var(--pa-home-font, Georgia,serif); letter-spacing: -.035em;
  text-wrap: balance; color: #fff0d9;
}
[data-home-style="cinema"] .cinema-edition {
  display: flex; align-items: center; gap: .6rem; margin: 0; color: #b9e1de;
  font: 680 clamp(.75rem, .77vw, 1.05rem)/1.3 var(--pa-home-font, system-ui,sans-serif); letter-spacing: .14em;
}
[data-home-style="cinema"] .cinema-edition span { width: 1.6rem; height: 1px; background: #9ecbbf; }
[data-home-style="cinema"] .cinema-description {
  max-width: 34ch; margin: 0; color: #e4ebe8; font: 500 clamp(1rem, 1.16vw, 1.5rem)/1.53 var(--pa-home-font, system-ui,sans-serif);
}
[data-home-style="cinema"] .cinema-entry { display: flex; gap: .58rem; flex-wrap: wrap; }
[data-home-style="cinema"] .cinema-entry a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .72rem 1.05rem;
  border-radius: 7px; border: 1px solid #a9d4d078; text-decoration: none; color: #f5feff; background: #122331e8;
  font: 720 clamp(.91rem, .94vw, 1.14rem)/1.2 var(--pa-home-font, system-ui,sans-serif); text-shadow: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
[data-home-style="cinema"] .cinema-entry .cinema-register { color: #152d32; background: #9fdacf; border-color: #b0e7db; }
[data-home-style="cinema"] .cinema-entry a:hover { box-shadow: 0 0 1.2rem #8edacd4f; }
html.portal-home[data-home-style="cinema"] body .stage > .legend-hero-actions {
  --cinema-status-inset: clamp(0px, 3.75vw, 110px);
  grid-column: 2; grid-row: 1; justify-self: end;
  position: relative !important; inset: auto !important;
  width: min(calc(100% - var(--cinema-status-inset)), 39rem) !important; margin-inline-end: var(--cinema-status-inset);
}
[data-home-style="cinema"] .legend-hero-actions :is(.legend-start,.legend-domain) { display: none; }
html[data-home-style="cinema"] .legend-hero-actions .legend-stats {
  width: 100%; padding: .2rem .8rem .6rem; color: #f9eedb; border: 1px solid #9fbab761; border-radius: 13px;
  background: var(--cinema-glass); box-shadow: var(--cinema-glass-shadow); backdrop-filter: blur(16px) saturate(135%);
  text-shadow: 0 1px 3px #000;
}
[data-home-style="cinema"] .legend-stats dl { grid-template-columns: repeat(3, minmax(0,1fr)); min-height: 0; }
[data-home-style="cinema"] .legend-stats dl > div { padding: .75rem .16rem; }
[data-home-style="cinema"] .legend-stats dl > .legend-stats-world { grid-column: 1 / -1; padding: .9rem .2rem; border-bottom: 1px solid var(--cinema-line); }
[data-home-style="cinema"] .legend-stats dl > div:nth-child(2) { border-inline-start: none; }
[data-home-style="cinema"] .legend-stats :is(dt,dd) { text-align: center; }
[data-home-style="cinema"] .legend-stats dd { font-size: clamp(1rem, 1.32vw, 1.5rem); }
[data-home-style="cinema"] .legend-world-identity {
  color: #ace2d6;
  font: 400 clamp(1rem, 5.3cqw, 1.75rem)/1.15 var(--pa-home-font, Georgia, serif);
  letter-spacing: .045em;
  text-wrap: balance;
}
[data-home-style="cinema"] .legend-world-date { font-size: clamp(.72rem, .88vw, 1rem); }
@media (width >= 1700px) {
  html.portal-home[data-home-style="cinema"] body .stage > .legend-hero-actions { width: 39rem !important; }
}

[data-home-style="cinema"] .legend-benefits {
  align-items: stretch; padding-block: .75rem; background: #12222c; border-color: var(--cinema-line); box-shadow: none;
}
html.portal-home[data-home-style="cinema"] body #portal-hall.legend-worlds {
  max-width: var(--cinema-shell); background: transparent; overflow: visible;
  --world-gold: var(--cinema-ink); --world-text: var(--cinema-muted); --world-edge: var(--cinema-line);
}
[data-home-style="cinema"] .world-crown,
[data-home-style="cinema"] .world-intro::before,
[data-home-style="cinema"] .world-intro::after { display: none; }
[data-home-style="cinema"] #portal-hall .world-layout {
  display: grid; gap: clamp(.8rem, 2vw, 2.5rem); aspect-ratio: auto; margin: 0;
  padding: clamp(1.15rem, 2.65vw, 3.25rem) 0 clamp(2.1rem, 5vw, 6rem); background: none;
}
[data-home-style="cinema"] #portal-hall :is(.world-intro,.world-server-link,.world-server-name,.world-feature-copy,.world-feature-link) {
  position: relative; inset: auto; height: auto; width: auto; clip-path: none; padding: 0;
}
[data-home-style="cinema"] #portal-hall .world-intro { text-align: start; display: grid; justify-items: start; gap: .35rem; }
[data-home-style="cinema"] #portal-hall .world-intro p { font: 700 .84rem var(--pa-home-font, system-ui,sans-serif); color: #abe2d4; text-align: start; }
[data-home-style="cinema"] #portal-hall .world-intro h2 { font-size: clamp(2rem,3.2vw,4rem); text-align: start; text-transform: none; }
[data-home-style="cinema"] #portal-hall .world-server {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: 0; padding: clamp(.8rem,2vw,1.7rem); max-width: none;
  border: 1px solid var(--cinema-line); border-radius: 12px;
  background: linear-gradient(110deg,#142431,#102b32);
}
[data-home-style="cinema"] .world-server::before { display: none; }
[data-home-style="cinema"] #portal-hall .world-server-name { font: 700 clamp(1.65rem,3vw,3.5rem)/1 var(--pa-home-font, Georgia,serif); margin: 0; }
[data-home-style="cinema"] #portal-hall .world-features {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; width: auto; max-width: none; margin: 0;
}
[data-home-style="cinema"] #portal-hall .world-feature {
  display: flex; flex-direction: column; align-items: start; padding: 0 .85rem .85rem; gap: .65rem; overflow: hidden;
  border: 1px solid var(--cinema-line); border-radius: 13px; box-shadow: none; background: var(--cinema-card);
}
[data-home-style="cinema"] .world-feature::before {
  content: ''; display: block; width: calc(100% + 1.7rem); margin-inline: -.85rem; aspect-ratio: 2.18;
  background: linear-gradient(0deg,var(--cinema-card),transparent 50%), var(--cinema-feature) center / cover no-repeat;
}
[data-home-style="cinema"] [data-world-feature="buff"] { --cinema-feature: url('/site-media/legend-buff.webp'); }
[data-home-style="cinema"] [data-world-feature="farm"] { --cinema-feature: url('/site-media/legend-farm.webp'); }
[data-home-style="cinema"] [data-world-feature="mode"] { --cinema-feature: url('/site-media/legend-mode.webp'); }
[data-home-style="cinema"] [data-world-feature="trade"] { --cinema-feature: url('/site-media/legend-market.webp'); }
[data-home-style="cinema"] #portal-hall .world-feature-copy { flex: 1; text-align: start; }
[data-home-style="cinema"] #portal-hall .world-feature :is(h3,p) { text-align: start; }
[data-home-style="cinema"] #portal-hall .world-feature h3 { font-size: clamp(1.03rem,1.32vw,1.6rem); }
[data-home-style="cinema"] #portal-hall .world-feature p { font: 500 clamp(.84rem,.88vw,1.05rem)/1.45 var(--pa-home-font, system-ui,sans-serif); }
[data-home-style="cinema"] #portal-hall .world-link {
  min-height: 42px; margin: 0; padding: .45rem .65rem; border: 1px solid var(--cinema-line);
  border-radius: 7px; background: #192b39; font: 650 clamp(.77rem,.78vw,.93rem)/1.2 var(--pa-home-font, system-ui,sans-serif);
}
[data-home-style="cinema"] .pa-layout {
  max-width: none !important; margin-inline: auto; background: var(--cinema-surface);
}
[data-home-style="cinema"] .pa-layout > :not(.legend-benefits) {
  max-width: var(--cinema-shell); margin-inline: auto;
}
html[data-home-style="cinema"] .pa-layout #pa-exchange.pa-marketplace {
  --pa-market-accent: #ace2d6; --pa-market-accent-soft: #eaf8f1; --pa-market-accent-deep: #567b83;
  --pa-market-text: #e2edef; --pa-market-muted: #b4cacd; --bx-stroke: #9ac2bd68;
}
html[data-home-style="cinema"] #pa-exchange .b26-market-listings {
  border-radius: 14px; background: linear-gradient(145deg,#122130f4,#142a34ef); box-shadow: none;
}
[data-home-style="cinema"] #pa-exchange :is(.b26-lot,.b27-quick) { border-radius: 9px; }
[data-home-style="cinema"] .portal-footer {
  background: #10202a; color: #ebf2ef; border-color: var(--cinema-line);
}

@media (max-width: 760px) {
  html.portal-home[data-home-style="cinema"] { --cinema-shell: calc(100% - 1.6rem); }
  html.portal-home[data-home-style="cinema"] body .stage {
    grid-template-columns: minmax(0,1fr); align-content: end; gap: .9rem;
    padding: max(18rem,38svh) .8rem 5.8rem !important; min-height: 100svh;
  }
  html.portal-home[data-home-style="cinema"] body .stage::after {
    background: linear-gradient(0deg,#0b1721 2%,#0b1721cd 48%,#101c2760 80%,transparent);
  }
  [data-home-style="cinema"] .cinema-intro { gap: .55rem; }
  [data-home-style="cinema"] .cinema-intro > img { width: 11rem; }
  html.portal-home[data-home-style="cinema"] body .stage > .legend-hero-actions {
    --cinema-status-inset: 0px;
    grid-column: 1; grid-row: 2; justify-self: start;
  }
  [data-home-style="cinema"] #portal-hall .world-features { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (560px <= width <= 900px) and (height <= 500px) and (orientation: landscape) {
  html.portal-home[data-home-style="cinema"] body .stage {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-content: center; gap: .9rem; min-height: 100svh;
    padding: calc(var(--portal-header-height) + 1.2rem) max(1rem, env(safe-area-inset-right)) 4.2rem
      max(1rem, env(safe-area-inset-left)) !important;
  }
  [data-home-style="cinema"] .cinema-intro { gap: .5rem; }
  [data-home-style="cinema"] .cinema-intro > img { width: 10rem; }
  [data-home-style="cinema"] .cinema-intro h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); }
  [data-home-style="cinema"] .cinema-description { font-size: .9rem; line-height: 1.35; }
  [data-home-style="cinema"] .cinema-entry a { min-height: 44px; padding: .5rem .7rem; }
  html.portal-home[data-home-style="cinema"] body .stage > .legend-hero-actions {
    --cinema-status-inset: 0px;
    grid-column: 2; grid-row: 1; justify-self: end;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-home-style="cinema"] .cinema-mist { animation: cinema-mist 12s ease-in-out infinite alternate; }
  [data-home-style="cinema"] .cinema-glow { animation: cinema-glow 8s ease-in-out infinite alternate; }
  [data-home-style="cinema"] .cinema-embers i { animation: cinema-ember var(--ember-cycle) var(--ember-phase) linear infinite; }
  [data-home-style="cinema"][data-cinema-paused] .cinema-scene :is(div,i) { animation-play-state: paused; }
  [data-home-style="cinema"]:not([data-cinema-paused]) body:not(:has(#portal-preloader)) :is(.cinema-intro,.stage > .legend-hero-actions) {
    animation: cinema-arrival 750ms cubic-bezier(.17,.74,.23,1) both;
  }
  [data-home-style="cinema"]:not([data-cinema-paused]) .cinema-reveal { animation: cinema-arrival 600ms cubic-bezier(.17,.74,.23,1) both; }
}
@keyframes cinema-mist { from { transform: scale(1.06) translateX(-4%); opacity: .31; } to { transform: scale(1.18) translateX(4%); opacity: .92; } }
@keyframes cinema-glow { from { opacity: .16; } to { opacity: .58; } }
@keyframes cinema-ember { 0% { transform: translate(0,24px); opacity: 0; } 45% { opacity: .85; } 100% { transform: translate(24px,-88px); opacity: 0; } }
@keyframes cinema-arrival { from { opacity: .45; translate: 0 15px; } to { opacity: 1; translate: 0 0; } }

/* Cinematic navigation and the same interface surfaces throughout the home page. */
html[data-home-style="cinema"] {
  --cinema-action: #b9e4d8;
  --cinema-heading: #ffeed4;
  --cinema-glass: linear-gradient(155deg, #dcfaff1f, transparent 48%), #101c2aa8;
  --cinema-glass-mobile: linear-gradient(155deg, #d6f6ff19, transparent 55%), #0d1b28ed;
  --cinema-glass-edge: #c8f0ec55;
  --cinema-glass-shadow: inset 0 1px #f0ffff21, 0 8px 22px #050a1266;
  --portal-header-overhang: .5rem;
}
html.portal-home[data-home-style="cinema"] body .pa-fixed-header {
  background: transparent !important;
  box-shadow: none;
}
[data-home-style="cinema"] .cinema-header-bar {
  --account-rim: #a1c8c77a;
  --account-glass: #1b3140;
  --account-depth: #111f2d;
  --account-spark: #e2f4f1;
  --account-aura: #8fcac646;
  color: #e8f0ed;
}
[data-home-style="cinema"] .cinema-header-bar .portal-theme-indicator { display: none; }
[data-home-style="cinema"] .cinema-header-bar .portal-brand img { width: clamp(7rem, 10.8vw, 13rem); }
[data-home-style="cinema"] .cinema-header-play {
  display: none; flex: none; white-space: nowrap; padding: .62rem .85rem;
  border: 1px solid #c5ebe2; border-radius: .45rem;
  color: #112b2e; background: var(--cinema-action);
  font: 740 clamp(.8rem, .78vw, 1.02rem)/1.2 system-ui,sans-serif;
}
[data-home-style="cinema"] .cinema-header-play:hover { color: #112b2e; background: #d4f3e8; }
[data-home-style="cinema"] .cinema-header-bar :is(.portal-account,.portal-menu-toggle,.portal-language-toggle) {
  background: var(--cinema-glass); border-color: var(--cinema-glass-edge); border-radius: .66rem;
  box-shadow: var(--cinema-glass-shadow); backdrop-filter: blur(14px) saturate(135%);
}
html[data-home-style="cinema"] #portal-navigation .portal-nav-button {
  min-height: 44px; height: auto; border: 1px solid transparent; border-radius: .38rem;
  font: 650 clamp(.81rem, .92vw, 1.08rem)/1.12 system-ui,sans-serif;
  box-shadow: none; text-shadow: none; padding-inline: clamp(.22rem, .7vw, 1rem);
}
html[data-home-style="cinema"] #portal-navigation .portal-nav-button[aria-current="page"] {
  background: #a1dfcd25; border-color: #b4eadd55; color: #e0fff3;
}
html[data-home-style="cinema"] #portal-navigation .portal-nav-button:is(:hover, :focus-visible) {
  background: #a1dfcd33; color: #fff; box-shadow: none;
}
@media (min-width: 901px) {
  html[data-home-style="cinema"] #portal-navigation {
    padding: .25rem; gap: .12rem; border: 1px solid var(--cinema-glass-edge); border-radius: .8rem;
    background: var(--cinema-glass); box-shadow: var(--cinema-glass-shadow);
    backdrop-filter: blur(16px) saturate(140%);
  }
  html[data-home-style="cinema"] #portal-navigation .portal-nav-button { block-size: clamp(44px, 2.9vw, 59px); }
}
@media (min-width: 1650px) {
  [data-home-style="cinema"] .cinema-header-play { display: inline-flex; }
}
@media (max-width: 900px) {
  html.portal-home[data-home-style="cinema"] body .pa-fixed-header {
    background: #0c1929b8 !important; box-shadow: 0 1px var(--cinema-glass-edge);
    backdrop-filter: blur(12px) saturate(130%);
  }
  html[data-home-style="cinema"] #portal-navigation {
    inset: calc(100% + .38rem) clamp(.55rem, 3vw, 2rem) auto;
    background: var(--cinema-glass-mobile); border-radius: .85rem; border-color: var(--cinema-glass-edge);
    box-shadow: var(--cinema-glass-shadow); backdrop-filter: blur(18px) saturate(140%); gap: .18rem; padding: .45rem;
  }
  html[data-home-style="cinema"] #portal-navigation .portal-nav-button { padding-inline: .85rem; }
  html[data-home-style="cinema"] body:has(.portal-menu-toggle[aria-expanded="true"]) .portal-scene-dock { visibility: hidden; }
}
html[data-home-style="cinema"] .pa-layout #pa-exchange.pa-marketplace { --bx-stroke: #9ac2bd68; background: #0c1a24 !important; }
html[data-home-style="cinema"] #pa-exchange :is([data-b26-filter],[data-b27-quick]) {
  border: 1px solid #99c4c26e; border-radius: .45rem;
  background: #162b39; color: #e8f4ed; box-shadow: none;
}
html[data-home-style="cinema"] #pa-exchange [data-b26-filter][aria-pressed="true"] { background: #a8d8ce; color: #11292c; }
html[data-home-style="cinema"] #pa-exchange :is([data-b26-filter],[data-b27-quick])::before { display: none; }
[data-home-style="cinema"] .cinema-footer {
  padding-inline: max(.8rem, calc((100% - var(--cinema-shell)) / 2));
  font: 550 .91rem/1.5 var(--pa-home-font, system-ui,sans-serif);
}
[data-home-style="cinema"] .cinema-footer a { color: #dceee9; }

@media (prefers-reduced-motion: no-preference) {
  html[data-home-style="cinema"] .portal-menu-toggle[aria-expanded="true"] + #portal-navigation {
    animation: cinema-menu-in .24s ease-out both;
  }
}
@keyframes cinema-menu-in { from { opacity: .3; translate: 0 -5px; } to { opacity: 1; translate: 0; } }

html[data-home-style="cinema"] body .portal-scene-dock { width: auto; right: max(.6rem, env(safe-area-inset-right)); }
html[data-home-style="cinema"] body .portal-scene-dock > .pa-time-panel {
  display: grid !important; gap: .18rem; padding: .24rem; width: auto !important; height: auto !important;
  aspect-ratio: auto; border: 1px solid #a1c8c77a; border-radius: .6rem;
  background: #0d1a27c9 !important; background-image: none !important;
  box-shadow: var(--cinema-glass-shadow); backdrop-filter: blur(14px) saturate(135%);
}
html[data-home-style="cinema"] body .portal-scene-dock > .pa-time-panel :is(button,button:hover) {
  position: static !important; inset: auto !important; display: grid !important; place-items: center;
  width: 40px !important; height: 40px !important; margin: 0 !important; padding: 0;
  border: 1px solid transparent !important; border-radius: .38rem;
  background: none !important; box-shadow: none !important; color: #e1f0ee;
}
html[data-home-style="cinema"] body .portal-scene-dock > .pa-time-panel button:is(:hover,[aria-pressed="true"]) {
  background: #96c9c532 !important; border-color: #a6d6cb60 !important; color: #e5fff7;
}
html[data-home-style="cinema"] body .portal-scene-dock > .pa-time-panel > button:has(> .portal-scene-icon)::before,
html[data-home-style="cinema"] body .portal-scene-dock > .pa-time-panel > button:has(> .portal-scene-icon)::after {
  content: none !important; display: none !important;
}
html[data-home-style="cinema"] body .portal-scene-dock > .pa-time-panel > button > .portal-scene-icon {
  display: block; position: static; color: #e1f0ee; visibility: visible; opacity: 1;
}

/* The lower page continues the hero's illustrated scenes and glass surfaces. */
html.portal-home[data-home-style="cinema"] body { background: #0a1520 !important; }
@media (min-width: 901px) {
  html.portal-home[data-home-style="cinema"][data-cinema-scrolled] body .pa-fixed-header {
    background: #0b1724a3 !important; backdrop-filter: blur(16px);
  }
}
[data-home-style="cinema"] .pa-v5-divider svg,
[data-home-style="cinema"] .pa-v5-divider::after { display: none; }
[data-home-style="cinema"] .pa-v5-divider::before {
  left: 0; width: 100%; height: 1px; background: linear-gradient(90deg,transparent,#79a9ab66,transparent);
}
html[data-home-style="cinema"] .pa-layout #pa-exchange.pa-marketplace {
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1101px) {
  html[data-home-style="cinema"] #pa-exchange .b26-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
html[data-home-style="cinema"] .pa-layout #pa-exchange.pa-marketplace::before,
html[data-home-style="cinema"] .pa-layout #pa-exchange.pa-marketplace::after,
html[data-home-style="cinema"] #pa-exchange .pa-market-illustration { display: none !important; }
html[data-home-style="cinema"] #pa-exchange .b26-feature :is(.b26-intro,.b26-hall) {
  border: 1px solid var(--cinema-glass-edge); border-radius: .9rem; padding: clamp(.8rem,2vw,2rem);
  background: var(--cinema-glass); backdrop-filter: blur(10px); box-shadow: var(--cinema-glass-shadow);
}
html[data-home-style="cinema"] #pa-exchange .b26-feature .b26-hall {
  width: 100%; min-height: 0; padding: clamp(.48rem,1vw,1.2rem);
}
html[data-home-style="cinema"] #pa-exchange .b26-hall-sigil {
  display: block; width: 100%; height: auto; aspect-ratio: 1958 / 803;
  margin: 0 0 .75rem; overflow: hidden; border-radius: .55rem;
}
@media (max-width: 620px) {
  html[data-home-style="cinema"] #pa-exchange .b26-hall-sigil { aspect-ratio: 1.64; }
  html[data-home-style="cinema"] #pa-exchange .b29-hall-scene { object-fit: cover; object-position: center; }
}
html[data-home-style="cinema"] #pa-exchange .b26-feature .b26-hall::before,
html[data-home-style="cinema"] #pa-exchange .b26-feature .b26-hall::after { display: none; }
html[data-home-style="cinema"] #pa-exchange :is(.b26-filter button.pa-v6-forge,.b26-item-open.pa-v6-forge,.b27-hall-six button) {
  background: #1d3644 !important; border: 1px solid var(--cinema-glass-edge) !important;
  border-radius: .52rem !important; color: #e8f4ed !important;
  text-shadow: none !important; transition: background-color 150ms ease !important;
}
html[data-home-style="cinema"] #pa-exchange :is(.b26-filter button.pa-v6-forge,.b26-item-open.pa-v6-forge)::before { display: none !important; }
html[data-home-style="cinema"] #pa-exchange [data-b26-filter][aria-pressed="true"] {
  background: #b9e4d8 !important; color: #142c31 !important;
}
html[data-home-style="cinema"] #pa-exchange :is(.b26-filter,.b27-hall-six) button:hover { filter: brightness(1.12) !important; transform: none !important; }
html[data-home-style="cinema"] #pa-exchange .b26-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 1vw, .9rem);
  justify-items: stretch !important;
}
html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge {
  min-width: 0;
  margin: 0;
  padding-inline: .55rem !important;
  gap: .4rem !important;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  font: 700 clamp(.875rem, 1.05vw, 1.375rem)/1.2 system-ui, sans-serif;
  letter-spacing: normal;
  text-transform: none !important;
  border: 1px solid var(--cinema-glass-edge) !important;
  border-radius: .55rem !important;
  background: #152b3a !important;
  color: #e8f4ed !important;
  text-shadow: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}
html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge::before { display: none !important; }
html[data-home-style="cinema"] #pa-exchange .b26-cta > .b26-main-button.pa-v6-forge {
  background: var(--cinema-frame) !important;
  color: #152d32 !important;
}
html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge:is(:hover,:focus-visible) {
  border-color: var(--cinema-frame) !important;
  box-shadow: 0 0 1rem #8edacd4f !important;
}
html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge:active { opacity: .85; }
html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge > span {
  font: inherit !important;
  letter-spacing: inherit !important;
}
html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge b {
  color: currentColor !important;
  font-size: 1em !important;
  flex: none;
}
@media (max-width: 480px) {
  html[data-home-style="cinema"] #pa-exchange .b26-cta {
    grid-template-columns: minmax(min-content, 1.17fr) minmax(min-content, 1fr);
    gap: .375rem;
  }
  html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge { padding-inline: .25rem !important; }
  html[data-home-style="cinema"] #pa-exchange .b26-cta > a.pa-v6-forge :is(b, svg) { display: none; }
}
@media (max-width: 760px) {
  [data-home-style="cinema"] .cinema-feature-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

html.portal-home[data-home-style="cinema"] body { isolation: isolate; }
[data-home-style="cinema"] .cinema-scene::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,#08132187,transparent 55%,#08132120),
    linear-gradient(0deg,#0a1422c0,transparent 48%);
}
html.portal-home[data-home-style="cinema"] body .stage,
html.portal-home[data-home-style="cinema"] body .pa-layout,
html.portal-home[data-home-style="cinema"] body .pa-layout #pa-files:has(.game-files-catalog),
html.portal-home[data-home-style="cinema"] body .pa-layout #pa-exchange.pa-marketplace {
  background: transparent !important; border-color: transparent;
}
html.portal-home[data-home-style="cinema"] body .pa-layout #pa-files:has(.game-files-catalog)::before,
[data-home-style="cinema"] :is(.pa-landscape-stack,.pa-stage-news-overlap) { display: none; }

/* Download catalog and registration share the cinematic glass surfaces. */
html.portal-home[data-home-style="cinema"] body .pa-layout #pa-files:has(.game-files-catalog) {
  padding-block: clamp(2rem,4vw,5rem) !important;
}
html[data-home-style="cinema"] #pa-files .pa-section-head {
  margin-inline: 0; margin-bottom: clamp(1.25rem,2.4vw,3rem);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-catalog {
  --catalog-metal: var(--cinema-files-accent);
  --catalog-ink: #f2f1ee;
  --catalog-plate: #111a27;
  align-items: start;
  font-family: var(--pa-home-font, system-ui,sans-serif);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-catalog :is(.game-files-panel,.game-files-registration,.game-files-row) {
  border: 1px solid var(--cinema-glass-edge); border-radius: .9rem; clip-path: none;
  background: var(--cinema-glass);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) :is(.game-files-panel,.game-files-registration) {
  padding: clamp(.8rem,2vw,2rem); gap: clamp(.7rem,1vw,1.1rem);
  backdrop-filter: blur(16px) saturate(130%); box-shadow: var(--cinema-glass-shadow);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-catalog :is(.game-files-panel,.game-files-registration,.game-files-row)::after {
  content: none;
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-tabs {
  padding: .3rem; margin: 0; border: 1px solid var(--cinema-glass-edge); border-radius: .65rem;
  background: #091420ad;
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) :is(.game-files-tabs button,.game-files-action,input:not([type="checkbox"]),select) {
  font-family: var(--pa-home-font, system-ui,sans-serif); border-radius: .44rem; box-shadow: none;
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-tabs button { background: transparent; }
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-tabs button:hover { background: #ffffff14; }
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) :is(.game-files-tabs button[aria-pressed="true"],.game-files-submit) {
  background: var(--cinema-files-accent); color: #101822; border-color: transparent;
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-catalog :is(input:not([type="checkbox"]),select) {
  background: #0a1522d9; border-color: var(--cinema-glass-edge);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-row {
  background: linear-gradient(100deg,#ffffff0d,transparent 70%),#0b1623c9;
  border-color: var(--cinema-line);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-copy h3 {
  color: var(--cinema-heading); font: 650 clamp(1rem,1.35vw,1.55rem)/1.15 var(--pa-home-font, system-ui,sans-serif);
  text-shadow: none;
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-registration h3 {
  color: var(--cinema-heading); font: 600 clamp(1.35rem,1.9vw,2.1rem)/1.12 var(--pa-home-font, Georgia,serif);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-registration > p { border-color: var(--cinema-glass-edge); }
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-row .game-files-action {
  background: #b6cbdf1b; border-color: var(--cinema-glass-edge);
}
html[data-home-style="cinema"] :is(#pa-files,.portal-files-page) .game-files-action:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--cinema-files-accent); filter: brightness(1.12);
}
[data-home-style="cinema"] .legend-benefits,
[data-home-style="cinema"] .portal-footer {
  background: #0c1a28b0; border-color: #a4d8d631;
  backdrop-filter: blur(12px);
}

[data-home-style="cinema"] #portal-hall .cinema-world-layout {
  grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
  grid-template-rows: max-content minmax(0,1fr);
  grid-template-areas: "portrait intro" "portrait cards";
  align-items: start;
  column-gap: clamp(.85rem,3.2vw,4.75rem);
  row-gap: clamp(.65rem,1.45vw,1.8rem);
  padding-block-end: clamp(1.5rem,2.5vw,2.75rem);
  max-width: min(100%,125rem); margin-inline: auto;
}
[data-home-style="cinema"] .cinema-world-side {
  grid-area: portrait; align-self: end; display: grid; justify-items: center; gap: .75rem; min-width: 0;
}
[data-home-style="cinema"] .cinema-world-character {
  width: 100%; min-width: 0;
  filter: drop-shadow(0 1rem 1.65rem #050f18aa);
}
[data-home-style="cinema"] .cinema-world-character img {
  display: none; width: 100%; object-fit: contain; object-position: center bottom;
}
@media (width > 760px) {
  [data-home-style="cinema"] .cinema-world-side {
    align-self: stretch;
    grid-template-rows: minmax(0,1fr) auto;
  }
  [data-home-style="cinema"] .cinema-world-character { position: relative; }
  [data-home-style="cinema"] .cinema-world-character img {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}
html[data-home-style="cinema"]:is(:not([data-portal-scene]),[data-portal-scene="day"]) [data-cinema-portrait="day"],
html[data-home-style="cinema"][data-portal-scene="evening"] [data-cinema-portrait="evening"],
html[data-home-style="cinema"][data-portal-scene="night"] [data-cinema-portrait="night"] { display: block; }
[data-home-style="cinema"] #portal-hall .cinema-world-layout .world-intro {
  grid-area: intro; justify-items: start; text-align: start;
}
[data-home-style="cinema"] #portal-hall .cinema-world-layout p.cinema-world-description {
  justify-self: center; max-width: min(100%, 57ch); color: #e7f3f0; text-align: center;
  font: 500 clamp(.91rem,1.1vw,1.22rem)/1.52 var(--pa-home-font, system-ui,sans-serif);
  letter-spacing: normal; text-transform: none; text-wrap: pretty;
}
[data-home-style="cinema"] #portal-hall .cinema-world-layout .world-features {
  grid-area: cards; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.55rem,1vw,1.05rem);
}
[data-home-style="cinema"] #portal-hall .cinema-world-layout .world-feature {
  position: relative; isolation: isolate; min-height: clamp(17.5rem,19.5vw,28rem);
  padding: clamp(.9rem,1.6vw,1.6rem); justify-content: end; gap: .8rem;
  background: #112438; border: 1px solid #c8a4776b;
  border-radius: .8rem; box-shadow: 0 12px 30px #08111d80;
}
[data-home-style="cinema"] .cinema-world-layout .world-feature::before {
  position: absolute; inset: 0; z-index: -1; width: 100%; margin: 0; aspect-ratio: auto;
  background: linear-gradient(0deg,#0c1928fa 3%,#0c1928cf 36%,transparent 82%),
    var(--cinema-feature) center 35% / cover no-repeat;
}
[data-home-style="cinema"] #portal-hall .cinema-world-layout .world-feature-copy {
  display: grid; gap: .55rem; flex: none; padding: 0;
}
[data-home-style="cinema"] #portal-hall .cinema-world-layout .world-feature h3 {
  margin: 0; color: #fff0d7; line-height: 1.18;
}
[data-home-style="cinema"] #portal-hall .cinema-world-layout .world-server {
  justify-content: center; padding: .7rem 1rem;
  background: var(--cinema-glass); backdrop-filter: blur(12px);
}
[data-home-style="cinema"] .cinema-world-identity {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: .35rem .55rem; color: var(--cinema-heading); font: 650 clamp(1rem,1.6vw,1.75rem)/1.15 var(--pa-home-font, Georgia,serif);
}
[data-home-style="cinema"] #portal-hall .cinema-world-layout .world-server-name { font-size: clamp(1.3rem,2.3vw,2.15rem); }
@media (max-width: 760px) {
  html[data-home-style="cinema"] body .portal-scene-dock {
    top: auto; right: .5rem; bottom: max(.5rem, env(safe-area-inset-bottom));
  }
  html[data-home-style="cinema"] body .portal-scene-dock > .pa-time-panel {
    grid-template-columns: auto;
  }
  html[data-home-style="cinema"] body .cinema-footer {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  }
  [data-home-style="cinema"] #portal-hall .cinema-world-layout {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto;
    grid-template-areas: "intro" "cards" "portrait";
  }
  [data-home-style="cinema"] .cinema-world-character { width: min(75%,16rem); }
  [data-home-style="cinema"] .cinema-world-character img { height: min(75vw,19rem); }
  [data-home-style="cinema"] #portal-hall .cinema-world-layout .world-intro h2 {
    font-size: clamp(1.55rem,7.3vw,2.5rem); white-space: normal; text-wrap: balance;
  }
}
@media (max-width: 520px) {
  [data-home-style="cinema"] #portal-hall .cinema-world-layout .world-features {
    grid-template-columns: minmax(0,1fr);
  }
}


html[data-home-style="cinema"][data-portal-scene="day"] {
  --cinema-panorama-grade: saturate(.86) brightness(.84);
  --cinema-scene-tint: #ba7e372b;
  --cinema-glass: linear-gradient(155deg,#ffe9bb25,transparent 52%),#1d2330ba;
  --cinema-glass-edge: #ead1a05f;
  --cinema-heading: #fff0d4;
  --cinema-files-accent: #f1d9ae;
}
html[data-home-style="cinema"][data-portal-scene="evening"] {
  --cinema-panorama-grade: saturate(.94);
  --cinema-scene-tint: #aa4d4538;
  --cinema-glass: linear-gradient(155deg,#ffc4a223,transparent 52%),#252033bb;
  --cinema-glass-edge: #e5ab9960;
  --cinema-heading: #ffe8db;
  --cinema-files-accent: #f4c0a8;
}
html[data-home-style="cinema"][data-portal-scene="night"] {
  --cinema-panorama-grade: saturate(.93) brightness(.98);
  --cinema-scene-tint: #42387933;
  --cinema-glass: linear-gradient(155deg,#bfcdff2b,transparent 53%),#101d33ba;
  --cinema-glass-edge: #c1c9f85c;
  --cinema-heading: #f2ecff;
  --cinema-files-accent: #d6d0f7;
}
[data-home-style="cinema"] :is(.cinema-painting,.cinema-video) { filter: var(--cinema-panorama-grade, none); }
[data-home-style="cinema"] .cinema-scene::after {
  background: linear-gradient(90deg,#06101c9f,transparent 55%,#08132129),
    linear-gradient(0deg,#0a142297,transparent 51%), var(--cinema-scene-tint, transparent);
}
[data-home-style="cinema"] .cinema-world-layout .world-intro h2 { color: var(--cinema-heading); text-shadow: 0 3px 15px #06111c; }

html[data-home-style="cinema"] body.portal-interior.portal-files-art::before {
  background: linear-gradient(180deg,#08142072,#091018f4), url('/site-media/legend-cinema-video-poster.webp?v=2') center / cover no-repeat;
}
html[data-home-style="cinema"] body.portal-auth-page::before {
  background:
    linear-gradient(90deg, #0a142192, #0a142141 42%, #08131fd9),
    linear-gradient(0deg, #08121f, transparent 62%),
    linear-gradient(var(--cinema-scene-tint, transparent), var(--cinema-scene-tint, transparent)),
    url('/site-media/legend-cinema-video-poster.webp?v=2') center / cover no-repeat;
}
body.portal-auth-page #root { padding-inline-end: 0; }
.portal-auth-page #main-content {
  width: min(100%, 86rem);
  padding: clamp(2.2rem, 5vw, 6rem) clamp(3.25rem, 5vw, 5.5rem) clamp(5rem, 8vw, 8rem);
}
.portal-auth-page .auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.portal-auth-page .auth-brand {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: clamp(.65rem, 2vw, 1.4rem);
}
.portal-auth-page .auth-edition {
  display: flex; align-items: center; gap: .75rem; margin: 0;
  font: 700 clamp(.76rem, 1.25vw, 1rem)/1.25 Georgia, serif;
  letter-spacing: .14em; text-transform: uppercase; color: #ffe6b9;
}
.portal-auth-page .auth-edition span {
  width: 2rem; height: 1px; background: linear-gradient(90deg, transparent, #e9bd76, transparent);
}
.portal-auth-page .auth-brand a { display: block; width: min(100%, 29rem); }
.portal-auth-page .auth-brand img { display: block; width: 100%; height: auto; }
html[data-home-style="cinema"] .portal-auth-page .auth-panel {
  width: 100%;
  max-width: 34rem;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2.65rem);
  border: 1px solid var(--cinema-glass-edge);
  border-radius: .85rem;
  background:
    linear-gradient(90deg, transparent, #f5d18a, transparent) center top / 68% 1px no-repeat,
    linear-gradient(150deg, color-mix(in srgb, var(--cinema-files-accent) 10%, transparent), transparent 58%),
    #101b29ed;
  color: #fcf1dd;
  box-shadow: var(--cinema-glass-shadow);
  backdrop-filter: blur(16px) saturate(130%);
}
.portal-auth-page .auth-panel h1 {
  color: var(--cinema-heading);
  font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.14; text-wrap: balance;
  padding-bottom: 1rem; margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--cinema-glass-edge);
}
.portal-auth-page .auth-panel form { gap: 1rem; }
.portal-auth-page .auth-panel label { font-size: .95rem; }
html[data-home-style="cinema"] .portal-auth-page .auth-panel input:not(:where([type="checkbox"],[type="radio"])) {
  min-height: 3rem;
  background: #0a1523d9;
  border-color: var(--cinema-glass-edge);
  border-radius: .5rem;
  color: #fcf1dd;
}
html[data-home-style="cinema"] .portal-auth-page .auth-panel .button.primary {
  --entry-cut: .85rem;
  position: relative; isolation: isolate;
  width: 100%; min-height: 3.3rem; padding-inline: 1.7rem;
  background: transparent; border-color: transparent;
  font-weight: 700; text-align: center;
}
html[data-home-style="cinema"] .portal-auth-page .auth-panel a:not(.button) { color: var(--cinema-files-accent); text-underline-offset: .2em; }
html[data-home-style="cinema"] .portal-auth-page .auth-panel .hint { color: #c5cfda; }
.portal-auth-page .auth-panel .auth-switch {
  margin-top: 1.25rem; padding-top: .95rem; border-top: 1px solid var(--cinema-glass-edge);
}
.portal-auth-page .auth-links { justify-content: flex-start; gap: .45rem 1rem; font-size: .9rem; }
@media (max-width: 820px) {
  .portal-auth-page #main-content { padding-inline: clamp(1rem, 4vw, 2rem); }
  .portal-auth-page .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .portal-auth-page .auth-brand { gap: .35rem; }
  .portal-auth-page .auth-brand a { width: min(65%, 15.5rem); }
}
@media (max-width: 520px) {
  .portal-auth-page #main-content { padding-block-start: 1.5rem; }
  .portal-auth-page .auth-layout { gap: .9rem; }
}
html[data-home-style="cinema"] body.portal-interior .pa-fixed-header {
  background: #0c1929c9 !important; box-shadow: 0 1px var(--cinema-glass-edge);
  backdrop-filter: blur(13px) saturate(130%);
}
html[data-home-style="cinema"] .portal-files-page {
  --files-text: var(--cinema-heading);
  --files-muted: var(--cinema-muted);
  --files-accent: var(--cinema-files-accent);
  --files-border: var(--cinema-glass-edge);
  --portal-content-metal: var(--cinema-glass-edge);
}
html[data-home-style="cinema"] .portal-files-page .portal-content-heading {
  min-height: clamp(8.5rem, 15vw, 13rem);
  background: var(--cinema-glass);
  box-shadow: var(--cinema-glass-shadow);
  border-color: var(--cinema-glass-edge); border-radius: .9rem;
  backdrop-filter: blur(12px);
}
html[data-home-style="cinema"] .portal-files-page :is(.portal-breadcrumb a,.portal-content-heading h1) { color: var(--cinema-heading); }
html[data-home-style="cinema"] .portal-guide .knowledge-site {
  --desk-ink: #eceeee;
  --desk-strong: var(--cinema-heading);
  --desk-muted: var(--cinema-muted);
  --desk-link: var(--cinema-files-accent);
  --desk-line: var(--cinema-glass-edge);
  --desk-bar: #102033;
  --desk-paper: #121e2ddd;
  --desk-field: #091526;
  --desk-button: #23364a;
  --desk-hover: #32495f;
  --desk-primary: var(--cinema-files-accent);
  --desk-primary-ink: #101822;
  --desk-focus: #d1ebeb;
}
html[data-home-style="cinema"] .portal-guide .knowledge-site
  :is(.wiki-hero,.wiki-tile,.wiki-side-categories,.wiki-toc,.wiki-side-shortcuts a,.panel) {
  border-color: var(--cinema-glass-edge); border-radius: .85rem;
  box-shadow: var(--cinema-glass-shadow);
}
html[data-home-style="cinema"] .portal-guide .knowledge-site :is(.wiki-toc,.wiki-side-categories,.panel) {
  background: var(--cinema-glass);
  backdrop-filter: blur(10px);
}
html[data-home-style="cinema"] .portal-guide .knowledge-site :is(.wiki-hero,.wiki-tile) { overflow: hidden; }
html[data-home-style="cinema"] .portal-guide .knowledge-site :is(.wiki-side-categories,.wiki-side-shortcuts,.wiki-categories) a {
  display: flex; align-items: center; gap: .5rem;
}
html[data-home-style="cinema"] .portal-guide .knowledge-site .wiki-categories a { justify-content: center; }
html[data-home-style="cinema"] .portal-guide .knowledge-site :is(.wiki-side-categories,.wiki-side-shortcuts,.wiki-categories) .cabinet-icon {
  width: 1.05rem; height: 1.05rem; flex: none; color: var(--cinema-files-accent);
}
@media (prefers-reduced-motion: no-preference) {
  [data-home-style="cinema"] .cinema-painting { transition: filter 440ms ease; }
}

@media (min-width: 2200px) {
  html.portal-home[data-home-style="cinema"] { --cinema-shell: min(88vw,166rem); }
  [data-home-style="cinema"] .legend-stats dt { font-size: .96rem; }
  [data-home-style="cinema"] .legend-stats dd { font-size: 1.65rem; }
  [data-home-style="cinema"] #portal-hall .cinema-world-layout { max-width: min(100%,145rem); }
  html.portal-home[data-home-style="cinema"] body .pa-layout #pa-files:has(.game-files-catalog) {
    padding-block: clamp(2.7rem, 3.3vw, 5.8rem) !important;
    padding-inline: clamp(2.25rem, 3vw, 5rem) !important;
  }
  html[data-home-style="cinema"] #pa-files .game-files-catalog {
    --catalog-row-height: clamp(6.8rem, 3.65vw, 8rem);
    grid-template-columns: minmax(0, 2.3fr) minmax(20rem, 1fr);
    gap: clamp(1rem, 1.05vw, 2.25rem);
  }
  html[data-home-style="cinema"] #pa-files .game-files-row {
    grid-template-columns: clamp(8rem, 4.5vw, 12rem) minmax(0, 1fr) minmax(8rem, .35fr) minmax(10rem, .42fr);
    padding-inline: 1rem;
  }
  html[data-home-style="cinema"] #pa-files .game-files-art { height: 6rem; }
  html[data-home-style="cinema"] #pa-files .game-files-catalog :is(.game-files-copy p, .game-files-meta, .game-files-meta :is(small,time), .game-files-tabs button,.game-files-action) {
    font-size: clamp(1rem, .58vw, 1.22rem);
  }
  html[data-home-style="cinema"] #pa-files :is(.game-files-controls input,.game-files-controls select,.game-files-form input:not([type="checkbox"])) {
    min-height: clamp(45px, 1.65vw, 58px); font-size: clamp(1rem, .6vw, 1.25rem);
  }
  html[data-home-style="cinema"] #pa-exchange .b26-shell { max-width: none; padding-inline: clamp(2.25rem, 3vw, 5rem); }
  html[data-home-style="cinema"] #pa-exchange .b26-intro h3 { font-size: clamp(1.9rem, 1.55vw, 3.1rem); }
  html[data-home-style="cinema"] #pa-exchange .b26-description { font-size: clamp(1.08rem, .64vw, 1.35rem); line-height: 1.54; }
  html[data-home-style="cinema"] #pa-exchange .b27-hall-six button { font-size: clamp(.84rem, .5vw, 1.04rem); }
}

html.portal-home[data-home-style="cinema"] :is(#worlds-heading, #pa-files-title, #pa-exchange-title, #pa-home-events-title) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(.45rem, 1.05vw, 1.15rem);
  margin: 0;
  font: 400 clamp(1.32rem, 2.2vw, 3.6rem)/1.15 var(--pa-home-font, Georgia, serif);
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}
html.portal-home[data-home-style="cinema"] :is(#worlds-heading, #pa-files-title, #pa-exchange-title, #pa-home-events-title)::before,
html.portal-home[data-home-style="cinema"] :is(#worlds-heading, #pa-files-title, #pa-exchange-title, #pa-home-events-title)::after {
  flex: 0 0 clamp(1.2rem, 5.5vw, 6.25rem);
  height: .72rem;
}
html.portal-home[data-home-style="cinema"] :is(#worlds-heading, #pa-files-title, #pa-exchange-title, #pa-home-events-title) .pa-unified-title {
  min-width: 0;
  font: inherit;
  letter-spacing: inherit;
  background-image: linear-gradient(180deg, #f4fff9, #ace2d6 47%, #658e97 56%, #eaf8f1);
  filter: drop-shadow(0 2px 3px #080e17);
}
html.portal-home[data-home-style="cinema"] :is(#portal-hall .world-intro > p:first-child, .pa-section-head > .pa-kicker) {
  width: 100%;
  margin: 0 0 .45rem;
  color: #ace2d6 !important;
  font: 700 clamp(.64rem, .95vw, .94rem)/1.25 var(--pa-home-font, Georgia, serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
