/* Farward landing page: the Gilded UI (Godot/mmorpg/ui/gilded.gd, palette.json "ui"), Marcellus SC titles and Alegreya body (both OFL). */
@font-face{font-family:"Marcellus SC";src:url(/assets/fonts/MarcellusSC.woff) format("woff");font-display:swap}
@font-face{font-family:Alegreya;src:url(/assets/fonts/Alegreya.woff) format("woff");font-weight:400 900;font-display:swap}
@font-face{font-family:Alegreya;src:url(/assets/fonts/Alegreya-Italic.woff) format("woff");font-weight:400 900;font-style:italic;font-display:swap}

:root{
  --ink:#120E16; --panel:#1A1720; --panel-hi:#27232F; --slot:#2C2836; --rule:#3A3446;
  --frame:#C9A55E; --gold:#E2C274; --gold-d:#B08A48;
  --text:#EFE6D4; --soft:#CFC6B4; --dim:#A89FAE; --good:#9DC274; --bad:#F0907E;
  --title:"Marcellus SC",Georgia,"Times New Roman",serif; --body:Alegreya,Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ink);color:var(--text);font:400 1.1875rem/1.6 var(--body);font-variant-numeric:lining-nums}
img{max-width:100%;height:auto}
a{color:var(--gold);text-underline-offset:.2em}
a:hover{color:#F4DE9E}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* The game's window panel (gilded.gd Gilded.panel): slate with a top sheen and its faint diamond lattice (the same 28 px tile),
   a chamfered fill, and the double gold frame with corner diamonds (the same frame, nine-sliced). */
.panel{position:relative;isolation:isolate;filter:drop-shadow(0 9px 16px rgba(0,0,0,.42))}
.panel::before{content:"";position:absolute;inset:3px;z-index:-1;background:url(/assets/ui/lattice.svg),linear-gradient(180deg,rgba(255,236,190,.075),rgba(255,236,190,0) 62%),linear-gradient(180deg,var(--panel-hi),var(--panel));
  clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px)}
.panel::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border:12px solid transparent;border-image:url(/assets/ui/frame.svg) 16/12px stretch}

/* hero: the poster always behind, the video over it once it plays */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--ink) url(/assets/hero-poster.jpg) center/cover no-repeat}
.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s}
.bg.on{opacity:1}
.shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,14,22,.36) 0%,rgba(18,14,22,.1) 40%,rgba(18,14,22,.78) 100%)}
.wrap{position:relative;isolation:isolate;width:100%;max-width:46rem;padding:3.5rem 1rem 4rem;text-align:center}
.wrap::before{content:"";position:absolute;inset:-1rem -2rem;z-index:-1;background:radial-gradient(closest-side,rgba(18,14,22,.62),rgba(18,14,22,0))}
.brand{display:inline-block;margin-bottom:2rem}
.brand img{display:block;width:min(66vw,19rem);filter:drop-shadow(0 2px 10px rgba(18,14,22,.7))}
h1{margin:0 0 1.25rem;font:400 clamp(2rem,7vw,3.6rem)/1.14 var(--title);letter-spacing:.01em;color:var(--text);text-shadow:0 2px 18px rgba(18,14,22,.85),0 1px 2px rgba(18,14,22,.9);text-wrap:balance}
h1 em{font-style:normal;color:var(--gold)}
.sub{margin:0 auto 2.5rem;max-width:32rem;font-size:clamp(1.1rem,3.4vw,1.3rem);line-height:1.55;color:var(--soft);text-shadow:0 1px 10px rgba(18,14,22,.9)}

