:root {
  --accent: #85ddff;
  --muted: #b1c2d0;
  --edge-light: #73bde8;
  --panel-base: #101e2b;
  --motion-ease: cubic-bezier(.21,.75,.22,1);
  --header-height: 76px;
}

body {
  background: radial-gradient(ellipse at 80% 9%, #112538 0, transparent 43rem),
    linear-gradient(180deg, #071019, #0a1520 52%, #08121c);
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #08121cf2;
  box-shadow: 0 1px 0 #5e9db65c, 0 10px 32px #02081155;
}
@supports (backdrop-filter: blur(12px)) {
  .top { backdrop-filter: blur(12px); }
}
.top-inner { min-height: var(--header-height); }
.top .brand-mark { transition: filter .25s ease; }
.top .brand:hover .brand-mark, .top .brand:focus-visible .brand-mark { filter: brightness(1.35); }
.top .site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, #4b94c258, #b1eeff, #4b94c258);
  opacity: 0;
  scale: .35 1;
  transition: scale .24s var(--motion-ease), opacity .2s ease;
}
.top .site-nav a:hover::after, .top .site-nav a:focus-visible::after, .top .site-nav a[aria-current]::after {
  opacity: 1;
  scale: 1;
  box-shadow: 0 0 10px #5dc8ff92;
}
.language-switch a { transition: color .2s, background-color .2s; }
.reading-line {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #338ed1, #80dfff 77%, #dbf9ff);
  box-shadow: 0 0 11px #73d8ff86;
}
#tresc, .player-section, #galeria, #teatry, .faction[id] { scroll-margin-top: calc(var(--header-height) + 18px); }

.hero {
  min-height: clamp(640px, 81svh, 880px);
  background: #0b1827;
  --hero-x: 0px;
  --hero-y: 0px;
  --hero-light-x: 76%;
  --hero-light-y: 37%;
}
.hero-picture { position: absolute; inset: 0; z-index: -2; }
.hero-picture .hero-art { z-index: 0; }
.hero-art {
  object-position: 63% center;
  animation: none;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.037);
  transition: transform .5s var(--motion-ease);
}
.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, #020910ed 0%, #03111b92 35%, #07132130 63%, #070f180c 100%),
    linear-gradient(0deg, #05101a 2%, #05111be0 14%, #06131b13 63%);
}
.hero-lightfield {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-lightfield::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 32% 49% at var(--hero-light-x) var(--hero-light-y), #6cc9ff28, transparent 100%);
  animation: hero-glow 3.4s ease-out both;
}
.hero-lightfield::after {
  content: "";
  position: absolute;
  inset: -18% -12%;
  opacity: 0;
  background: linear-gradient(103deg, transparent 43%, #9be2ff25 50%, #7caad21a 53%, transparent 63%);
  animation: hero-light-sweep 3.5s .3s var(--motion-ease) both;
}
.hero-inner { padding-block: 98px 119px; }
.hero-copy { position: relative; isolation: isolate; animation: none; }
.hero-copy > * { animation: content-entry .65s var(--motion-ease) both; }
.hero-copy > h1 { animation-delay: .10s; }
.hero-copy > p:not(.kicker) { animation-delay: .19s; }
.hero-copy > .action-row { animation-delay: .27s; }
.hero h1 { letter-spacing: -.066em; text-shadow: 0 8px 38px #010710d9; }
.hero h1 em, .page-intro h1 em { color: #a6e7ff; text-shadow: 0 0 30px #69cbff32; }
.hero .kicker { text-shadow: 0 0 18px #31a9e685; }
.hero .kicker i { box-shadow: 0 0 13px 1px #82dfff; }
.hero-caption { bottom: 23px; padding: 3px 7px; background: #071621c4; border-left: 1px solid #6995ae; }
.hero-line {
  border-block: 1px solid #74b0ce4d;
  background: linear-gradient(90deg, #07131cee, #0e2232e8, #071521f5);
  box-shadow: 0 -12px 46px #040d1580;
}
.metrics > div { min-width: 0; border-color: #3e637e79; }
.metrics > div:last-child { border-color: #3e637e79; }
.metrics strong { text-shadow: 0 0 26px #5cc6ff60; }
.metrics > div:has(.metric-link) { padding: 0; }
.metric-link {
  width: 100%;
  min-height: 98px;
  display: flex;
  align-items: center;
  gap: clamp(12px,2.1vw,28px);
  padding: 12px 25px;
  transition: background .24s ease, color .24s ease;
}
.metric-link:hover, .metric-link:focus-visible { background: #62cfff1b; }
.metrics .metric-arrow { margin-left: auto; color: var(--accent); transition: transform .24s var(--motion-ease); }
.metric-link:hover .metric-arrow { transform: translate(3px,-3px); }

.button {
  position: relative;
  isolation: isolate;
  border-radius: 2px;
  transition: transform .23s var(--motion-ease), box-shadow .23s ease, background-color .23s ease, border-color .23s ease, color .23s ease;
}
.button.primary { background: linear-gradient(180deg,#cef2ff,#88d9fc 60%,#7accf1); box-shadow: 0 3px 19px #70d5ff28,0 1px 0 #e9faff inset; }
.button.primary:disabled { background: #254154; box-shadow: none; }
.button.ghost { border-color: #83aec671; background: #101f30a6; }
.button:not(:disabled)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background-image: linear-gradient(102deg, transparent 35%, #e6faff88 50%, transparent 65%),
    radial-gradient(circle at var(--cursor-x,50%) var(--cursor-y,50%), #f1fbff5a, transparent 66%);
  background-size: 270% 100%, 100% 100%;
  background-position: 100% 50%, center;
  transition: opacity .2s ease, background-position .7s var(--motion-ease);
}
.button:not(:disabled):is(:hover,:focus-visible) {
  transform: translateY(-2px);
  border-color: #b5ebff;
  box-shadow: 0 0 0 1px #b3e9ff58, 0 0 19px #62cfff49, 0 8px 21px #040b15a6;
}
.button:not(:disabled):is(:hover,:focus-visible)::before { opacity: 1; background-position: 0% 50%, center; }
.button:not(:disabled):active { transform: translateY(1px); box-shadow: 0 0 0 1px #b3e9ff50, 0 0 12px #62cfff33; }
.compare-tabs button, .chapters button, .gallery-controls button, .player-toolbar button, .theatre-controls button {
  transition: transform .18s var(--motion-ease), box-shadow .22s ease, border-color .22s ease, color .22s ease, background .22s ease;
}
.compare-tabs button:is(:hover,:focus-visible), .chapters button:is(:hover,:focus-visible),
.gallery-controls button:is(:hover,:focus-visible), .player-toolbar button:is(:hover,:focus-visible),
.theatre-controls button:is(:hover,:focus-visible) {
  transform: translateY(-1px);
  border-color: #9ce6ff;
  box-shadow: 0 0 15px #5cc8ff43, inset 0 0 15px #5cc8ff2a;
}
.text-link > [aria-hidden="true"], .metric-arrow { display: inline-block; transition: transform .2s var(--motion-ease); }
.text-link:is(:hover,:focus-visible) > [aria-hidden="true"]:last-child { transform: translate(3px,-2px); }

.page-mast { border-color: #568bad7a; }
.page-mast > img { filter: saturate(.86) contrast(1.11); }
.page-mast::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  pointer-events: none;
  z-index: 1;
  opacity: .39;
  background: linear-gradient(0deg, #63cfff28, transparent), repeating-linear-gradient(90deg, #8fdfff3b 0 1px, transparent 1px 8.333333%);
  mask-image: linear-gradient(0deg,#000,transparent);
}
.page-intro { position: relative; z-index: 2; }
.section > header { position: relative; }
.section > header .kicker::after {
  content: "";
  display: inline-block;
  width: 33px;
  height: 1px;
  vertical-align: .24em;
  margin-inline-start: 10px;
  background: linear-gradient(90deg,#75cffa,#75cffa00);
}
.gameplay-teaser { column-gap: clamp(28px,6vw,104px); }
.media-frame {
  border-color: #6da5c596;
  border-radius: 5px;
  box-shadow: 0 18px 49px #02060c9c;
  transition: border-color .28s, box-shadow .28s, opacity .62s var(--motion-ease);
}
.media-frame:is(:hover,:focus-visible) { border-color: #b2ebff; box-shadow: 0 0 25px #62d1ff36,0 18px 49px #02060c9c; }
.media-frame img { transition: transform .55s var(--motion-ease), filter .4s ease; }
.screen-play { border-radius: 50%; border-color: #a0e5ff; box-shadow: 0 0 0 7px #10283eaf,0 0 0 8px #98d8fb59,0 0 45px #7fd9ff58; }
.media-frame:is(:hover,:focus-visible) .screen-play { scale: 1.04; }
.screen-label i { font-style: normal; padding-inline-start: .55em; }
.feature, .image-edge, .availability {
  border-color: #466782a8;
  background: linear-gradient(166deg, #142739, #0e1a26 71%);
  border-radius: 5px;
}
.feature { position: relative; overflow: hidden; box-shadow: 0 10px 34px #030a1370; transition: border-color .25s, box-shadow .28s; }
.feature img { transition: filter .32s ease; }
.feature:is(:hover,:focus-within) { border-color: #79bde7; box-shadow: 0 1px 22px #70ccff27,0 14px 44px #02060ba8; }
.feature:is(:hover,:focus-within) img { filter: brightness(1.13) saturate(1.1); }
.feature > div { border-top: 1px solid #40678566; padding-block: 23px 25px; }

.faction-preview > header { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 26px; }
.faction-preview > header .text-link { text-align: right; }
.faction-tile, .faction {
  --faction: #7fdcff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--faction) 38%, #20364a);
  border-top: 2px solid var(--faction);
  border-radius: 5px;
  background: #102032;
  box-shadow: 0 13px 36px #01050a80;
  transition: border-color .3s, box-shadow .3s;
}
.faction-tile.iron, .faction.iron { --faction: #ffac76; }
.faction-tile.veyra, .faction.veyra { --faction: #81e5c9; }
.faction-tile { display: block; min-height: 172px; aspect-ratio: 4/3; }
.faction-tile::after, .faction-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg,#050d16f4 0%,#0813207a 28%,transparent 58%), radial-gradient(ellipse at 60% 63%,color-mix(in srgb,var(--faction) 19%,transparent),transparent 65%);
}
.faction-tile > img, .faction-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--motion-ease), filter .45s ease;
}
.faction-tile:is(:hover,:focus-visible), .faction:is(:hover,:target) {
  border-color: var(--faction);
  box-shadow: 0 1px 23px color-mix(in srgb,var(--faction) 33%,transparent),0 13px 36px #01050a80;
}
.faction-tile:is(:hover,:focus-visible) img, .faction:is(:hover,:target) .faction-art img { transform: scale(1.05); filter: saturate(1.14) brightness(1.10); }
.faction-tile-text {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  text-shadow: 0 2px 7px #000;
}
.faction-tile-text b { flex: 1; line-height: 1.07; font-size: clamp(.93rem,1.5vw,1.37rem); }
.faction-tile-text i { color: var(--faction); font-style: normal; }
.faction-tile .insignia, .faction .insignia {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: 0;
  background: #071523ba;
  border-color: color-mix(in srgb,var(--faction) 53%,transparent);
}
.faction-tile .insignia span, .faction .insignia span { width: 21px; height: 22px; }
.faction { padding: 0; display: grid; grid-template-rows: auto 1fr; }
.faction-art { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.faction-art .insignia { position: absolute; z-index: 1; bottom: 13px; left: 15px; }
.faction-detail {
  padding: 21px 22px 28px;
  border-top: 1px solid color-mix(in srgb,var(--faction) 28%,#1a3143);
  background: linear-gradient(180deg,color-mix(in srgb,var(--faction) 8%,#102031),#0d1823);
}
.faction-detail h3 { font-size: clamp(1.33rem,2vw,2.1rem); }

.theatre-section > header { margin-bottom: 24px; }
.theatre-switch { border: 1px solid #5b95b586; border-radius: 6px; box-shadow: 0 14px 42px #020812a6; overflow: hidden; background: #0a1724; }
.theatre-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 8px; gap: 7px; border-bottom: 1px solid #416b82; background: linear-gradient(90deg,#102437,#0d1a28); }
.theatre-controls button {
  min-height: 44px;
  min-width: 0;
  padding: 6px clamp(3px, 1.3vw, 12px);
  border: 1px solid #4b7290;
  border-radius: 3px;
  background: #142638;
  color: #dfeefa;
  font-family: var(--display);
  font-size: clamp(.85rem,1.4vw,1rem);
}
.theatre-controls [aria-pressed="true"] { background: #1a4159; border-color: #92ddf9; color: #caefff; box-shadow: inset 0 -2px #7ad8fd,0 0 13px #68ddff37; }
.theatre-panel { position: relative; isolation: isolate; }
.theatre-panel:not([hidden]) { animation: theatre-arrive .42s var(--motion-ease) both; }
.theatre-panel img { aspect-ratio: 16/8; object-fit: cover; }
.theatre-panel figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 41px clamp(16px,3.5vw,46px) 22px;
  background: linear-gradient(0deg,#050d15f6,#08141bed 57%,transparent);
  color: #deecf6;
}
.theatre-panel figcaption p { max-width: 485px; margin-top: 6px; }
.gallery-grid { grid-auto-flow: dense; }
.gallery-grid figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-color: #49708aaa;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(142deg,#142a3d,#101e2b);
  transition: border-color .25s, box-shadow .25s;
}
.gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid a { flex: 1 1 auto; }
.gallery-grid img { height: 100%; object-fit: cover; transition: transform .45s var(--motion-ease),filter .3s ease; }
.gallery-grid a:is(:hover,:focus-visible) img { filter: brightness(1.14); }
.gallery-grid figure:is(:hover,:focus-within) { border-color: #acdfff; box-shadow: 0 0 18px #62d1ff38; }
.gallery-grid a:focus-visible { outline-offset: -4px; z-index: 1; }
.gallery-icon { border-radius: 3px; transition: transform .24s var(--motion-ease), background .24s, color .24s; }
.gallery-grid a:is(:hover,:focus-visible) .gallery-icon { transform: translate(2px,-2px); background: #a6e7ff; color: #071421; }
.lightbox::backdrop { backdrop-filter: blur(5px); }
.lightbox[open] { animation: theatre-arrive .24s var(--motion-ease) both; }
.player { border-color: #6a9cb69c; border-radius: 5px; box-shadow: 0 14px 44px #030915a0; }
.player-toolbar {
  background: linear-gradient(90deg,#0d2031,#112e42 65%,#0a1e2e);
  border-color: #4976929c;
  box-shadow: 0 1px 0 #aadfff19 inset;
}
.player-stage { border-radius: 0 0 4px 4px; overflow: hidden; }
.player-prompt .button { box-shadow: 0 0 0 5px #0c2036a3,0 0 32px #82d8ff68; }
.player:is(:fullscreen, .player-expanded) { border-radius: 0; }
.availability { border-top: 2px solid #9fe8ff; box-shadow: 0 10px 38px #0208107a; }
.demo-banner {
  border-color: #5386a578;
  background: linear-gradient(90deg,#0d2030e8,#163c55b5),
    repeating-linear-gradient(133deg,transparent 0 24px,#72c0ee46 24px 25px);
}
.band-inner { padding-block: 61px; }

.enter-wait { opacity: 0; transform: translateY(20px); }
.enter-animate, .enter-wait:focus-within, .enter-wait:focus-visible {
  opacity: 1;
  transform: none;
  transition: opacity .52s var(--motion-ease), transform .52s var(--motion-ease), border-color .25s ease, box-shadow .25s ease;
}
@keyframes hero-light-sweep {
  0% { opacity: 0; transform: translateX(-48%); }
  29% { opacity: .73; }
  70% { opacity: .49; }
  100% { opacity: 0; transform: translateX(48%); }
}
@keyframes hero-glow { 0% { opacity: .28; } 43% { opacity: .96; } 100% { opacity: .67; } }
@keyframes content-entry { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes theatre-arrive { from { opacity: .56; } to { opacity: 1; } }
@keyframes navigation-open { from { opacity: .35; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-shade { background: linear-gradient(90deg,#020910eb,#03111b92 40%,#07132120 95%), linear-gradient(0deg,#05101a 4%,#05111bbc 22%,transparent 73%); }
}
@media (max-width: 720px) {
  :root { --header-height: 63px; }
  .js .top .site-nav:not([data-collapsed]) { animation: navigation-open .23s var(--motion-ease) both; }
  .hero { min-height: max(584px, 76svh); }
  .hero-art { object-position: 68% center; }
  .hero-shade { background: linear-gradient(90deg,#030b17b0,#03102029 80%), linear-gradient(0deg,#05101af7 10%,#05111bb5 44%,#05111b24 82%); }
  .hero-inner { padding-block: 132px 75px; }
  .hero-caption { bottom: 10px; }
  .metrics .metric-link { display: grid; justify-items: center; min-height: 76px; padding: 10px 4px; gap: 3px; }
  .metrics .metric-arrow { display: none; }
  .faction-preview .faction-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .faction-tile { min-height: 118px; aspect-ratio: 5/6; }
  .faction-tile > img { object-position: center; }
  .faction-tile-text { inset: auto 7px 8px; gap: 5px; align-items: end; }
  .faction-tile-text b { font-size: clamp(.72rem,3vw,1rem); }
  .faction-tile .insignia, .faction-tile-text i { display: none; }
  .theatre-panel img { aspect-ratio: 16/10; }
  .theatre-panel figcaption { position: static; padding: 13px 15px 16px; background: #102334; border-top: 1px solid #385d77; }
  .gallery-grid figure:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 365px) {
  .faction-preview > header { gap: 8px; }
  .faction-preview > header .text-link { font-size: .75rem; }
  .screen-play { box-shadow: 0 0 0 4px #10283eaf,0 0 0 5px #98d8fb59,0 0 31px #7fd9ff58; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { transform: none; }
  .hero-lightfield::after, .reading-line { display: none; }
  .enter-wait, .enter-animate { opacity: 1; transform: none; }
  .media-frame img, .gallery-grid a img, .faction-tile img, .faction-art img { transform: none !important; }
  .button, .button:active, .button:is(:hover,:active,:focus-visible) { transform: none !important; }
}

