html[data-pg] { --R: calc(min(100vw, 100svh) * .4); }
@media (max-width: 760px) { html[data-pg] { --R: calc(100svh * .43); } }
html[data-pg="4"] .page {
  display: flex; flex-direction: column; align-items: center;
  top: calc(50% - var(--R) * .8); height: calc(var(--R) * 1.58); width: min(600px, calc(100% - 44px));
  transform: translate(-50%, 0) scale(var(--sc, 1)); transform-origin: 50% calc(var(--R) * .8);
}
html[data-pg="4"] .page > .pg-t { margin: 0; transform: none; font-size: clamp(28px, 3.4vw, 40px); }
html[data-pg="4"] .page .pg-s, html[data-pg="4"] #pg-ab .ab-hint { margin: 12px 0 0; font: 500 15px/21px var(--mono); min-height: 21px; }
html[data-pg="4"] #pg-ab .ab { display: contents; }
html[data-pg="4"] #pg-ab .ab-hint { order: 1; }
html[data-pg="4"] #pg-ab .ab-hint[hidden] { display: block; visibility: hidden; }   
html[data-pg="4"] #pg-ab .ab-scope { order: 2; width: 100%; margin: auto 0; height: calc(var(--R) * .56) !important; }
html[data-pg="4"] #pg-ab .ab-row { order: 3; margin-top: 0; }
html[data-pg="4"] #pg-ab .ab-time { order: 4; margin-top: 8px; }
html[data-pg="4"] #pg-ab .ab-list { order: 5; }
html[data-pg="4"] #pg-ab .ab-note { display: none; }   
html[data-pg="4"] #pg-pre .artists { align-self: stretch; margin: auto 0; }
html[data-pg="4"] .art-stage { height: calc(var(--R) * .56); }
html[data-pg="4"] .page .pg-s, html[data-pg="4"] #pg-ab .ab-hint { max-width: 40ch; margin-inline: auto; text-wrap: balance; color: var(--ph-ink); }
html[data-pg="4"] #pg-ab .ab:is([data-v="1"], [data-v="4"]) .ab-hint {
  background: linear-gradient(90deg, #f1c9c0 0%, #f1c9c0 40%, #fff7f3 50%, #f1c9c0 60%, #f1c9c0 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; min-height: 42px;
}
html[data-pg="4"] #pg-ab .ab-time { display: none; }
.pre-count { display: inline-block; min-width: 92px; text-align: center; font: 400 18px/1 var(--crt, Dynamina); letter-spacing: .06em; color: #ff6a52; text-shadow: 0 0 8px rgba(255, 59, 40, .6); }

.tpl-ctl, .cmd-demo { display: none; }
html[data-pg="4"] .tpl-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; margin: 0; font: 500 13px/1.3 var(--mono); color: var(--ph-dim, #b8877d); }
.tpl-ctl button { height: 44px; min-width: 52px; padding: 0 12px; border: 1px solid rgba(255, 43, 28, .45); background: none; color: var(--ph2, #ff6a52); font: 600 20px/1 'Inter Tight', Inter, sans-serif; cursor: pointer; transition: background .12s, box-shadow .2s; }
.tpl-ctl button:hover { background: rgba(255, 43, 28, .12); box-shadow: 0 0 14px rgba(255, 43, 28, .35); }
html[data-pg="4"] .cmd-demo { display: flex; align-items: center; justify-content: center; align-self: stretch; margin: auto 0; height: calc(var(--R) * .56); }
.cmd-demo .cl { font: 400 clamp(17px, 2.4vw, 28px)/1.15 var(--crt, Dynamina); letter-spacing: .04em; color: #ff6a52; text-shadow: 0 0 10px rgba(255, 59, 40, .6), 0 0 26px rgba(255, 59, 40, .25); max-width: 92%; text-align: left; white-space: nowrap; }
.cmd-demo .cl .cc { font-size: 14px; margin-right: -.67em; vertical-align: -.05em; }
.cmd-demo .cl::before { content: '> '; color: #b04a3e; }
.cmd-demo .cc { display: inline-block; width: .55em; height: .9em; margin-left: .12em; background: #ff6a52; box-shadow: 0 0 10px rgba(255, 59, 40, .7); animation: tpl-caret 1.06s steps(1) infinite; }
@keyframes tpl-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmd-demo .cc { animation: none; } }
.uv-static .cmd-demo .cc { animation: none; }

.pg-ghost { pointer-events: none !important; z-index: 3; }
.pg-ghost :is(canvas, .artists, .cmd-demo, .ab-time, .ab-hint, .ab-note, .ab-list) { visibility: hidden !important; }
html[data-fly="4"] .pg-ghost > :not(.pg-t), html[data-fly="4"] .pg-ghost .ab > * { visibility: hidden !important; }
html[data-fly="4"] .pg-ghost .pg-t { text-shadow: 0 0 18px rgba(255, 59, 40, .95), 0 0 42px rgba(255, 59, 40, .55); }
html:is([data-fly="2"], [data-fly="3"]) .page:not(.pg-ghost) > *,
html:is([data-fly="2"], [data-fly="3"]) .page:not(.pg-ghost) .ab > * { filter: blur(var(--mb, 0px)); }

html[data-absw] #pg-ab .ab-sw button { position: relative; overflow: hidden; isolation: isolate; }
html[data-absw] #pg-ab .ab-sw button::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(104deg, transparent 34%, rgb(255 210 190 / .3) 50%, transparent 66%); transform: translateX(-120%); }
html[data-absw] #pg-ab .ab-sw button.glint::after { animation: ab-glint .8s cubic-bezier(.35,.1,.25,1) forwards; }
@keyframes ab-glint { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
html[data-absw="0"] #pg-ab .ab-sw button::after { display: none; }

html[data-absw="1"] #pg-ab .ab-sw { gap: 10px; }
html[data-absw="1"] #pg-ab .ab-sw button { height: 48px; min-width: 122px; padding: 0 18px; border: 1px solid #ffffff1c; border-radius: 8px;
  font: 400 19px/1 var(--crt, Dynamina); letter-spacing: .05em; color: #a2463b; text-shadow: none;
  background: linear-gradient(158deg, rgba(255,255,255,.06), rgba(255,255,255,0) 34%), repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px), radial-gradient(125% 120% at 50% 45%, transparent 55%, rgba(0,0,0,.6)), #0c0505;
  box-shadow: inset 0 0 18px 5px rgba(0,0,0,.75); transition: color .35s, text-shadow .35s, border-color .35s, box-shadow .35s; }
html[data-absw="1"] #pg-ab .ab-sw button + button { border-left: 1px solid #ffffff1c; }
html[data-absw="1"] #pg-ab .ab-sw button::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(110% 100% at 50% 40%, rgb(255 59 40 / .32), rgb(255 59 40 / .09) 60%, transparent 88%); }
html[data-absw="1"] #pg-ab .ab-sw button:hover { border-color: #ffffff36; color: #c4574a; }
html[data-absw="1"] #pg-ab .ab-sw button[aria-pressed="true"] { color: #ff6a52; border-color: rgb(255 90 67 / .75); text-shadow: 0 0 10px rgb(255 59 40 / .7), 0 0 2px rgb(255 200 185 / .6);
  box-shadow: inset 0 0 18px 5px rgba(0,0,0,.55), 0 0 14px rgb(255 59 40 / .35);
  background: linear-gradient(158deg, rgba(255,255,255,.07), rgba(255,255,255,0) 34%), repeating-linear-gradient(180deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px), radial-gradient(125% 120% at 50% 45%, transparent 55%, rgba(0,0,0,.5)), #160705; }
html[data-absw="1"] #pg-ab .ab-sw button[aria-pressed="true"]::before { opacity: 1; }

html[data-absw="2"] #pg-ab .ab-sw { position: relative; padding: 4px; border: 1.5px solid #ff5a43; border-radius: 999px; background: rgb(255 59 40 / .06);
  -webkit-backdrop-filter: blur(.6px) brightness(1.8) saturate(1.15); backdrop-filter: blur(.6px) brightness(1.8) saturate(1.15);
  box-shadow: inset 0 0 12px rgb(255 59 40 / .26), 0 0 12px rgb(255 59 40 / .42); }
html[data-absw="2"] #pg-ab .ab-sw::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; pointer-events: none;
  background: radial-gradient(120% 150% at 50% 50%, rgb(255 120 90 / .55), rgb(255 59 40 / .24) 62%, rgb(255 59 40 / .08));
  box-shadow: 0 0 16px rgb(255 59 40 / .55), inset 0 0 8px rgb(255 205 190 / .35); transition: transform .4s cubic-bezier(.3,.7,.2,1); }
html[data-absw="2"] #pg-ab .ab-sw:has([data-v="1"][aria-pressed="true"])::before { transform: translateX(100%); }
html[data-absw="2"] #pg-ab .ab-sw button { z-index: 1; height: 40px; min-width: 112px; border: 0; border-radius: 999px; background: none; box-shadow: none;
  font: 600 13px/1 var(--mono); letter-spacing: .14em; color: #b04a3e; transition: color .35s, text-shadow .35s; }
html[data-absw="2"] #pg-ab .ab-sw button:hover { background: none; color: #e07a6a; }
html[data-absw="2"] #pg-ab .ab-sw button[aria-pressed="true"] { background: none; box-shadow: none; color: #ffe3da; text-shadow: 0 0 8px rgb(255 59 40 / .9), 0 0 2px rgb(255 200 185 / .9); }

html[data-absw="3"] #pg-ab .ab-sw { gap: 30px; }
html[data-absw="3"] #pg-ab .ab-sw button { height: 46px; min-width: 0; padding: 0 8px; border: 0; background: none; box-shadow: none;
  font: 400 26px/1 var(--crt, Dynamina); letter-spacing: .04em; color: #6e2a22; transition: color .35s, text-shadow .35s; }
html[data-absw="3"] #pg-ab .ab-sw button + button { border: 0; }
html[data-absw="3"] #pg-ab .ab-sw button::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 3px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ff6a52 30%, #ffd6c8 50%, #ff6a52 70%, transparent); box-shadow: 0 0 10px rgb(255 59 40 / .85);
  transform: scaleX(0); opacity: 0; transition: transform .4s cubic-bezier(.3,.7,.2,1), opacity .4s; }
html[data-absw="3"] #pg-ab .ab-sw button:hover { background: none; color: #a2463b; }
html[data-absw="3"] #pg-ab .ab-sw button[aria-pressed="true"] { background: none; box-shadow: none; color: #ff6a52; text-shadow: 0 0 10px rgb(255 59 40 / .75), 0 0 26px rgb(255 59 40 / .3); }
html[data-absw="3"] #pg-ab .ab-sw button[aria-pressed="true"]::before { transform: scaleX(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { html[data-absw] #pg-ab .ab-sw button.glint::after { animation: none; } }

html[data-absw="2"][data-abcap="1"] #pg-ab .ab-sw { border-color: #ff4a33; background: rgb(255 45 30 / .08);
  box-shadow: inset 0 0 14px rgb(255 45 30 / .32), 0 0 16px rgb(255 45 30 / .55), 0 0 34px rgb(255 45 30 / .18); }
html[data-absw="2"][data-abcap="1"] #pg-ab .ab-sw::before {
  background: radial-gradient(120% 160% at 50% 45%, rgb(255 150 120 / .95), rgb(255 70 45 / .78) 38%, rgb(255 40 25 / .42) 72%, rgb(200 20 10 / .2));
  box-shadow: 0 0 18px rgb(255 50 30 / .8), 0 0 36px rgb(255 50 30 / .3), inset 0 0 10px rgb(255 220 205 / .45); }
