@font-face { font-family: Fredoka; src: url(../fonts/fredoka-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1b45; overscroll-behavior: none;
  font-family: Fredoka, 'Trebuchet MS', system-ui, sans-serif; font-weight: 700; color: #fff; user-select: none; -webkit-user-select: none; }
#stage { position: fixed; top: 0; right: 0; bottom: 0; left: 0; margin: auto; overflow: hidden; background: #16306b; touch-action: none; }
#game { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
.layer { position: absolute; pointer-events: none; }
.screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  text-align: center; touch-action: manipulation; }
.screen.dim { background: rgba(9, 18, 52, .56); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 4px solid #ffe07a; outline-offset: 4px; border-radius: 22px; }
.screen > * + * { margin-top: 2.2vmin; }
.ib { --s: clamp(64px, 13vmin, 104px); width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; transition: transform .12s; filter: drop-shadow(0 6px 8px rgba(8, 20, 60, .45)); }
.ib img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ib.big { --s: clamp(92px, 20vmin, 150px); }
.ib.huge { --s: clamp(120px, 30vmin, 220px); }
.ib:active, .card:active, .course:active { transform: scale(.92); }
.pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.tb { padding: .5em 1.1em; border-radius: 999px; background: linear-gradient(#3b62c9, #1f3d95); border: 3px solid #f6d27a; font-size: clamp(15px, 2.6vmin, 22px);
  box-shadow: 0 5px 0 #132a6b, 0 9px 14px rgba(0, 0, 0, .35); min-height: 48px; }
.tb.gold { background: linear-gradient(#ffd96b, #e9a92c); color: #4a2c00; border-color: #fff3c4; }
.tb.tiny { font-size: 13px; padding: .3em .8em; min-height: 36px; opacity: .85; border-width: 2px; }
.row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.row > * { margin: 0 clamp(6px, 1.75vmin, 17px); }
#modes .row { align-items: stretch; }
.logo { margin: 0; font-size: clamp(34px, 9vmin, 84px); line-height: .95; letter-spacing: .01em; color: #fff3c4;
  background: linear-gradient(#fff6cf 12%, #ffd35c 52%, #f09a1c 88%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #7a3b00) drop-shadow(0 7px 0 #16306b) drop-shadow(0 12px 16px rgba(4, 12, 46, .55)); }
.logo span { display: block; font-size: .62em; background: linear-gradient(#fff, #cfe4ff); -webkit-background-clip: text; background-clip: text; }
.logo.big { font-size: clamp(40px, 12vmin, 112px); }
.sub { margin: .25em 0 0; font-size: clamp(15px, 3.6vmin, 30px); color: #fff; text-shadow: 0 2px 0 #16306b, 0 4px 10px rgba(4, 12, 46, .7); letter-spacing: .04em; }
h2 { margin: 0; font-size: clamp(24px, 6vmin, 48px); color: #ffe9a6; text-shadow: 0 3px 0 #16306b, 0 6px 12px rgba(4, 12, 46, .6); }
p { margin: 0; font-size: clamp(15px, 3vmin, 24px); text-shadow: 0 2px 4px rgba(4, 12, 46, .7); }

#loading { background: radial-gradient(120% 90% at 50% 20%, #5aa2ee, #1c3d94 62%, #0d1b45); }
.bar { width: min(70vw, 420px); height: 22px; border-radius: 99px; background: rgba(8, 20, 60, .55); border: 3px solid #f6d27a; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(#ffe58a, #f2a52a); border-radius: 99px; transition: width .2s; }

#title { justify-content: space-between; background-size: cover; background-position: 62% 50%; }
#title::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(rgba(10, 24, 70, .34), transparent 34%, transparent 62%, rgba(10, 24, 70, .42)); pointer-events: none; }
#title > * { position: relative; }
.titleTop { margin-top: 2vmin; }
#btnPlay { position: absolute !important; right: calc(5vmin + env(safe-area-inset-right)); bottom: calc(5vmin + env(safe-area-inset-bottom)); --s: clamp(110px, 26vmin, 200px); margin: 0; }
.corner.tr { position: absolute !important; top: calc(10px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.corner > * + * { margin-top: 10px; }
.corner .ib { --s: clamp(52px, 9.5vmin, 76px); }
.back { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); --s: clamp(56px, 10vmin, 80px); z-index: 2; margin: 0; }

#modes, #map, #album { background-color: #1c3d94; background-image: linear-gradient(rgba(12, 28, 84, .30), rgba(12, 28, 84, .55)), var(--bg, none); background-size: cover; background-position: 62% 50%; }
.card { width: clamp(150px, 38vmin, 300px); padding: 3vmin 2vmin; border-radius: 28px; background: linear-gradient(#3f6bd6, #1d3b92); border: 4px solid #f6d27a;
  box-shadow: 0 8px 0 #112663, 0 14px 22px rgba(0, 0, 0, .4); display: flex; flex-direction: column; align-items: center; transition: transform .12s; }
.card img { width: 62%; height: auto; pointer-events: none; margin-bottom: 1vmin; }
.card b { font-size: clamp(20px, 5vmin, 38px); color: #fff3c4; text-shadow: 0 2px 0 #112663; }
.card small { font-size: clamp(13px, 2.6vmin, 20px); color: #d7e6ff; min-height: 1.2em; }

#worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vmin, 20px); width: min(96%, 1240px); max-height: 86%; }
.world { border-radius: 22px; border: 4px solid #f6d27a; overflow: hidden; background: #1d3b92 50% 86%/cover; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(170px, 66vmin, 520px); position: relative; }
.world.locked { filter: saturate(.25) brightness(.62); }
.world h3 { margin: 0; padding: .35em .3em; font-size: clamp(13px, 2.7vmin, 22px); background: linear-gradient(transparent, rgba(8, 20, 60, .82)); position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(8, 20, 60, .8), transparent); }
.courses { display: flex; justify-content: space-evenly; padding: 8px 4px 10px; background: linear-gradient(transparent, rgba(8, 20, 60, .86) 46%); }
.course { width: clamp(44px, 9vmin, 76px); height: clamp(44px, 9vmin, 76px); flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6cf, #ffc93f 55%, #d8881a); border: 3px solid #fff3c4; color: #5a3200; font-size: clamp(18px, 4.2vmin, 34px);
  box-shadow: 0 5px 0 #8a5200, 0 8px 12px rgba(0, 0, 0, .4); position: relative; display: grid; place-items: center; transition: transform .12s; }
.course.locked { background: radial-gradient(circle at 35% 30%, #9fb0d8, #53679f); border-color: #c8d3ee; box-shadow: 0 5px 0 #2a3a6b; color: transparent; }
.course.locked img { position: absolute; width: 62%; }
.course.next { animation: pulse 1.4s ease-in-out infinite; }
.course .st { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); display: flex; }
.course .st img { width: clamp(12px, 2.6vmin, 20px); }

#hud { top: 0; right: 0; bottom: 0; left: 0; }
#hearts { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); display: flex; }
#hearts img { margin-right: 4px; width: clamp(30px, 6.4vmin, 50px); filter: drop-shadow(0 3px 3px rgba(8, 20, 60, .5)); transition: transform .25s; }
#hearts img.lost { transform: scale(.82); }
#score { position: absolute; top: calc(4px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-size: clamp(34px, 9vmin, 76px); line-height: 1;
  color: #fff; text-shadow: 0 3px 0 #16306b, 0 0 14px rgba(255, 233, 150, .7), 0 6px 10px rgba(4, 12, 46, .5); }
#score.pop { animation: pop .22s; }
@keyframes pop { 40% { transform: translateX(-50%) scale(1.25); } }
#treats { position: absolute; top: calc(clamp(44px, 8.6vmin, 66px) + env(safe-area-inset-top)); left: calc(14px + env(safe-area-inset-left)); display: flex; align-items: center; font-size: clamp(18px, 4vmin, 30px); text-shadow: 0 2px 0 #16306b; }
#treats img { width: clamp(30px, 6vmin, 46px); margin-right: 6px; }
#btnPause { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); --s: clamp(52px, 10vmin, 76px); pointer-events: auto; }
#cue { left: 50%; top: 66%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; font-size: clamp(22px, 5.4vmin, 42px); text-shadow: 0 3px 0 #16306b, 0 6px 12px rgba(4, 12, 46, .6); }
#cue img { width: clamp(64px, 14vmin, 110px); animation: tap 0.9s ease-in-out infinite; }
@keyframes tap { 50% { transform: translateY(-14px) scale(1.08); } }
#cheer { left: calc(8px + env(safe-area-inset-left)); bottom: calc(6px + env(safe-area-inset-bottom)); width: clamp(64px, 15vmin, 120px); height: clamp(64px, 15vmin, 120px); border-radius: 50%; overflow: hidden; border: 4px solid #f6d27a; background: radial-gradient(#7fb6ff, #2a56c0); box-shadow: 0 6px 12px rgba(8, 20, 60, .5); }
#cheer img { width: 150%; margin: -6% 0 0 -25%; display: block; }
#cheer.go { animation: cheer 1.7s ease-in-out both; }
@keyframes cheer { 0% { transform: translateY(130%) scale(.7); } 14%, 80% { transform: none; } 22% { transform: translateY(-8%) scale(1.06); } 100% { transform: translateY(130%); } }
#count { left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: clamp(70px, 22vmin, 170px); text-shadow: 0 5px 0 #16306b, 0 0 26px rgba(255, 233, 150, .8); }

.panel { background: linear-gradient(#3b66cf, #1b3789); border: 5px solid #f6d27a; border-radius: 32px; padding: clamp(14px, 3.4vmin, 30px) clamp(18px, 5vmin, 46px); box-shadow: 0 12px 0 #0f2259, 0 22px 34px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; align-items: center; max-width: 94%; animation: rise .35s cubic-bezier(.2, 1.4, .4, 1); }
.panel > * + * { margin-top: clamp(8px, 2.2vmin, 20px); }
.panel.wide { width: min(92%, 520px); }
@keyframes rise { from { transform: translateY(40px) scale(.9); opacity: 0; } }
#result { justify-content: flex-start; align-items: flex-start; padding-top: calc(9vmin + env(safe-area-inset-top)); padding-left: calc(9vmin + env(safe-area-inset-left)); }
#resStars { display: flex; }
#resStars img { width: clamp(44px, 11vmin, 84px); animation: starIn .5s backwards cubic-bezier(.2, 1.6, .4, 1); }
#resStars img:nth-child(2) { animation-delay: .25s; } #resStars img:nth-child(3) { animation-delay: .5s; }
@keyframes starIn { from { transform: scale(0) rotate(-140deg); } }
label { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: clamp(15px, 2.8vmin, 21px); }
label.chk { justify-content: flex-start; } label input { margin-left: 14px; } label.chk input { margin: 0 12px 0 0; }
input[type=range] { flex: 1; accent-color: #ffd35c; height: 30px; } input[type=checkbox] { width: 26px; height: 26px; accent-color: #ffd35c; }
.keys { font-size: clamp(12px, 2.1vmin, 16px); opacity: .9; font-weight: 400; font-family: system-ui, sans-serif; }

#scene { background: #0d1b45; }
#sceneFig { margin: 0; width: min(94%, calc((100vh - 26vmin) * 1.5)); border: 6px solid #f6d27a; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 4px #7a3b00, 0 18px 40px rgba(0, 0, 0, .6); position: relative; animation: rise .6s cubic-bezier(.2, 1.3, .4, 1); background: #16306b; }
#sceneImg { display: block; width: 100%; height: auto; transform-origin: 50% 0; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
#scene::before { content: ''; position: absolute; top: -60px; right: -60px; bottom: -60px; left: -60px; background: var(--pic, none) center/cover; filter: blur(26px) brightness(.5) saturate(1.2); }
#scene > * { position: relative; }
#sceneCap { position: absolute; left: 0; right: 0; bottom: 0; padding: .9em .6em .5em; font-size: clamp(16px, 3.8vmin, 30px); background: linear-gradient(transparent, rgba(8, 20, 60, .85)); }
#album { justify-content: flex-start; padding-top: calc(16px + env(safe-area-inset-top)); }
#albumGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 2.4vmin, 22px); width: min(94%, calc((100vh - 24vmin) * 1.5)); }
.pic { border: 5px solid #f6d27a; border-radius: 18px; overflow: hidden; background: #1d3b92; position: relative; box-shadow: 0 8px 16px rgba(0, 0, 0, .45); display: grid; place-items: center; }
.pic img.p { width: 100%; height: auto; display: block; }
.pic.locked img.p { filter: blur(9px) saturate(.2) brightness(.5); transform: scale(1.1); }
.pic .lk { position: absolute; width: 22%; }
@media (orientation: portrait) {
  #worlds { grid-template-columns: repeat(2, 1fr); max-height: 86%; }
  .world { min-height: clamp(130px, 34vh, 300px); }
  #albumGrid { grid-template-columns: 1fr; width: min(86%, 52vh); }
  #title { background-position: 60% 50%; }
  #btnPlay { right: auto; left: 50%; margin-left: calc(clamp(110px, 26vmin, 200px) / -2) !important; bottom: calc(7vh + env(safe-area-inset-bottom)); }
  #result { align-items: center; padding-left: 14px; padding-top: calc(11vh + env(safe-area-inset-top)); }
  .world { min-height: clamp(130px, 36vh, 320px) !important; }
}
@media (prefers-reduced-motion: reduce) { .pulse, #sceneImg, .course.next { animation: none; } }

/* ---------- painted home screen, buttons and panels (ChatGPT art), and the film touches ---------- */
.logoImg { display: block; width: min(56vw, 60vh, 620px); height: auto; filter: drop-shadow(0 10px 18px rgba(6, 14, 50, .55)); pointer-events: none; }
#title { background: none !important; justify-content: flex-start; }
#title::before { display: none; }
.titleTop { margin: 1vmin 0 0; }
#title .logoImg { animation: logoIdle 5s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes logoIdle { 0%, 100% { transform: rotate(-1.2deg) scale(1); } 50% { transform: rotate(1.2deg) scale(1.025); } }
#title.intro .titleTop { animation: logoDrop .9s 1.9s cubic-bezier(.2, 1.5, .35, 1) backwards; }
@keyframes logoDrop { from { transform: translateY(-130%) scale(.6) rotate(-8deg); opacity: 0; } }
#title.intro #btnPlay { animation: playPop .7s 2.6s cubic-bezier(.2, 1.7, .35, 1) backwards, pulse 1.5s 3.4s ease-in-out infinite; }
@keyframes playPop { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
#title.intro .corner { animation: fadeUp .5s 3s backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
#title.skip .titleTop, #title.skip #btnPlay, #title.skip .corner { animation-delay: 0s, 0.8s !important; }
#modes, #map, #album { background: none !important; }
.screen:not(.hidden) > .row, #worlds, #albumGrid { animation: fadeUp .45s .08s backwards; }
.wb { display: block; width: clamp(200px, 44vmin, 400px); transition: transform .12s; filter: drop-shadow(0 8px 10px rgba(6, 14, 50, .5)); position: relative; flex: none; }
.wb img { display: block; width: 100%; height: auto; pointer-events: none; }
.wb:active { transform: scale(.93); }
.wb.small { width: clamp(118px, 22vmin, 190px); }
.wb small { position: absolute; left: 0; right: 0; top: 104%; font-size: clamp(14px, 3vmin, 24px); color: #fff; text-shadow: 0 2px 0 #16306b, 0 4px 8px rgba(4, 12, 46, .7); }
#modes .row { flex-direction: row; } #btnAdventure { animation: bob 3s ease-in-out infinite; } #btnEndless { animation: bob 3s 1.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(.6deg); } }
.corner .wb.small { width: clamp(96px, 17vmin, 150px); }
.panel { background: none; border: 0; border-radius: 0; box-shadow: none; border-style: solid; border-width: clamp(30px, 6.4vmin, 58px); border-image: url(../art/ui_panel.webp) 118 fill / clamp(30px, 6.4vmin, 58px) / 0 stretch; padding: clamp(4px, 1.4vmin, 14px) clamp(8px, 3vmin, 30px) clamp(6px, 1.8vmin, 18px); filter: drop-shadow(0 16px 22px rgba(4, 10, 40, .55)); }
.rib { position: relative; display: grid; place-items: center; margin: clamp(-34px, -4.6vmin, -18px) 0 0; width: clamp(210px, 46vmin, 400px); font-size: clamp(18px, 4.2vmin, 34px); }
.rib.wide { width: clamp(260px, 62vmin, 560px); font-size: clamp(16px, 3.7vmin, 30px); margin-top: 0; }
.rib img { width: 100%; height: auto; display: block; }
.rib span { position: absolute; left: 14%; right: 14%; top: 22%; color: #fff6d8; text-shadow: 0 2px 0 #7a1010, 0 3px 6px rgba(60, 0, 0, .5); white-space: nowrap; }
.bar { width: min(74vw, 460px); height: auto; border: 0; border-radius: 0; background: url(../art/ui_tube.webp) center / 100% 100% no-repeat; overflow: visible; padding: 4.6% 9% 4.6%; box-sizing: border-box; }
.bar::before { content: ''; display: block; padding-top: 12%; margin-bottom: -12%; }
.bar i { height: 0; padding-top: 12%; background: url(../art/ui_fill.webp) left center / auto 100% no-repeat; border-radius: 99px; }
.course { background: none !important; border: 0 !important; box-shadow: none !important; width: clamp(46px, 9.6vmin, 84px); height: clamp(46px, 9.6vmin, 84px); filter: drop-shadow(0 5px 6px rgba(4, 10, 40, .55)); }
.course > img.m { width: 100%; height: 100%; display: block; position: static !important; }
.course.locked { color: transparent; }
.world { border: clamp(14px, 3vmin, 26px) solid transparent !important; border-image: url(../art/ui_panel.webp) 118 / clamp(14px, 3vmin, 26px) / 0 stretch !important; border-radius: 0 !important; background-clip: padding-box !important; background-origin: padding-box; overflow: visible; box-shadow: none; filter: drop-shadow(0 10px 14px rgba(4, 10, 40, .55)); transition: transform .2s; }
.world.locked { filter: saturate(.3) brightness(.66) drop-shadow(0 10px 14px rgba(4, 10, 40, .55)); }
.world h3 { background: none; top: clamp(-30px, -4.4vmin, -16px); }
.world h3 .rib { width: 108%; margin: 0 -4%; font-size: clamp(11px, 2.3vmin, 20px); }
.world:not(.locked) { animation: bob 4s ease-in-out infinite; } .world:nth-child(2) { animation-delay: .6s; } .world:nth-child(3) { animation-delay: 1.2s; } .world:nth-child(4) { animation-delay: 1.8s; }
label.chk { cursor: pointer; } label.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; } label.chk img { width: clamp(30px, 6vmin, 44px); height: auto; margin-right: 12px; }
.pic { border: clamp(10px, 2.2vmin, 20px) solid transparent; border-image: url(../art/ui_panel.webp) 118 / clamp(10px, 2.2vmin, 20px) / 0 stretch; border-radius: 0; background-clip: padding-box; box-shadow: none; filter: drop-shadow(0 8px 12px rgba(4, 10, 40, .55)); }
#sceneFig { border: clamp(12px, 2.6vmin, 24px) solid transparent; border-image: url(../art/ui_panel.webp) 118 / clamp(12px, 2.6vmin, 24px) / 0 stretch; border-radius: 0; box-shadow: none; background-clip: padding-box; overflow: hidden; }
#sceneImg.a { animation: shotA 6.5s ease-out both; } #sceneImg.b { animation: shotB 6.5s ease-out both; } #sceneImg.c { animation: shotC 7s ease-out both; }
@keyframes shotA { from { transform: scale(1.5) translate(12%, 6%); } to { transform: scale(1.06) translate(0, 0); } }
@keyframes shotB { from { transform: scale(1.08) translate(4%, 5%); } to { transform: scale(1.42) translate(-13%, -9%); } }
@keyframes shotC { from { transform: scale(1.7) translate(-21%, 9%); } to { transform: scale(1.02); } }
#sceneImg { transform-origin: 50% 50%; }
#sceneDots { display: flex; margin-top: 1vmin; } #sceneDots i { width: 12px; height: 12px; border-radius: 50%; margin: 0 5px; background: rgba(255, 255, 255, .35); } #sceneDots i.on { background: #ffd35c; box-shadow: 0 0 8px #ffd35c; }
#scene.flash #sceneFig { animation: shotFlash .5s; } @keyframes shotFlash { from { filter: brightness(3); transform: scale(1.04); } }
/* film bars, the world banner, the cloud wipe */
#bars { top: 0; right: 0; bottom: 0; left: 0; }
#bars i { position: absolute; left: 0; right: 0; height: 9.5vh; background: #050a24; transition: transform .7s cubic-bezier(.3, .1, .2, 1); }
#bars i:first-child { top: 0; transform: translateY(-101%); } #bars i:last-child { bottom: 0; transform: translateY(101%); }
#bars.in i { transform: none; }
#banner { left: 50%; top: 16%; width: clamp(240px, 56vmin, 500px); transform: translateX(-50%); animation: bannerIn 2.6s cubic-bezier(.2, 1.2, .3, 1) both; text-align: center; }
#banner img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 12px rgba(4, 10, 40, .5)); }
#banner b { position: absolute; left: 12%; right: 12%; top: 20%; font-size: clamp(17px, 4.1vmin, 36px); color: #fff6d8; text-shadow: 0 2px 0 #7a1010, 0 3px 6px rgba(60, 0, 0, .5); white-space: nowrap; }
#banner small { display: block; margin-top: -1.5vmin; font-size: clamp(15px, 3.4vmin, 28px); text-shadow: 0 2px 0 #16306b, 0 4px 10px rgba(4, 12, 46, .7); }
@keyframes bannerIn { 0% { transform: translate(-50%, -260%) rotate(-6deg); opacity: 0; } 16%, 78% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -260%); opacity: 0; } }
#wipe { top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; visibility: hidden; }
#wipe.go { visibility: visible; }
#wipe i { position: absolute; left: -70vw; width: 170vw; height: 46vh; background: radial-gradient(closest-side, #fff 30%, rgba(255, 255, 255, .96) 55%, rgba(255, 255, 255, 0) 100%); border-radius: 50%; transform: translateX(-140vw); }
#wipe i:nth-child(1) { top: -16vh; } #wipe i:nth-child(2) { top: 8vh; } #wipe i:nth-child(3) { top: 30vh; } #wipe i:nth-child(4) { top: 52vh; } #wipe i:nth-child(5) { top: 72vh; } #wipe i:nth-child(6) { top: -4vh; height: 110vh; }
#wipe.go i { animation: wipe .95s cubic-bezier(.4, 0, .3, 1) both; } #wipe.go i:nth-child(2) { animation-delay: .05s; } #wipe.go i:nth-child(3) { animation-delay: .02s; } #wipe.go i:nth-child(4) { animation-delay: .07s; } #wipe.go i:nth-child(5) { animation-delay: .03s; }
@keyframes wipe { from { transform: translateX(-140vw); } to { transform: translateX(190vw); } }
#result .panel { animation: rise .5s cubic-bezier(.2, 1.4, .4, 1); }
@media (orientation: portrait) {
  .logoImg { width: min(88vw, 46vh); }
  #modes .row { flex-direction: column; } #modes .row > * { margin: 2.6vh 0; }
  .wb { width: clamp(220px, 70vw, 420px); }
  #bars i { height: 7vh; }
  .corner.tr { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { #title .logoImg, #btnAdventure, #btnEndless, .world, #sceneImg { animation: none !important; } }
.panel .row { flex-wrap: nowrap; }
@media (orientation: portrait) { #result .ib { --s: clamp(50px, 15vw, 78px); } #result .ib.big { --s: clamp(68px, 20vw, 104px); } #pause .ib { --s: clamp(48px, 14vw, 76px); } #pause .ib.big { --s: clamp(64px, 19vw, 100px); } }
