@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');
:root { --ink: #fff; --muted: rgba(255,255,255,.72); --line: rgba(255,255,255,.38); --glass: rgba(255,255,255,.16); --sans: 'DM Sans','Microsoft YaHei',sans-serif; --serif: 'Noto Serif SC',Georgia,serif; --mono: 'DM Mono',Consolas,monospace; --home-title-font: var(--serif); --home-body-font: var(--sans); --home-title-size: clamp(4rem, 8.8vw, 8.8rem); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #17110d; font-family: var(--home-body-font); }
a { color: inherit; text-decoration: none; }
.demo-stage { position: relative; min-height: 220vh; isolation: isolate; overflow: clip; --progress: 0; }
.demo-background, .demo-background-image, .demo-background-shade, .demo-background-vignette { position: fixed; inset: 0; pointer-events: none; }
.demo-background { z-index: -2; overflow: hidden; }
.demo-background-image { background: #655142 center / cover no-repeat; transform: translate3d(0, 0, 0) scale(1.12); transform-origin: center center; will-change: transform; transition: filter .45s ease; }
.demo-background-shade { background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.12) 28%, rgba(0,0,0,.32) 52%, rgba(0,0,0,.96) 77%, #080808 100%); }
.demo-background-vignette { box-shadow: inset 0 0 180px rgba(0,0,0,.48); }
.demo-header { position: absolute; top: 0; right: 0; left: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 clamp(22px, 5vw, 76px); border-bottom: 1px solid rgba(255,255,255,.42); }
.demo-brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); }
.demo-brand span { font-size: 28px; letter-spacing: .05em; }
.demo-brand small { color: var(--muted); font: 12px var(--mono); }
.demo-header nav { display: flex; gap: clamp(18px, 3vw, 42px); margin-left: auto; margin-right: clamp(18px, 4vw, 62px); }
.demo-header nav a { position: relative; padding: 29px 0 25px; color: var(--muted); font-size: 14px; }
.demo-header nav a.active, .demo-header nav a:hover { color: #fff; }
.demo-header nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #fff; content: ''; }
.demo-login { padding: 6px 13px; color: #fff; background: rgba(0,0,0,.46); border: 1px solid rgba(255,255,255,.6); font-size: 13px; }
.demo-hero { display: grid; min-height: 100vh; align-items: center; padding: 130px clamp(22px, 9vw, 150px) 210px; }
.demo-hero-title { max-width: 710px; transform: translate3d(calc(var(--progress, 0) * -3vw), calc(var(--progress, 0) * -38vh), 0) scale(calc(1 - var(--progress, 0) * .22)); transform-origin: left center; opacity: calc(1 - var(--progress, 0) * .42); will-change: transform, opacity; }
.demo-kicker, .demo-entry-heading span { margin: 0 0 20px; color: var(--muted); font: 12px var(--mono); letter-spacing: .12em; }
.demo-hero h1 { margin: 0; font: 600 var(--home-title-size)/1.06 var(--home-title-font); letter-spacing: .02em; text-shadow: 0 5px 35px rgba(0,0,0,.28); }
.demo-hero h1 span { display: inline-block; margin-left: clamp(12px, 5vw, 76px); }
.demo-caption { max-width: 360px; margin: 28px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; opacity: calc(1 - var(--progress, 0) * 1.7); transform: translate3d(calc(var(--progress, 0) * -2vw), calc(var(--progress, 0) * -34px), 0); }
.demo-entry-zone { padding: 17vh clamp(22px, 7vw, 108px) 42vh; opacity: calc(.03 + var(--progress, 0) * .97); transform: translate3d(0, calc((1 - var(--progress, 0)) * 180px), 0) scale(calc(.96 + var(--progress, 0) * .04)); will-change: transform, opacity; }
.demo-entry-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.demo-entry-heading strong { font: 600 25px var(--serif); }
.demo-entry-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .72fr) minmax(0, .72fr) minmax(0, 1fr); grid-template-rows: 108px 108px; gap: 12px; max-width: 1080px; margin: 0 auto; }
.demo-entry { position: relative; display: flex; min-height: 0; flex-direction: column; justify-content: end; padding: 20px; overflow: hidden; color: #fff; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); transform: translate3d(0, calc((1 - var(--progress, 0)) * 92px), 0); transition: background .25s ease, transform .25s ease, border-color .25s ease; }
.demo-entry:hover { background: rgba(255,255,255,.28); border-color: #fff; transform: translate3d(0, calc((1 - var(--progress, 0)) * 92px - 6px), 0); }
.demo-entry-workbench { grid-area: 1 / 1 / 3 / 2; min-height: 228px; background: rgba(255,255,255,.78); color: #201c18; }
.demo-entry-prompt { grid-area: 1 / 2 / 2 / 4; display: flex; align-items: center; justify-content: center; color: #fff; font-size: clamp(21px, 3vw, 34px); transform: translate3d(0, calc((1 - var(--progress, 0)) * 72px), 0); }
.demo-entry-notes { grid-area: 1 / 4 / 2 / 5; }
.demo-entry-games { grid-area: 2 / 2 / 3 / 3; }
.demo-entry-software { grid-area: 2 / 3 / 3 / 4; }
.demo-entry-links { grid-area: 2 / 4 / 3 / 5; }
.demo-entry-notes, .demo-entry-games, .demo-entry-software, .demo-entry-links { min-height: 108px; }
.demo-entry-workbench:hover { background: rgba(255,255,255,.94); }
.entry-index { position: absolute; top: 15px; right: 15px; color: inherit; opacity: .62; font: 12px var(--mono); }
.demo-entry strong { font: 600 clamp(17px, 2vw, 27px) var(--serif); }
.demo-entry small { margin-top: 8px; color: inherit; opacity: .68; font-size: 13px; }
.demo-player { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; align-items: center; gap: 15px; min-height: 74px; padding: 12px 22px 12px 8px; color: #fff; background: rgba(0,0,0,.93); border-top: 1px solid rgba(255,255,255,.22); transition: color .3s ease, background .3s ease, border-color .3s ease; }
.demo-player.light { color: #211b17; background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.18); backdrop-filter: blur(15px); }
.demo-play { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; padding: 0; color: inherit; background: transparent; border: 2px solid currentColor; border-radius: 50%; font-size: 18px; cursor: pointer; }
.demo-player-cover { position: relative; display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; overflow: hidden; color: rgba(255,255,255,.8); background-color: rgba(255,255,255,.12); background-position: center; background-size: cover; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; }
.demo-player-cover.is-placeholder::before { content: '♪'; font-size: 22px; line-height: 1; }
.demo-player.light .demo-player-cover { color: rgba(33,27,23,.7); background-color: rgba(33,27,23,.08); border-color: rgba(33,27,23,.3); }
.demo-play:disabled { cursor: not-allowed; opacity: .42; }
.demo-player-track { display: grid; min-width: 170px; max-width: 390px; flex: 1 1 280px; gap: 7px; }
.demo-player-track > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-player-meta { display: flex; min-width: 0; align-items: baseline; gap: 9px; overflow: hidden; white-space: nowrap; }
.demo-player-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-player-meta small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-player-progress { height: 3px; overflow: hidden; background: rgba(255,255,255,.22); border-radius: 99px; }
.demo-player-progress span { display: block; width: 0; height: 100%; background: currentColor; border-radius: inherit; transition: width .12s linear; }
.demo-player small { color: inherit; opacity: .48; font: 11px var(--mono); letter-spacing: .12em; }
.demo-player a { margin-left: auto; }
.demo-next { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 50%; font-size: 16px; cursor: pointer; }
.demo-next:disabled { cursor: not-allowed; opacity: .42; }
.demo-lyrics { position: fixed; left: clamp(22px, 5vw, 76px); bottom: 94px; z-index: 9; width: min(340px, calc(100vw - 44px)); padding: 14px 16px; color: #fff; background: rgba(0,0,0,.52); border-left: 2px solid currentColor; backdrop-filter: blur(12px); pointer-events: none; }
.demo-lyrics[hidden] { display: none; }.demo-lyrics small { display: block; margin-bottom: 8px; opacity: .58; font: 10px var(--mono); letter-spacing: .12em; }.demo-lyrics strong { display: block; margin-bottom: 7px; font-size: 15px; }.demo-lyrics p { max-height: 100px; margin: 0; overflow: auto; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.65; white-space: pre-line; }
.demo-scroll-hint { position: fixed; right: 24px; bottom: 105px; z-index: 9; color: rgba(255,255,255,.7); font: 11px var(--mono); writing-mode: vertical-rl; transition: opacity .3s ease; }
.demo-scroll-hint span { display: block; margin-top: 8px; font-size: 18px; }
@media (max-width: 900px) { .demo-header nav { margin-right: 18px; } .demo-entry-grid { grid-template-columns: minmax(0, 1.25fr) minmax(74px, .5fr) minmax(0, 1fr); grid-template-rows: 102px 102px 102px; } .demo-entry-workbench { grid-area: 1 / 1 / 4 / 2; } .demo-entry-prompt { grid-area: 1 / 2 / 2 / 4; } .demo-entry-notes { grid-area: 1 / 3 / 2 / 4; } .demo-entry-games { grid-area: 2 / 2 / 3 / 3; } .demo-entry-software { grid-area: 3 / 2 / 4 / 3; } .demo-entry-links { grid-area: 2 / 3 / 4 / 4; } }
@media (max-width: 620px) { .demo-stage { min-height: 245vh; } .demo-header { height: 64px; padding: 0 16px; } .demo-brand span { font-size: 23px; } .demo-brand small, .demo-header nav { display: none; } .demo-hero { min-height: 100svh; padding: 100px 22px 150px; } .demo-hero h1 { font-size: 56px; } .demo-hero h1 span { margin-left: 26px; } .demo-entry-zone { padding: 15vh 16px 42vh; } .demo-entry-grid { grid-template-columns: 1.2fr .8fr; grid-template-rows: 138px 88px 88px 88px; gap: 8px; } .demo-entry-workbench { grid-area: 1 / 1 / 3 / 2; } .demo-entry-prompt { grid-area: 1 / 2 / 2 / 3; font-size: 19px; } .demo-entry-notes { grid-area: 2 / 2 / 3 / 3; } .demo-entry-games { grid-area: 3 / 1 / 4 / 2; } .demo-entry-software { grid-area: 3 / 2 / 4 / 3; } .demo-entry-links { grid-area: 4 / 1 / 5 / 3; } .demo-entry { padding: 13px; } .demo-entry strong { font-size: 18px; } .demo-entry small { display: none; } .demo-player { min-height: 64px; padding: 9px 10px 9px 6px; gap: 8px; } .demo-player-track { min-width: 0; } .demo-player small { display: none; } .demo-lyrics { left: 16px; bottom: 78px; width: min(300px, calc(100vw - 32px)); } .demo-scroll-hint { right: 12px; bottom: 90px; } }

/* Reference composition: the cover transforms into one fixed final viewport. */
.demo-stage { overflow-x: clip; }
.demo-hero { position: sticky; top: 0; z-index: 1; height: 100vh; min-height: 100svh; }
.demo-hero-title { transform: translate3d(calc(var(--progress, 0) * -2vw), calc(var(--progress, 0) * -18vh), 0) scale(calc(1 - var(--progress, 0) * .22)); opacity: calc(1 - var(--progress, 0) * .22); }
.demo-entry-zone { position: sticky; top: 0; z-index: 2; height: 100vh; min-height: 100svh; margin-top: -100vh; display: flex; align-items: flex-end; padding: 0 clamp(22px, 7vw, 108px) 17vh; opacity: calc(.02 + var(--progress, 0) * .98); transform: translate3d(0, calc((1 - var(--progress, 0)) * 150px), 0); }
.demo-entry-grid { width: min(78vw, 820px); max-width: none; grid-template-columns: minmax(0, 1.9fr) minmax(0, .44fr) minmax(0, .44fr) minmax(0, .95fr); grid-template-rows: 84px 84px; gap: 10px; }
.demo-entry { padding: 16px; border-radius: 6px; }
.demo-entry-workbench { min-height: 178px; border-radius: 12px; }
.demo-entry-prompt { align-items: center; justify-content: flex-start; padding-left: 8px; font-size: clamp(22px, 2.7vw, 30px); }
.demo-entry-notes, .demo-entry-games, .demo-entry-software, .demo-entry-links { min-height: 84px; }
.demo-entry small { display: none; }
.demo-entry strong { font-size: clamp(17px, 2vw, 25px); }
@media (max-width: 900px) {
.demo-entry-zone { padding-right: 22px; padding-left: 22px; }
.demo-entry-grid { width: min(84vw, 760px); }
}
@media (max-width: 620px) {
.demo-entry-zone { padding: 0 16px 112px; }
.demo-entry-grid { width: 100%; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 116px 76px 76px 76px; gap: 8px; }
.demo-entry-workbench { grid-area: 1 / 1 / 3 / 2; min-height: 0; }
.demo-entry-prompt { grid-area: 1 / 2 / 2 / 3; padding-left: 8px; font-size: 18px; }
.demo-entry-notes { grid-area: 2 / 2 / 3 / 3; }
.demo-entry-games { grid-area: 3 / 1 / 4 / 2; }
.demo-entry-software { grid-area: 3 / 2 / 4 / 3; }
.demo-entry-links { grid-area: 4 / 1 / 5 / 3; }
}

/* Short scroll: the final composition is reached at the bottom. */
.demo-stage { min-height: 132vh; }
@media (max-width: 620px) { .demo-stage { min-height: 148vh; } }

/* Responsive webpage proportions */
.demo-stage { min-height: 138vh; width: 100%; }
.demo-hero { width: 100%; min-height: 100svh; padding: clamp(96px, 13vh, 150px) clamp(24px, 7vw, 108px) clamp(150px, 22vh, 240px); }
.demo-hero-title { max-width: min(68vw, 860px); }
.demo-hero h1 { font-size: clamp(3.25rem, 7.5vw, 7.5rem); }
.demo-entry-zone { width: 100%; padding: 0 clamp(24px, 7vw, 108px) calc(clamp(74px, 9vh, 112px) + 9vh); }
.demo-entry-grid { width: min(100%, 1180px); margin: 0 auto; grid-template-columns: minmax(0, 1.75fr) minmax(96px, .52fr) minmax(96px, .52fr) minmax(180px, 1fr); grid-template-rows: clamp(104px, 14vh, 156px) clamp(104px, 14vh, 156px); gap: clamp(10px, 1.2vw, 16px); }
.demo-entry { min-width: 0; min-height: 0; padding: clamp(14px, 1.8vw, 24px); }
.demo-entry-workbench { min-height: 0; }
.demo-entry-notes, .demo-entry-games, .demo-entry-software, .demo-entry-links { min-height: 0; }
.demo-entry strong { font-size: clamp(1.05rem, 2vw, 1.8rem); }
.demo-entry-prompt { font-size: clamp(1.35rem, 2.8vw, 2.25rem); }
.demo-player { min-height: clamp(68px, 8vh, 88px); }
@media (max-width: 900px) {
.demo-stage { min-height: 142vh; }
.demo-entry-zone { padding-right: 24px; padding-left: 24px; }
.demo-entry-grid { width: 100%; grid-template-columns: minmax(0, 1.4fr) minmax(84px, .58fr) minmax(0, 1fr); grid-template-rows: clamp(100px, 15vh, 144px) clamp(100px, 15vh, 144px) clamp(100px, 15vh, 144px); }
}
@media (max-width: 620px) {
.demo-stage { min-height: 150vh; }
.demo-hero { padding: 88px 18px 138px; }
.demo-hero-title { max-width: 100%; }
.demo-hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
.demo-entry-zone { padding: 0 16px calc(64px + 8vh); }
.demo-entry-grid { width: 100%; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: clamp(112px, 18vh, 150px) clamp(78px, 12vh, 104px) clamp(78px, 12vh, 104px) clamp(78px, 12vh, 104px); gap: 8px; }
.demo-entry { padding: 13px; }
.demo-entry strong { font-size: clamp(1rem, 4.4vw, 1.35rem); }
.demo-entry-prompt { font-size: clamp(1rem, 4.8vw, 1.35rem); }
}

/* Only the entry blocks move; the visual layers remain fixed. */
.demo-background-image { transform: none !important; }
.demo-hero { position: sticky; top: 0; z-index: 1; height: 100vh; min-height: 100svh; }
.demo-hero-title { position: absolute; top: clamp(108px, 18vh, 190px); left: clamp(24px, 7vw, 108px); max-width: min(68vw, 860px); transform: none !important; opacity: 1 !important; }
.demo-caption { transform: none !important; opacity: 1 !important; }
.demo-entry-zone { transform: none !important; }
.demo-entry { transform: translate3d(0, calc((1 - var(--progress, 0)) * 120px), 0); }
.demo-entry:hover { transform: translate3d(0, calc((1 - var(--progress, 0)) * 120px - 6px), 0); }
.demo-entry-prompt { transform: translate3d(0, calc((1 - var(--progress, 0)) * 100px), 0); }
.demo-player { position: fixed; }
@media (max-width: 620px) {
.demo-hero-title { top: 108px; left: 18px; max-width: calc(100% - 36px); }
.demo-entry { transform: translate3d(0, calc((1 - var(--progress, 0)) * 90px), 0); }
.demo-entry:hover { transform: translate3d(0, calc((1 - var(--progress, 0)) * 90px - 5px), 0); }
.demo-entry-prompt { transform: translate3d(0, calc((1 - var(--progress, 0)) * 74px), 0); }
}

/* Lock the red-marked hero composition in place. */
.demo-background, .demo-background-image, .demo-background-shade, .demo-background-vignette { position: fixed !important; inset: 0; }
.demo-background-image { transform: none !important; transition: none !important; }

/* The hero title fades from solid white into the image underneath. */
.demo-hero h1 .demo-title-part {
  color: transparent !important;
  background: linear-gradient(var(--home-title-gradient-direction, to top), var(--home-title-gradient-start, rgba(255,252,239,.98)) 0%, var(--home-title-gradient-end, rgba(255,255,255,.22)) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px var(--home-title-shadow-blur, 30px) rgba(0,0,0,var(--home-title-shadow-opacity, .18));
}
:root[data-title-gradient="off"] .demo-hero h1 .demo-title-part { color: var(--ink) !important; background: none; -webkit-text-fill-color: currentColor; }
.demo-header { position: fixed !important; top: 0; right: 0; left: 0; }
.demo-hero { position: sticky !important; top: 0; height: 100vh; min-height: 100svh; transform: none !important; }
.demo-hero-title, .demo-caption { transform: none !important; opacity: 1 !important; }
.demo-entry-zone { position: sticky !important; top: 0; }

/* Text is an independent fixed layer and never participates in page scrolling. */
.demo-hero-title { position: fixed !important; top: clamp(108px, 18vh, 190px) !important; left: clamp(24px, 7vw, 108px) !important; z-index: 4; transform: none !important; opacity: 1 !important; will-change: auto !important; }
.demo-kicker, .demo-hero h1, .demo-caption { transform: none !important; }
@media (max-width: 620px) { .demo-hero-title { top: 108px !important; left: 18px !important; } }

/* The cards are a fixed overlay; only each card animates into its final position. */
.demo-entry-zone { position: fixed !important; inset: 0 !important; z-index: 3 !important; width: 100%; height: 100vh !important; min-height: 100svh !important; margin: 0 !important; display: flex !important; align-items: flex-start !important; padding: clamp(310px, 45vh, 500px) clamp(24px, 7vw, 108px) clamp(86px, 12vh, 130px) !important; opacity: calc(.02 + var(--progress, 0) * .98) !important; transform: none !important; pointer-events: none; }
.demo-entry-grid { width: min(100%, 1180px) !important; margin: 0 auto !important; pointer-events: none; }
.demo-entry, .demo-entry-prompt { pointer-events: auto; }
.demo-entry-workbench { min-height: 0 !important; }
.demo-hero-title { z-index: 4 !important; }
@media (max-width: 900px) { .demo-entry-zone { padding-top: clamp(270px, 42vh, 430px) !important; } }
@media (max-width: 620px) { .demo-entry-zone { padding: 300px 16px 74px !important; } }

/* Title morph: one centered line becomes two lines on the left. */
.demo-hero-title { position: fixed !important; top: clamp(108px, 18vh, 190px) !important; left: clamp(24px, 7vw, 108px) !important; width: auto !important; z-index: 4 !important; }
.demo-title-words { position: fixed !important; top: var(--title-top, 40vh) !important; left: var(--title-left, 10vw) !important; width: var(--title-width, auto) !important; height: var(--title-height, 1em) !important; margin: 0 !important; transform: none !important; white-space: normal !important; }
.demo-title-part { position: absolute !important; top: 0; left: 0; display: block !important; margin: 0 !important; white-space: nowrap !important; will-change: transform; }
.demo-hero h1.demo-title-words span { margin-left: 0 !important; }

/* Lower the complete entry composition without changing its proportions. */
.demo-entry-zone { padding-top: clamp(360px, 52vh, 580px) !important; }
@media (max-width: 900px) { .demo-entry-zone { padding-top: clamp(320px, 49vh, 500px) !important; } }
@media (max-width: 620px) { .demo-entry-zone { padding-top: clamp(280px, 40vh, 390px) !important; } }

.home-account-dialog { width: min(420px, calc(100vw - 32px)); min-height: 224px; padding: 0; overflow: hidden; color: #f7f4ed; background: rgba(12, 18, 28, .94); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; box-shadow: 0 28px 90px rgba(0,0,0,.42); backdrop-filter: blur(24px); }
.home-account-dialog::backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(6px); }
.home-account-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.18); }
.home-account-head strong { font-size: 20px; line-height: 1.2; }
.home-account-head button { width: 32px; height: 32px; color: inherit; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 22px; line-height: 1; }
.home-account-body { padding: 22px; }
.home-account-intro { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.home-account-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; color: #111923; background: #f1c86a; border: 0; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; }
.home-account-current { margin: 0; }
.home-account-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.home-account-action { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 40px; padding: 0 8px; color: #f7f4ed; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.home-account-action:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); }
.home-account-action.is-danger { color: #ffb4ab; }
.home-account-action:disabled { opacity: .5; cursor: wait; }
.home-account-help { margin: 14px 0 0; color: rgba(255,255,255,.56); font-size: 11px; line-height: 1.6; }
#homeAccountMessage:not(:empty) { min-height: 20px; margin: 14px 0 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.6; }
.account-logout-progress { display: inline-flex; align-items: center; gap: 9px; }
.account-logout-spinner { width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid rgba(255,255,255,.24); border-top-color: #f1c86a; border-radius: 50%; animation: home-account-spin .72s linear infinite; }
@keyframes home-account-spin { to { transform: rotate(360deg); } }
#homeAccountMessage { margin: 14px 0 0; color: #f1c86a; font-size: 11px; line-height: 1.5; }
#homeAccountMessage:empty { display: none; }
@media (max-width: 480px) {
  .home-account-dialog { width: min(420px, calc(100vw - 40px)); min-height: 246px; }
}
/* Keep inactive account panels truly hidden. */
#homeSignedIn[hidden] { display: none !important; }
.demo-caption { margin-left: auto !important; margin-right: 0 !important; text-align: right !important; }

/* Keep the auxiliary hero copy on the right while the main title morphs independently. */
.demo-kicker {
  position: fixed !important;
  top: clamp(118px, 17vh, 182px) !important;
  right: clamp(24px, 7vw, 108px) !important;
  z-index: 5 !important;
  margin: 0 !important;
  text-align: right !important;
}

/* Keep the author beside the title on every viewport. */
.demo-player-meta small { display: inline; }

@media (max-width: 620px) {
  .demo-player-meta { gap: 6px; }
  .demo-player-meta small { display: inline; font-size: 10px; letter-spacing: .04em; }
}
.demo-caption {
  position: fixed !important;
  top: clamp(166px, 25vh, 258px) !important;
  right: clamp(24px, 7vw, 108px) !important;
  z-index: 5 !important;
  width: min(360px, 42vw) !important;
  margin: 0 !important;
  text-align: right !important;
}
@media (max-width: 620px) {
  .demo-kicker { top: 104px !important; right: 18px !important; }
  .demo-caption { top: 146px !important; right: 18px !important; width: min(270px, calc(100vw - 36px)) !important; }
}

/* Header transition: clear glass on entry, blurred glass after scrolling. */
.demo-header {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, .42);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  -webkit-transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, -webkit-backdrop-filter .35s ease;
}
.demo-stage[data-scroll-state="moving"] .demo-header,
.demo-stage[data-scroll-state="expanded"] .demo-header {
  background: rgba(18, 27, 38, .42) !important;
  border-bottom-color: rgba(255, 255, 255, .5);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.demo-stage:not([data-scroll-state]) .demo-entry-zone,
.demo-stage[data-scroll-state="cover"] .demo-entry-zone { visibility: hidden !important; opacity: 0 !important; }
.demo-stage[data-scroll-state="moving"] .demo-entry-zone,
.demo-stage[data-scroll-state="expanded"] .demo-entry-zone { visibility: visible !important; }
.demo-hero h1.demo-title-words { font-size: var(--home-title-size) !important; }

/* Keep the expanded title clear of the entry cards, including the largest title setting. */
.demo-entry-zone { padding-top: clamp(410px, 57vh, 660px) !important; }
@media (max-width: 900px) {
  .demo-entry-zone { padding-top: clamp(340px, 55vh, 520px) !important; }
}
@media (max-width: 620px) {
  .demo-entry-zone { padding-top: clamp(280px, 51vh, 410px) !important; }
}

/* Avoid a GPU compositing seam when a lower card is hovered beside the spanning workbench card. */
.demo-entry {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}
@media (min-width: 621px) {
  .demo-entry:hover,
  .demo-entry-workbench:hover {
    transform: translate3d(0, calc((1 - var(--progress, 0)) * 92px), 0) !important;
    will-change: auto;
    box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 18px 38px rgba(0,0,0,.16);
  }
}

/* Mobile composition: keep the title readable and reserve the lower band
   for the fixed entry cards and player. */
@media (max-width: 620px) {
  .demo-entry-zone {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  .demo-entry,
  .demo-entry:hover {
    transform: translate3d(0, calc((1 - var(--progress, 0)) * 14px), 0) !important;
  }

  .demo-entry-prompt {
    transform: translate3d(0, calc((1 - var(--progress, 0)) * 14px), 0) !important;
  }

  .demo-hero-title {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .demo-title-words {
    max-width: calc(100vw - 36px) !important;
    overflow: visible !important;
  }

  .demo-kicker {
    top: 92px !important;
    right: 18px !important;
    max-width: calc(100vw - 36px) !important;
    font-size: 12px !important;
  }

  .demo-caption {
    top: 128px !important;
    right: 18px !important;
    width: min(250px, calc(100vw - 36px)) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .demo-entry-zone {
    align-items: flex-end !important;
    padding: 0 16px 86px !important;
  }

  .demo-entry-grid {
    grid-template-rows: 102px 66px 66px 66px !important;
    gap: 8px !important;
  }

  .demo-entry {
    padding: 12px !important;
  }

  .demo-entry strong {
    font-size: 16px !important;
  }

  .demo-entry-prompt {
    font-size: 17px !important;
  }

  .demo-player {
    min-height: 64px !important;
    height: 64px !important;
    padding: 8px 16px !important;
  }
}

@media (max-width: 620px) {
  .demo-player-meta small { display: inline; }
}

/* Per-entry appearance configured from the admin desk. */
.demo-entry[data-entry-key] {
  --entry-background-color: rgba(255,255,255,.16);
  --entry-image: none;
  --entry-image-opacity: 1;
  --entry-image-fit: cover;
  --entry-image-position: center;
  --entry-image-repeat: no-repeat;
  --entry-text-color: #fff;
  --entry-font-family: var(--serif);
  --entry-font-size: 27px;
  --entry-font-weight: 600;
  --entry-text-align: left;
  --entry-vertical-align: flex-end;
  --entry-border-color: rgba(255,255,255,.38);
  --entry-border-width: 1px;
  --entry-radius: 6px;
  --entry-blur: 14px;
  --entry-shadow: none;
  --entry-hover-opacity: .14;
  justify-content: var(--entry-vertical-align) !important;
  color: var(--entry-text-color) !important;
  text-align: var(--entry-text-align);
  background: transparent !important;
  border-width: var(--entry-border-width) !important;
  border-style: solid !important;
  border-color: var(--entry-border-color) !important;
  border-radius: var(--entry-radius) !important;
  box-shadow: var(--entry-shadow) !important;
  backdrop-filter: blur(var(--entry-blur)) !important;
  -webkit-backdrop-filter: blur(var(--entry-blur)) !important;
}
.demo-entry-workbench[data-entry-key] {
  --entry-background-color: rgba(255,255,255,.78);
  --entry-text-color: #201c18;
  --entry-border-color: rgba(255,255,255,.38);
  --entry-radius: 12px;
  --entry-hover-opacity: .73;
}
.demo-entry[data-entry-key]::before,
.demo-entry[data-entry-key]::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
}
.demo-entry[data-entry-key]::before { z-index: -2; background: var(--entry-background-color); }
.demo-entry[data-entry-key]::after { z-index: -1; background: #fff; opacity: 0; transition: opacity .25s ease; }
.demo-entry[data-entry-key]:hover::after { opacity: var(--entry-hover-opacity); }
.demo-entry-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--entry-image);
  background-position: var(--entry-image-position);
  background-size: var(--entry-image-fit);
  background-repeat: var(--entry-image-repeat);
  opacity: var(--entry-image-opacity);
  pointer-events: none;
}
.demo-entry[data-entry-key] > :not(.demo-entry-media) { z-index: 1; }
.demo-entry[data-entry-key] strong {
  width: 100%;
  font-family: var(--entry-font-family) !important;
  font-size: clamp(12px, var(--entry-font-size), 48px) !important;
  font-weight: var(--entry-font-weight) !important;
}
.demo-entry[data-entry-key] small { width: 100%; }
@media (min-width: 621px) {
  .demo-entry[data-entry-key]:hover { box-shadow: var(--entry-shadow) !important; }
}
@media (max-width: 620px) {
  .demo-entry[data-entry-key] strong { font-size: clamp(12px, calc(var(--entry-font-size) * .6), 24px) !important; }
}

/* Entry subtitles are editable in the admin desk and remain visible on mobile. */
.demo-entry[data-entry-key] small {
  display: block !important;
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: inherit;
  opacity: .68;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-entry[data-entry-key] small[hidden] { display: none !important; }
@media (max-width: 620px) {
  .demo-entry[data-entry-key] small {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.25;
  }
}

/* Homepage transparent latest-update and visit stats panel. */
.demo-entry-insights {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(14px, 2vw, 24px) clamp(4px, 1vw, 12px);
  color: rgba(255,255,255,.92);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: translate3d(0, calc((1 - var(--progress, 0)) * 100px), 0);
}
.demo-entry-insights:hover {
  background: transparent !important;
  border-color: transparent !important;
  transform: translate3d(0, calc((1 - var(--progress, 0)) * 100px), 0);
}
.demo-insight-block { min-width: 0; }
.demo-insight-label {
  margin-bottom: 8px;
  color: rgba(255,255,255,.62);
  font: 11px var(--mono);
  letter-spacing: .08em;
  text-transform: none;
}
.demo-insight-label time { color: rgba(255,255,255,.82); }
.demo-insight-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255,255,255,.96);
  font: 600 clamp(15px, 1.55vw, 21px)/1.35 var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-insight-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo-insight-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: rgba(255,255,255,.74);
  font: 12px/1.5 var(--sans);
}
.demo-insight-stats-row span { white-space: nowrap; }
.demo-insight-stats-row strong { color: rgba(255,255,255,.96); font-weight: 600; }
@media (max-width: 900px) {
  .demo-entry-insights { gap: 14px; padding-inline: 2px; }
  .demo-insight-label { font-size: 10px; }
  .demo-insight-value { font-size: 16px; }
  .demo-insight-stats-row { gap: 5px 10px; font-size: 11px; }
}
@media (max-width: 620px) {
  .demo-entry-insights {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 11px;
    padding: 12px 4px;
  }
  .demo-insight-label { margin-bottom: 4px; }
  .demo-insight-value { font-size: 15px; }
  .demo-insight-stats-row { gap: 3px 10px; font-size: 10px; }
}
/* Larger desktop insight type with a clear divider between update and stats. */
.demo-insight-latest {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.38);
}
.demo-insight-stats { padding-top: 10px; }
.demo-insight-label { font-size: 13px; }
.demo-insight-value { font-size: clamp(21px, 2.05vw, 29px); line-height: 1.25; }
.demo-insight-stats-row { font-size: 14px; line-height: 1.6; gap: 8px 22px; }
@media (max-width: 900px) {
  .demo-insight-label { font-size: 12px; }
  .demo-insight-value { font-size: 20px; }
  .demo-insight-stats-row { font-size: 13px; gap: 6px 14px; }
}
@media (max-width: 620px) {
  .demo-insight-latest { padding-bottom: 9px; }
  .demo-insight-stats { padding-top: 7px; }
  .demo-insight-label { font-size: 10px; }
  .demo-insight-value { font-size: 16px; }
  .demo-insight-stats-row { font-size: 11px; gap: 4px 10px; }
}
/* Keep enlarged insight content inside the compact desktop grid row. */
.demo-entry-insights {
  gap: 0;
  align-content: center;
  overflow: hidden;
  padding: 8px 12px;
}
.demo-insight-latest { padding-bottom: 6px; }
.demo-insight-stats { padding-top: 5px; }
.demo-insight-label { margin-bottom: 3px; font-size: 11px; line-height: 1.2; }
.demo-insight-value { font-size: clamp(21px, 2.05vw, 27px); line-height: 1.12; }
.demo-insight-stats-row { font-size: 13px; line-height: 1.25; gap: 4px 18px; }
@media (max-width: 900px) {
  .demo-entry-insights { padding: 7px 8px; }
  .demo-insight-label { font-size: 10px; }
  .demo-insight-value { font-size: 20px; }
  .demo-insight-stats-row { font-size: 12px; gap: 3px 12px; }
}
@media (max-width: 620px) {
  .demo-entry-insights { gap: 8px; padding: 10px 4px; }
  .demo-insight-latest { padding-bottom: 8px; }
  .demo-insight-stats { padding-top: 0; }
  .demo-insight-label { margin-bottom: 4px; font-size: 10px; }
  .demo-insight-value { font-size: 16px; }
  .demo-insight-stats-row { font-size: 11px; line-height: 1.3; gap: 3px 10px; }
}
/* Anchor update text to the top and visit stats to the bottom of the desktop panel. */
.demo-entry-insights {
  grid-template-rows: auto auto;
  align-content: space-between;
}
@media (max-width: 620px) {
  .demo-entry-insights { align-content: center; }
}
