/* pocketvale.org — styled like the game: its palette, its panels, its buttons and its pixel art */
:root {
  --ink: #1a1c2c; --ink2: #333c57; --slate: #566c86; --mist: #94b0c2; --white: #f4f4f4;
  --gold: #fee761; --gold2: #d9a440; --coin: #ffcd75; --green: #38b764; --green2: #257953; --lime: #a7f070;
  --red: #e43b44; --wood: #8f563b; --wood2: #6e3d2a; --wood3: #4e2a1e; --tan: #c28569; --cream: #ffe9a8;
  --panel: #f3e3c3; --panel2: #e8cf9f; --sky1: #7fc8f0; --sky2: #c8ecf6; --grass: #63c74d; --grass2: #3e8948;
  --pixel: "Pixelify Sans", ui-monospace, "SF Mono", Menlo, monospace;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --s: 4px; /* one "game pixel" for borders and shadows */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wood3); color: var(--ink); font: 16px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
img.px, canvas.px, .px img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: .5px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- buttons (the game's chunky buttons) ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--pixel); letter-spacing: .5px; text-decoration: none; color: var(--ink);
  background: var(--panel); padding: 14px 20px 17px; border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: inset 0 calc(-1 * var(--s)) 0 var(--panel2), 0 0 0 3px var(--ink), 0 6px 0 3px rgba(0,0,0,.28); transition: transform .08s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--panel2), 0 0 0 3px var(--ink), 0 2px 0 3px rgba(0,0,0,.28); }
.btn.go { background: var(--lime); box-shadow: inset 0 calc(-1 * var(--s)) 0 var(--green), 0 0 0 3px var(--ink), 0 6px 0 3px rgba(0,0,0,.28); }
.btn.gold { background: var(--gold); box-shadow: inset 0 calc(-1 * var(--s)) 0 var(--gold2), 0 0 0 3px var(--ink), 0 6px 0 3px rgba(0,0,0,.28); }
.btn .apple { width: 30px; height: 30px; flex: none; border-radius: 7px; box-shadow: 0 0 0 2px var(--ink); image-rendering: pixelated; }
.btn small { display: block; font: 500 12px/1.2 var(--mono); letter-spacing: 0; opacity: .75; margin-bottom: 3px; }
.btn.soon { cursor: default; }
.btn.soon:hover, .btn.soon:active { transform: none; }