html[data-absw="2"][data-abcap="1"] #pg-ab .ab-sw button { color: #d9604f; }
html[data-absw="2"][data-abcap="1"] #pg-ab .ab-sw button:hover { color: #ff8a72; }
html[data-absw="2"][data-abcap="1"] #pg-ab .ab-sw button[aria-pressed="true"] { color: #fff4ef; text-shadow: 0 0 6px rgb(255 235 228 / .9), 0 0 14px rgb(255 50 30 / .95); }

html[data-absw="2"][data-abcap="2"] #pg-ab .ab-sw { border-color: #ff5a43; box-shadow: inset 0 0 12px rgb(255 45 30 / .24), 0 0 12px rgb(255 45 30 / .4); }
html[data-absw="2"][data-abcap="2"] #pg-ab .ab-sw::before { background: linear-gradient(180deg, rgb(255 60 40 / .34), rgb(150 15 8 / .5));
  border: 1.5px solid #ff7a5e; box-shadow: 0 0 10px rgb(255 60 40 / .95), 0 0 26px rgb(255 60 40 / .55), inset 0 0 12px rgb(255 80 55 / .7); }
html[data-absw="2"][data-abcap="2"] #pg-ab .ab-sw button { color: #cf5a49; }
html[data-absw="2"][data-abcap="2"] #pg-ab .ab-sw button[aria-pressed="true"] { color: #ffe9e2; text-shadow: 0 0 6px rgb(255 120 95 / .95), 0 0 16px rgb(255 50 30 / .9); }