/* the form is one of those panels */
.card{margin:0 auto;max-width:36rem;padding:1.6rem 1.5rem 1.4rem;text-align:left}
.row{display:flex;flex-direction:column;gap:1rem}
.field{flex:1}
label{display:block;font-size:.8rem;letter-spacing:.09em;text-transform:uppercase;color:var(--dim);margin-bottom:.4rem;font-family:var(--title)}
input[type=email],input[name=website]{width:100%;min-height:3.25rem;padding:.6rem .9rem;font:inherit;font-size:1.125rem;color:var(--text);background:rgba(0,0,0,.35);border:1px solid #4A4254;border-radius:5px;transition:border-color .15s,box-shadow .15s}
input[type=email]::placeholder{color:var(--faint,#7E768A)}
input[type=email]:focus,input[type=email]:focus-visible{outline:none;border-color:var(--gold);box-shadow:0 0 0 1px var(--gold),0 0 12px rgba(226,194,116,.4)}

/* the game's primary button (Gilded.button "pri"): #F6DE9C to #AE8840, a dark rim, a white line along the top */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:3.25rem;padding:.6rem 1.75rem;font:400 1.15rem/1.2 var(--title);letter-spacing:.04em;color:#231E1A;text-decoration:none;background:linear-gradient(180deg,#F6DE9C,#AE8840);border:1px solid #5E4A2A;border-radius:4px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 3px 10px rgba(0,0,0,.35);transition:filter .15s,transform .1s}
.btn:hover{filter:brightness(1.07);color:#231E1A}
.btn:active{transform:translateY(1px);filter:brightness(.97)}
.btn[disabled]{opacity:.6;cursor:progress}
.btn.ghost{background:rgba(0,0,0,.25);color:var(--gold);border-color:rgba(226,194,116,.45);box-shadow:none}
.btn.ghost:hover{border-color:var(--gold);background:rgba(226,194,116,.1);color:#F4DE9E;filter:none}
.row .btn{width:100%}
.check{display:flex;align-items:center;gap:.7rem;margin:1.1rem 0 0;padding:.3rem 0;font-size:1.05rem;color:var(--text);text-transform:none;letter-spacing:0;font-family:var(--body);cursor:pointer}
.check input{width:1.35rem;height:1.35rem;margin:0;accent-color:var(--gold);flex:none}
.note{margin:.7rem 0 0;font-size:.95rem;color:var(--dim)}
.note a{color:var(--soft)}
.msg{margin:0;font-size:1.05rem;color:var(--text)}
.msg:not(:empty){margin-top:.9rem;padding:.7rem .9rem;background:rgba(0,0,0,.35);border:1px solid var(--rule);border-left:3px solid var(--gold);border-radius:4px}
.msg.bad{border-left-color:var(--bad)}
.msg.good{border-left-color:var(--good)}
.done{text-align:center;padding:.6rem}
.done h2{margin:.2rem 0 .5rem;font:400 1.6rem/1.2 var(--title);color:var(--gold)}
.done p{margin:0}

/* the music button: the same gold frame as the panels, the gold engraved glyph of the game's tab icons */
.music{position:absolute;top:1rem;right:1rem;z-index:2;width:3.4rem;height:3.4rem;padding:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,var(--panel-hi),var(--panel));border:2px solid var(--frame);border-radius:50%;box-shadow:0 0 0 1px var(--ink),0 6px 18px rgba(0,0,0,.45),inset 0 1px 0 rgba(226,194,116,.3);cursor:pointer;transition:transform .15s,border-color .15s}
.music:hover{border-color:var(--gold);transform:scale(1.05)}
.music:active{transform:scale(.97)}
.music .g{grid-area:1/1;width:2.2rem;height:2.2rem}
.music[aria-pressed=false] .g-pause,.music[aria-pressed=true] .g-play{display:none}

/* features */
.features{max-width:70rem;margin:0 auto;padding:4.5rem 1rem 3.5rem;text-align:center}
.features h2{margin:0;font:400 clamp(1.6rem,5vw,2.4rem)/1.2 var(--title);color:var(--gold)}
.rule{position:relative;height:13px;max-width:22rem;margin:1rem auto 2.5rem;background:linear-gradient(90deg,transparent,rgba(226,194,116,.55) 20%,rgba(226,194,116,.55) 80%,transparent) center/100% 1px no-repeat}
.rule::before,.rule::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(45deg)}
.rule::before{width:13px;height:13px;background:var(--panel)}
.rule::after{width:8px;height:8px;background:var(--frame)}
.tiles{list-style:none;margin:0;padding:0;display:grid;gap:1.4rem;grid-template-columns:1fr;text-align:left}
.tiles li{padding:1.75rem 1.6rem 1.8rem}
.tiles li::after{border-width:10px;border-image-width:10px}
.tiles img{display:block;width:4.5rem;height:4.5rem;margin:0 0 .8rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.tiles h3{margin:0 0 .4rem;font:400 1.35rem/1.25 var(--title);color:var(--gold);letter-spacing:.02em}
.tiles p{margin:0;color:var(--soft)}
.again{margin:2.75rem 0 0}

footer{padding:2rem 1rem 2.5rem;text-align:center;color:var(--dim);border-top:1px solid var(--rule);font-size:1rem}
footer p{margin:.2rem 0}
footer a{color:var(--soft)}

/* privacy page: the same shell, the world dimmed behind one panel */
.page::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(rgba(18,14,22,.86),rgba(18,14,22,.95)),var(--ink) url(/assets/hero-poster.jpg) center/cover}
.doc{max-width:44rem;margin:0 auto;padding:2.5rem 1rem 3rem;text-align:center}
.doc .brand{margin-bottom:1.75rem}
.doc .brand img{width:min(60vw,15rem)}
.sheet{padding:2rem 1.5rem 2.25rem;text-align:left}
.doc h1{margin:0 0 .75rem;font:400 clamp(1.8rem,6vw,2.6rem)/1.15 var(--title);color:var(--text);text-shadow:none;text-align:left}
.doc h2{margin:1.9rem 0 .4rem;font:400 1.4rem/1.25 var(--title);color:var(--gold);letter-spacing:.02em}
.doc p,.doc li{color:var(--soft)}
.doc .sheet p:first-of-type{margin-top:0}
.doc .again{margin:2.25rem 0 0}

@media (min-width:36rem){
  .sheet{padding:2.5rem 2.75rem 2.75rem}
  .row{flex-direction:row;align-items:flex-end}
  .row .btn{width:auto;white-space:nowrap}
  .card{padding:1.8rem 1.9rem 1.5rem}
  .tiles{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:60rem){
  .tiles{grid-template-columns:repeat(3,1fr)}
  .features{padding-top:6rem}
}
@media (min-width:100rem){
  html{font-size:112.5%}   /* wide screens: everything a step larger */
}
@media (prefers-reduced-motion:no-preference){
  .wrap>*{animation:rise .7s both}
  .wrap>*:nth-child(2){animation-delay:.08s}.wrap>*:nth-child(3){animation-delay:.16s}.wrap>*:nth-child(4){animation-delay:.24s}
  @keyframes rise{from{opacity:0;transform:translateY(14px)}}
}
@media (prefers-reduced-motion:reduce){
  .bg{display:none}
}
