:root {
  --ink: #2a1c3d;
  --cream: #fff6e4;
  --red: #e23a33;
  --red-d: #a8211c;
  --gold: #ffc93c;
  --gold-d: #c98a00;
  --teal: #19b3a6;
  --teal-d: #0e7a71;
  --navy: #253a7a;
  --navy-d: #17265a;
  --panel: #fff6e4;
  --shadow: 0 6px 0 rgba(42, 28, 61, .28), 0 14px 30px rgba(42, 28, 61, .25);
  --head: 'Lilita One', 'Arial Black', Impact, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1a1530; color: var(--ink); font-family: var(--body); }
#app { position: fixed; inset: 0; user-select: none; -webkit-user-select: none; touch-action: none; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }

/* ---------------------------------------------------------------- HUD */
#hud { position: absolute; inset: 0; pointer-events: none; padding: max(12px, env(safe-area-inset-top)) 14px 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 999px; padding: 6px 14px 6px 8px;
  box-shadow: 0 4px 0 rgba(42, 28, 61, .3); font-family: var(--head); font-size: 22px; line-height: 1; position: relative; }
.pill.balls { position: absolute; left: 14px; top: max(12px, env(safe-area-inset-top)); padding-right: 16px; overflow: hidden; }
.pill.balls img { width: 34px; height: 34px; border-radius: 50%; }
.pill.balls .label { font-size: 12px; letter-spacing: .08em; color: #8a6f62; align-self: flex-start; margin-top: 2px; }
.pill.balls b { font-size: 28px; color: var(--red); min-width: 1.2em; }
.pill.balls.low b { animation: blink .6s infinite alternate; }
#reload { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--teal); transform-origin: left; }
@keyframes blink { to { color: #ff9b3a; transform: scale(1.12); } }
#hud .center { position: absolute; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pill.level { flex-direction: column; gap: 1px; padding: 5px 20px; background: var(--navy); color: #fff; }
.pill.level span { font-family: var(--body); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.pill.level b { font-size: 20px; letter-spacing: .04em; }
.pill.coins { font-size: 18px; padding: 4px 12px 4px 6px; }
.coin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 45%, var(--gold-d)); box-shadow: inset 0 0 0 2px rgba(150, 90, 0, .35); flex: none; }
.coin::after { content: '★'; display: block; text-align: center; font-size: 13px; line-height: 22px; color: #b87400; }
#hud .buttons { position: absolute; right: 14px; top: max(12px, env(safe-area-inset-top)); display: flex; gap: 8px; pointer-events: auto; }
.round { width: 46px; height: 46px; border-radius: 50%; background: var(--cream); box-shadow: 0 4px 0 rgba(42, 28, 61, .3); font-size: 20px; font-weight: 900; display: grid; place-items: center; }
.round:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42, 28, 61, .3); }
.cans-left { position: absolute; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 92px); transform: translateX(-50%); background: rgba(42, 28, 61, .55); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .03em; }
.cans-left span { font-family: var(--head); font-size: 18px; color: var(--gold); }

#tip { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); background: rgba(255, 246, 228, .96);
  padding: 10px 18px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 800; font-size: 16px; text-align: center; pointer-events: none; animation: pop .35s ease-out; }
#banner { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; pointer-events: none; opacity: 0; color: #fff; text-shadow: 0 4px 0 rgba(42, 28, 61, .45); }
#banner small { display: block; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
#banner b { font-family: var(--head); font-size: clamp(38px, 8vw, 68px); font-weight: 400; }
#banner.play { animation: banner 1.7s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: scale(.7); } 15% { opacity: 1; transform: scale(1.05); } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes pop { from { transform: translateX(-50%) scale(.8); opacity: 0; } }
#floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floater { position: absolute; transform: translate(-50%, -50%); font-family: var(--head); font-size: 30px; color: #fff; text-shadow: 0 3px 0 rgba(42, 28, 61, .5); animation: float 1.2s ease-out forwards; }
.floater.gold { color: var(--gold); }
@keyframes float { to { transform: translate(-50%, -150%); opacity: 0; } }