html[data-absw="2"][data-abcap="3"] #pg-ab .ab-sw { border-color: #e2412c; background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / 0) 48%), rgb(18 4 3 / .62);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 0 14px rgb(0 0 0 / .7), 0 0 14px rgb(255 45 30 / .4); }
html[data-absw="2"][data-abcap="3"] #pg-ab .ab-sw::before { background: linear-gradient(180deg, rgb(255 120 95 / .95), rgb(235 45 28 / .9) 55%, rgb(170 22 12 / .9));
  box-shadow: inset 0 1px 0 rgb(255 225 215 / .85), inset 0 -2px 6px rgb(90 0 0 / .45), 0 0 18px rgb(255 50 30 / .7); }
html[data-absw="2"][data-abcap="3"] #pg-ab .ab-sw button { color: #c9584a; }
html[data-absw="2"][data-abcap="3"] #pg-ab .ab-sw button[aria-pressed="true"] { color: #fff6f2; text-shadow: 0 1px 0 rgb(120 10 4 / .6), 0 0 10px rgb(255 80 55 / .8); }

html[data-absw="2"][data-abcap="2"] #pg-ab .ab-sw::before { transition: transform .4s cubic-bezier(.3,.7,.2,1), background .4s, border-color .4s, box-shadow .4s; }
html[data-absw="2"][data-abcap="2"] #pg-ab .ab-sw { transition: border-color .4s, box-shadow .4s; }
html[data-absw="2"][data-abcap="2"][data-abdo]:not([data-abdo="0"]) #pg-ab .ab-sw:has([data-v="1"][aria-pressed="true"])::before {
  box-shadow: 0 0 12px rgb(255 60 40 / 1), 0 0 30px rgb(255 60 40 / .62), inset 0 0 14px rgb(255 90 60 / .75); }
