/* Landing shares the editor's warm neutrals, quiet borders and compact controls. */
html{scroll-behavior:smooth}body{overflow-y:auto!important;height:auto!important}
#playerHero{--hero-paper:#f5f3ee;--hero-ink:#30312d;--hero-muted:#85837a;--hero-line:#dedcd5;background:var(--hero-paper);color:var(--hero-ink);padding:0 clamp(22px,5vw,72px);border-bottom:1px solid var(--hero-line);position:relative;z-index:2;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif}
#playerHero *{box-sizing:border-box}#playerHero a{color:inherit;text-decoration:none}
.hero-top{max-width:1180px;margin:auto;min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--hero-line)}
.hero-brand{font:500 32px/1.2 "Studio Caveat",cursive;letter-spacing:-.5px}.hero-edition{display:none}
.hero-open{font-size:13px;color:var(--hero-muted)!important;min-height:44px;display:flex;align-items:center;white-space:nowrap}
.hero-main{max-width:1180px;margin:auto;padding:52px 0 40px;display:grid;grid-template-columns:1fr 1fr;column-gap:32px;row-gap:28px}
.hero-copy{display:contents}.hero-copy h1{grid-column:1/-1;font:500 clamp(32px,3.5vw,48px)/1.22 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;letter-spacing:-1.7px;margin:0;text-align:center}
.tutorial-placeholder{grid-column:1/-1;grid-row:2;width:100%;height:clamp(200px,25vw,320px);background:#eeece6;border:1px solid #e4e1da;border-radius:16px}
.hero-copy p{grid-column:1;grid-row:3;align-self:center;max-width:470px;font-size:14px;line-height:1.85;color:#7b7a72;margin:0}
.hero-start{grid-column:2;grid-row:3;justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:28px;border:1px solid #30312d;border-radius:8px;background:#30312d;color:#faf9f6!important;padding:12px 20px;min-height:46px;font-size:14px;font-weight:400}

.hero-start:hover{background:#484940}.hero-open:hover{color:var(--hero-ink)!important}
#playerHero a:focus-visible{outline:2px solid #7d856e;outline-offset:5px}#editor{scroll-margin-top:0;outline:none}
@media(max-width:700px){.hero-top{min-height:74px}.hero-brand{font-size:27px}.hero-open{font-size:12px}.hero-main{padding:34px 0 30px;grid-template-columns:1fr;gap:24px}.hero-copy h1{font-size:clamp(28px,7.5vw,38px);letter-spacing:-1.1px;text-align:left}.tutorial-placeholder{height:auto;aspect-ratio:1.5;border-radius:12px}.hero-copy p{grid-column:1;grid-row:3;font-size:13px;line-height:1.8;max-width:440px}.hero-start{grid-column:1;grid-row:4;justify-self:start;min-height:44px;padding:11px 18px;font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Reuse the editor artwork and the homepage English display face. */
#playerHero .hero-brand{display:block;width:260px;flex:0 1 260px;min-width:0;aspect-ratio:1420/225;background-size:152.676% auto;background-position:46.52% center;background-repeat:no-repeat;mix-blend-mode:multiply}
#playerHero .hero-copy h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-1.3px}
@media(max-width:700px){#playerHero .hero-brand{width:220px;flex-basis:220px}#playerHero .hero-copy h1{letter-spacing:-.8px}}

/* Show the complete approved icon + wordmark, without the old tight crop. */
#playerHero .hero-brand{width:250px;flex:0 1 250px;aspect-ratio:1420/225;background-size:106% auto;background-position:center;filter:none}
@media(max-width:700px){#playerHero .hero-brand{width:210px;flex-basis:210px}.hero-top{gap:16px}}
@media(max-width:380px){#playerHero .hero-brand{width:190px;flex-basis:190px}.hero-top{gap:12px}}

/* Same 260px artwork footprint as the editor header at every breakpoint. */
#playerHero .hero-brand{width:260px;max-width:260px;flex:0 0 260px;aspect-ratio:1420/225}
@media(max-width:410px){#playerHero .hero-top{flex-wrap:wrap;padding-block:14px;gap:4px 12px}#playerHero .hero-open{margin-left:auto}}

@font-face{font-family:"Landing Cormorant";src:url("landing-cormorant.woff") format("woff");font-weight:300 700;font-style:normal;font-display:swap}
#playerHero .hero-copy h1{font-family:"Landing Cormorant",Georgia,serif;font-weight:400;letter-spacing:-.025em}

#playerHero .tutorial-placeholder{position:relative;height:auto;aspect-ratio:16/9;overflow:hidden;background:#f5f3ef}
#landingIntro{display:block;width:100%;height:100%;object-fit:contain}
.intro-controls{position:absolute;right:12px;bottom:12px;display:flex;gap:6px}
#playerHero .intro-controls button{font:12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif;color:#55564e;background:#faf9f5eb;border:1px solid #dedcd5;border-radius:7px;padding:8px 12px;min-height:36px;cursor:pointer}
#playerHero .intro-controls button:focus-visible{outline:2px solid #7d856e;outline-offset:3px}
@media(pointer:coarse){#playerHero .intro-controls button{min-height:44px}}

/* Small controls sit outside the video frame, keeping the picture unobstructed. */
#playerHero .tutorial-placeholder{overflow:visible;border:0;background:transparent;aspect-ratio:auto}
#landingIntro{height:auto;aspect-ratio:16/9;border:1px solid #e4e1da;border-radius:16px;background:#f5f3ef}
#playerHero .intro-controls{position:static;justify-content:flex-end;margin-top:4px;gap:2px}
#playerHero .intro-controls button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:0;background:transparent;color:#85837a;border-radius:7px}
#playerHero .intro-controls button:hover{background:#eeece6;color:#30312d}
@media(pointer:coarse){#playerHero .intro-controls button{width:44px;height:44px;min-height:44px}}

/* Keep the compact icons inside the original lower-right corner. */
#playerHero .intro-controls{position:absolute;right:12px;bottom:12px;margin-top:0}

.hero-header-actions{display:flex;align-items:center;gap:18px;margin-left:auto;flex-shrink:0}
#landingLanguage{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:54px;height:30px;min-height:0;padding:0 22px 0 8px;border:1px solid #dedbd4;border-radius:8px;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377736d' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:12px 12px;color:#77736d;font:12px -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
@media(max-width:540px){#playerHero .hero-top{flex-wrap:wrap;gap:8px;padding-block:14px}.hero-header-actions{gap:14px}}

#playerHero .hero-copy h1 .hero-plus{color:#c9473e}

@font-face{font-family:"Landing Zhuque";src:url("landing-zhuque-53.woff") format("woff");font-style:normal;font-weight:400;font-display:swap}
html[lang^="zh"] #playerHero .hero-copy h1{font-family:"Landing Zhuque",serif;font-weight:400;letter-spacing:0}

/* Optically align the Latin plus with the Chinese glyph centres. */
#playerHero .hero-copy h1 .hero-plus{display:inline-block;position:relative;top:-.09em}

.landing-language-menu{position:relative}
.landing-language-menu summary{width:54px;height:30px;box-sizing:border-box;border:1px solid #dedbd4;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px;font:12px -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer;list-style:none;color:#77736d;background:transparent}
.landing-language-menu summary::-webkit-details-marker{display:none}.landing-language-menu summary svg{flex-shrink:0}
.landing-language-panel{position:absolute;right:0;top:calc(100% + 8px);width:max-content;padding:6px;background:#fafaf9;border:1px solid #e3e2df;border-radius:9px;box-shadow:0 8px 25px #0001;display:grid;gap:3px;z-index:40}
.landing-language-panel button{width:100%;min-height:36px;padding:8px 12px;font:12px -apple-system,BlinkMacSystemFont,sans-serif;text-align:center;color:#45443f;background:transparent;border:0;border-radius:5px;white-space:nowrap;cursor:pointer}
.landing-language-panel button:hover,.landing-language-panel button[aria-pressed=true]{background:#eeece6}
.landing-language-menu summary:focus-visible,.landing-language-panel button:focus-visible{outline:2px solid #76816b;outline-offset:3px}
@media(pointer:coarse){#landingLanguage,.landing-language-menu summary{height:36px}.landing-language-panel button{min-height:44px}}

/* Continuous seven-colour cycle without changing the headline geometry. */
#playerHero .hero-copy h1 .hero-plus{animation:hero-plus-rainbow 5.6s linear infinite}
@keyframes hero-plus-rainbow{
 0%,100%{color:#c9473e}14.285%{color:#cf7939}28.571%{color:#b39b32}42.857%{color:#568b56}57.142%{color:#3d9696}71.428%{color:#547fc0}85.714%{color:#9863b4}
}
@media(prefers-reduced-motion:reduce){#playerHero .hero-copy h1 .hero-plus{animation:none;color:#c9473e}}

/* Indent the second line by one character; give the animated plus a little more presence. */
#playerHero .hero-copy h1 .hero-plus{margin-left:1em;transform:scale(1.16);transform-origin:center;text-shadow:none}

/* Show the introduction while the editor initializes. */
body:not(.player-ready)>#playerHero{visibility:visible}
body:not(.player-ready)>#player-loading{display:none}
/* Phone landing: keep the compact header and the full-width portrait video. */
@media(max-width:700px){
 #playerHero .hero-open{display:none}
 #playerHero .hero-top{flex-wrap:nowrap}
 #playerHero .hero-brand{flex-shrink:1}
 #landingIntro{aspect-ratio:9/16}
}

html.editor-only #playerHero{display:none}

/* A real poster is visible before JavaScript or video bytes arrive. */
#playerHero .intro-poster{position:absolute;inset:0;pointer-events:none}
#playerHero .intro-poster img{display:block;width:100%;height:100%;object-fit:contain;border:1px solid #e4e1da;border-radius:16px}
#playerHero [data-intro-started="true"] .intro-poster{display:none}
