/* elsewild.io: one look for every page (the front page, the privacy policy, the 404): the game's dusk, its gold, its
   carved wordmark. Headings in Pixelify Sans, reading in Georgia. */
:root {
  --night: #0b0812; --night2: #120d1b; --panel: #17121f; --panel2: #1e1729; --line: #2f2640; --line2: #463a58;
  --gold: #e2c36f; --gold2: #c9a24a; --gold3: #8a6a2a; --cream: #f4e8c8; --text: #d8cce6; --dim: #a99db0; --faint: #7d7290;
  --fire: #ff6a52; --water: #5fb3e8; --earth: #d6a456; --wind: #42e070;
  --pixel: 'Pixelify Sans', 'Courier New', monospace; --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif; --sans: Arial, Helvetica, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 18px/1.65 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.pixel { image-rendering: pixelated; }

/* the top bar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 8, 18, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(70, 58, 88, .6); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.nav .brand { display: flex; align-items: center; border: 0; }
.nav .brand img { height: 26px; width: auto; image-rendering: pixelated; display: block; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.nav .links a { color: var(--dim); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav .links a:hover, .nav .links a.on { color: var(--cream); border-bottom-color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 15px 24px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn.gold { color: #1a1206; background: linear-gradient(#f2d98a, #d9b45a); box-shadow: 0 0 0 1px #6a4f1c, 0 4px 0 #8a6a2a, 0 10px 30px rgba(226, 195, 111, .25); }
.btn.gold:hover { color: #1a1206; transform: translateY(-2px); box-shadow: 0 0 0 1px #6a4f1c, 0 6px 0 #8a6a2a, 0 14px 40px rgba(226, 195, 111, .35); }
.btn.gold:active { transform: translateY(2px); box-shadow: 0 0 0 1px #6a4f1c, 0 2px 0 #8a6a2a; }
.btn.ghost { color: var(--cream); background: rgba(23, 18, 31, .7); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--gold2); background: rgba(30, 23, 41, .9); }
.nav .btn { padding: 11px 16px; font-size: 12px; }

/* the hero: the title screen, the wordmark over it */
.hero { position: relative; overflow: hidden; background: var(--night); }
.hero .scene { position: relative; max-width: 1600px; margin: 0 auto; }
.hero .scene img { display: block; width: 100%; height: auto; image-rendering: pixelated; min-height: 420px; object-fit: cover; object-position: 60% 50%; }
.hero .scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 18, .88) 0%, rgba(11, 8, 18, .55) 38%, rgba(11, 8, 18, 0) 70%), linear-gradient(rgba(11, 8, 18, 0) 60%, var(--night)); }
.hero .copy { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.hero .copy .wrap { width: 100%; }
.hero .copy .inner { max-width: 560px; }
.hero h1 { margin: 0; line-height: 0; }
.hero h1 img { width: 100%; max-width: 480px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.beta { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .3em; color: var(--gold); padding: 6px 8px 6px 11px; border: 1px solid var(--gold2); background: rgba(58, 40, 16, .6); margin: 18px 0 0; }
.hero .lead { font-size: 22px; line-height: 1.5; color: var(--cream); margin: 18px 0 26px; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* the downloads (2026-11-07): beside the browser game, plainly a second way, each with its platform */
.dl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dl-k { font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.btn.plat { gap: 11px; padding: 10px 18px 10px 14px; color: var(--cream); background: rgba(23, 18, 31, .78); box-shadow: inset 0 0 0 1px var(--gold3); text-align: left; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn.plat .ic { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.btn.plat .t { display: flex; flex-direction: column; gap: 5px; }
.btn.plat b { font: 700 13px/1 var(--sans); letter-spacing: .16em; }
.btn.plat small { font: 400 12px/1 var(--sans); letter-spacing: .03em; text-transform: none; color: var(--dim); }
.btn.plat:hover { color: var(--cream); transform: translateY(-2px); background: rgba(30, 23, 41, .92); box-shadow: inset 0 0 0 1px var(--gold), 0 10px 26px rgba(226, 195, 111, .14); }
.btn.plat:active { transform: translateY(1px); }
.mine.btn.plat, .way.mine .btn.plat { box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px rgba(226, 195, 111, .16); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 920px; margin: 34px auto 0; text-align: center; }
.way { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 22px 22px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.way.mine { border-color: var(--gold3); }
.way .wk { font: 700 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold2); }
.way .btn { min-height: 52px; }
.way p { margin: 0; font: 14px/1.55 var(--sans); color: var(--dim); }
.ver { font: 13px var(--sans); color: var(--faint); margin: 16px 0 0; min-height: 1em; }
.dl-k { order: -2; } .dl .mine { order: -1; } /* (the one for this device first) */
@media (max-width: 560px) { .dl { display: grid; grid-template-columns: 1fr 1fr; } .dl-k { grid-column: 1 / -1; margin: 4px 0 2px; } .dl .btn.plat { justify-content: flex-start; } }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; max-width: 420px; } }
.hero .note { margin-top: 16px; font: 13px var(--sans); color: var(--dim); letter-spacing: .04em; }

/* sections */
section { padding: 96px 0; position: relative; }
.kicker { font: 700 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold2); }
h2 { font: 500 44px/1.1 var(--pixel); color: var(--cream); margin: 14px 0 16px; letter-spacing: .01em; text-wrap: balance; }
h3 { font: 500 30px/1.15 var(--pixel); color: var(--cream); margin: 12px 0 12px; text-wrap: balance; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.sub { color: var(--dim); max-width: 620px; font-size: 19px; }
.rule { display: flex; align-items: center; gap: 12px; margin: 22px auto; max-width: 340px; color: var(--gold); font-size: 10px; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(226, 195, 111, 0), rgba(226, 195, 111, .6)); }
.rule::after { background: linear-gradient(90deg, rgba(226, 195, 111, .6), rgba(226, 195, 111, 0)); }

/* framed media: a carved frame with gold corners */
.frame { position: relative; background: #000; box-shadow: 0 0 0 1px var(--line2), 0 0 0 6px var(--night2), 0 0 0 7px var(--line), 0 30px 60px rgba(0, 0, 0, .55); }
.frame::before, .frame::after, .frame > .c::before, .frame > .c::after { content: ''; position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold); z-index: 2; pointer-events: none; }
.frame::before { top: -7px; left: -7px; border-top-width: 2px; border-left-width: 2px; }
.frame::after { top: -7px; right: -7px; border-top-width: 2px; border-right-width: 2px; }
.frame > .c::before { bottom: -7px; left: -7px; border-bottom-width: 2px; border-left-width: 2px; }
.frame > .c::after { bottom: -7px; right: -7px; border-bottom-width: 2px; border-right-width: 2px; }
.frame video, .frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }

#trailer { background: radial-gradient(ellipse at 50% 0%, rgba(98, 62, 140, .22), rgba(11, 8, 18, 0) 65%); }
.trailer { max-width: 960px; margin: 40px auto 0; }

/* features: a row each, picture and words turning sides */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; margin: 0 auto 110px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .media { order: 2; }
.feature .words { min-width: 0; }
.feature p { color: var(--text); margin: 0 0 14px; }
.feature ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 16px; color: var(--dim); }
.feature li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.feature li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; background: var(--gold2); transform: rotate(45deg); }
.els { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.els span { font: 700 11px/1 var(--sans); letter-spacing: .22em; padding: 7px 10px; border: 1px solid currentColor; background: rgba(0, 0, 0, .25); }
.unique { position: relative; background: linear-gradient(180deg, rgba(23, 18, 31, 0), rgba(42, 26, 60, .35) 50%, rgba(23, 18, 31, 0)); }

/* co-op: wide */
.coop { background: linear-gradient(180deg, var(--night), #140f22 40%, var(--night)); }
.coop .frame { max-width: 1000px; margin: 40px auto 0; }
.stats { display: flex; justify-content: center; gap: 46px; flex-wrap: wrap; margin: 40px 0 0; }
.stats div { text-align: center; }
.stats b { display: block; font: 500 46px/1 var(--pixel); color: var(--gold); }
.stats b.pxn { display: flex; justify-content: center; align-items: flex-end; height: 46px; margin-bottom: 4px; } /* (the game's own pixel digits: the web font's 5 read as an S) */
.stats b.pxn svg { display: block; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
.stats span { font: 700 11px/1.4 var(--sans); letter-spacing: .24em; color: var(--dim); text-transform: uppercase; }

/* where it's coming */
.stores { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; margin: 34px 0 10px; }
.stores img { height: 40px; width: auto; opacity: .92; }
.stores .ng { height: 30px; }
.legal { font: 12px var(--sans); color: var(--faint); margin-top: 28px; }
.cta { padding: 70px 0 100px; }

/* the page's foot */
footer.site { border-top: 1px solid var(--line); padding: 46px 0 56px; color: var(--faint); font: 14px var(--sans); }
footer.site .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
footer.site img { height: 22px; width: auto; image-rendering: pixelated; opacity: .85; }
footer.site .flinks { display: flex; gap: 22px; margin-left: auto; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
footer.site .flinks a { color: var(--dim); }
footer.site .flinks a:hover { color: var(--cream); }

/* the privacy policy and other reading pages */
.page-head { padding: 70px 0 34px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(98, 62, 140, .25), rgba(11, 8, 18, 0) 70%); }
.page-head h1 { font: 500 52px/1.1 var(--pixel); color: var(--cream); margin: 14px 0 8px; }
.page-head .date { color: var(--faint); font: 14px var(--sans); }
.doc { max-width: 800px; margin: 0 auto 90px; padding: 0 20px; }
.doc .panel { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 46px 52px 40px; box-shadow: 0 0 0 4px var(--night), 0 0 0 5px #251e2e; }
.doc .panel::before, .doc .panel::after, .doc .corners::before, .doc .corners::after { content: ''; position: absolute; width: 14px; height: 14px; border: 0 solid var(--gold); }
.doc .panel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.doc .panel::after { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.doc .corners::before { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.doc .corners::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font: 700 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 34px; }
.doc .toc a { color: var(--dim); }
.doc .toc a:hover { color: var(--gold); }
.doc .short { background: var(--panel2); border: 1px solid var(--line2); border-top: 2px solid var(--gold); padding: 22px 26px 8px; margin: 0 0 8px; }
.doc .short h2 { margin-top: 0; }
.doc h2 { margin: 42px 0 12px; font: 700 13px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; scroll-margin-top: 80px; }
.doc h2::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.doc h3 { margin: 22px 0 6px; font: normal 18px var(--serif); color: var(--cream); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.doc li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.doc li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; background: var(--gold2); transform: rotate(45deg); }
.doc .dim { color: var(--dim); }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.doc .tablewrap { overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font: bold 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); border-bottom: 1px solid var(--line2); }
.doc td:first-child { color: var(--cream); width: 32%; }

/* things easing in as they come into view */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .nav .links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero .scene img { min-height: 380px; object-position: 68% 50%; }
  .hero .scene::after { background: linear-gradient(rgba(11, 8, 18, 0) 55%, var(--night)); }
  .hero .copy { position: relative; inset: auto; margin-top: -70px; padding-bottom: 30px; }
  .hero h1 img { max-width: 360px; }
  .hero .lead { font-size: 19px; }
  section { padding: 70px 0; }
  h2 { font-size: 34px; }
  h3 { font-size: 26px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; margin-bottom: 76px; }
  .feature.flip .media { order: 0; }
  .stores { gap: 34px; }
  .stores img { height: 32px; }
  .stores .ng { height: 24px; }
  .doc .panel { padding: 30px 20px 26px; }
  .page-head h1 { font-size: 38px; }
  footer.site .flinks { margin-left: 0; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .stats { gap: 28px; }
  .doc td:first-child { width: 38%; }
}