/* ---------------------------------------------------------------- screens */
.screen { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.screen.dim { background: rgba(26, 21, 48, .45); backdrop-filter: blur(2px); }
#title { background: linear-gradient(180deg, rgba(26, 21, 48, .42) 0%, rgba(26, 21, 48, 0) 26%, rgba(26, 21, 48, 0) 62%, rgba(26, 21, 48, .5) 100%);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: max(56px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom)); overflow: hidden; }
.logo { display: flex; flex-direction: column; align-items: center; font-family: var(--head); line-height: .82; transform: rotate(-4deg); filter: drop-shadow(0 8px 0 rgba(42, 28, 61, .45)); }
.logo .t1 { font-size: clamp(56px, 13vw, 110px); color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; letter-spacing: .06em; }
.logo .t2 { font-size: clamp(64px, 16vw, 140px); color: #fff; -webkit-text-stroke: 4px var(--red-d); paint-order: stroke fill;
  background: repeating-linear-gradient(100deg, #fff 0 22px, #ffd7d4 22px 44px); -webkit-background-clip: text; background-clip: text; }
.tag { color: #fff; font-weight: 900; font-size: 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); margin: 18px 0 14px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.big { font-family: var(--head); font-size: 30px; padding: 14px 54px; border-radius: 22px; letter-spacing: .04em; min-width: 260px; }
.mid { font-family: var(--head); font-size: 22px; padding: 12px 22px; border-radius: 18px; letter-spacing: .03em; }
.go { background: linear-gradient(#ff6158, var(--red)); color: #fff; box-shadow: 0 6px 0 var(--red-d), 0 12px 24px rgba(0, 0, 0, .25); text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.alt { background: linear-gradient(#3d5fb6, var(--navy)); color: #fff; box-shadow: 0 6px 0 var(--navy-d), 0 12px 24px rgba(0, 0, 0, .2); }
.go:active, .alt:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.title-coins { position: absolute; left: 16px; top: max(16px, env(safe-area-inset-top)); }
.corner { position: absolute; right: 16px; top: max(16px, env(safe-area-inset-top)); }
#loading { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-weight: 800; background: rgba(26, 21, 48, .6); padding: 12px 18px; border-radius: 16px; }
#loading .bar { width: 220px; height: 10px; background: rgba(255, 255, 255, .25); border-radius: 6px; overflow: hidden; }
#loading .bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
#loading:not(.hidden) ~ * { pointer-events: none; }

.panel { background: var(--panel); border-radius: 26px; box-shadow: var(--shadow); padding: 16px 18px 20px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  border: 4px solid #fff; outline: 3px solid rgba(42, 28, 61, .15); }
.panel header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.panel h2 { font-family: var(--head); font-weight: 400; font-size: 32px; margin: 0; flex: 1; }
.panel .round { background: #ffe1b8; }
#world-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tab { border-radius: 16px; padding: 10px 6px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .65; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.tab b { font-family: var(--head); font-weight: 400; font-size: 20px; }
.tab small { font-weight: 900; font-size: 13px; }
.tab.on { opacity: 1; transform: translateY(-2px); outline: 3px solid var(--gold); }
.tab:disabled { filter: grayscale(.8); opacity: .4; }
.tab.fair { background: linear-gradient(#5fb6ff, #2f80d8); }
.tab.boardwalk { background: linear-gradient(#ff9d6b, #d9603a); }
.tab.night { background: linear-gradient(#5a4fc4, #2a2470); }
#world-blurb { text-align: center; font-weight: 800; color: #8a6f62; margin: 10px 0; }
#level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lvl { aspect-ratio: 1 / 1.05; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 #e5c99c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; border: 3px solid #f3dfbd; }
.lvl b { font-family: var(--head); font-weight: 400; font-size: 32px; color: var(--navy); line-height: 1; }
.lvl .nm { font-size: 11px; overflow-wrap: anywhere; font-weight: 900; color: #8a6f62; text-align: center; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; }
.lvl .st { display: flex; gap: 2px; }
.lvl .st i, .stars i { display: inline-block; width: 18px; height: 18px; background: #e2d3bd; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.lvl .st i.on, .stars i.on { background: linear-gradient(#ffe27a, #f5a900); }
.lvl.done { border-color: #ffd877; }
.lvl.locked { background: #efe4d2; box-shadow: 0 5px 0 #d8c7a8; }
.lvl.locked b { font-size: 24px; }
.lvl:not(.locked):active { transform: translateY(3px); box-shadow: 0 2px 0 #e5c99c; }
.hint { color: #8a6f62; font-weight: 800; margin: 0 0 12px; text-align: center; }
#skin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skin { background: #fff; border-radius: 18px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 3px solid #f3dfbd; box-shadow: 0 5px 0 #e5c99c; }
.skin img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, .2); }
.skin b { font-family: var(--head); font-weight: 400; font-size: 20px; }
.skin span { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; font-size: 15px; padding: 4px 12px; border-radius: 999px; background: #ffe1b8; }
.skin span .coin { width: 18px; height: 18px; }
.skin span .coin::after { font-size: 11px; line-height: 18px; }
.skin.owned span { background: #d3f2ec; color: var(--teal-d); }
.skin.on { border-color: var(--teal); }
.skin.on span { background: var(--teal); color: #fff; }
.skin.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.card { background: var(--panel); border-radius: 28px; box-shadow: var(--shadow); padding: 46px 26px 24px; width: min(420px, 100%); text-align: center; position: relative; border: 4px solid #fff; animation: card .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes card { from { transform: scale(.6); opacity: 0; } }
.ribbon { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); white-space: nowrap; font-family: var(--head); font-size: 34px; color: #fff; padding: 8px 30px;
  background: repeating-linear-gradient(90deg, var(--red) 0 26px, #ff5a51 26px 52px); border-radius: 16px; box-shadow: 0 6px 0 var(--red-d); text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.ribbon.sad { background: linear-gradient(#6b6f86, #4c4f66); box-shadow: 0 6px 0 #33354a; }
.ribbon.calm { background: linear-gradient(#3d5fb6, var(--navy)); box-shadow: 0 6px 0 var(--navy-d); }
.stars { display: flex; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.stars i { width: 64px; height: 64px; }
.stars i:nth-child(2) { width: 80px; height: 80px; margin-top: -14px; }
.stars i.on { animation: starpop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes starpop { from { transform: scale(0) rotate(-60deg); } }
.card p { font-weight: 800; color: #8a6f62; margin: 8px 0 12px; font-size: 16px; }
.reward { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 30px; background: #fff; padding: 6px 18px 6px 8px; border-radius: 999px; margin-bottom: 18px; box-shadow: inset 0 0 0 3px #f3dfbd; }
.reward .coin { width: 32px; height: 32px; }
.reward .coin::after { font-size: 18px; line-height: 32px; }
.card .row { display: flex; gap: 10px; justify-content: center; }
.card .row .go { flex: 1; }
#pause .stack { margin-top: 6px; }

@media (max-width: 560px) {
  .pill { font-size: 18px; }
  .pill.balls { padding: 4px 12px 4px 6px; }
  .pill.balls img { width: 28px; height: 28px; }
  .pill.balls .label { display: none; }
  .pill.balls b { font-size: 24px; }
  .pill.level { padding: 4px 14px; }
  .pill.level b { font-size: 17px; }
  .round { width: 40px; height: 40px; font-size: 17px; }
  #hud .center { top: calc(max(12px, env(safe-area-inset-top)) + 52px); }
  #tip { font-size: 14px; }
  .cans-left { top: calc(max(12px, env(safe-area-inset-top)) + 140px); }
  #level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  #skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big { min-width: 0; width: min(280px, 80vw); font-size: 26px; }
  .panel h2 { font-size: 26px; }
  .tab b { font-size: 16px; }
  .mid { font-size: 18px; padding: 11px 14px; }
}

/* ---------------------------------------------------------------- juice */
.pill.bump { animation: hudbump .3s cubic-bezier(.2, 1.8, .4, 1); }
.cans-left.bump { animation: hudbump2 .3s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes hudbump { 30% { transform: scale(1.16); } }
@keyframes hudbump2 { 30% { transform: translateX(-50%) scale(1.22); } }
#combo { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--head); font-size: clamp(34px, 6vw, 56px);
  color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 rgba(42, 28, 61, .45); white-space: nowrap; opacity: 0; }
#combo.big { color: #ff6b5e; font-size: clamp(42px, 8vw, 72px); }
#combo.show { animation: combo 1.1s ease-out forwards; }
@keyframes combo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-8deg); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(3deg); }
  24% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.floater.pow { font-size: 34px; color: #fff; -webkit-text-stroke: 3px #e23a33; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(42, 28, 61, .45); animation: pow .8s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.floater.pow.big { font-size: 52px; color: var(--gold); -webkit-text-stroke-color: var(--ink); }
.floater.warn { font-size: 30px; color: #fff; -webkit-text-stroke: 3px var(--red-d); paint-order: stroke fill; animation: pow 1.3s ease-out forwards; }
@keyframes pow { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-12deg); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.15) rotate(6deg); opacity: 1; }
  70% { opacity: 1; } 100% { transform: translate(-50%, -110%) scale(1) rotate(0); opacity: 0; } }

/* ---------------------------------------------------------------- title screen */
.title-top { display: flex; flex-direction: column; align-items: center; animation: signdrop .9s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes signdrop { 0% { transform: translateY(-140%) rotate(-6deg); } 70% { transform: translateY(4%) rotate(1deg); } 100% { transform: none; } }
.marquee { position: relative; padding: 22px 38px 26px; border-radius: 26px; transform: rotate(-2deg);
  background: linear-gradient(180deg, #e8443b, #b8231d); border: 5px solid #ffd45c;
  box-shadow: 0 0 0 5px #7a1712, 0 12px 0 5px #5c100c, 0 22px 40px rgba(0, 0, 0, .35), inset 0 -10px 0 rgba(0, 0, 0, .18), inset 0 8px 0 rgba(255, 255, 255, .18); }
.marquee::before { content: ''; position: absolute; inset: 12px; border-radius: 16px; border: 3px dashed rgba(255, 226, 150, .55); pointer-events: none; }
/* chasing bulbs: two layers of dots along the border, blinking out of step */
.bulbs { position: absolute; inset: -2px; border-radius: 24px; pointer-events: none;
  --d: radial-gradient(circle, #fff7c2 0 3.5px, #ffcf4a 4.5px, rgba(255, 207, 74, .35) 6px, transparent 7.5px);
  background: var(--d) 0 0 / 26px 26px repeat-x, var(--d) 0 100% / 26px 26px repeat-x, var(--d) 0 0 / 26px 26px repeat-y, var(--d) 100% 0 / 26px 26px repeat-y;
  -webkit-mask: linear-gradient(#000 0 0); }
.bulbs.a { animation: chase 1s steps(1) infinite; }
.bulbs.b { background-position: 13px 0, 13px 100%, 0 13px, 100% 13px; animation: chase 1s steps(1) infinite .5s; }
@keyframes chase { 0% { opacity: 1; } 50% { opacity: .18; } }
.marquee .logo { transform: none; filter: drop-shadow(0 6px 0 rgba(60, 10, 8, .55)); }
.marquee .logo .t1 { display: flex; align-items: center; gap: 12px; font-size: clamp(40px, 9vw, 74px); }
.marquee .logo .t1 em { font-style: normal; font-size: .5em; color: #fff3b0; -webkit-text-stroke: 0; animation: twinkle 1.6s ease-in-out infinite; }
.marquee .logo .t1 em:last-child { animation-delay: .8s; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(40deg); opacity: .6; } }
.marquee .logo .t2 { font-size: clamp(54px, 13vw, 118px); position: relative; }
.marquee .logo .t2::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3.6s ease-in-out infinite 1.2s; }
.marquee .logo .t2 { --txt: 'TOPPLE'; }
.marquee .logo .t2::after { content: 'TOPPLE'; -webkit-text-stroke: 0; }
@keyframes shine { 0%, 55% { background-position: 150% 0; } 85%, 100% { background-position: -60% 0; } }
.pennant { margin-top: 16px; position: relative; padding: 7px 34px; background: #fff6e4; color: var(--navy); font-family: var(--head); font-size: clamp(17px, 3.4vw, 24px); letter-spacing: .03em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%); filter: drop-shadow(0 4px 0 rgba(42, 28, 61, .3)); animation: fadeup .6s ease-out .5s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }
.title-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(380px, 92vw); }
.title-bottom > * { animation: fadeup .5s ease-out both; }
.title-bottom > :nth-child(1) { animation-delay: .65s; }
.title-bottom > :nth-child(2) { animation-delay: .78s; }
.title-bottom > :nth-child(3) { animation-delay: .9s; }
.big.play { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 20px 14px; position: relative; overflow: hidden;
  font-size: 38px; border-radius: 24px; animation: fadeup .5s ease-out .65s both, pulse 1.8s ease-in-out 1.4s infinite; }
.big.play b { font-weight: 400; line-height: 1; }
.big.play small { font-family: var(--body); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; text-shadow: none; }
.big.play::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: sweep 3s ease-in-out 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.045); } }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.title-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.title-row .mid { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; padding: 11px 10px; }
.title-row img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.title-row .ico { font-size: 18px; opacity: .9; }
.title-progress { display: flex; align-items: center; gap: 8px; width: 88%; color: #fff; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.title-progress > span { color: var(--gold); font-size: 20px; }
.title-progress .track { flex: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .28); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.title-progress .track i { display: block; height: 100%; background: linear-gradient(90deg, #ffe27a, #f5a900); transform-origin: left; transform: scaleX(0); transition: transform .8s ease-out 1s; }
.title-progress b { font-size: 14px; min-width: 3.2em; text-align: right; }
@media (max-width: 560px) {
  .marquee { padding: 16px 24px 20px; }
  .big.play { font-size: 32px; }
}
@media (min-aspect-ratio: 23/20) and (min-width: 700px) {
  /* landscape: the menu is a column on the left, the attract demo plays on the right */
  #title { justify-content: center; align-items: flex-start; gap: clamp(18px, 4vh, 40px); padding-left: clamp(24px, 6vw, 96px);
    background: linear-gradient(90deg, rgba(26, 21, 48, .5) 0%, rgba(26, 21, 48, .18) 38%, rgba(26, 21, 48, 0) 55%); }
  .title-top { align-items: center; }
  .title-bottom { width: min(380px, 34vw); margin-left: clamp(0px, 2vw, 30px); }
}
@media (max-height: 520px) {
  #title { padding-top: 14px; }
  .marquee { padding: 10px 26px 14px; }
  .marquee .logo .t1 { font-size: 34px; } .marquee .logo .t2 { font-size: 58px; }
  .pennant { margin-top: 8px; }
  .title-bottom { gap: 8px; }
}
