/* Lineguard site: the same paper-and-ink look as the game */
:root {
  --paper: #f3ecdd;
  --paper-2: #fbf7ee;
  --ink: #2b2520;
  --ink-dim: rgba(43, 37, 32, 0.66);
  --ink-faint: rgba(43, 37, 32, 0.14);
  --pen: #2d5da8;
  --red: #c4432f;
  --gold: #e7a93a;
  --hand: "Caveat", "Segoe Print", cursive;
  --ui: "Nunito", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.65 var(--ui); }
/* height follows the width, so images keep their shape when they shrink */
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--pen); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: rgba(243, 236, 221, 0.94); border-bottom: 1.5px solid var(--ink-faint); backdrop-filter: blur(6px); }
.brand { font: 700 34px/1 var(--hand); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 6px 10px; border-radius: 8px; font: 800 14px/1 var(--ui); color: var(--ink-dim); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--pen); color: #fff; font: 800 15px/1 var(--ui); text-decoration: none; cursor: pointer; box-shadow: 3px 4px 0 var(--ink); white-space: nowrap; }
.btn:hover { color: #fff; transform: translate(-1px, -1px); }
.btn.ghost { background: var(--paper-2); color: var(--ink); }
.btn.ghost:hover { color: var(--ink); }

/* page body */
.page { max-width: 820px; margin: 0 auto; padding: 36px 20px 64px; }
.wide { max-width: 1100px; }
h1, h2, h3 { font-family: var(--hand); font-weight: 700; line-height: 1.05; margin: 1.6em 0 0.4em; }
h1 { font-size: clamp(52px, 8vw, 84px); margin-top: 0.2em; }
h2 { font-size: clamp(36px, 5vw, 48px); }
h3 { font-size: 30px; }
.lede { font-size: 20px; color: var(--ink-dim); margin-top: 0; }
.tagline { display: inline-block; padding: 0 12px; background: rgba(231, 169, 58, 0.5); font: 700 28px/1.3 var(--hand); }
.note { padding: 14px 18px; border-left: 4px solid var(--gold); background: var(--paper-2); border-radius: 0 10px 10px 0; }
.crumbs { font: 700 14px/1 var(--ui); color: var(--ink-dim); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ink-faint); vertical-align: top; }
th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.shot { margin: 18px 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 4px 5px 0 rgba(43, 37, 32, 0.2); }
/* screenshots are always 16:9, whatever size hints the browser reads */
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: 8px 12px; background: var(--paper-2); font-size: 14px; color: var(--ink-dim); }
figure { margin: 0; }

/* home: the game */
.hero { text-align: center; padding-top: 26px; }
.hero h1 { margin-bottom: 0; }
.game-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 22px auto 0; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--paper-2); box-shadow: 6px 8px 0 rgba(43, 37, 32, 0.22); }
.game-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-frame:fullscreen { border: 0; border-radius: 0; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.play-bubble { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 16px 34px; border: 3px solid var(--ink); border-radius: 18px; background: var(--pen); color: #fff; font: 800 26px/1 var(--ui); box-shadow: 4px 5px 0 var(--ink); }
.play-bubble .ico { width: 26px; height: 26px; fill: #fff; stroke: #fff; }
.poster:hover .play-bubble { transform: translate(-50%, -52%); }
.game-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.card { padding: 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper-2); box-shadow: 3px 4px 0 rgba(43, 37, 32, 0.16); }
.card h3 { margin: 0 0 6px; font-size: 28px; }
.card p { margin: 0; font-size: 15px; color: var(--ink-dim); }
.card .ico { width: 26px; height: 26px; color: var(--red); margin-bottom: 6px; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { transform: translate(-1px, -2px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }

/* footer */
.foot { padding: 28px 20px 40px; border-top: 1.5px solid var(--ink-faint); text-align: center; font-size: 14px; color: var(--ink-dim); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.foot a { color: var(--ink-dim); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: 10px; padding: 8px 12px; }
  .brand { font-size: 28px; }
  .top .btn { padding: 8px 12px; }
  .play-bubble { padding: 12px 24px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* picture cards on the boss and world overviews */
.card.media { padding: 0 0 16px; overflow: hidden; }
.card.media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.card.media h3, .card.media p { padding: 0 16px; }

/* boss and world pages: jump between siblings */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.subnav a { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper-2); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* worldwide rounds counter under the game */
.plays { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 10px; font-size: 15px; color: var(--ink-dim); }
.plays[hidden] { display: none; }
.plays .ico { width: 18px; height: 18px; color: var(--red); }
.plays b { color: var(--ink); font-weight: 800; }

/* store badges, not live yet */
.stores-label { margin: 18px 0 8px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 4px; }
.stores img { height: 46px; width: auto; max-width: none; display: block; }
@media (max-width: 480px) { .stores { gap: 8px; } .stores img { height: 42px; } }

/* breathing room between the game buttons (or the rounds counter) and the intro line */
.hero .lede { margin-top: 44px; }
.hero .plays + .lede { margin-top: 24px; }
.hero .plays { margin-top: 22px; }