html[data-absw="2"][data-abcap="2"][data-abdo]:not([data-abdo="0"]) #pg-ab .ab-sw [data-v="1"][aria-pressed="true"] { color: #fff2ec; text-shadow: 0 0 6px rgb(255 140 115 / 1), 0 0 18px rgb(255 50 30 / .95); }
html[data-absw="2"][data-abcap="2"]:is([data-abdo="1"], [data-abdo="3"]) #pg-ab .ab-sw:has([data-v="0"][aria-pressed="true"])::before {
  background: linear-gradient(180deg, rgb(120 25 15 / .28), rgb(60 8 4 / .45)); border-color: rgb(200 70 52 / .55);
  box-shadow: 0 0 4px rgb(255 60 40 / .25), inset 0 0 8px rgb(255 60 40 / .18); }
html[data-absw="2"][data-abcap="2"]:is([data-abdo="1"], [data-abdo="3"]) #pg-ab .ab-sw [data-v="0"][aria-pressed="true"] { color: #d9897b; text-shadow: 0 0 4px rgb(255 60 40 / .35); }
html[data-absw="2"][data-abcap="2"][data-abdo="2"] #pg-ab .ab-sw:has([data-v="0"][aria-pressed="true"])::before {
  background: transparent; border-color: rgb(255 90 67 / .45); box-shadow: none; }
