/* Glugworks site. Same build as the Splashwick site (pixel headings, thick navy outlines, hard shadows), in Glugworks' palette (water blue, sun yellow, navy).
   Two faces only: Silkscreen (self-hosted, OFL) for headings and short labels, the system sans for everything else. No third-party requests. */
:root {
  --navy: #0f1d3d; --navy-2: #1b2d5c; --ocean: #2f86d6; --ocean-dk: #1b5ca8; --foam: #d4f0fb; --sky: #8fd3f4;
  --cream: #fff6e2; --paper: #fffaf0; --sand: #f3e2b8; --sun: #ffd23f; --sun-dk: #e89a1a;
  --red: #e2382e; --red-dk: #a5252a; --timber: #7a4a24; --timber-dk: #4c2d14; --ink: #1d2540; --ink-soft: #46506d;
  --r0: #cfd8e6; --r1: #a8e05a; --r2: #7fe0ff; --r3: #d8a8ff; --r4: #ffe060;
  --font-pixel: "Silkscreen", "Courier New", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.25rem;
  --fs-xl: clamp(1.4rem, 5vw, 1.75rem); --fs-2xl: clamp(1.75rem, 6vw, 2.25rem);
  --lh-body: 1.6; --lh-tight: 1.2;
}
@font-face { font-family: "Silkscreen"; src: url("/assets/fonts/silkscreen.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { font-synthesis: none; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: var(--lh-body); font-size: var(--fs-md); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { color: var(--ocean-dk); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.px { image-rendering: auto; }   /* the game art is smooth vector art exported at high resolution, not pixel art: smooth scaling, never pixelated */
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--navy); padding: 8px 14px; z-index: 50; border: 3px solid var(--navy); }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
header.top { position: sticky; top: 0; z-index: 30; background: var(--navy); border-bottom: 4px solid var(--sun); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--sun); text-decoration: none; font-family: var(--font-pixel); }
.brand img { width: 48px; height: 48px; image-rendering: pixelated; }   /* the mark is a 24 cell pixel grid: 2x, 5x, 8x only */
header.top nav { display: flex; align-items: center; gap: 2px; }
header.top nav a { color: var(--foam); text-decoration: none; font-family: var(--font-pixel); font-size: var(--fs-xs); padding: 8px 8px; }
header.top nav a:hover { color: var(--sun); }

/* buttons and the store badge */
.btn { display: inline-block; font-family: var(--font-pixel); text-decoration: none; padding: 13px 24px; border: 4px solid var(--navy); background: var(--sun); color: var(--navy); box-shadow: 0 6px 0 var(--navy); transition: transform .08s ease, box-shadow .08s ease; cursor: pointer; }
.btn:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--navy); }
.btn.ghost { background: var(--paper); }

/* hero */

.frame { border: 4px solid var(--navy); box-shadow: 6px 6px 0 var(--navy); background: var(--navy); margin: 0; }
.frame img, .frame video { display: block; width: 100%; }

