/* live scores */
#sa .sa-scores, #sa .sa-listen { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14vh 6vw; }
#sa .sx-rise { opacity: 0; transform: translateY(26px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
#sa .sx-in .sx-rise { opacity: 1; transform: none; }
#sa .sx-in .sx-rise:nth-child(2) { transition-delay: .15s; } #sa .sx-in .sx-rise:nth-child(3) { transition-delay: .3s; } #sa .sx-in .sx-rise:nth-child(4) { transition-delay: .4s; }
#sa .sx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 40px); width: min(900px, 100%); margin: 6vh 0 4vh; text-align: left; }
#sa .sx-card { position: relative; padding: 18px 0 20px; border-top: 1px solid rgba(var(--ink),.14); }
#sa .sx-card::before { content: ''; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--tc, transparent); box-shadow: 0 0 10px var(--tc, transparent); }
#sa .sx-card h3 { font-weight: 300; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.1; margin: 12px 0 14px; }
#sa .sx-dot { display: none; width: 6px; height: 6px; border-radius: 50%; background: #ff6b6b; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px #ff6b6b; animation: sxPulse 1.6s ease-in-out infinite; }
#sa .sx-live .sx-dot { display: inline-block; }
@keyframes sxPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
#sa .sx-score { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; align-items: baseline; column-gap: 10px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
#sa .sx-score b { font-weight: 300; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; grid-column: 1; }
#sa .sx-score span { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: rgba(var(--ink),.62); grid-column: 2; }
#sa .sx-score em { display: none; }
#sa .sx-st { margin-bottom: 4px; }
#sa .sx-next { margin-top: 16px; }
#sa .sx-next p { margin: 8px 0 6px; font-size: 15px; }
#sa .sx-none { margin: 12px 0 0; font-size: 13px; color: rgba(var(--ink),.55); }
#sa .sx-upd { color: rgba(var(--ink),.4); }
/* the listening room */
#sa .sa-listen h2 { font-weight: 300; font-style: italic; font-size: clamp(34px, 4.6vw, 62px); line-height: 1; margin: 3vh 0 0; }
#sa .sx-deck { position: relative; width: min(520px, 100%); margin: 9vh 0 7vh; }
#sa .sx-halo { position: absolute; left: 50%; top: 50%; width: 132%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, rgba(120,170,255,0), rgba(120,170,255,.34), rgba(255,170,220,.22), rgba(120,255,220,.2), rgba(120,170,255,0) 78%); -webkit-mask: radial-gradient(closest-side, transparent 71%, #000 72%, #000 73.4%, transparent 74.4%); mask: radial-gradient(closest-side, transparent 71%, #000 72%, #000 73.4%, transparent 74.4%); animation: sxSpin 22s linear infinite; }
#sa .sx-halo::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: inherit; animation: sxSpin 14s linear infinite reverse; opacity: .7; }
@keyframes sxSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#sa .sx-halo::after { transform: none; animation-name: sxSpin2; }
@keyframes sxSpin2 { to { transform: rotate(-360deg); } }
#sa .sx-eq { position: absolute; left: 6%; right: 6%; bottom: 100%; height: 46px; display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; pointer-events: none; }
#sa .sx-eq i { width: 2px; height: 100%; transform-origin: bottom; transform: scaleY(.12); border-radius: 2px; background: linear-gradient(to top, rgba(140,185,255,.9), rgba(255,170,220,.5)); box-shadow: 0 0 8px rgba(140,185,255,.5); animation: sxEq 2.4s ease-in-out infinite; }
#sa .sx-eq i:nth-child(3n) { animation-duration: 1.7s; animation-delay: -.4s; } #sa .sx-eq i:nth-child(3n+1) { animation-duration: 2.9s; animation-delay: -1.1s; } #sa .sx-eq i:nth-child(4n) { animation-duration: 2.1s; animation-delay: -.8s; } #sa .sx-eq i:nth-child(5n) { animation-duration: 3.3s; animation-delay: -1.9s; } #sa .sx-eq i:nth-child(7n) { animation-duration: 1.4s; animation-delay: -.2s; }
@keyframes sxEq { 0%, 100% { transform: scaleY(.1); } 30% { transform: scaleY(.85); } 55% { transform: scaleY(.3); } 75% { transform: scaleY(1); } }
#sa .sx-glass { position: relative; border-radius: 26px; padding: 10px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 40%, rgba(120,170,255,.1)); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 40px 120px rgba(20,50,140,.45), 0 0 0 1px rgba(120,170,255,.12), inset 0 1px 0 rgba(255,255,255,.3); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); min-height: 450px; }
#sa .sx-glass iframe { display: block; width: 100%; height: 450px; border: 0; border-radius: 18px; background: transparent; opacity: 0; transition: opacity 1.2s ease; }
#sa .sx-ready .sx-glass iframe { opacity: 1; }
#sa .sx-wait { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); animation: sxPulse 2s ease-in-out infinite; }
#sa .sx-ready .sx-wait { display: none; }
#sa .sx-base { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
#sa .sx-base u { width: 34px; height: 2px; border-radius: 2px; background: rgba(140,185,255,.7); box-shadow: 0 0 12px rgba(140,185,255,.9); animation: sxPulse 2.6s ease-in-out infinite; }
#sa .sx-base u:nth-child(2) { animation-delay: .4s; background: rgba(255,170,220,.7); box-shadow: 0 0 12px rgba(255,170,220,.9); } #sa .sx-base u:nth-child(3) { animation-delay: .8s; background: rgba(120,255,220,.6); box-shadow: 0 0 12px rgba(120,255,220,.8); }
@media (max-width: 800px) { #sa .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #sa .sx-halo { width: 118%; } }
@media (prefers-reduced-motion: reduce) { #sa .sx-halo, #sa .sx-halo::after, #sa .sx-eq i, #sa .sx-base u { animation: none; } }

/* the page is sewn */
#sa .sx-stitch { position: absolute; left: 6vw; right: 6vw; top: 0; height: 0; border-top: 1.5px dashed rgba(var(--ink),.34); clip-path: inset(-4px 100% -4px 0); transition: clip-path 1.9s cubic-bezier(.6,0,.2,1); pointer-events: none; }
#sa .sx-stitch::after { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--ink)); box-shadow: 0 0 10px rgba(150,195,255,.9); opacity: 0; transition: left 1.9s cubic-bezier(.6,0,.2,1), opacity .5s; }
#sa .sx-sewn > .sx-stitch { clip-path: inset(-4px 0 -4px 0); }
#sa .sx-sewn > .sx-stitch::after { left: calc(100% - 7px); opacity: .9; }
#sa .sa-hero > .sx-stitch { display: none; }
/* the night shift */
#sa .sa-space { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
#sa .sa-space canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#sa .sx-spcap { position: absolute; left: 0; right: 0; bottom: 11vh; text-align: center; pointer-events: none; }
#sa .sx-spcap h2 { font-weight: 300; font-style: italic; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.05; margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { #sa .sx-stitch, #sa .sx-stitch::after { transition: none; } }

/* one cloth */
#sa .sa-cloth, #sa .sa-studio { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14vh 6vw; }
#sa .sa-cloth h2, #sa .sa-studio h2 { font-weight: 300; font-style: italic; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.05; margin: 14px 0 0; }
#sa .sx-loom { width: min(1040px, 100%); margin: 7vh 0 4vh; padding: 10px; border-radius: 6px; background: #d9d0bd; box-shadow: 0 40px 120px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.35); }
#sa .sx-loom canvas { display: block; width: 100%; border-radius: 3px; cursor: crosshair; }
#sa .sx-tip { margin-top: 10px; min-height: 1.4em; color: rgba(var(--ink),.45); }
/* the studio */
#sa .sx-tv { width: min(860px, 100%); margin: 7vh 0 4vh; padding: 12px 12px 0; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 45%, rgba(120,170,255,.08)); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 40px 120px rgba(20,50,140,.4), inset 0 1px 0 rgba(255,255,255,.28); }
#sa .sx-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, #17223f, #05070e 70%); }
#sa .sx-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#sa .sx-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: rgb(233,237,245); }
#sa .sx-idle .sa-cap { color: rgba(233,237,245,.62); }
#sa .sx-idle i { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(233,237,245,.5); position: relative; animation: sxPulse 2.4s ease-in-out infinite; }
#sa .sx-idle i::after { content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent rgba(233,237,245,.85); }
#sa .sx-ch { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
#sa .sx-ch button { appearance: none; background: none; border: 0; border-top: 2px solid transparent; margin-top: 10px; padding: 14px 6px 16px; color: rgb(var(--ink)); cursor: pointer; font: inherit; text-align: center; transition: border-color .4s, background .4s; -webkit-tap-highlight-color: transparent; }
#sa .sx-ch button b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(18px, 2vw, 25px); }
#sa .sx-ch button span { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: rgba(var(--ink),.55); }
#sa .sx-ch button:hover { background: rgba(255,255,255,.05); }
#sa .sx-ch button.on { border-top-color: #ff6b6b; background: rgba(255,255,255,.07); }
@media (max-width: 640px) { #sa .sx-ch { grid-template-columns: repeat(2, 1fr); } }

/* visit numbers, the letter, the worn map */
#sa .sx-visit { margin-bottom: 5vh; color: rgba(var(--ink),.6); }
#sa .sx-visit b { display: block; margin-top: 12px; font-weight: 400; color: #ffe2a0; letter-spacing: .2em; line-height: 1.9; }
#sa .sx-lbtn { display: inline-flex; align-items: center; gap: 12px; margin-top: 6vh; background: none; border: 0; border-bottom: 1px solid rgba(var(--ink),.3); padding: 10px 2px; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
#sa .sx-lbtn[disabled] { border-bottom-color: transparent; cursor: default; opacity: .5; }
#sa .sx-lbtn i { width: 18px; height: 12px; border: 1px solid rgba(var(--ink),.7); position: relative; }
#sa .sx-lbtn i::after { content: ''; position: absolute; left: 3px; top: -3px; width: 10px; height: 10px; border-right: 1px solid rgba(var(--ink),.7); border-bottom: 1px solid rgba(var(--ink),.7); transform: rotate(45deg) scale(.82); }
.sx-letter { position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center; padding: 6vw; background: rgba(4,6,12,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .9s ease; }
.sx-letter.on { opacity: 1; }
.sx-paper { width: min(560px, 100%); padding: clamp(30px, 6vw, 62px); background: #f3ecdd; color: #1c2740; border-radius: 3px; box-shadow: 0 50px 140px rgba(0,0,0,.6); transform: translateY(26px) rotate(-.6deg); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); text-align: left; }
.sx-letter.on .sx-paper { transform: rotate(-.6deg); }
.sx-paper .sa-cap { font-family: 'Inter', system-ui, sans-serif; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(28,39,64,.55); }
.sx-paper p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.5; margin: 26px 0 30px; }
.sx-paper .sx-sign { font-family: 'Dancing Script', 'Cormorant Garamond', cursive; font-size: 30px; margin-bottom: 34px; }
.sx-paper button { background: none; border: 0; border-top: 1px solid rgba(28,39,64,.2); width: 100%; padding: 18px 0 0; cursor: pointer; text-align: left; }
#sa .sa-worn { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14vh 6vw; }
#sa .sa-worn h2 { font-weight: 300; font-style: italic; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.05; margin: 14px 0 6vh; }

/* after midnight */
#sa.sx-night .sx-loom { background: #141c33; box-shadow: 0 0 90px rgba(120,170,255,.38), 0 40px 120px rgba(0,0,0,.6), inset 0 0 0 1px rgba(160,195,255,.3); }
#sa.sx-night .sx-loom canvas { filter: invert(.93) hue-rotate(180deg) saturate(1.9) brightness(1.15) drop-shadow(0 0 6px rgba(150,195,255,.5)); }
#sa .sa-nightroom { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14vh 6vw; background: radial-gradient(60% 50% at 50% 46%, rgba(255,170,80,.13), rgba(0,0,0,0) 70%); }
#sa .sa-nightroom h2 { font-weight: 300; font-style: italic; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.15; margin: 5vh 0 3vh; max-width: 18em; }
#sa .sx-nl { font-size: clamp(18px, 1.8vw, 23px); margin: 4vh 0 0; color: rgba(var(--ink),.7); }
#sa .sx-candle { position: relative; width: 26px; height: 120px; margin-top: 7vh; }
#sa .sx-candle u { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; border-radius: 4px 4px 2px 2px; background: linear-gradient(to right, #d9cfb8, #f3ecdd 45%, #cfc4aa); }
#sa .sx-candle i { position: absolute; left: 50%; bottom: 74px; width: 16px; height: 34px; margin-left: -8px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fff6d0 0%, #ffcf6a 38%, #ff8a2a 70%, rgba(255,120,30,0) 100%); box-shadow: 0 0 44px 14px rgba(255,170,70,.45); transform-origin: 50% 100%; animation: sxFlame 2.3s ease-in-out infinite; }
@keyframes sxFlame { 0%, 100% { transform: rotate(-2deg) scaleY(1); } 30% { transform: rotate(2.5deg) scaleY(1.08); } 55% { transform: rotate(-1deg) scaleY(.94); } 80% { transform: rotate(1.5deg) scaleY(1.04); } }
@media (prefers-reduced-motion: reduce) { #sa .sx-candle i { animation: none; } }
