/* ============================================================
   ARROWCAVERNS.COM - shared stylesheet
   The colors here are taken straight from the game's config.js,
   so the site and the game feel like one product.
   ============================================================ */
:root{
  --bg:#efe7d2;        /* page background (game's calm turn-1 cream) */
  --ink:#2e2417;       /* main text */
  --panel:#fdf8ea;     /* light panels */
  --btn:#8a5c3f;       /* main buttons (cave brown) */
  --good:#3f8a4e;      /* green "go" buttons */
  --gold:#e8b53a;      /* treasure gold */
  --danger:#c0392b;    /* warnings */
  --arrow:#d9c08c;     /* tan arrow color */
  --tile:#6d4a3a;      /* cavern brown */
  --tile-edge:#3a251c; /* dark cavern border */
  --cave-light:#f3e2bf;/* light text on dark backgrounds */
  --px-title:'Press Start 2P','Courier New',monospace;
  --px-body:'VT323','Courier New',monospace;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--px-body); font-size:22px; line-height:1.45;
}
img{max-width:100%; display:block;}
.pixelated{image-rendering:pixelated;}
a{color:var(--btn);}
h1,h2,h3{font-family:var(--px-title); line-height:1.5; margin:0 0 18px;}
h1{font-size:clamp(20px,4.6vw,34px);}
h2{font-size:clamp(16px,3.2vw,22px);}
h3{font-size:clamp(13px,2.6vw,16px);}
p{margin:0 0 16px;}