/* store buttons: official App Store badge plus a matching Google Play tile (same look as the TotalArchery site), both 48 px high */
.store { display: inline-flex; align-items: center; justify-content: center; gap: 9px; box-sizing: border-box; height: 48px; width: 144px; padding: 0 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 8px; text-decoration: none; line-height: 1; transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.store-soon { opacity: .8; cursor: default; }
.store-soon:hover { transform: none; box-shadow: none; }
.store-as { padding: 0; border: 0; background: none; border-radius: 0; }
.store-as img { display: block; width: 144px; height: 48px; }
.store .sb-ico { width: 26px; height: 26px; flex: none; }
.store .sb-text { display: flex; flex-direction: column; text-align: left; }
.store small { display: block; font-size: .62rem; letter-spacing: .04em; color: #fff; }
.store b { display: block; font-size: 1.1rem; font-weight: 600; margin-top: 3px; white-space: nowrap; }
.buy { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.navbtn { background: var(--sun); color: var(--navy) !important; padding: 6px 12px !important; border: 2px solid #000; margin-left: 8px; white-space: nowrap; }
.navbtn:hover { color: var(--navy) !important; background: #fff; }
.devnote { margin: 18px 0 0; color: #eaf7ff; }

/* hero: title, gameplay clips, short intro */
.hero { background: linear-gradient(var(--sky) 0, var(--foam) 100%); border-bottom: 4px solid var(--navy); padding: 40px 0 56px; }
.hero .wrap { display: block; }
.hero h1 { margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-2xl); line-height: var(--lh-tight); color: var(--navy); text-shadow: 3px 3px 0 var(--sun); }
.hero .descr { margin: 8px 0 0; font-size: var(--fs-lg); color: var(--ink); }
.hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-copy .hero-mark { display: block; width: 96px; height: 96px; image-rendering: pixelated; margin: 0 0 14px; }
.hero-copy h1 { margin: 0 0 16px; }
.hero .hero-copy .intro { margin: 0 0 12px; max-width: 30rem; }
.hero-copy .buy { margin-top: 20px; }
.player { margin: 0; width: 100%; max-width: 640px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 576px; gap: 48px; } .hero-copy .hero-mark { width: 120px; height: 120px; } .player { max-width: none; } }
.player .screen { position: relative; border: 4px solid var(--navy); box-shadow: 6px 6px 0 var(--navy); background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.playbtn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); background: var(--sun); border: 4px solid var(--navy); box-shadow: 0 6px 0 var(--navy); cursor: pointer; padding: 0; }
.playbtn[hidden] { display: none; }
.playbtn::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 26px solid var(--navy); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.clipnav button { font-family: var(--font-pixel); font-size: var(--fs-sm); background: var(--paper); border: 3px solid var(--navy); padding: 8px 14px; cursor: pointer; color: var(--navy); box-shadow: 0 4px 0 var(--navy); }
.clipnav button[aria-pressed="true"] { background: var(--sun); transform: translateY(2px); box-shadow: 0 2px 0 var(--navy); }
.hero .intro { margin: 0; font-size: var(--fs-md); color: var(--ink); max-width: 40rem; }
@media (max-width: 860px) { header.top nav a.opt { display: none; } }
@media (max-width: 480px) { .playbtn { width: 64px; height: 64px; } .playbtn::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; } }

/* sections */
section { padding: 64px 0; }
h2 { font-family: var(--font-pixel); color: var(--navy); font-size: var(--fs-xl); line-height: var(--lh-tight); margin: 0 0 14px; text-shadow: 2px 2px 0 var(--sun); }
h3 { font-family: var(--font-pixel); color: var(--navy); font-size: var(--fs-md); margin: 0 0 6px; }
.lead { color: var(--ink-soft); max-width: 42rem; margin: 0 0 24px; font-size: var(--fs-md); }
.band-sun { background: var(--sun); border-top: 4px solid var(--navy); border-bottom: 4px solid var(--navy); }
.band-sun h2 { text-shadow: 2px 2px 0 #fff; } .band-sun .lead { color: var(--navy); }
.band-sea { background: var(--ocean-dk); color: #fff; border-top: 4px solid var(--navy); border-bottom: 4px solid var(--navy); }
.band-sea h2 { color: #fff; text-shadow: 2px 2px 0 var(--navy); } .band-sea .lead, .band-sea p { color: #eaf7ff; } .band-sea .eyebrow { color: var(--sun); }
.band-sand { background: var(--sand); border-top: 4px solid var(--timber); border-bottom: 4px solid var(--timber); }

/* stats band */
.stats { background: var(--navy); color: #fff; padding: 26px 0; border-bottom: 4px solid var(--sun); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; text-align: center; }
@media (max-width: 759px) { .stats li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 760px) { .stats ul { grid-template-columns: repeat(5, 1fr); } }
.stats b { display: block; font-family: var(--font-pixel); font-size: var(--fs-2xl); color: var(--sun); line-height: var(--lh-tight); text-shadow: 2px 2px 0 #000; }
.stats span { display: block; font-size: var(--fs-sm); color: #dbe7ff; line-height: 1.3; }

/* fish */
.marquee { overflow: hidden; border-top: 4px solid var(--navy); border-bottom: 4px solid var(--navy); background: linear-gradient(var(--ocean) 0, var(--ocean-dk) 100%); padding: 18px 0; margin: 0 0 34px; -webkit-mask: none; position: relative; }
.marquee .track { display: flex; gap: 34px; width: max-content; align-items: flex-end; animation: marq 70s linear infinite; padding-left: 34px; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* faq */
.faq details { max-width: 48rem; }
details { background: var(--paper); border: 4px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); margin: 0 0 14px; }
summary { cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md); padding: 12px 16px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: var(--fs-lg); line-height: 1; }
details[open] summary { background: var(--sun); } details[open] summary::after { content: "-"; }
details p { margin: 0; padding: 12px 16px 14px; color: var(--ink-soft); }

/* about + footer */
.about p { max-width: 40rem; margin: 0 0 10px; }
footer { background: var(--navy); border-top: 4px solid var(--sun); padding: 34px 0 44px; text-align: center; font-size: var(--fs-sm); color: var(--foam); }
footer img.logo { display: block; height: 80px; width: auto; margin: 0 auto 12px; background: #fff; padding: 6px 12px; border-radius: 8px; }
footer a { color: var(--foam); }
footer p { margin: 6px 0; }
footer .links a { margin: 0 8px; white-space: nowrap; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none !important; }
  .marquee { overflow-x: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .store, .navbtn { transition: none; }
}

/* plain pages (privacy, press) */
main.doc { max-width: 740px; margin: 0 auto; padding: 44px 16px 72px; }
main.doc h1 { font-family: var(--font-pixel); color: var(--navy); text-shadow: 3px 3px 0 var(--sun); font-size: var(--fs-2xl); margin: 0 0 6px; }
main.doc .updated { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0 0 28px; }
main.doc h2 { font-size: var(--fs-lg); margin: 36px 0 10px; text-shadow: none; color: var(--red-dk); }
main.doc p, main.doc li { color: var(--ink); }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 8px 0; }
.box { background: var(--paper); border: 4px solid var(--navy); box-shadow: 5px 5px 0 var(--navy); padding: 16px 20px; margin: 22px 0; }
.box p { margin: 0; }
code { font-family: var(--font-body); color: var(--red-dk); }
table.facts { width: 100%; border-collapse: collapse; background: var(--paper); border: 4px solid var(--navy); }
table.facts th, table.facts td { text-align: left; padding: 9px 12px; border-bottom: 2px solid var(--sand); vertical-align: top; }
table.facts th { width: 38%; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--navy); }
.kit { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 0; list-style: none; }
.kit li { margin: 0; background: var(--paper); border: 4px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); padding: 12px; text-align: center; }
.kit img { display: block; margin: 0 auto 8px; max-height: 120px; width: auto; background: #fff; border: 2px solid var(--sand); }
.kit img.px { image-rendering: auto; }
.kit a { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; word-break: break-word; }
main.doc .sprites { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0; padding: 14px; background: linear-gradient(#cfeeff, #9fd6f2); border: 4px solid var(--navy); }
main.doc .sprites img { height: 72px; width: auto; }

/* uniform tiles: every tile in a grid has the same box, image area and text area */
.marquee .fi { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 124px; height: 112px; text-decoration: none; color: #fff; }
.marquee .fi .ib { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 64px; }
.marquee .fi img { max-width: 100%; max-height: 64px; width: auto; height: auto; }
.marquee .fi .nm { font-size: var(--fs-sm); line-height: var(--lh-tight); text-align: center; border-bottom: 3px solid var(--rc); padding-bottom: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.marquee .track { align-items: flex-start; }

/* highlights */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 4px solid var(--navy); box-shadow: 5px 5px 0 var(--navy); padding: 12px 12px 16px; display: flex; flex-direction: column; }
.shotbox { aspect-ratio: 16 / 9; border: 3px solid var(--navy); background: var(--navy); overflow: hidden; margin: 0 0 12px; }
.shotbox img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-soft); }
.lead { margin-bottom: 20px; }
section { padding: 48px 0; }

/* neighbours: six identical tiles */
.neigh { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
@media (min-width: 760px) { .neigh { grid-template-columns: repeat(6, 1fr); } }
.neigh li { background: var(--paper); border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); padding: 10px 8px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.neigh .pb { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; background: linear-gradient(#cfeeff, #9fd6f2); border: 3px solid var(--navy); margin: 0 0 6px; }
.neigh .pb img { width: 80px; height: 80px; object-fit: contain; }
.neigh b { font-size: var(--fs-md); color: var(--navy); line-height: var(--lh-tight); }
.neigh .rl { font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-tight); }

/* clip picker: equal tabs */
.clipnav { display: grid; grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
.soundbtn { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(14, 26, 56, .72); color: #fff; border: 2px solid rgba(255, 255, 255, .85); cursor: pointer; }
.soundbtn:hover { background: rgba(14, 26, 56, .9); }
.soundbtn[hidden] { display: none; }
.soundbtn[aria-pressed="false"] .w, .soundbtn[aria-pressed="true"] .x { display: none; }
.soundbtn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.clipnav button { text-align: center; min-height: 44px; white-space: nowrap; }
.clipnav button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (max-width: 480px) { .clipnav { gap: 6px; } .clipnav button { padding: 8px 2px; font-size: 11px; border-width: 2px; } }
.marquee { margin: 0; }
.band-sea { padding-bottom: 40px; }
#fish.band-sea { padding-bottom: 0; border-bottom: 0; }
.store-gp { width: auto; min-width: 144px; padding: 0 16px 0 14px; }


/* ---- Glugworks ---- */
:root { --navy: #14284d; --navy-2: #1f3a6b; --ocean: #2a8cf0; --ocean-dk: #1b63c0; --foam: #d7f0fc; --sky: #7cc4f5; --cream: #f4fbff; --paper: #ffffff; --sand: #dcebf7; --red: #2a8cf0; --red-dk: #1b63c0; --ink: #14284d; --ink-soft: #44597f; }
:focus-visible { outline-color: var(--sun-dk); }
.brand img { image-rendering: pixelated; }
.hero { padding: 36px 0 52px; }
.hero h1 { text-shadow: none; margin: 0 0 18px; }
.hero h1 img { display: block; width: min(100%, 440px); height: auto; image-rendering: pixelated; }
.hero-copy .hero-mark { width: 104px; height: 104px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; } }
/* phone-shaped screenshots: the game is played upright */
.phone { margin: 0 auto; width: min(100%, 320px); border: 4px solid var(--navy); box-shadow: 6px 6px 0 var(--navy); background: var(--navy); border-radius: 22px; overflow: hidden; }
.phone img { display: block; width: 100%; height: auto; }
.shotbox.tall { aspect-ratio: 9 / 20; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .card h3::before { counter-increment: step; content: counter(step) ". "; color: var(--ocean-dk); }
.pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pieces { grid-template-columns: repeat(2, 1fr); } }
.pieces li { background: rgba(255, 255, 255, .1); border: 3px solid #fff; padding: 10px 14px; }
.pieces b { font-family: var(--font-pixel); font-weight: 400; color: var(--sun); display: block; margin: 0 0 2px; }
.worlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .worlds { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .worlds { grid-template-columns: repeat(5, 1fr); } }
.worlds li { background: var(--paper); border: 4px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); padding: 8px 8px 12px; }
.worlds .shotbox { margin: 0 0 8px; }
.worlds b { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-sm); color: var(--navy); line-height: var(--lh-tight); }
.worlds span { display: block; font-size: var(--fs-sm); color: var(--ink-soft); }
.soon { display: inline-block; font-family: var(--font-pixel); font-size: var(--fs-sm); background: var(--navy); color: var(--sun); padding: 8px 12px; margin: 0 0 14px; }
.band-sun .btn { background: var(--paper); }
footer img.logo { height: 64px; }