/* ---------- panels (cream cards with an ink outline, like the game's windows) ---------- */
.panel { background: var(--panel); border-radius: 8px; box-shadow: inset 0 calc(-1 * var(--s)) 0 var(--panel2), 0 0 0 3px var(--ink), 0 8px 0 3px rgba(0,0,0,.25); }
.panel-h { display: flex; justify-content: space-between; align-items: center; background: var(--wood); color: var(--cream); font: 600 15px/1 var(--pixel); padding: 9px 12px; border-radius: 8px 8px 0 0; box-shadow: inset 0 -3px 0 var(--wood2); }
.panel-h i { display: inline-block; width: 18px; height: 18px; border-radius: 4px; background: var(--red); box-shadow: inset 0 -3px 0 #a52a32, 0 0 0 2px var(--ink); font: 700 12px/16px var(--mono); color: #fff; text-align: center; font-style: normal; }

/* ---------- top bar ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px rgba(0,0,0,.2); }
.brand span { font: 600 20px var(--pixel); color: var(--ink); text-shadow: 0 2px 0 rgba(255,255,255,.5); }
.nav { display: flex; gap: 6px; }
.nav a { font: 600 14px var(--pixel); text-decoration: none; padding: 8px 12px; border-radius: 6px; background: rgba(26,28,44,.72); color: var(--white); }
.nav a:hover { background: var(--ink); color: var(--gold); }

/* ---------- hero: sky, clouds, logo, and the live little vale ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(var(--sky1), var(--sky2) 70%); padding-top: 110px; min-height: 640px; }
.clouds { position: absolute; inset: 0 0 auto 0; height: 360px; pointer-events: none; }
.cloud { position: absolute; background-repeat: no-repeat; background-size: 100% 100%; image-rendering: pixelated; animation: drift linear infinite; will-change: transform; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.hero-copy { position: relative; z-index: 3; text-align: center; padding: 0 16px; }
.logo { display: block; margin: 0 auto 18px; width: min(86vw, 688px); height: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.22)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.tagline { font: 600 clamp(20px, 3.2vw, 30px)/1.25 var(--pixel); color: var(--ink); margin: 0 auto 8px; max-width: 760px; text-shadow: 0 2px 0 rgba(255,255,255,.55); }
.sub { max-width: 620px; margin: 0 auto 26px; color: var(--ink2); font-size: 16px; }
.cta-row { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--ink2); margin-top: 18px; }
.vale { position: relative; z-index: 2; display: block; width: 100%; margin-top: 28px; cursor: pointer; touch-action: manipulation; }
.hud { position: absolute; z-index: 4; left: 16px; bottom: 16px; display: flex; gap: 6px; pointer-events: none; }
.hud .pill { display: flex; align-items: center; gap: 7px; background: rgba(26,28,44,.82); color: var(--white); font: 600 16px/1 var(--pixel); padding: 7px 11px 7px 8px; border-radius: 6px; box-shadow: 0 0 0 2px var(--ink); }
.hud .pill img { width: 20px; height: 20px; }
.hud .pill.hint { color: var(--lime); font: 500 13px/1 var(--mono); }
.pop { position: absolute; z-index: 5; pointer-events: none; font: 700 18px var(--pixel); color: var(--gold); text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); animation: pop 1s ease-out forwards; }
@keyframes pop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-44px); opacity: 0; } }
.fly { position: absolute; z-index: 6; width: 28px; height: 28px; pointer-events: none; transition: transform .7s cubic-bezier(.5,-0.3,.7,1), opacity .7s; }

/* ---------- sections ---------- */
section { position: relative; }
.board { background: var(--wood); background-image: repeating-linear-gradient(0deg, transparent 0 46px, var(--wood2) 46px 50px), repeating-linear-gradient(90deg, transparent 0 210px, rgba(0,0,0,.12) 210px 213px); padding: 84px 0; }
.board.dark { background-color: var(--wood2); }
.title-plate { display: table; margin: 0 auto 44px; background: var(--panel); padding: 12px 22px 15px; border-radius: 8px; text-align: center; box-shadow: inset 0 calc(-1 * var(--s)) 0 var(--panel2), 0 0 0 3px var(--ink), 0 8px 0 3px rgba(0,0,0,.25); position: relative; }
.title-plate::before, .title-plate::after { content: ""; position: absolute; top: -14px; width: 10px; height: 10px; border-radius: 50%; background: var(--slate); box-shadow: 0 0 0 2px var(--ink); }
.title-plate::before { left: 18px; } .title-plate::after { right: 18px; }
.title-plate h2 { font-size: clamp(24px, 3.6vw, 34px); }
.title-plate p { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }

/* the corner of your screen */
.desk-sec { padding: 84px 0; background: var(--grass2); background-image: radial-gradient(rgba(0,0,0,.08) 2px, transparent 2px); background-size: 16px 16px; }
.desk-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
.desk { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #3b5ba5, #7a63b8 45%, #e38bb0); box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px rgba(0,0,0,.3); }
.desk .menubar { position: absolute; top: 0; left: 0; right: 0; height: 5.5%; background: rgba(255,255,255,.35); backdrop-filter: blur(6px); display: flex; align-items: center; gap: 4%; padding: 0 2.5%; font: 600 clamp(7px, 1.1vw, 12px) -apple-system, sans-serif; color: #1a1c2c; }
.desk .doc { position: absolute; background: #f7f7f7; border-radius: 1.4%; box-shadow: 0 8px 24px rgba(0,0,0,.25); overflow: hidden; }
.desk .doc::before { content: ""; display: block; height: 7%; min-height: 10px; background: #e4e4e4; border-bottom: 1px solid #d0d0d0; }
.desk .doc .ln { height: 3.2%; margin: 4% 7% 0; background: #dcdcdc; border-radius: 3px; }
.desk .doc .ln.s { width: 55%; } .desk .doc .ln.m { width: 75%; }
.desk .game { position: absolute; right: 2.5%; bottom: 4%; width: 37%; border-radius: 2%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 14px 30px rgba(0,0,0,.45); background: #222; animation: bob 6s ease-in-out infinite; }
.desk .game .bar { height: 9%; min-height: 9px; background: #2b2b2b; display: flex; align-items: center; gap: 3%; padding: 0 4%; }
.desk .game .bar i { width: 3.4%; aspect-ratio: 1; border-radius: 50%; background: #ff5f57; } .desk .game .bar i:nth-child(2) { background: #febc2e; } .desk .game .bar i:nth-child(3) { background: #28c840; }
.desk .game img { display: block; width: 100%; }
.desk-copy h2 { font-size: clamp(28px, 4vw, 40px); color: var(--cream); text-shadow: 0 3px 0 var(--ink); margin-bottom: 18px; }
.desk-copy p { color: #e9f6dc; font-size: 17px; }
.desk-copy ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.desk-copy li { display: flex; gap: 12px; align-items: center; color: var(--white); background: rgba(26,28,44,.45); padding: 9px 12px; border-radius: 6px; }
.desk-copy li img { width: 28px; height: 28px; flex: none; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feat { padding: 20px 18px 22px; }
.feat .ico { height: 76px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; gap: 6px; }
.feat .ico img { height: 100%; width: auto; }
.feat .ico img.sm { height: 48px; }
.feat h3 { font-size: 20px; margin-bottom: 8px; text-align: center; }
.feat p { font-size: 14.5px; margin: 0; color: var(--ink2); text-align: center; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.shot { padding: 0; border: 0; text-align: left; cursor: zoom-in; font: inherit; color: inherit; overflow: hidden; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 3px solid var(--ink); }
.shot span { display: block; padding: 10px 14px 14px; font: 600 16px var(--pixel); }
.shot:hover img { filter: brightness(1.06); }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); }
dialog.lb::backdrop { background: rgba(10,10,20,.85); }
dialog.lb img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 3px var(--ink); }
dialog.lb p { color: var(--white); font: 600 18px var(--pixel); text-align: center; margin: 12px 0 0; }
dialog.lb button { position: absolute; top: 10px; right: 10px; }

/* the order board: what players say / facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.note { background: #fff7e2; padding: 26px 20px 20px; border-radius: 4px; box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px rgba(0,0,0,.25); position: relative; transform: rotate(-1deg); }
.note:nth-child(2) { transform: rotate(1.2deg); } .note:nth-child(3) { transform: rotate(-.4deg); }
.note::before { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: inset 0 -3px 0 #a52a32, 0 0 0 2px var(--ink); }
.note .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.note .who img { width: 40px; height: 40px; }
.note .who b { font: 600 17px var(--pixel); }
.note .big { font: 700 34px/1 var(--pixel); color: var(--wood2); margin: 4px 0 8px; }
.note p { font-size: 14.5px; margin: 0; color: var(--ink2); }
.stamp { position: absolute; right: 14px; bottom: 12px; font: 700 15px var(--pixel); color: var(--green); border: 3px solid var(--green); padding: 2px 8px; border-radius: 4px; transform: rotate(-10deg); opacity: .85; }

/* mac list */
.mac { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; max-width: 900px; margin: 0 auto; }
.mac div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.mac img { width: 32px; height: 32px; flex: none; margin-top: 2px; }
.mac b { display: block; font: 600 17px var(--pixel); margin-bottom: 2px; }
.mac span { font-size: 14.5px; color: var(--ink2); }

/* night: campfire call to action */
.night { position: relative; min-height: 820px; display: flex; align-items: flex-end; justify-content: center; text-align: center; color: var(--cream); background: #0a0f2a url(../assets/campfire.jpg) center 30% / cover no-repeat; padding: 90px 16px 80px; }
.night::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 32%, rgba(10,15,42,0), rgba(10,15,42,.55) 70%), linear-gradient(rgba(10,15,42,.5), transparent 25%, transparent 45%, rgba(10,15,42,.92) 78%); }
.night > div { position: relative; }
.night h2 { font-size: clamp(30px, 5vw, 52px); text-shadow: 0 4px 0 rgba(0,0,0,.6); margin-bottom: 14px; }
.night p { max-width: 560px; margin: 0 auto 28px; color: #d6dcf4; font-size: 17px; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.stars { position: absolute; inset: 0; pointer-events: none; }

/* footer */
footer.foot { background: var(--ink); color: var(--mist); padding: 40px 0 46px; font-size: 14px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.foot a { color: var(--white); text-decoration: none; } footer.foot a:hover { color: var(--gold); }
footer.foot .brand span { color: var(--white); text-shadow: none; }

/* ---------- inner pages (support, privacy, press) ---------- */
.page-top { background: linear-gradient(var(--sky1), var(--sky2)); padding: 120px 0 0; position: relative; overflow: hidden; }
.page-top h1 { font-size: clamp(30px, 5vw, 46px); text-align: center; text-shadow: 0 3px 0 rgba(255,255,255,.55); }
.page-top p.lead { text-align: center; color: var(--ink2); margin: 8px auto 0; max-width: 620px; }
.page-top .strip { display: block; width: 100%; margin-top: 30px; }
.doc-body { background: var(--wood); background-image: repeating-linear-gradient(0deg, transparent 0 46px, var(--wood2) 46px 50px); padding: 60px 0 90px; }
.doc-body .panel { max-width: 820px; margin: 0 auto; padding: 0 0 26px; }
.doc-body .inner { padding: 24px 30px 4px; }
.doc-body h2 { font-size: 24px; margin: 26px 0 8px; }
.doc-body h2:first-child { margin-top: 4px; }
.doc-body h3 { font-size: 18px; margin: 20px 0 4px; }
.doc-body p, .doc-body li { font-size: 15.5px; color: var(--ink2); }
.doc-body a { color: #2f5fa0; }
.doc-body .meta { font-size: 13px; color: var(--slate); }
.callout { background: #fff7e2; border-radius: 6px; padding: 16px 18px; box-shadow: 0 0 0 2px var(--ink); margin: 14px 0 18px; }
.callout p:last-child { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 14px 0; }
.dl { display: block; text-decoration: none; background: #fff7e2; border-radius: 6px; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px rgba(0,0,0,.2); overflow: hidden; }
.dl img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--ink); background: #ccc; }
.dl span { display: block; padding: 8px 12px; font: 600 14px var(--pixel); color: var(--ink); }
.dl span small { font: 400 12px var(--mono); color: var(--slate); }
.factlist { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; }
.factlist dt { font: 600 15px var(--pixel); } .factlist dd { margin: 0; color: var(--ink2); }
pre.copy { white-space: pre-wrap; background: #fff7e2; padding: 14px 16px; border-radius: 6px; box-shadow: 0 0 0 2px var(--ink); font-size: 13.5px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .desk-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .nav a.hide-s { display: none; }
  .hero { padding-top: 92px; min-height: 560px; }
  .features, .shots, .mac, .grid2 { grid-template-columns: 1fr; }
  .board, .desk-sec { padding: 64px 0; }
  .btn { font-size: 16px; padding: 12px 16px 15px; }
  .doc-body .inner { padding: 20px 18px 4px; }
  .hud .pill.hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .logo, .desk .game { animation: none; }
  html { scroll-behavior: auto; }
}
