:root {
  color-scheme: dark;
  --accent: #7effb2;
  --accent-rgb: 126, 255, 178;
  --secondary: #f066ff;
  --logo-x: 59%;
  --logo-y: 43%;
  --logo-turn: -3deg;
  --progress: 0;
  --px: 0px;
  --py: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #10121d; }
body { font-family: 'Space Grotesk', sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
button svg { display: block; width: 21px; height: 21px; }
.multiverse { isolation: isolate; position: relative; min-height: 740px; height: 100svh; overflow: hidden; background: #10121d; }
.worlds, .scene, .scene-shade, #particles, .comic-wipe, .speed-lines { position: absolute; inset: 0; pointer-events: none; }
.worlds { z-index: -5; overflow: hidden; }
.scene { visibility: hidden; opacity: 0; transition: opacity 900ms ease, visibility 900ms; }
.scene.is-active { visibility: visible; opacity: 1; }
.scene picture { position: absolute; inset: -3%; display: block; }
.scene-image { width: 100%; height: 100%; object-fit: cover; transform: translate(calc(var(--px) * -.25), calc(var(--py) * -.25)) scale(1.04); }
.scene.is-active picture { animation: world-drift 22s ease-in-out infinite alternate; }
.scene-shade { z-index: -4; background: linear-gradient(0deg, #10121d 1%, rgba(16, 18, 29, .94) 10%, rgba(10, 12, 25, .45) 27%, transparent 60%), linear-gradient(90deg, rgba(8, 11, 23, .75), rgba(9, 12, 24, .12) 45%, rgba(8, 11, 23, .12) 80%, rgba(8, 11, 23, .30)), linear-gradient(180deg, rgba(8, 11, 23, .62), transparent 24%); }
.halftone { position: absolute; pointer-events: none; z-index: -3; opacity: .19; background-image: radial-gradient(#03050a 1.5px, transparent 1.5px); background-size: 8px 8px; }
.halftone-top { top: 0; right: 0; width: 31%; height: 60%; mask-image: linear-gradient(215deg, #000, transparent 65%); }
.halftone-bottom { left: 0; bottom: 130px; width: 42%; height: 40%; mask-image: linear-gradient(45deg, #000, transparent 65%); }
#particles { z-index: 0; width: 100%; height: 100%; }
.speed-lines { z-index: -2; opacity: 0; background: repeating-conic-gradient(from 0deg at var(--logo-x) var(--logo-y), transparent 0deg 12deg, rgba(var(--accent-rgb), .28) 12.2deg 12.5deg, transparent 12.7deg 23deg); mask-image: radial-gradient(ellipse at var(--logo-x) var(--logo-y), transparent 13%, #000 65%); }
.is-bursting .speed-lines { animation: speed-flare 850ms ease-out both; }
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 30px 3.4vw; }
.identity { display: flex; align-items: center; gap: 13px; color: white; text-decoration: none; }
.identity-mark { font-family: 'Barlow Condensed', sans-serif; font-size: 35px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.identity-mark span { color: var(--accent); transition: color 600ms; }
.identity-name { font-size: 12px; letter-spacing: .17em; font-weight: 700; }
.identity-name > span { display: block; font-size: 8px; color: #c8c8d5; letter-spacing: .18em; margin-top: 5px; }
.topbar-socials { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.social-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff30; background: #11132148; backdrop-filter: blur(10px); color: #cfd2de; text-decoration: none; transition: transform 180ms cubic-bezier(.2,.8,.3,1), border-color 180ms, background 180ms, color 180ms, box-shadow 180ms; }
.social-link svg { width: 17px; height: 17px; display: block; }
.social-link:hover { transform: translateY(-3px) scale(1.06); border-color: var(--accent); color: #fff; background: #ffffff1f; box-shadow: 0 0 16px rgba(var(--accent-rgb), .35); }
.social-yt:hover { border-color: #ff3333; color: #ff4444; box-shadow: 0 0 16px rgba(255, 51, 51, .4); }
.social-kick:hover { border-color: #53fc18; color: #53fc18; box-shadow: 0 0 16px rgba(83, 252, 24, .4); }
.social-twitch:hover { border-color: #a970ff; color: #a970ff; box-shadow: 0 0 16px rgba(169, 112, 255, .4); }
.social-discord:hover { border-color: #5865f2; color: #7289da; box-shadow: 0 0 16px rgba(88, 101, 242, .4); }
.controls { display: flex; align-items: center; gap: 8px; }
.lang-switcher { display: flex; align-items: center; padding: 3px; gap: 3px; border-radius: 24px; border: 1px solid #ffffff38; background: #11132148; backdrop-filter: blur(10px); }
.lang-btn { background: transparent; border: 0; color: #9ea4b5; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 5px 9px; border-radius: 18px; cursor: pointer; transition: background 180ms, color 180ms, box-shadow 180ms, transform 180ms; line-height: 1; }
.lang-btn:hover { color: #fff; background: #ffffff18; }
.lang-btn.is-active { background: var(--accent); color: #10121d; font-weight: 800; box-shadow: 0 0 12px rgba(var(--accent-rgb), .4); }
.icon-button { border: 1px solid #ffffff38; background: #11132138; backdrop-filter: blur(10px); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background 180ms, border-color 180ms, transform 180ms; }
.icon-button:hover { background: #ffffff22; border-color: var(--accent); transform: translateY(-2px); }
.icon-button[aria-pressed="false"] { color: #a1a5b3; }
.scene-counter { position: absolute; top: 48%; left: 3.4vw; z-index: 2; display: flex; align-items: center; gap: 10px; color: #a7acba; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.scene-counter #scene-number { color: white; font-weight: 700; }
.counter-line { width: 27px; height: 1px; background: var(--accent); }
.counter-divider { opacity: .5; }
.emblem-anchor { position: absolute; left: var(--logo-x); top: var(--logo-y); z-index: 3; width: min(43vw, 63vh, 550px); aspect-ratio: 1; transform: translate(-50%, -50%); transition: left 1500ms cubic-bezier(.2,.7,.25,1), top 1500ms cubic-bezier(.2,.7,.25,1); }
.emblem-motion { position: relative; width: 100%; height: 100%; animation: emblem-float 7s ease-in-out infinite; }
.emblem { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; user-select: none; touch-action: none; transform: rotate(var(--logo-turn)) translate(calc(var(--px) * .6), calc(var(--py) * .6)); transition: transform 1.2s ease, filter .5s; cursor: grab; }
.emblem img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 20px 16px #03071090) drop-shadow(0 0 18px rgba(var(--accent-rgb), .30)); }
.emblem:hover { filter: brightness(1.09); }
.emblem-anchor:hover .emblem-motion { animation-play-state: paused; }
.emblem:active { cursor: grabbing; }
.emblem-anchor.is-dragging { transition: none; }
.is-dragging .emblem-motion { animation-play-state: paused; }
.is-dragging .emblem { transform: rotate(var(--logo-turn)); transition: none; }
.portal-halo { position: absolute; inset: 15%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--accent-rgb), .34), rgba(var(--accent-rgb), .06) 52%, transparent 70%); filter: blur(16px); transform: scale(1.4); }
.portal-orbit { position: absolute; inset: 8%; z-index: -1; border: 1px solid rgba(var(--accent-rgb), .30); border-radius: 50%; pointer-events: none; }
.orbit-one { transform: rotate(-25deg) scaleY(.63); border-top: 2px solid var(--accent); animation: orbit-turn 18s linear infinite; }
.orbit-two { inset: 5%; transform: rotate(30deg) scaleY(.72); border-right: 2px solid var(--secondary); border-color: #ffffff15; animation: orbit-turn 25s linear infinite reverse; }
.emblem-sticker { position: absolute; right: 9%; bottom: 13%; transform: rotate(-8deg); background: var(--accent); padding: 8px 13px; color: #111521; font-size: 9px; font-weight: 700; letter-spacing: .12em; box-shadow: 3px 3px 0 #10121d; pointer-events: none; }
.emblem-sticker > span { font-size: 13px; margin-left: 5px; }
.burst-word { position: absolute; left: 50%; top: 14%; transform: translate(-50%, -50%) rotate(-10deg) scale(.6); opacity: 0; pointer-events: none; white-space: nowrap; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(50px, 6vw, 93px); font-weight: 800; font-style: italic; color: var(--accent); -webkit-text-stroke: 2px #12141d; filter: drop-shadow(5px 7px 0 #12141d); }
.is-bursting .burst-word { animation: word-pop 950ms cubic-bezier(.17,.67,.2,1) both; }
.is-bursting .portal-halo { animation: halo-burst 1s ease-out both; }
.is-teleporting .emblem { animation: emblem-teleport 650ms ease-in-out; }
.world-info { position: absolute; left: 3.4vw; bottom: 214px; z-index: 4; pointer-events: none; max-width: 45vw; }
.world-kicker { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 600; letter-spacing: .2em; color: #e7e8ed; }
.live-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 9px var(--accent); }
.world-info h1 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(76px, 9.4vw, 145px); font-weight: 800; line-height: .86; margin: 15px 0 17px -3px; letter-spacing: -.025em; text-shadow: 0 3px 22px #070a1770; }
.title-period { color: var(--accent); }
.world-description { font-size: 12px; line-height: 1.65; color: #e2e3e9; margin: 0; }
.world-tags { display: flex; gap: 9px; align-items: center; margin-top: 18px; font-size: 8px; font-weight: 600; letter-spacing: .16em; color: #d2d4de; }
.world-tags i { color: var(--accent); font-style: normal; font-size: 12px; }
.world-info.is-changing { animation: info-in 550ms ease both; }
body[data-world="brawl"] .world-info h1 { font-size: clamp(65px, 7.2vw, 112px); }
body[data-world="goat"] .world-info h1 { font-size: clamp(68px, 8vw, 118px); }
.scene-hint { position: absolute; right: 3.4vw; bottom: 218px; z-index: 4; font-size: 10px; line-height: 1.7; color: #d1d4df; text-align: right; }
.scene-hint > span { display: inline-block; color: var(--accent); font-size: 34px; margin-bottom: 7px; animation: hint-spin 25s linear infinite; }
.scene-hint > strong { font-weight: 500; color: #fff; }
.burst-toast { position: absolute; top: 105px; left: 50%; transform: translateX(-50%); z-index: 5; font-size: 10px; color: white; background: #111321bc; backdrop-filter: blur(10px); padding: 9px 15px; border: 1px solid #ffffff30; border-radius: 20px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.burst-toast.is-visible { opacity: 1; }
.world-deck { position: absolute; left: 3.4vw; right: 3.4vw; bottom: 24px; z-index: 8; }
.deck-topline, .deck-bottomline { display: flex; justify-content: space-between; align-items: center; }
.deck-topline { margin-bottom: 13px; }
.deck-label { font-size: 9px; font-weight: 600; letter-spacing: .15em; display: flex; align-items: center; gap: 9px; }
.deck-label > span { color: var(--accent); font-size: 16px; }
.autoplay-controls { display: flex; align-items: center; gap: 10px; }
.autoplay-label { color: #c4c7d2; font-size: 8px; letter-spacing: .12em; }
.pause-button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ffffff3a; background: #ffffff08; }
.pause-button:hover { border-color: var(--accent); }
.pause-button svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.pause-button .play-icon { display: none; }
.pause-button[aria-pressed="true"] .play-icon { display: block; }
.pause-button[aria-pressed="true"] .pause-icon { display: none; }
.game-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.game-card { position: relative; isolation: isolate; overflow: hidden; height: 91px; text-align: left; border: 1px solid #ffffff30; border-radius: 4px; background: #1a1e2b; padding: 13px 13px 12px; transition: transform 250ms, border-color 250ms, box-shadow 250ms; }
.game-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #080b1440, #080b14d6); }
.game-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .73; filter: saturate(.5); transition: filter .4s, transform .7s, opacity .4s; }
.game-card:hover { transform: translateY(-4px); border-color: #ffffffa0; }
.game-card:hover img { filter: saturate(1); transform: scale(1.1); opacity: 1; }
.game-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(var(--accent-rgb), .09); transform: translateY(-4px); }
.game-card.is-active img { filter: saturate(1.1); opacity: 1; }
.card-number { display: block; font-size: 8px; color: #d0d2dd; font-variant-numeric: tabular-nums; }
.is-active .card-number { color: var(--accent); }
.card-name { position: absolute; left: 13px; bottom: 14px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(15px, 1.6vw, 24px); font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
.card-arrow { position: absolute; right: 11px; top: 9px; font-size: 17px; opacity: 0; color: var(--accent); }
.is-active .card-arrow, .game-card:hover .card-arrow { opacity: 1; }
.card-progress { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.is-active .card-progress { transform: scaleX(var(--progress)); }
.deck-bottomline { margin-top: 17px; color: #989eaf; font-size: 7px; letter-spacing: .12em; }
.keyboard-hint { display: flex; align-items: center; gap: 5px; letter-spacing: .02em; }
kbd { font: inherit; font-size: 7px; border: 1px solid #ffffff30; border-radius: 3px; padding: 2px 4px; color: #c5c9d3; }
.hint-separator { margin: 0 7px; opacity: .5; }
.footer-signature { color: #d3d5dd; }
.footer-signature > span { color: var(--accent); font-size: 11px; padding-left: 8px; }
.comic-wipe { inset: -15%; z-index: 6; background: var(--accent); transform: translateX(-130%) skewX(-17deg); display: grid; place-items: center; opacity: 0; }
.comic-wipe::before { content: ''; position: absolute; inset: 0; background: radial-gradient(#10121d80 1px, transparent 1px); background-size: 9px 9px; }
.comic-wipe::after { content: ''; position: absolute; right: 0; width: 8%; height: 100%; background: var(--secondary); border-left: 7px solid #10121d; }
.comic-wipe > span { position: relative; transform: skewX(17deg) rotate(-8deg); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-style: italic; font-size: clamp(90px, 15vw, 210px); color: #10121d; letter-spacing: -.025em; }
.comic-wipe.is-wiping { animation: comic-wipe 750ms cubic-bezier(.7,0,.3,1) both; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript-note { position: absolute; top: 95px; left: 3.4vw; font-size: 11px; }
.motion-off .scene-image { transform: none; }
.motion-off .scene.is-active picture, .motion-off .emblem-motion, .motion-off .portal-orbit, .motion-off .scene-hint > span { animation: none; }
.motion-off .emblem-anchor, .motion-off .emblem, .motion-off .scene, .motion-off .game-card, .motion-off .game-card img { transition: none; }
.motion-off .emblem { transform: rotate(var(--logo-turn)); }
.motion-off .speed-lines, .motion-off .burst-word, .motion-off #particles { display: none; }
.motion-off .portal-halo { animation: none; }
.is-hidden .scene.is-active picture, .is-hidden .emblem-motion, .is-hidden .portal-orbit, .is-hidden .scene-hint > span { animation-play-state: paused; }
@keyframes world-drift { from { transform: scale(1) rotate(-.3deg); } to { transform: scale(1.06) rotate(.4deg); } }
@keyframes emblem-float { 0%, 100% { transform: translateY(-7px) rotate(-1deg); } 50% { transform: translateY(10px) rotate(1.2deg); } }
@keyframes orbit-turn { from { transform: rotate(0deg) scaleY(.65); } to { transform: rotate(360deg) scaleY(.65); } }
@keyframes hint-spin { to { transform: rotate(360deg); } }
@keyframes speed-flare { 0% { opacity: 0; transform: scale(.9); } 15% { opacity: .65; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes word-pop { 0% { opacity: 0; transform: translate(-50%, -20%) rotate(-10deg) scale(.5); } 20%, 60% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -90%) rotate(-4deg) scale(1.08); } }
@keyframes halo-burst { 0% { transform: scale(1.4); } 25% { transform: scale(2.4); opacity: 1; } 100% { transform: scale(1.4); } }
@keyframes emblem-teleport { 0%,100% { opacity: 1; filter: blur(0); } 35% { opacity: .3; filter: blur(5px); transform: rotate(var(--logo-turn)) scale(.9); } }
@keyframes info-in { from { opacity: .15; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes comic-wipe { 0% { transform: translateX(-130%) skewX(-17deg); opacity: 1; } 100% { transform: translateX(130%) skewX(-17deg); opacity: 1; } }
@media (min-width: 1700px) { .world-info { bottom: 240px; } .game-card { height: 109px; } .scene-hint { bottom: 243px; } }
@media (max-height: 780px) and (min-width: 701px) {
  .multiverse { min-height: 590px; }
  .world-info { bottom: 195px; }
  .world-info h1 { font-size: clamp(65px, 8vw, 112px); }
  .world-description { font-size: 11px; }
  .scene-counter { top: 37%; }
  .scene-hint { bottom: 205px; }
  .world-tags { margin-top: 10px; }
  .emblem-anchor { width: min(42vw, 63vh, 480px); }
  .game-card { height: 78px; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .world-info h1 { font-size: 90px; }
  body[data-world="brawl"] .world-info h1 { font-size: 67px; }
  .game-picker { gap: 7px; }
  .game-card { padding: 10px; }
  .card-name { left: 9px; font-size: 19px; }
  .scene-hint { font-size: 9px; }
  .world-info { max-width: 42vw; }
}
@media (max-width: 700px) {
  .multiverse { min-height: 680px; height: 100svh; }
  .topbar { padding: 18px 20px; flex-wrap: wrap; gap: 10px 0; }
  .identity-name { font-size: 10px; }
  .identity-name > span { font-size: 6px; }
  .identity-mark { font-size: 32px; }
  .topbar-socials { position: static; transform: none; order: 3; width: 100%; justify-content: center; gap: 12px; margin-top: 4px; }
  .social-link { width: 34px; height: 34px; }
  .social-link svg { width: 15px; height: 15px; }
  .controls { gap: 6px; }
  .lang-switcher { padding: 2px; gap: 2px; }
  .lang-btn { font-size: 11px; padding: 4px 7px; }
  .icon-button { width: 35px; height: 35px; }
  .icon-button svg { width: 18px; height: 18px; }
  .scene-image { object-position: 45% center; }
  .scene-shade { background: linear-gradient(0deg, #10121d 0%, #10121df0 17%, #10121d63 44%, transparent 67%), linear-gradient(180deg, #10121d75, transparent 26%), linear-gradient(90deg, #10121d35, transparent 65%); }
  .scene-counter { left: 22px; top: 126px; font-size: 9px; }
  .counter-line { width: 18px; }
  .emblem-anchor { left: 50%; top: 36%; width: min(87vw, 43vh, 440px); }
  .emblem-sticker { font-size: 7px; padding: 6px 9px; right: 5%; }
  .portal-orbit { opacity: .7; }
  .world-info { left: 23px; bottom: 207px; max-width: 90%; }
  .world-kicker { font-size: 7px; letter-spacing: .16em; }
  .world-info h1 { font-size: clamp(62px, 16vw, 94px); margin-top: 12px; margin-bottom: 12px; }
  body[data-world="brawl"] .world-info h1 { font-size: clamp(54px, 14vw, 79px); }
  body[data-world="goat"] .world-info h1 { font-size: clamp(60px, 15vw, 88px); }
  .world-description { font-size: 10px; line-height: 1.55; }
  .world-tags { display: none; }
  .scene-hint { display: none; }
  .world-deck { left: 22px; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); }
  .deck-topline { margin-bottom: 12px; }
  .deck-label { font-size: 7px; letter-spacing: .12em; }
  .deck-label > span { font-size: 15px; }
  .autoplay-label { font-size: 7px; }
  .game-picker { display: flex; gap: 9px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 7px 3px 5px; margin: -7px -3px -5px; scroll-snap-type: x proximity; }
  .game-picker::-webkit-scrollbar { display: none; }
  .game-card { flex: 0 0 114px; height: 85px; scroll-snap-align: center; }
  .card-name { font-size: 19px; left: 11px; }
  .deck-bottomline { margin-top: 18px; font-size: 6px; letter-spacing: .07em; gap: 15px; }
  .keyboard-hint { display: none; }
  .footer-signature { white-space: nowrap; font-size: 7px; }
  .burst-toast { top: 98px; font-size: 9px; white-space: nowrap; }
  .burst-word { font-size: 65px; }
  .halftone-bottom { bottom: 180px; width: 85%; }
}
@media (max-width: 360px) { .identity-name { display: none; } .world-info h1 { font-size: 59px; } .deck-label { font-size: 6px; } .footer-signature { display: none; } }
@media (max-height: 520px) and (orientation: landscape) {
  .multiverse { height: 100svh; min-height: 360px; }
  .topbar { padding: 15px 22px; }
  .topbar-socials, .scene-counter, .scene-hint, .world-description, .world-tags, .deck-bottomline { display: none; }
  .world-info { left: 22px; bottom: 136px; }
  .world-info h1, body[data-world="brawl"] .world-info h1, body[data-world="goat"] .world-info h1 { font-size: 64px; }
  .emblem-anchor { left: var(--logo-x); top: 37%; width: min(38vw, 64vh); }
  .world-deck { left: 22px; right: 22px; bottom: 13px; }
  .deck-topline { margin-bottom: 6px; }
  .game-card { height: 58px; }
  .card-number { display: none; }
  .card-name { left: 8px; bottom: 11px; font-size: 16px; }
  .pause-button { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #particles, .comic-wipe, .speed-lines { display: none; }
  .emblem { transform: rotate(var(--logo-turn)); }
  .scene-image { transform: none; }
}
