/* Eclipse Shards · brand layer. Loaded after style.css.
   fixes1027c: the real logo (since 2026-11-03 the relit bronze logo, pipeline/brand/eclipse-shards-logo-bronze-lit.png + eclipse-shards-keyart-bronze.png
   (fixes1103b: the first key art's light and contrast in the bronze colours, no planet); the cut-out and the shard favicon
   are made by pipeline/brand/cut_logo_bronze.py into assets/brand/) on the title, the corner mark, the loading screen and the level veil;
   the cinematic player and the title's attract loop (brand.js). Instrument Serif stays for ECLIPSED on the death screen. */
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(./assets/ui/fonts/instrument-serif.woff2) format('woff2')}
:root{--logo:'Instrument Serif','Cormorant Garamond',Georgia,serif}

/* ---------- title: the cut-out logo over the live cathedral ---------- */
.title-copy{top:clamp(52px,11vh,130px)}
#title h1.logo{margin:0 0 4px -1.4%;font-size:0;line-height:0;text-shadow:none}
#title h1.logo img{display:block;width:min(640px,42vw,66vh);height:auto;filter:drop-shadow(0 18px 34px rgba(0,0,0,.72)) drop-shadow(0 0 2px rgba(0,0,0,.6))}
body.booted #title h1.logo img{animation:logo-in 2.4s cubic-bezier(.2,.7,.2,1) backwards}
body.booted .title-copy>:not(h1){animation:copy-in 1.6s .7s ease backwards}
@keyframes logo-in{from{opacity:0;transform:scale(.965) translateY(6px)}to{opacity:1;transform:none}}
@keyframes copy-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#title .prologue{margin:18px 0 28px}
/* the cinematics, quiet under the save note */
.cine-links{display:flex;align-items:center;gap:14px;margin-top:16px;font:400 11px var(--display);letter-spacing:.34em;text-transform:uppercase;color:#7c7f78}
.cine-links button{background:none;border:0;border-bottom:1px solid transparent;padding:3px 0;font:400 12px/1.2 var(--display);letter-spacing:.22em;text-transform:uppercase;color:#bba980;transition:color .15s,border-color .15s}
.cine-links button::before{content:'';display:inline-block;width:0;height:0;margin:0 8px 1px 0;border-left:6px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;opacity:.8}
.cine-links button:hover,.cine-links button:focus-visible{color:var(--pale);border-bottom-color:var(--gold)}
.cine-links i{width:3px;height:3px;background:#6d6450;transform:rotate(45deg)}

/* ---------- corner mark: the small logo (select screen; hidden on the title, which shows the big one, and in play) ---------- */
.brand{display:block;line-height:0;transition:opacity .5s}
.brand img{display:block;height:62px;width:auto;filter:drop-shadow(0 4px 10px rgba(0,0,0,.7))}
body:not(.playing):not(.selecting) .brand{opacity:0;visibility:hidden}

/* ---------- loading screen: the key art while the world forges ---------- */
#boot{position:absolute;inset:0;z-index:20;background:#040608;overflow:hidden;transition:opacity 1.4s ease}
#boot.done{opacity:0;pointer-events:none}
/* phase0 loader: .boot-art is a <video> now (assets/brand/loader.webm / .mp4, loader2 2026-11-12: Ariel's sharper loop, 2560x1440 30 fps, 4 s, its last second crossfaded into its first, pipeline/notes/loader2/build.sh; was a seamless Seedance 2.5 loop of this key art: the shard's fire
   pulses, embers drift, a gleam crosses the bronze); its first frame (loader-poster.webp) is the background and the poster, so nothing pops */
#boot .boot-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 46%;background:#040608 url(./assets/brand/loader-poster.webp?v=l2) 50% 46%/cover no-repeat;filter:brightness(.8) saturate(.92);animation:boot-drift 70s ease-out both}
#boot::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 75% 70% at 50% 44%,transparent 40%,rgba(3,5,7,.72) 100%),linear-gradient(180deg,rgba(3,5,7,.35) 0%,transparent 22%,transparent 62%,rgba(3,5,7,.88) 100%)}
@keyframes boot-drift{from{transform:scale(1.01)}to{transform:scale(1.07)}}
.boot-foot{position:absolute;left:50%;bottom:max(7vh,44px);transform:translateX(-50%);width:min(380px,82vw);text-align:center;z-index:1}
#boot #loading{position:relative;width:100%;margin:0}
#boot #loading::before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:rgba(201,173,116,.18)}
#boot #loading span{position:relative;transition:width .35s ease}
#boot #loading p{text-align:center;color:#a3a69c;margin-top:10px}
.boot-gate{margin:0 0 30px}
.boot-gate span{display:block;font:400 13px var(--display);letter-spacing:.46em;text-transform:uppercase;color:#e3d4ad;animation:gate-breathe 2.6s ease-in-out infinite alternate}
.boot-gate small{display:block;margin-top:10px;font:17px var(--serif);color:#9fa39b}
.boot-gate kbd{margin:0 3px;font-size:9px;padding:3px 5px 2px}
@keyframes gate-breathe{from{opacity:.45}to{opacity:1}}
@media(max-aspect-ratio:4/3){#boot .boot-art{background-size:contain;background-position:50% 40%;object-fit:contain;object-position:50% 40%}}

/* ---------- level veil ("Crossing into ..."): the logo above the line ---------- */
#fade.loading::before{content:'';position:absolute;left:50%;top:50%;width:min(300px,64vw);aspect-ratio:4645/2252;transform:translate(-50%,calc(-100% - 26px));background:url(./assets/brand/logo-sm.webp?v=lit1103) center/contain no-repeat;opacity:.9}

/* ---------- the cinematic player ---------- */
#cinema{position:absolute;inset:0;z-index:80;background:#000;opacity:0;transition:opacity .6s ease;cursor:none}
#cinema.show{opacity:1}
#cinema video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
#cinema .cine-skip{position:absolute;right:34px;bottom:28px;display:flex;gap:9px;align-items:center;font:500 10px var(--ui);letter-spacing:.14em;text-transform:uppercase;color:#a3a69c;opacity:0;transition:opacity .4s}
#cinema.show .cine-skip{opacity:.75;transition:opacity .8s 1.2s}
#cinema .cine-skip kbd{font-size:9px;padding:3px 5px 2px}
#cinema .cine-bar{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(201,173,116,.5);transform-origin:0 50%;transform:scaleX(0)}

/* ---------- attract loop: the teaser behind the logo on an idle title ---------- */
#attract{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity 1.2s ease;background:#000}
body.attract #attract{opacity:1;transition:opacity 2.4s ease}
#title .prologue,#title .title-buttons,#title .save-note,#title .cine-links,#title .chapter-strip{transition:opacity .8s}
body.attract #title .prologue,body.attract #title .title-buttons,body.attract #title .save-note,body.attract #title .cine-links,body.attract #title .chapter-strip{opacity:0;pointer-events:none}
body.attract header{opacity:.25}
.attract-hint{position:absolute;left:0;right:0;bottom:9vh;margin:0;text-align:center;font:400 12px var(--display);letter-spacing:.46em;text-transform:uppercase;color:#e3d4ad;opacity:0;pointer-events:none;transition:opacity .6s}
body.attract .attract-hint{opacity:1;animation:gate-breathe 2.6s 2.4s ease-in-out infinite alternate}
/* feedback_1117c (Ariel: "when idle in that screen and the teaser plays the eclipseshards logo should go away too until we move the mouse
   again"): the logo, the corner buttons and the title's dark vignette fade out with the menu, so the teaser plays clean; "Press any key"
   shows for a few seconds and goes too. Any mouse move, click or key brings it all back (brand.js stopAttract). Opacity only: nothing moves. */
@property --es-tdim{syntax:'<number>';inherits:false;initial-value:1}
#title.title-screen{--es-tdim:1;transition:--es-tdim .8s ease;background:linear-gradient(90deg,rgb(6 12 17/calc(.93*var(--es-tdim))),rgb(7 16 24/calc(.5*var(--es-tdim))) 45%,transparent 75%)}
@media (min-width:701px){#title.title-screen{background:radial-gradient(ellipse 70% 80% at 50% 42%,rgb(4 7 10/calc(.33*var(--es-tdim))),rgb(4 7 10/calc(.8*var(--es-tdim))) 75%,rgb(4 7 10/calc(.94*var(--es-tdim))))}}
#title h1.logo{transition:opacity .8s ease}
body.attract #title.title-screen{--es-tdim:0;transition:--es-tdim 2.4s ease}
body.attract #title h1.logo{opacity:0;transition:opacity 1.8s ease}
body.attract header{opacity:0}
body.attract .attract-hint{opacity:0;animation:es-attract-hint 9s 2.4s ease both}
@keyframes es-attract-hint{0%{opacity:0}12%,30%{opacity:1}45%{opacity:.5}60%,78%{opacity:1}100%{opacity:0}}

/* select screen: the blurb ran under the class cards at 1600x900 (three lines in a 330 px column) */
#select .select-blurb{max-width:min(500px,34vw);width:min(500px,34vw)}

/* death: ECLIPSED in the logo face */
.death-copy h2.eclipsed{font-family:var(--logo);letter-spacing:.06em;text-transform:none}

@media(max-height:780px) and (min-width:700px){#title .prologue{margin:14px 0 20px}.brand img{height:50px}}
@media(max-width:700px){#title h1.logo img{width:min(420px,84vw)}.brand img{height:38px}#cinema .cine-skip{right:18px;bottom:20px}}
/* headless QA (navigator.webdriver): no fades on the loading screen or the title, so captures right after "ready" show the title */
body.no-intro #boot{transition:none}body.no-intro #title h1.logo img,body.no-intro .title-copy>*{animation:none!important}

/* Ariel 2026-10-29: the logo and the main menu centred (Elden Ring's title as the reference); a bigger logo on the select screen */
@media (min-width:701px){
  .title-screen{background:radial-gradient(ellipse 70% 80% at 50% 42%,#04070a55,#04070acc 75%,#04070af0)}
  .title-copy{left:50%;transform:translateX(-50%);width:min(980px,92vw);max-width:none;top:clamp(36px,8vh,100px);display:flex;flex-direction:column;align-items:center;text-align:center}
  #title h1.logo{margin:0 0 4px}
  #title h1.logo img{width:min(900px,62vw,92vh)}
  #title .prologue{margin:14px 0 30px}
  .title-buttons{align-items:center}
  .title-buttons .primary{min-width:300px}
  .cine-links{justify-content:center}
  .chapter-strip{justify-content:center}
  .brand img{height:clamp(62px,10.5vh,116px)}
  .select-top{top:calc(12% + 56px)}
}
