/* Your year in Eshgh (MAKERS-50): story slides, the streak heart and the "Keep my listening year" switch.
   Dark Radio Eshgh look, #64edaa green, Liquid Glass panels, Unbounded numbers. Phone first. Motion uses transforms
   and opacity only; Reduce Motion keeps fades only. */

.yr { --yr-green: #64edaa; --yr-green-ink: #002312; --yr-ink: #f5f5f7; --yr-ink-2: #a1a1a6; --yr-ink-3: #6e6e73; --yr-line: rgb(215 255 231 / .14); --yr-glass: rgb(20 27 23 / .6); --yr-display: var(--heading, Unbounded, system-ui, sans-serif); position: relative; min-height: 100vh; padding: clamp(96px, 12vw, 140px) 16px 96px; overflow: hidden; color: var(--yr-ink); background: #050807; isolation: isolate; }
.yr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yr-muted { color: var(--yr-ink-2); }

/* Backdrop: an original illustration of soft green sound waves and drifting hearts. */
.yr-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.yr-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.yr-float { position: absolute; fill: var(--yr-green); opacity: .16; animation: yr-drift 9s ease-in-out infinite alternate; }
.yr-float:nth-child(odd) { animation-duration: 12s; animation-delay: -3s; }
@keyframes yr-drift { from { transform: translate3d(0, 0, 0) rotate(-8deg); } to { transform: translate3d(0, -26px, 0) rotate(8deg); } }

.yr-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; width: min(100%, 560px); margin: 0 auto; }
.yr-hero { text-align: center; }
.yr-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 22px; background: radial-gradient(circle at 50% 35%, #1d4532, #08140e); box-shadow: 0 0 0 1px var(--yr-line), 0 14px 40px rgb(100 237 170 / .22); }
.yr-mark svg { width: 34px; height: 34px; fill: var(--yr-green); animation: yr-beat 2.4s ease-in-out infinite; }
@keyframes yr-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }
.yr-eyebrow { margin: 0 0 8px; color: var(--yr-green); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.yr-title { margin: 0; font-family: var(--yr-display); font-size: clamp(32px, 7vw, 54px); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.yr-lede { margin: 12px auto 0; max-width: 420px; color: var(--yr-ink-2); font-size: 17px; line-height: 1.5; }

/* Loading skeleton. */
.yr-panel { display: grid; }
.yr-panel[hidden] { display: none; }
.yr-skeleton { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--yr-line); border-radius: 28px; background: var(--yr-glass); }
.yr-skeleton span { display: block; height: 18px; border-radius: 10px; background: linear-gradient(90deg, rgb(255 255 255 / .06) 0, rgb(255 255 255 / .14) 40%, rgb(255 255 255 / .06) 80%); background-size: 300% 100%; animation: yr-shimmer 1.4s linear infinite; }
.yr-skeleton span:first-child { height: 220px; border-radius: 20px; }
.yr-skeleton span:last-child { width: 60%; }
@keyframes yr-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.yr-message { display: grid; justify-items: center; gap: 10px; padding: 30px 24px; border: 1px solid var(--yr-line); border-radius: 28px; background: var(--yr-glass); -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%); text-align: center; animation: yr-fade .5s ease both; }
.yr-message-art { width: 96px; height: 96px; }
.yr-message-title { margin: 0; font-family: var(--yr-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.yr-message-text { margin: 0; max-width: 380px; color: var(--yr-ink-2); line-height: 1.5; }

/* The filling heart. */
.yr-fill-heart { display: block; width: 100%; height: 100%; overflow: visible; }
.yr-fill-empty { fill: rgb(100 237 170 / .14); stroke: rgb(100 237 170 / .55); stroke-width: .6; }
.yr-fill-level { fill: var(--yr-green); transform-box: view-box; transform-origin: 50% 88%; transform: scaleY(var(--fill, 0)); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }

/* The story: a 9:16 card of slides with progress bars. */
.yr-story { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: min(82vh, 860px); margin: 0 auto; border-radius: 30px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #17402c 0%, #08140e 55%, #040706 100%); box-shadow: 0 0 0 1px var(--yr-line), 0 30px 80px rgb(0 0 0 / .5); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.yr-story[hidden] { display: none; }
.yr-story:focus-visible { box-shadow: 0 0 0 2px var(--yr-green), 0 30px 80px rgb(0 0 0 / .5); }
.yr-story[data-slide="hearts"] { background: radial-gradient(120% 80% at 50% 100%, #1b4a33 0%, #08140e 55%, #040706 100%); }
.yr-story[data-slide="persona"] { background: radial-gradient(90% 70% at 50% 40%, #236046 0%, #08140e 60%, #040706 100%); }
.yr-bars { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; gap: 4px; }
.yr-bar { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .22); overflow: hidden; }
.yr-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s ease; }
.yr-bar.is-done i, .yr-bar.is-now i { transform: scaleX(1); }
.yr-slides { position: absolute; inset: 0; }
.yr-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 56px 24px 70px; text-align: center; opacity: 0; transform: translate3d(8%, 0, 0) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.yr-slide.is-before { transform: translate3d(-8%, 0, 0) scale(.98); }
.yr-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.yr-slide > * { margin: 0; }
.yr-kicker { color: var(--yr-green); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.yr-year { font-family: var(--yr-display); font-size: clamp(64px, 18vw, 110px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.yr-slide-title { font-family: var(--yr-display); font-size: clamp(22px, 5.4vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.yr-big { font-family: var(--yr-display); font-size: clamp(56px, 16vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #b9f8d7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yr-big-text { font-size: clamp(48px, 13vw, 80px); }
.yr-unit { color: var(--yr-ink); font-size: 20px; font-weight: 600; }
.yr-line { max-width: 340px; margin-top: 10px !important; color: #d3ddd7; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.yr-hint { margin-top: 20px !important; color: var(--yr-ink-2); font-size: 14px; animation: yr-pulse 2s ease-in-out infinite; }
@keyframes yr-pulse { 50% { opacity: .45; } }
.yr-intro-heart { width: 92px; height: 92px; margin-bottom: 18px !important; fill: var(--yr-green); filter: drop-shadow(0 10px 30px rgb(100 237 170 / .45)); animation: yr-beat 2.4s ease-in-out infinite; }
.yr-slide.is-active .yr-big, .yr-slide.is-active .yr-persona { animation: yr-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes yr-rise { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); } to { opacity: 1; transform: none; } }

.yr-shows { display: grid; gap: 14px; width: 100%; max-width: 360px; margin: 18px 0 0 !important; padding: 0; list-style: none; text-align: left; }
.yr-show { display: grid; grid-template-columns: 22px 72px minmax(0, 1fr); align-items: center; gap: 14px; opacity: 0; }
.yr-slide.is-active .yr-show { animation: yr-slide-in .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 140ms + 120ms); }
@keyframes yr-slide-in { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; transform: none; } }
.yr-show-rank { font-family: var(--yr-display); font-size: 20px; font-weight: 600; color: var(--yr-green); }
.yr-show-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #1d4532, #08140e); box-shadow: 0 0 0 1px var(--yr-line), 0 10px 26px rgb(0 0 0 / .4); }
.yr-show-art img { width: 100%; height: 100%; object-fit: cover; }
.yr-show-art svg { width: 34px; height: 34px; fill: var(--yr-green); }
.yr-show-text { display: grid; gap: 2px; min-width: 0; }
.yr-show-title { overflow: hidden; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.yr-show-minutes { color: var(--yr-ink-2); font-size: 14px; }

.yr-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.yr-rain-heart { position: absolute; left: var(--x); bottom: -30px; width: 22px; height: 22px; fill: var(--yr-green); opacity: 0; }
.yr-slide.is-active .yr-rain-heart { animation: yr-float-up 3.4s ease-in var(--d) infinite; }
@keyframes yr-float-up { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.7); } 15% { opacity: .7; } 100% { opacity: 0; transform: translate3d(0, -560px, 0) scale(1.1) rotate(14deg); } }
.yr-extras { display: grid; gap: 6px; margin-top: 18px !important; padding: 0; list-style: none; color: #d3ddd7; font-size: 15px; }

.yr-streak-heart { width: 120px !important; height: 120px !important; margin-bottom: 10px !important; }
.yr-sky { width: 120px; height: 120px; margin-bottom: 10px !important; overflow: visible; }
.yr-moon { fill: #e7fff3; filter: drop-shadow(0 0 18px rgb(100 237 170 / .5)); }
.yr-star { fill: var(--yr-green); animation: yr-pulse 2.2s ease-in-out infinite; }
.yr-star:nth-of-type(even) { animation-delay: -1s; }
.yr-sun { fill: var(--yr-green); filter: drop-shadow(0 0 20px rgb(100 237 170 / .55)); }
.yr-ray { stroke: var(--yr-green); stroke-width: 4; stroke-linecap: round; transform-origin: 60px 60px; animation: yr-spin 30s linear infinite; }
@keyframes yr-spin { to { transform: rotate(360deg); } }

.yr-persona-stage { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 8px !important; }
.yr-persona-heart { width: 96px; height: 96px; fill: var(--yr-green); filter: drop-shadow(0 10px 34px rgb(100 237 170 / .55)); }
.yr-slide.is-active .yr-persona-heart { animation: yr-pop .8s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes yr-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.yr-persona { font-family: var(--yr-display); font-size: clamp(32px, 9vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; color: var(--yr-green); text-wrap: balance; }
.yr-burst-heart { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; fill: var(--yr-green); pointer-events: none; animation: yr-burst 1.3s cubic-bezier(.2, .8, .2, 1) var(--d) both; }
@keyframes yr-burst { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(1.1) rotate(var(--r)); } }

.yr-card-preview { width: min(48%, 216px); height: auto; margin: 14px 0 6px !important; border-radius: 18px; box-shadow: 0 0 0 1px var(--yr-line), 0 20px 50px rgb(0 0 0 / .5); }
.yr-slide.is-active .yr-card-preview { animation: yr-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.yr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px !important; }
.yr-actions .btn, .yr-signin { min-height: 46px; padding: 0 22px; border-radius: 999px; }
.yr-share { background: var(--yr-green) !important; color: var(--yr-green-ink) !important; }
.yr-status { min-height: 1.4em; margin-top: 8px !important; color: #d3ddd7; font-size: 14px; }

.yr-nav { position: absolute; bottom: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--yr-line); border-radius: 50%; background: rgb(10 16 13 / .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; cursor: pointer; transition: opacity .2s, transform .2s; }
.yr-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yr-nav:disabled { opacity: 0; pointer-events: none; }
.yr-nav:active { transform: scale(.94); }
.yr-prev { left: 14px; }
.yr-next { right: 14px; }

/* The streak card and invites. */
.yr-streak { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.yr-streak[hidden], .yr-keep[hidden] { display: none; }
.yr-streak-card, .yr-invite, .yr-keep-row, .yr-keep-confirm { padding: 20px; border: 1px solid var(--yr-line); border-radius: 26px; background: var(--yr-glass); -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.yr-streak-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; animation: yr-fade .5s ease both; }
.yr-streak-art { position: relative; width: 112px; height: 104px; }
.yr-streak-count { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 10px; font-family: var(--yr-display); font-size: 30px; font-weight: 600; color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .45); }
.yr-streak-title { margin: 0 0 4px; font-family: var(--yr-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.yr-streak-line { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.yr-invite-title { margin: 0 0 4px; font-size: 17px; }
.yr-invite-row { display: flex; gap: 8px; margin-top: 12px; }
.yr-invite-link { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--yr-line); border-radius: 14px; background: rgb(0 0 0 / .3); color: var(--yr-ink); font: 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.yr-invite-row .btn { min-height: 44px; padding: 0 16px; border-radius: 14px; }

/* Keep my listening year: an iOS-style switch. */
.yr-keep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.yr-keep-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.yr-keep-text { display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.yr-switch { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: rgb(120 120 128 / .4); cursor: pointer; transition: background-color .25s; }
.yr-switch[aria-checked="true"] { background: var(--yr-green); }
.yr-switch-knob { position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.yr-switch[aria-checked="true"] .yr-switch-knob { transform: translateX(20px); }
.yr-switch:focus-visible { outline: 2px solid var(--yr-green); outline-offset: 3px; }
.yr-keep-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.yr-keep-confirm[hidden] { display: none; }
.yr-keep-confirm p { flex: 1 1 100%; margin: 0; }
/* The "Turn off and clear" confirm is a choice, not an error (MAKERS-63, R04-08): cream text and a green outline, never red. */
.yr-danger { color: #f4eee5 !important; box-shadow: inset 0 0 0 1px #64edaa; }
@keyframes yr-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 900px) { .yr-wrap { width: min(100%, 520px); } }

@media (prefers-reduced-motion: reduce) {
	.yr-float, .yr-mark svg, .yr-intro-heart, .yr-hint, .yr-star, .yr-ray { animation: none; }
	.yr-slide, .yr-slide.is-before { transform: none; transition: opacity .35s ease; }
	.yr-slide.is-active .yr-big, .yr-slide.is-active .yr-persona, .yr-slide.is-active .yr-card-preview, .yr-slide.is-active .yr-persona-heart { animation: yr-fade .4s ease both; }
	.yr-slide.is-active .yr-show { animation: yr-fade .4s ease both; }
	.yr-slide.is-active .yr-rain-heart { animation: none; }
	.yr-burst-heart { display: none; }
	.yr-fill-level { transition: none; }
	.yr-skeleton span { animation: none; }
	.yr-bar i, .yr-switch, .yr-switch-knob, .yr-nav { transition: none; }
}
/* The site's Quiet motion switch (body.quiet-motion, set by the theme) quiets the same motion (MAKERS-62, P6-06). */
body.quiet-motion .yr-float, body.quiet-motion .yr-mark svg, body.quiet-motion .yr-intro-heart, body.quiet-motion .yr-hint, body.quiet-motion .yr-star, body.quiet-motion .yr-ray { animation: none; }
body.quiet-motion .yr-slide, body.quiet-motion .yr-slide.is-before { transform: none; transition: opacity .35s ease; }
body.quiet-motion .yr-slide.is-active .yr-big, body.quiet-motion .yr-slide.is-active .yr-persona, body.quiet-motion .yr-slide.is-active .yr-card-preview, body.quiet-motion .yr-slide.is-active .yr-persona-heart { animation: yr-fade .4s ease both; }
body.quiet-motion .yr-slide.is-active .yr-show { animation: yr-fade .4s ease both; }
body.quiet-motion .yr-slide.is-active .yr-rain-heart { animation: none; }
body.quiet-motion .yr-burst-heart { display: none; }
body.quiet-motion .yr-fill-level { transition: none; }
body.quiet-motion .yr-skeleton span { animation: none; }
body.quiet-motion .yr-bar i, body.quiet-motion .yr-switch, body.quiet-motion .yr-switch-knob, body.quiet-motion .yr-nav { transition: none; }
