/* Soulbearer: the demo site. Same palette and type as the game (dist/style.css, dist/palette.js); no external requests. */
@font-face{font-family:Chronicle;src:url('./fonts/PixelifySans.ttf') format('truetype');font-weight:400 700;font-display:swap}
@font-face{font-family:Engraved;src:url('./fonts/Cinzel.ttf') format('truetype');font-weight:400 900;font-display:swap}

:root{
  color-scheme:dark;
  --bg:#081114;--panel:#1c292b;--deep:#101b20;--shadow:#080f11;
  --ink:#efdfba;--text:#d3d3c0;--muted:#b9bdab;
  --gold:#dec487;--gold-hi:#f2d793;--aqua:#8fcbbb;--purple:#c4a6df;--line:#65726c;--brass:#ac9d6a;
  --display:Chronicle,ui-monospace,"Cascadia Mono",Consolas,monospace;
  --engraved:Engraved,"Trajan Pro",Georgia,serif;
  --mono:ui-monospace,"Cascadia Mono",Consolas,"Courier New",monospace;
  --gutter:clamp(16px,4vw,40px);
}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font:16px/1.75 var(--mono);font-synthesis:none}
main{flex:1}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--aqua);text-underline-offset:3px}
a:hover{color:var(--gold-hi)}
:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.wrap{width:min(1120px,100% - var(--gutter)*2);margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:var(--gutter);top:-100px;z-index:100;padding:10px 16px;background:var(--panel);color:var(--gold-hi);border:2px solid var(--gold);text-decoration:none}
.skip:focus{top:12px}
h1,h2,h3{font-family:var(--display);font-weight:500;margin:0}
p{margin:0 0 1em}