/* ---------------- HEADER / NAV ---------------- */
header{
  background:linear-gradient(#1d1210 0%, #3a2018 80%, #4a2a1c 100%);
  color:var(--cave-light);
  border-bottom:4px solid var(--tile-edge);
  position:sticky; top:0; z-index:50;
}
.nav-inner{
  max-width:1060px; margin:0 auto; padding:10px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.nav-logo img{height:44px; width:auto; image-rendering:pixelated;}
nav ul{list-style:none; display:flex; gap:4px; margin:0; padding:0; align-items:center;}
nav a{
  color:var(--cave-light); text-decoration:none; font-family:var(--px-title);
  font-size:11px; padding:10px 10px; display:block; letter-spacing:.5px;
}
nav a:hover{color:var(--gold);}
nav a.active{color:var(--gold); text-decoration:underline; text-underline-offset:6px;}
nav a.nav-buy{
  background:var(--good); color:#fff; border:3px solid #000;
  box-shadow:3px 3px 0 #000; margin-left:6px;
}
nav a.nav-buy:hover{color:#fff; filter:brightness(1.1);}
#menuBtn{
  display:none; background:none; border:3px solid var(--cave-light);
  color:var(--cave-light); font-family:var(--px-title); font-size:12px;
  padding:8px 10px; cursor:pointer;
}
@media (max-width:820px){
  #menuBtn{display:block;}
  nav{position:absolute; left:0; right:0; top:100%; display:none;
      background:#241511; border-bottom:4px solid var(--tile-edge);}
  nav.open{display:block;}
  nav ul{flex-direction:column; gap:0; padding:8px 0;}
  nav a{padding:14px 24px; font-size:12px;}
  nav a.nav-buy{margin:8px 24px;}
}

/* ---------------- BUTTONS ---------------- */
.pxbtn{
  display:inline-block; font-family:var(--px-title); font-size:13px;
  padding:15px 22px; cursor:pointer; text-decoration:none; text-align:center;
  background:var(--btn); color:#fff; border:3px solid #000;
  box-shadow:4px 4px 0 #000; text-transform:uppercase; letter-spacing:1px;
}
.pxbtn:active{transform:translate(3px,3px); box-shadow:1px 1px 0 #000;}
.pxbtn.green{background:var(--good);}
.pxbtn.gold{background:var(--gold); color:var(--ink);}
.pxbtn:hover{filter:brightness(1.08); color:#fff;}
.pxbtn.gold:hover{color:var(--ink);}
.btn-row{display:flex; gap:18px; flex-wrap:wrap; justify-content:center;}

/* ---------------- HERO ---------------- */
.hero{
  background:linear-gradient(#1d1210 0%, #3a2018 55%, #6d3a28 100%);
  color:var(--cave-light); text-align:center;
  padding:56px 20px 64px; border-bottom:6px solid var(--tile-edge);
}
.hero img.logo{width:min(88vw,560px); margin:0 auto 10px; image-rendering:pixelated;}
.hero .tag{font-size:26px; color:var(--arrow); margin:0 0 26px;}
.hero .facts{font-family:var(--px-title); font-size:11px; color:var(--arrow); margin:26px 0 0;}
.hero-sub{
  background:linear-gradient(#1d1210 0%, #3a2018 100%);
  color:var(--cave-light); text-align:center;
  padding:34px 20px 38px; border-bottom:6px solid var(--tile-edge);
}
.hero-sub p{color:var(--arrow); font-size:23px; max-width:640px; margin:0 auto;}
.hero-sub h1{margin-bottom:10px;}

/* ---------------- LAYOUT ---------------- */
main{max-width:1060px; margin:0 auto; padding:20px 18px 60px;}
section{margin:52px 0;}
.panel{
  background:var(--panel); border:3px solid var(--tile-edge);
  box-shadow:6px 6px 0 rgba(58,37,28,.35); padding:26px 28px;
}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:34px; align-items:center;}
@media (max-width:760px){ .two-col{grid-template-columns:1fr;} }
.framed{border:4px solid var(--tile-edge); box-shadow:6px 6px 0 rgba(58,37,28,.35);}
.center{text-align:center;}
.gold-text{color:#a8771c;}
hr.px{border:none; border-top:4px dashed var(--tile); margin:40px auto; width:60%;}

/* three-step cards (Explore / Excavate / Escape) */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
@media (max-width:760px){ .steps{grid-template-columns:1fr;} }
.step{background:var(--panel); border:3px solid var(--tile-edge);
  box-shadow:5px 5px 0 rgba(58,37,28,.35);}
.step img{border-bottom:3px solid var(--tile-edge); aspect-ratio:16/10; object-fit:cover; width:100%;}
.step .step-body{padding:18px 20px 20px;}
.step h3{color:var(--btn); margin-bottom:10px;}

/* video embeds */
.video-wrap{position:relative; width:100%; aspect-ratio:16/9;
  border:4px solid var(--tile-edge); box-shadow:6px 6px 0 rgba(58,37,28,.35);
  background:#000;}
.video-wrap iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}

/* variation cards */
.variation{margin:34px 0;}
.variation .flavor{font-style:italic; color:#5b4a35;}
.tags{display:flex; gap:10px; flex-wrap:wrap; margin:0 0 14px;}
.tag-chip{font-family:var(--px-title); font-size:9px; padding:6px 9px;
  border:2px solid #000; color:#fff; letter-spacing:.5px;}
.tag-easy{background:var(--good);}
.tag-hard{background:var(--danger);}
.tag-multi{background:#4a7ab5;}
.compat{font-size:19px; color:#5b4a35;}

/* rules text */
.rules h3{margin-top:30px; color:var(--btn);}
.rules blockquote{
  margin:0 0 14px; padding:10px 18px; border-left:6px solid var(--gold);
  background:var(--panel); font-style:italic;
}
.rules .note{font-size:19px; color:#5b4a35; font-style:italic;}
ol.px-list,ul.px-list{padding-left:26px;}
ol.px-list li,ul.px-list li{margin-bottom:10px;}

/* game iframe on play page */
#gameFrameWrap{
  position:relative;
  border:4px solid var(--tile-edge); box-shadow:6px 6px 0 rgba(58,37,28,.35);
  background:#1d1210; height:min(88vh,820px);
}
#gameFrameWrap iframe{width:100%; height:100%; border:0; display:block;}

/* Fullscreen play: the SAME game grows to fill the screen (no reset!).
   .fs = our own fullscreen for phones that lack the real thing (iPhones). */
#gameFrameWrap.fs{
  position:fixed; inset:0; z-index:1000; height:100%;
  border:0; box-shadow:none;
}
body.fs-lock{overflow:hidden;}
#fsExit{
  display:none; position:absolute; right:12px; bottom:12px; z-index:1001;
  font-family:var(--px-title); font-size:10px; padding:10px 14px;
  background:rgba(46,36,23,.8); color:#fff; border:3px solid #000;
  box-shadow:3px 3px 0 #000; cursor:pointer; letter-spacing:1px;
}
#fsExit:hover{background:rgba(46,36,23,1);}
#gameFrameWrap.fs #fsExit{display:block;}
#gameFrameWrap:fullscreen #fsExit{display:block;}
#gameFrameWrap:-webkit-full-screen #fsExit{display:block;}
#gameFrameWrap:fullscreen{border:0; box-shadow:none;}

/* contact form */
form label{display:block; font-family:var(--px-title); font-size:11px; margin:18px 0 6px;}
form input, form textarea{
  width:100%; font-family:var(--px-body); font-size:21px; padding:10px 12px;
  border:3px solid var(--tile-edge); background:#fff; color:var(--ink);
}
form textarea{min-height:140px; resize:vertical;}
form button{margin-top:20px;}

/* ---------------- FOOTER ---------------- */
footer{
  background:linear-gradient(#3a2018 0%, #1d1210 100%);
  color:var(--arrow); border-top:6px solid var(--tile-edge);
  text-align:center; padding:34px 20px; font-size:20px;
}
footer img{height:40px; margin:0 auto 14px; image-rendering:pixelated;}
footer .foot-links{display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-bottom:12px;}
footer a{color:var(--cave-light);}
footer a:hover{color:var(--gold);}
footer .copy{opacity:.75;}
