/* The studio chrome and type come from main.css. This sheet directs the game scenes. */
.snowballz-page { --film: #101215; --frost: #c3d6e2; background: var(--film); }
.snowballz-page::after { content: none; }
.snowballz-page .language-switcher__btn { display: flex; align-items: center; justify-content: center; }
.snowballz-page main { overflow: clip; }
.snowballz-page :focus-visible { outline: 2px solid white; outline-offset: 4px; }
.sb-skip { position: fixed; top: 10px; left: 12px; transform: translateY(-160%); z-index: 160; background: var(--film); padding: 12px; }
.sb-skip:focus { transform: none; }
.sb-opening, .sb-end { isolation: isolate; position: relative; color: white; background: #111820; }
.sb-opening { min-height: max(650px, 100svh); display: grid; grid-template-rows: 1fr auto; }
.sb-film, .sb-film picture, .sb-film img, .sb-film video, .sb-opening::after, .sb-end picture, .sb-end picture img, .sb-end::after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-film, .sb-end picture { z-index: -2; overflow: hidden; }
.sb-film video { opacity: 0; transition: opacity .55s ease; }
.sb-film video.is-ready { opacity: 1; }
.sb-opening::after, .sb-end::after { content: ""; z-index: -1; pointer-events: none; }
.sb-opening::after { background: linear-gradient(180deg, #080c12b3, transparent 26%, #09111b1a 48%, #080d15ab 82%, #101215); }
.sb-titles { display: flex; align-items: center; flex-direction: column; justify-content: center; padding: clamp(16rem, 18vh, 23rem) 1.8rem 4rem; text-align: center; }
.sb-credit, .sb-billing span, .sb-chapter span, .sb-screen-caption { text-transform: uppercase; letter-spacing: .16em; font-size: 1.3rem; font-weight: 600; }
.sb-credit { margin: 0; color: white; text-shadow: 0 1px 8px #050a10, 0 1px 25px #050a10; }
.sb-titles h1 { width: min(60vw, 90rem); margin: 0 auto; line-height: 1; }
.sb-titles h1 img { width: 100%; filter: drop-shadow(0 6px 12px #06132166); }
.sb-play, .sb-button { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; min-height: 4.8rem; padding: .9rem 2.1rem; border-radius: 100px; font-size: 1.6rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.sb-play { background: #10151cbb; color: #fff; border: 1px solid #f6faff66; backdrop-filter: blur(8px); }
.sb-play small, .sb-screen-caption small { padding-left: 1rem; border-left: 1px solid #ffffff62; font: 500 1.3rem/1.2 Urbanist,sans-serif; font-variant-numeric: tabular-nums; color: #d4dee4; }
.sb-play-icon { display: flex; }
.sb-play:hover { background: #17232e; color: #fff; border-color: white; }
.sb-button { color: #11151a; background: #eef2f4; border: 1px solid #fff9; }
.sb-button:hover { color: #11151a; background: white; transform: translateY(-2px); }
.sb-button i { font-size: 2.1rem; }
.sb-billing { width: min(82%, 138rem); margin: 0 auto; padding: 2.1rem 0 4rem; border-top: 1px solid #f2f6ff59; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.4rem; align-items: center; }
.sb-billing div { display: grid; gap: .5rem; }
.sb-billing span { color: #d1dce4; font-size: 1.15rem; }
.sb-billing strong, .sb-billing time { color: white; font-size: 1.7rem; font-weight: 500; line-height: 1.25; }
.sb-platform { text-align: right; }
.sb-motion, .sb-viewer button { cursor: pointer; display: grid; place-items: center; border-radius: 100%; width: 4.4rem; height: 4.4rem; background: #0c1019b8; border: 1px solid #f3f6fc66; color: white; font-size: 1.9rem; }
.sb-motion { position: absolute; bottom: 4rem; right: 2rem; }
.sb-motion[hidden], .sb-viewer [hidden] { display: none; }
.sb-wrap { width: min(86%, 145rem); margin-inline: auto; }
.sb-story { display: grid; grid-template-columns: 1fr 2.45fr; gap: 4rem; padding: clamp(8rem, 9vw, 16rem) 0 clamp(5rem, 6vw, 10rem); }
.sb-chapter { padding-top: .8rem; }
.sb-chapter span { display: inline-block; padding: .9rem 1.5rem; border: 1px solid #c4d3de4d; border-radius: 3rem; line-height: 1.35; color: var(--frost); }
.sb-story h2, .sb-modes h2, .sb-end h2 { margin: 0; font-size: clamp(4.5rem, 6.2vw, 11rem); line-height: .99; letter-spacing: -.055em; font-weight: 400; text-wrap: balance; color: #f6f6f6; }
.sb-story-copy p, .sb-triptych p { color: #c2c8d0; font-size: clamp(1.7rem, 1.45vw, 2.2rem); line-height: 1.55; }
.sb-story-copy p { margin: 2.3rem 0 0; max-width: 57ch; }
.sb-screen { grid-column: 1/-1; position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; aspect-ratio: 2.35; background: #111; color: white; }
.sb-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sb-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#070a10ba,transparent 45%); z-index: -1; }
.sb-screen-play { display: grid; place-items: center; border: 1px solid #f3f7fcb3; border-radius: 50%; width: clamp(5rem, 5vw, 8rem); aspect-ratio: 1; backdrop-filter: blur(5px); background: #080d1640; color: white; font-size: 2.4rem; }
.sb-screen:hover .sb-screen-play { background: white; color: #141922; }
.sb-screen-caption { position: absolute; left: 3%; bottom: 6%; display: flex; align-items: center; gap: 1rem; color: white; }
.sb-modes { padding: 1rem 0 clamp(7rem, 8vw, 14rem); }
.sb-modes h2 { font-size: clamp(4.3rem, 5vw, 8rem); margin-bottom: 4rem; }
.sb-triptych { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.2rem, 2vw, 3.6rem); }
.sb-still { display: block; position: relative; overflow: hidden; }
.sb-still img { width: 100%; aspect-ratio: 1.25; object-fit: cover; transition: transform .45s ease; }
.sb-still i { position: absolute; right: 1rem; bottom: 1rem; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; background: #0c131bc9; border-radius: 50%; font-size: 1.8rem; color: white; }
.sb-still:hover img { transform: scale(1.035); }
.sb-triptych h3 { margin: 1.8rem 0 1.1rem; font-size: clamp(2.6rem, 2.7vw, 4.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.sb-triptych p { font-size: 1.7rem; }
.sb-end { min-height: min(68svh, 68rem); display: flex; align-items: center; padding: 7rem 9%; }
.sb-end::after { background: linear-gradient(90deg,#080e18cc,transparent 68%),linear-gradient(0deg,#101215 0%,transparent 18%,transparent 88%,#101215 100%); }
.sb-end-copy { max-width: 49%; }
.sb-end h2 { margin-bottom: 3rem; }
.sb-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 4rem 7% 6rem; align-items: center; }
.sb-footer-logo img { width: 16rem; }
.sb-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; }
.sb-footer nav a { font-size: 1.5rem; }
.sb-viewer { position: fixed; inset: 0; margin: auto; width: fit-content; max-width: 96vw; max-height: 96dvh; padding: 0; border: 0; color: white; background: #0a0c10; }
.sb-viewer::backdrop { background: #07090df2; }
.sb-viewer img, .sb-viewer video { display: block; width: min(91vw,150rem); max-height: 80dvh; object-fit: contain; background: #000; }
.sb-viewer video { aspect-ratio: 16/9; }
.sb-viewer form { display: flex; justify-content: end; padding: .5rem; }
.sb-viewer p { margin: 0; padding: 1.2rem 1.5rem; font-size: 1.6rem; }
@media (min-width: 1200px) and (max-width: 1500px) {
  .snowballz-page > .header { left: 17%; }
  .snowballz-page > .header-socials { top: 9rem; }
  .snowballz-page > .language-switcher { top: 14rem; }
}
@media (min-width: 768px) and (max-width: 1199px) { .sb-billing { padding-bottom: 11rem; } .sb-footer { padding-bottom: 12rem; } }
@media (max-width: 767px) {
  .sb-opening { min-height: max(67rem,100svh); }
  .sb-film img, .sb-film video { object-position: 43% center; }
  .sb-titles { padding: 19rem 1.4rem 2.5rem; }
  .sb-titles h1 { width: min(94vw,60rem); }
  .sb-credit { font-size: 1.15rem; }
  .sb-billing { width: 90%; grid-template-columns: 1fr auto; padding: 1.6rem 0 2.5rem; row-gap: 1.5rem; }
  .sb-platform { grid-column: 2; grid-row: 1; }
  .sb-billing .sb-button { grid-column: 1/-1; width: fit-content; max-width: calc(100% - 5.4rem); }
  .sb-motion { bottom: 2.6rem; right: 5%; }
  .sb-wrap { width: 90%; }
  .sb-story { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 6rem; }
  .sb-story-copy p { margin-top: 1.6rem; }
  .sb-screen { aspect-ratio: 16/10; }
  .sb-screen-caption { font-size: 1.15rem; }
  .sb-triptych { grid-template-columns: 1fr; gap: 3.5rem; }
  .sb-still img { aspect-ratio: 1.92; }
  .sb-modes h2 { margin-bottom: 2.5rem; }
  .sb-end { min-height: 56rem; align-items: end; padding: 5rem 5%; }
  .sb-end picture img { object-position: center 26%; }
  .sb-end::after { background: linear-gradient(0deg,#101215, #0b1019bb 24%,transparent 65%); }
  .sb-end-copy { max-width: 100%; }
  .sb-footer { flex-wrap: wrap; padding: 3.5rem 5%; }
}
@media (prefers-reduced-motion: no-preference) {
  .sb-titles h1 { animation: reveal-title 1.25s cubic-bezier(.16,1,.3,1) both; }
  .sb-credit, .sb-play { animation: reveal-credit .8s ease-out both; }
  .sb-play { animation-delay: .2s; }
  @keyframes reveal-title {
    from { opacity: 0; transform: translateY(1.8rem) scale(.94); }
    to { opacity: 1; transform: none; }
  }
  @keyframes reveal-credit { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .snowballz-page *, .snowballz-page *::before, .snowballz-page *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
