:root {
  color-scheme: dark;
  --night: #060b16;
  --ink: #f4f5fb;
  --muted: #9baac3;
  --moon: #eaf0ff;
  --line: rgb(171 194 239 / 14%);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--night);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #b9d6ff; outline-offset: 6px; }
button, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.magic-nav { position: fixed; inset: 0 0 auto; height: 94px; padding: 0 clamp(24px, 5vw, 88px); display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 30; background: linear-gradient(#060b16d9, #060b165e 70%, transparent); }
.magic-brand { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 800; letter-spacing: -1.25px; }
.magic-brand svg { width: 27px; height: 27px; fill: #cfdefc; }
.magic-nav nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; }
.magic-nav nav > a:not(.magic-button) { color: #d3dbea; transition: color .2s; }
.magic-nav nav > a:hover { color: white; }
.magic-button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 54px; padding: 15px 26px; border: 1px solid #e4ecff; border-radius: 100px; color: #111b2c; background: #eef3ff; font-size: 13px; font-weight: 800; transition: background .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.magic-button:hover { color: #111b2c !important; background: white; box-shadow: 0 0 32px #abc9ff29; transform: translateY(-2px); }
.magic-button > span:last-child { font-size: 18px; font-weight: 500; }
.magic-button-small { min-height: 42px; padding: 10px 20px; gap: 18px; font-size: 12px; }
.magic-text-link { display: inline-flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 600; padding: 12px 0; color: #c6d2e7; }
.magic-text-link:hover { color: white; }
.magic-text-link > span:last-child { transition: transform .2s; }
.magic-text-link:hover > span:last-child { transform: translateX(4px); }
.hero-shuffle { position: relative; border: 0; background: transparent; }
.hero-shuffle:hover > span:last-child { transform: rotate(-35deg); }

.portal-scroll { height: 330svh; position: relative; }
.portal-stage { height: 100svh; position: sticky; top: 0; isolation: isolate; overflow: clip; background: var(--night); --copy-opacity: 1; --glass-opacity: 1; --controls-opacity: 0; --film-reveal: 0; }
.portal-atmosphere { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 73% 47%, #1e36595e, transparent 47%), radial-gradient(ellipse at 73% 90%, #1b2c4866, transparent 53%), linear-gradient(130deg, #040812, #080e1a); }
.portal-stars { position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(1px 1px at 10% 32%, #c1dbff 70%, transparent), radial-gradient(1px 1px at 41% 17%, #d7e7ff 70%, transparent), radial-gradient(1px 1px at 91% 25%, #abcaf6 70%, transparent), radial-gradient(1.5px 1.5px at 84% 73%, #aec9fb 70%, transparent), radial-gradient(1px 1px at 26% 79%, #b8d5ff 70%, transparent), radial-gradient(1px 1px at 51% 61%, #c1d9ff 70%, transparent), radial-gradient(1px 1px at 94% 59%, #b2cbff 70%, transparent), radial-gradient(1px 1px at 57% 11%, #a6c8ff 70%, transparent); }
.portal-mist { position: absolute; inset: 35% -15% -20%; opacity: .8; background: radial-gradient(ellipse at 80% 65%, #6798d92b, transparent 43%), radial-gradient(ellipse at 38% 70%, #6f99cc1f, transparent 45%); filter: blur(30px); animation: mist-drift 16s ease-in-out infinite alternate; }
@keyframes mist-drift { from { transform: translateX(-2%); } to { transform: translateX(3%); } }
.orb-halo { position: absolute; left: 71.5%; top: 51%; width: min(60vw, 92vh); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 83%, #568be02b, transparent 37%), radial-gradient(circle, transparent 43%, #3a68a910 55%, transparent 69%); filter: blur(18px); opacity: var(--glass-opacity); }
.orb-floor { position: absolute; left: 71.5%; top: 87%; width: min(150svh, 105vw); height: 240px; transform: translateX(-50%); z-index: 0; pointer-events: none; opacity: var(--glass-opacity); isolation: isolate; }
.floor-light { position: absolute; left: -15%; right: -15%; top: -65px; height: 185%; background: radial-gradient(ellipse at 50% 17%, #84afff40 0, #3f68b326 16%, #172b4e0a 48%, transparent 68%); transform: perspective(400px) rotateX(20deg); filter: blur(7px); }
.floor-caustics { position: absolute; top: -8%; left: 13%; width: 74%; height: 43%; opacity: .55; background: radial-gradient(ellipse at center, #7bafff21 9%, transparent 20%, #4771b729 30%, #a5c6ff47 34%, transparent 40% 48%, #6698f31f 51%, transparent 57%); filter: blur(6px); transform: scaleY(.5); transform-origin: 50% 20%; }
.floor-shadow { position: absolute; left: 44%; top: -5px; width: 12%; height: 12px; border-radius: 50%; background: #01030bf2; filter: blur(2px); }
.floor-shadow::after { content: ""; position: absolute; inset: -4px -70%; background: #01030b75; border-radius: 50%; filter: blur(9px); }
.floor-video { position: absolute; left: 30%; top: 0; width: 40%; height: 76%; opacity: calc(.34 * var(--film-reveal)); filter: blur(2px) saturate(.65) brightness(.8); mask-image: linear-gradient(#000c, #0008 15%, #0003 40%, transparent 82%); -webkit-mask-image: linear-gradient(#000c, #0008 15%, #0003 40%, transparent 82%); }
.floor-contact { position: absolute; left: 43%; top: -2px; width: 14%; height: 7px; background: radial-gradient(ellipse, #d8eaffdc, #92baff91 12%, #547dd345 44%, transparent 70%); filter: blur(1px); }
.floor-fog { position: absolute; left: -15%; right: -15%; top: -22%; height: 100%; background: radial-gradient(ellipse at 27% 35%, #8bb6f31f, transparent 29%), radial-gradient(ellipse at 77% 44%, #9bbdf52b, transparent 32%); filter: blur(17px); }
.portal-stage[data-fog="fluid"] :is(.portal-mist, .floor-fog) { visibility: hidden; }
.portal-mask { position: absolute; inset: 0; clip-path: circle(min(36svh, 23.5vw, 380px) at 71.5% 51%); will-change: clip-path; z-index: 1; }
.portal-picture { position: absolute; left: 71.5%; top: 51%; width: min(72svh, 47vw, 760px); height: min(72svh, 47vw, 760px); transform: translate(-50%, -50%); background: radial-gradient(ellipse at 40% 30%, #3f598c, #152846 45%, #080f20); overflow: hidden; will-change: width, height, left, top; }
.portal-picture::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse, transparent 46%, #0610242b 74%, #060b1d80); opacity: var(--glass-opacity); }
.portal-video, #portalVideo, .portal-poster { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.portal-poster { transform: scale(1.16); filter: blur(clamp(9px, 1.3vw, 20px)) saturate(.75) brightness(.85); }
#portalVideo { opacity: var(--film-reveal); }
.portal-picture::before { content: ""; position: absolute; inset: -15%; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 34% 38%, #b7d5e94a, transparent 46%), radial-gradient(ellipse at 67% 65%, #cfb49336, transparent 48%); filter: blur(18px); opacity: calc((1 - var(--film-reveal)) * .7); animation: crystal-breathe 7s ease-in-out infinite alternate; }
@keyframes crystal-breathe { from { transform: translate(-2%, 1%) scale(1); } to { transform: translate(2%, -2%) scale(1.08); } }
.orb-glass { position: absolute; left: 71.5%; top: 51%; width: min(72svh, 47vw, 760px); height: min(72svh, 47vw, 760px); transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; pointer-events: none; opacity: var(--glass-opacity); border: 2px solid #b8d4ffa8; box-shadow: 0 0 4px #e3efff9c, 0 0 20px #7caafc4d, 0 0 50px #3674d026, inset 0 0 7px #d9e7ffbd, inset 0 0 27px #071124cc; background: radial-gradient(ellipse 16% 8% at 25% 12%, #f0f7ffc4, #d5e6ff6e 36%, transparent 74%), radial-gradient(ellipse 4% 24% at 6% 38%, #dfedffbf, transparent 80%), radial-gradient(ellipse 4% 27% at 95% 50%, #b6b9ff8f, transparent 80%), radial-gradient(ellipse 23% 4% at 51% 95%, #d7e7ff96, transparent 85%); }
.portal-stage[data-webgl="ready"] .orb-glass { border-color: transparent; box-shadow: inset 0 0 26px #07112426; background: none; }
.glass-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.screen-scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: var(--controls-opacity); background: linear-gradient(#03081280, transparent 18% 68%, #030812cc); }
.hero-copy { position: absolute; left: clamp(24px, 8vw, 140px); top: 49%; width: 43%; max-width: 600px; transform: translateY(-50%); z-index: 5; opacity: var(--copy-opacity); }
.magic-eyebrow { display: flex; align-items: center; gap: 9px; color: #aebfdb; font-size: 10px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; }
.hero-copy .magic-eyebrow { margin-bottom: 29px; }
.hero-copy .magic-eyebrow > span:first-child { color: #d4e3ff; font-size: 19px; letter-spacing: 0; }
.hero-copy h1 { max-width: 570px; font-size: clamp(50px, 5.8vw, 96px); line-height: 1.055; letter-spacing: -.065em; font-weight: 600; }
.hero-copy h1 > span { display: block; }
.hero-heading-second { color: #b9cdef; }
.hero-description { margin-top: 25px; color: #aebcd2; max-width: 340px; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.portal-status, .autoplay-button { position: absolute; left: 71.5%; top: 51%; transform: translate(-50%, -50%); z-index: 7; font-size: 12px; color: #d8e6ff; text-align: center; max-width: 220px; }
.portal-status { line-height: 1.8; padding: 14px; text-shadow: 0 2px 15px black; }
.portal-status:not([data-error]) { margin-top: calc(var(--orb-radius, 200px) * .42); font-size: 10px; letter-spacing: .08em; opacity: calc((1 - var(--film-reveal)) * .72); }
.portal-status:not([data-error])::before { content: ""; display: block; width: 24px; height: 1px; margin: 0 auto 12px; background: #d8e6ff; box-shadow: 0 0 12px #a7d3ff; animation: crystal-breathe 2s ease-in-out infinite alternate; }
.portal-status[data-error] { background: #07101ed9; border: 1px solid #acc7ff30; border-radius: 12px; }
.autoplay-button { display: flex; align-items: center; gap: 12px; padding: 15px 23px; border-radius: 100px; border: 1px solid #e4ecff75; background: #0b1428c9; backdrop-filter: blur(10px); white-space: nowrap; }
.enter-portal { position: absolute; bottom: 39px; left: clamp(24px, 8vw, 140px); display: flex; align-items: center; gap: 12px; background: transparent; padding: 12px 0; border: 0; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; z-index: 6; color: #adbcd3; }
.scroll-line { width: 37px; height: 1px; background: #b8cced80; }
.enter-portal > span:last-child { font-size: 17px; }
.now-playing { position: absolute; right: clamp(24px, 5vw, 88px); bottom: 45px; display: flex; align-items: center; gap: 12px; z-index: 6; max-width: 330px; opacity: calc(1 - var(--controls-opacity)); }
.playing-dot { width: 5px; height: 5px; border-radius: 50%; background: #c1d9ff; box-shadow: 0 0 12px #98c2ff; flex: 0 0 auto; }
.now-playing > div { min-width: 0; }
.now-playing-label { display: block; color: #a4b5ce; font-size: 8px; letter-spacing: 1.7px; text-transform: uppercase; margin-bottom: 6px; }
.now-playing-title { display: block; color: #e1e9f7; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing-title:hover { text-decoration: underline; }
.player-controls { position: absolute; top: calc(100% - 68px); right: 5%; width: 90px; height: 42px; z-index: 8; display: flex; align-items: center; gap: 22px; }
.player-buttons { display: flex; gap: 6px; }
.player-controls-beside .player-buttons { flex-direction: column; }
.player-controls-beside { height: auto; }
.player-controls-beside .icon-button[data-tooltip]::after { left: auto; right: calc(100% + 10px); bottom: 50%; transform: translateY(50%); }
.player-controls-beside .icon-button:is(:hover, :focus-visible)::after { transform: translateY(50%); }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d8e4ff29; border-radius: 50%; background: #07101a7a; backdrop-filter: blur(10px); position: relative; }
.icon-button:hover { background: #253c5cb3; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-play { display: none; }
.portal-stage[data-playback="paused"] .icon-pause, .portal-stage[data-playback="blocked"] .icon-pause { display: none; }
.portal-stage[data-playback="paused"] .icon-play, .portal-stage[data-playback="blocked"] .icon-play { display: block; }
.icon-sound-on { display: none; }
#soundToggle[aria-pressed="true"] .icon-sound-on { display: block; }
#soundToggle[aria-pressed="true"] .icon-sound-off { display: none; }
:is(.icon-button, .next-cartoon, .hero-shuffle)[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px); max-width: 220px; width: max-content; padding: 9px 12px; border-radius: 8px; color: #edf3ff; background: #142137; font-size: 11px; font-weight: 500; line-height: 1.5; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; pointer-events: none; }
:is(.icon-button, .next-cartoon, .hero-shuffle):is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.player-timeline { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 30px; }
#videoProgress { width: 100%; height: 20px; min-width: 30px; margin: 0; cursor: pointer; accent-color: #e4ecff; background: transparent; }
.video-time { min-width: 45px; font-size: 10px; font-variant-numeric: tabular-nums; }
.next-cartoon { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-bottom: 1px solid #c6d7f157; background: transparent; padding: 10px 0; font-size: 11px; }
.next-cartoon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.portal-scroll-track { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #e6efff0a; z-index: 9; }
.portal-scroll-track > div { height: 100%; background: #adc7f5; transform: scaleX(0); transform-origin: left; }

@media (min-width: 1800px) { .hero-copy { left: max(8vw, calc((100vw - 1550px) / 2)); } }
@media (max-width: 1000px) and (min-width: 761px) {
  .magic-nav nav { gap: 23px; }
  .hero-copy { left: 6vw; width: 43%; }
  .hero-copy h1 { font-size: 55px; }
  .hero-description { font-size: 13px; max-width: 270px; }
  .hero-actions { gap: 16px; flex-wrap: wrap; }
  .hero-actions .magic-button { padding: 14px 21px; gap: 18px; }
  .hero-actions .magic-text-link { font-size: 11px; }
}
@media (max-width: 760px) {
  .magic-nav { height: 76px; padding-inline: 22px; gap: 15px; }
  .magic-brand { font-size: 21px; gap: 7px; }
  .magic-brand svg { width: 21px; height: 21px; }
  .magic-nav nav { gap: 15px; }
  .magic-nav .nav-explore { font-size: 10px; }
  .magic-button-small { font-size: 10px; min-height: 38px; padding: 9px 14px; gap: 12px; }
  .hero-copy { top: 103px; left: 22px; right: 22px; width: auto; max-width: none; text-align: center; transform: none; }
  .hero-copy .magic-eyebrow { display: none; }
  .hero-copy h1 { font-size: clamp(33px, 8.7vw, 53px); line-height: 1.1; letter-spacing: -.055em; max-width: none; }
  .hero-heading-second { white-space: nowrap; }
  .hero-description { margin: 16px auto 0; max-width: 290px; font-size: 12px; line-height: 1.7; }
  .hero-actions { justify-content: center; gap: 22px; margin-top: 22px; }
  .hero-actions .magic-button { min-height: 44px; padding: 12px 20px; font-size: 11px; gap: 19px; }
  .hero-actions .magic-text-link { font-size: 10px; gap: 8px; }
  .portal-mask { clip-path: circle(min(37.5vw, 20svh) at 50% 65%); }
  .portal-picture, .orb-glass { left: 50%; top: 65%; width: min(75vw, 40svh); height: min(75vw, 40svh); }
  .orb-halo { left: 50%; top: 65%; width: 110vw; }
  .orb-floor { left: 50%; top: 87%; width: 185vw; height: 150px; }
  .portal-status, .autoplay-button { left: 50%; top: 65%; }
  .enter-portal { left: 22px; bottom: 20px; font-size: 8px; gap: 10px; }
  .scroll-line { width: 20px; }
  .now-playing { right: 22px; bottom: 30px; max-width: 43%; gap: 9px; }
  .now-playing-label { font-size: 7px; letter-spacing: 1px; }
  .now-playing-title { font-size: 9px; }
  .player-controls { gap: 12px; }
  .player-buttons { gap: 5px; }
  .icon-button { width: 38px; height: 38px; }
  .icon-button[data-tooltip]::after { left: 0; transform: translateY(4px); }
  .icon-button:is(:hover, :focus-visible)::after { transform: translateY(0); }
  .player-timeline { gap: 10px; }
  .video-time { min-width: 33px; font-size: 9px; }
  .next-cartoon { margin-left: auto; font-size: 10px; }
  .next-cartoon > span { display: none; }
  .next-cartoon { width: 36px; height: 38px; border: 1px solid #d8e4ff29; border-radius: 50%; background: #07101a7a; }
  .next-cartoon[data-tooltip]::after { left: auto; right: 0; transform: translateY(4px); }
  .next-cartoon:is(:hover, :focus-visible)::after { transform: translateY(0); }

}
@media (max-height: 700px) and (min-width: 761px) {
  .magic-nav { height: 76px; }
  .hero-copy h1 { font-size: clamp(48px, 5.4vw, 72px); }
  .hero-copy .magic-eyebrow { margin-bottom: 16px; }
  .hero-description { margin-top: 18px; font-size: 13px; }
  .hero-actions { margin-top: 22px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .magic-nav { height: 66px; }
  .hero-copy { top: 88px; }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero-description { margin-top: 12px; font-size: 11px; line-height: 1.6; }
  .hero-actions { margin-top: 16px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .hero-description { display: none; }
}
@media (min-width: 761px) and (max-height: 540px) {
  .magic-nav { height: 64px; }
  .hero-copy { top: 54%; }
  .hero-copy h1 { font-size: clamp(34px, 4.4vw, 48px); }
  .hero-copy .magic-eyebrow { display: none; }
  .hero-description { margin-top: 12px; font-size: 11px; line-height: 1.6; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .magic-button { min-height: 42px; padding: 10px 18px; }
  .enter-portal { bottom: 14px; }
  .now-playing { bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .portal-scroll { height: 100svh; min-height: 740px; }
  .portal-stage { position: relative; height: 100%; min-height: 740px; }
  .portal-mask { clip-path: none; }
  .hero-copy { top: 28%; transform: none; }
  .hero-copy h1 { text-shadow: 0 3px 25px #000c; }
  .hero-description { color: #e7edfa; text-shadow: 0 2px 15px #000; }
  .portal-stage .screen-scrim { opacity: 1; background: linear-gradient(90deg, #030812d9, #03081255), linear-gradient(transparent 60%, #030812d9); }
  .now-playing { display: none !important; }
  .enter-portal { display: none; }
  .portal-scroll-track { display: none; }
}