html[data-absw="2"][data-abcap="2"][data-abdo="2"] #pg-ab .ab-sw [data-v="0"][aria-pressed="true"] { color: #d07060; text-shadow: none; }
html[data-absw="2"][data-abcap="2"][data-abdo="3"] #pg-ab .ab-sw:has([data-v="0"][aria-pressed="true"]) { border-color: rgb(200 60 45 / .55); box-shadow: inset 0 0 10px rgb(255 45 30 / .12), 0 0 6px rgb(255 45 30 / .18); }

.uv-stops { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 55; display: grid; gap: 4px; transition: opacity .3s; }
.uv-stops.away { opacity: 0; pointer-events: none; }
.uv-stops.goo i { opacity: 0; transition: opacity .2s; }
.uv-stops.goo button:hover i, .uv-stops.goo button:focus-visible i { opacity: .55; background: transparent; box-shadow: 0 0 0 1px rgb(255 106 82 / .8); transform: scale(1.6); }   
.uv-stops[hidden] { display: none; }
.uv-stops button { position: relative; width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.uv-stops i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgb(255 59 40 / .35); transition: background .3s, box-shadow .3s, transform .3s; }
.uv-stops button:hover i { background: rgb(255 106 82 / .8); }
.uv-stops button.on i { background: #ff6a52; box-shadow: 0 0 8px rgb(255 59 40 / .9); transform: scale(1.35); }
.uv-stops span { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 12px/1 var(--mono); color: #e8a597; opacity: 0; pointer-events: none; transition: opacity .2s; text-shadow: 0 0 6px rgb(0 0 0 / .9); }
.uv-stops button:hover span, .uv-stops button:focus-visible span { opacity: 1; }
@media (max-width: 760px) { .uv-stops { right: 6px; } }

.uv-pagefx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; mix-blend-mode: screen; }
@keyframes uv-arrive { 0% { clip-path: inset(50% 0 50% 0); filter: brightness(2.6) blur(1px); } 50% { clip-path: inset(0 0 0 0); filter: brightness(1.6); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
.page.uv-arrive:not(.pg-ghost) > :not(.ab), .page.uv-arrive:not(.pg-ghost) .ab > * { animation: uv-arrive .62s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes uv-holo { 0% { opacity: 0; transform: translateY(8px); filter: brightness(2.4) blur(2px); } 60% { opacity: 1; filter: brightness(1.5) blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
.page.uv-arrive3:not(.pg-ghost) > :not(.ab), .page.uv-arrive3:not(.pg-ghost) .ab > * { animation: uv-holo .55s cubic-bezier(.2,.7,.2,1) backwards; }
.page.uv-arrive3 > :nth-child(2), .page.uv-arrive3 .ab > :nth-child(2) { animation-delay: .07s; }
.page.uv-arrive3 > :nth-child(3), .page.uv-arrive3 .ab > :nth-child(3) { animation-delay: .14s; }
.page.uv-arrive3 > :nth-child(4), .page.uv-arrive3 .ab > :nth-child(4) { animation-delay: .21s; }
.page.uv-arrive3 > :nth-child(n+5), .page.uv-arrive3 .ab > :nth-child(n+5) { animation-delay: .28s; }
.page.uv-arrive3:not(.pg-ghost)::after { content: ''; position: absolute; left: 6%; right: 6%; top: 0; height: 2px; pointer-events: none; z-index: 5;
  background: linear-gradient(90deg, transparent, #ffd6c8 30%, #fff2ec 50%, #ffd6c8 70%, transparent); box-shadow: 0 0 14px rgb(255 59 40 / .9);
  animation: uv-holo-scan .7s cubic-bezier(.4,.05,.6,.95) forwards; }
@keyframes uv-holo-scan { from { top: 0; opacity: 1; } 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .page.uv-arrive > *, .page.uv-arrive .ab > *, .page.uv-arrive3 > *, .page.uv-arrive3 .ab > *, .page.uv-arrive3::after { animation: none !important; } }