/* Top bar */
.bar{position:relative;z-index:5;background:#0b171bf0;border-bottom:3px solid #2c3b3a;box-shadow:0 3px var(--shadow)}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font:500 22px/1 var(--display);letter-spacing:1px;text-transform:uppercase}
.brand img{width:32px;height:32px}
.bar nav ul{display:flex;gap:6px;margin:0;padding:0;list-style:none}
.bar nav a{display:block;padding:8px 12px;color:var(--muted);text-decoration:none;font-size:14px;letter-spacing:1px;text-transform:uppercase;border-bottom:2px dotted #788676}
.bar nav a:hover{color:var(--gold-hi);border-bottom-color:var(--gold)}

/* Hero: the town from the title screen under the game's own flat dark wash */
.hero{position:relative;isolation:isolate;overflow:hidden;border-bottom:3px solid #2c3b3a;background:#081114 url('media/town.webp') center/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#05101588,#071518c4 32%,#071518c4 68%,#05101588)}
.hero .wrap{display:flex;flex-direction:column;align-items:center;text-align:center;padding-block:clamp(40px,8vw,88px) clamp(40px,7vw,72px)}
.emblem{width:80px;height:80px;margin-bottom:12px}
.eyebrow{font:500 14px/1.6 var(--mono);letter-spacing:4px;text-transform:uppercase;color:var(--aqua);text-shadow:2px 2px #061013;margin:0 0 14px}
.wordmark{width:calc(5px*60);max-width:100%;height:auto;margin:6px auto 18px}
.wordmark img{width:100%;height:auto;image-rendering:pixelated}
.tagline{font:500 clamp(22px,3.4vw,30px)/1.3 var(--engraved);color:var(--ink);text-shadow:2px 2px var(--shadow);margin:0 0 18px}
.pitch{max-width:60ch;color:#e2dfc6;text-shadow:2px 2px #071412;margin:0 0 30px;font-size:16px}
.play{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:68px;padding:14px 44px 14px 36px;color:var(--gold-hi);background:#384339;border:3px solid #d7bd7d;border-right-color:#857448;border-bottom-color:#857448;box-shadow:inset 2px 2px #a3b18c40,4px 4px 0 var(--shadow);font:500 30px/1.2 var(--display);letter-spacing:1px;text-transform:uppercase;text-decoration:none}
.play::before{content:"";width:18px;height:30px;flex:none;background:#f5d996;clip-path:polygon(0 0,40% 0,40% 20%,70% 20%,70% 40%,100% 40%,100% 60%,70% 60%,70% 80%,40% 80%,40% 100%,0 100%)}
.play:hover{background:#34443b;border-color:var(--gold);border-right-color:var(--brass);border-bottom-color:var(--brass);color:#ffe4a7}
.play:active{transform:translate(1px,1px)}
.play small{display:none}
.fine{margin:18px 0 0;font-size:14px;letter-spacing:.5px;color:var(--muted);text-shadow:2px 2px #071412}
.fine span+span::before{content:"\00b7";margin:0 .7em;color:var(--brass)}
.touch-cta{display:none;margin:18px 0 0;font-size:16px;color:var(--ink);text-shadow:2px 2px #071412}
.touch-cta a{display:block;margin-top:8px;font-size:13px;color:var(--aqua)}
.saves{max-width:62ch;margin:14px auto 0;font-size:13px;line-height:1.65;color:var(--muted);text-shadow:2px 2px #071412}
.final .touch-cta{text-shadow:none}
.phone-note{display:none;max-width:34ch;margin:18px auto 0;padding:12px 14px;background:var(--deep);border-left:3px solid var(--gold);text-align:left;font-size:14px;line-height:1.7;color:var(--ink)}

/* Sections */
.section{padding-block:clamp(44px,7vw,80px)}
.section+.section{border-top:2px dashed #2c3b3a}
.section-head{text-align:center;margin-bottom:clamp(24px,4vw,40px)}
.section-head .eyebrow{margin-bottom:8px;color:var(--gold)}
.section-head h2{font-size:clamp(28px,4.6vw,40px);line-height:1.15;letter-spacing:1px;text-transform:uppercase;color:#e5d4a0;text-shadow:2px 2px var(--shadow)}
.rule{display:flex;align-items:center;gap:12px;width:min(360px,70%);margin:14px auto 0}
.rule::before,.rule::after{content:"";flex:1;height:2px;background:linear-gradient(90deg,transparent,#a58d57)}
.rule::after{background:linear-gradient(90deg,#a58d57,transparent)}
.rule i{width:9px;height:9px;background:var(--aqua);transform:rotate(45deg);flex:none}
.lede{max-width:62ch;margin:14px auto 0;color:var(--muted);font-size:15px}

.frame{padding:6px;background:var(--panel);border:2px solid var(--brass);box-shadow:inset 2px 2px #a3b18c24,5px 5px 0 var(--shadow)}
.frame img,.frame video{width:100%;background:#000}
.video-frame{max-width:960px;margin-inline:auto}
.video-frame video{aspect-ratio:16/9}
.caption{margin:12px 0 0;font-size:13px;color:var(--muted);text-align:center}

.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,3vw,36px);margin:0;padding:0;list-style:none}
.shots figure{margin:0}
.shots figcaption{margin:12px 2px 0;font-size:14px;line-height:1.65;color:var(--muted)}
.shots figcaption b{display:block;font:600 20px/1.3 var(--engraved);color:var(--gold);letter-spacing:.5px;margin-bottom:2px}

.points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.4vw,26px);margin:0;padding:0;list-style:none}
.point{display:flex;flex-direction:column;padding:20px 20px 8px;background:var(--deep);border:2px solid #50615a;box-shadow:inset 2px 2px var(--shadow),4px 4px 0 var(--shadow)}
.point .tag{margin:0 0 6px;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--aqua)}
.point h3{font:600 21px/1.3 var(--engraved);color:var(--gold);margin-bottom:10px}
.point p{font-size:15px;line-height:1.7;color:var(--text)}
.point.dark .tag{color:var(--purple)}

.keys{margin:clamp(28px,4vw,44px) auto 0;max-width:820px;padding:18px 20px;background:var(--deep);border-left:3px solid var(--gold)}
.keys h3{font-size:20px;color:var(--gold);margin-bottom:10px;letter-spacing:.5px}
.keys dl{display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;margin:0;font-size:14px;align-items:center}
.keys dt{display:flex;gap:5px;flex-wrap:wrap}
.keys dd{margin:0;color:var(--text)}
kbd{display:inline-grid;place-items:center;min-width:24px;min-height:24px;padding:1px 6px;font:13px var(--mono);white-space:nowrap;background:#0c191b;border:1px solid #818c75;border-bottom:3px solid #535f50;color:#ede5c8}
.keys p{margin:12px 0 0;font-size:13px;color:var(--muted)}
.keys p.warn{color:var(--gold-hi)}

.final{text-align:center}
.final .pitch{margin-inline:auto;text-shadow:none;color:var(--muted)}

/* Footer */
.foot{border-top:3px solid #2c3b3a;background:#0b171b;padding-block:28px;font-size:14px;color:var(--muted)}
.foot .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 28px}
.foot ul{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:0;list-style:none}
.foot a{color:var(--muted);text-decoration:none;border-bottom:1px dotted #788676}
.foot a:hover{color:var(--gold-hi);border-bottom-color:var(--gold)}
.foot .ver{color:var(--aqua)}

/* Prose pages: privacy and 404 */
.page{padding-block:clamp(36px,6vw,72px)}
.prose{max-width:68ch;margin-inline:auto}
.prose h1{font-size:clamp(32px,6vw,44px);line-height:1.15;color:#e5d4a0;letter-spacing:1px;text-transform:uppercase;text-shadow:2px 2px var(--shadow);margin-bottom:6px}
.prose h2{font-size:24px;color:var(--gold);margin:30px 0 8px}
.prose ul{padding-left:1.2em}
.prose li{margin-bottom:.5em}
.prose .meta{color:var(--muted);font-size:14px}
.lost{text-align:center;padding-block:clamp(48px,9vw,110px)}
.lost .emblem{margin-inline:auto}
.lost h1{font-size:clamp(40px,8vw,64px);line-height:1.1;color:#e5d4a0;text-shadow:2px 2px var(--shadow);margin:6px 0 10px;text-transform:uppercase}
.lost p{max-width:46ch;margin-inline:auto;color:var(--muted)}
.lost .row{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-top:28px}
.btn{display:inline-flex;align-items:center;min-height:48px;padding:10px 22px;color:var(--ink);background:var(--deep);border:2px solid var(--line);border-right-color:#34443e;border-bottom-color:#34443e;box-shadow:inset 2px 2px #a3b18c24,3px 3px 0 var(--shadow);font:500 20px/1.2 var(--display);letter-spacing:.5px;text-transform:uppercase;text-decoration:none}
.btn:hover{background:#34443b;border-color:var(--gold);color:#ffe4a7}

/* Widths */
@media (min-width:400px){.wordmark{width:calc(6px*60)}}
@media (min-width:600px){.wordmark{width:calc(8px*60)}}
@media (min-width:900px){.wordmark{width:calc(10px*60)}}
@media (min-width:1500px){.wordmark{width:calc(12px*60)}.pitch{font-size:17px}}
@media (max-width:899px){.points{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:719px){
  .shots{grid-template-columns:1fr}
  .points{grid-template-columns:1fr}
  .play{font-size:26px;padding-inline:28px 32px;width:100%;max-width:340px}
  .fine span{display:block}
  .fine span+span::before{content:none}
  .keys dl{grid-template-columns:1fr;gap:4px}
  .keys dd{margin-bottom:8px}
}
@media (max-width:539px){.bar nav a{padding:8px 8px;font-size:13px;letter-spacing:.5px}.bar nav ul{gap:2px}.brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.eyebrow{letter-spacing:2px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media (forced-colors:active){.play,.btn{border:3px solid ButtonText}}
.foot p{margin:0}
.foot .ver::before{content:"\00b7";margin:0 .8em;color:var(--brass)}
@media (min-width:1800px){body{font-size:18px}.wrap{width:min(1400px,100% - var(--gutter)*2)}.video-frame{max-width:1200px}.point p,.shots figcaption{font-size:16px}.keys dl{font-size:16px}.keys{max-width:1000px}}

/* Touch-only devices (a phone or tablet with no mouse): the demo needs a keyboard or a gamepad, so say that instead of offering a Play button. */
@media (hover:none) and (pointer:coarse){
  .play{display:none}
  .touch-cta,.phone-note{display:block}
  .saves,.fine{display:none}
}

/* The Gate seal cursor (the user's pick, 17 October 2026; drawn in devtools/site-cursors, written by its render.mjs): a brass arrow
   with the emblem's aqua star, 16x16 map pixels at 2px, a 64px @2x copy so a HiDPI screen never smooths it. The pointer drawing
   flares the star; the not-allowed one adds the slashed ring. Hotspot: the tip (2 2). Mouse only; touch keeps the system's;
   text fields keep the caret. Selectors repeat each rule above that sets cursor, so this block wins by order. */
@media (hover:hover) and (pointer:fine){
  html{cursor:url("brand/cursor.png") 2 2,auto;cursor:image-set(url("brand/cursor.png") 1x,url("brand/cursor@2x.png") 2x) 2 2,auto}
  a[href],button,summary,label[for],select,[role=button],input[type=checkbox],input[type=submit],
  .play,.pxb,.before summary,.check input,.check label,.gate-x,.gate-go,.gate-cancel,.gate-invite summary{cursor:url("brand/cursor-pointer.png") 2 2,pointer;cursor:image-set(url("brand/cursor-pointer.png") 1x,url("brand/cursor-pointer@2x.png") 2x) 2 2,pointer}
  button:disabled,[aria-disabled=true],.steam{cursor:url("brand/cursor-no.png") 2 2,not-allowed;cursor:image-set(url("brand/cursor-no.png") 1x,url("brand/cursor-no@2x.png") 2x) 2 2,not-allowed}
  input[type=email],input[type=password],input[type=text],input:not([type]),textarea{cursor:text}
}
