/* The LifeLong website (served at /, /how-to-play/ and so on). The game itself is at /play/. */
:root {
  --bg: #0d1417;
  --panel: #152127;
  --panel-2: #1c2b32;
  --line: #2a3d45;
  --text: #f3efe6;
  --muted: #a9b6b9;
  --green: #45d483;
  --green-dark: #1f9e57;
  --amber: #f2b84b;
  --coral: #ff8a6b;
  --radius: 14px;
  --wide: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: #7fe7aa; }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; margin-bottom: .4em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--green); color: #06210f; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(13, 20, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.35rem "Baloo 2", sans-serif; letter-spacing: .02em; }
.logo:hover { color: var(--text); }
.plumbob { width: 16px; height: 26px; flex: none; background: linear-gradient(160deg, #8ef0b5, var(--green) 45%, var(--green-dark)); clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #06210f; font-weight: 800; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 0; box-shadow: 0 6px 20px rgba(69, 212, 131, .25); transition: transform .15s, background .15s; }
.btn:hover { background: #6be39d; color: #06210f; transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: .95rem; box-shadow: none; }
.btn.big { font-size: 1.15rem; padding: 16px 30px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url("/site/img/hero.webp") center / cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(13, 20, 23, .85) 45%, rgba(13, 20, 23, .2) 100%), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(60px, 12vw, 130px); padding-bottom: clamp(60px, 10vw, 110px); }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.5rem); letter-spacing: .01em; margin-bottom: .15em; }
.hero .tagline { font-size: clamp(1.2rem, 2.6vw, 1.6rem); max-width: 30ch; margin-bottom: 1.4em; }
.hero .note { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.page-hero .wrap { padding-top: 56px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-hero p { font-size: 1.15rem; max-width: 60ch; color: var(--muted); }

/* Sections */
section { padding: clamp(48px, 8vw, 88px) 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; max-width: 62ch; }

.tip { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 18px 20px; max-width: 760px; }
.tip strong { color: var(--amber); }
.tip .face { font-size: 2rem; line-height: 1; }
.tip p { margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split.flip > :first-child { order: 2; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); overflow: hidden; background: #e8ecef; }
.shot img { width: 100%; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

table.prices { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.prices caption { text-align: left; font-weight: 800; margin-bottom: 10px; font-size: 1.1rem; }
.prices th, .prices td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.prices td:last-child { text-align: right; font-weight: 800; color: var(--green); white-space: nowrap; }
.prices tr:last-child td { border-bottom: 0; }
.small-print { color: var(--muted); font-size: .85rem; margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--green); color: inherit; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; background: #e8ecef; }
.card .icon { font-size: 2.6rem; display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--panel-2), #24414a); }
.card .body { padding: 16px 18px 18px; flex: 1; }
.card h3 { margin-bottom: .25em; }
.card .hours { color: var(--amber); font-weight: 800; font-size: .9rem; margin-bottom: .5em; }
.card ul { margin: .4em 0 0; padding-left: 1.1em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a, .chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; padding: 5px 12px; border-radius: 999px; font-size: .92rem; font-weight: 700; }
.chips a:hover { border-color: var(--green); }

.features { display: grid; gap: clamp(40px, 7vw, 72px); margin-top: 36px; }
.feature h3 { font-size: 1.6rem; }

.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.box h3 { margin-bottom: .6em; }
ul.ticks, ul.next { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li, ul.next li { padding-left: 30px; position: relative; margin-bottom: .6em; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
ul.next li::before { content: "◆"; position: absolute; left: 2px; top: 0; color: var(--amber); font-size: .85em; }

.steps { counter-reset: step; display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.steps > li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 74px; position: relative; }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #06210f; font: 800 1.2rem/38px "Baloo 2", sans-serif; text-align: center; }
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }

kbd { background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font: 700 .85em ui-monospace, monospace; }
table.keys { border-collapse: collapse; width: 100%; }
.keys td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys td:first-child { white-space: nowrap; width: 40%; }

.compare { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--panel-2); }
.table-scroll { overflow-x: auto; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .split, .lists { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .site-header .btn { display: none; }
  .keys td:first-child { white-space: normal; width: 50%; }
  .wrap { padding: 0 16px; }
}
.shot img.tall { max-height: 640px; width: auto; margin: 0 auto; }
.shot:has(img.tall) { background: transparent; border: 0; box-shadow: none; }
.narrow { max-width: 760px; }
.catalogue-title { margin-top: 48px; }
ul.pieces { list-style: none; padding: 0; margin: .4em 0 0; color: var(--muted); }
ul.pieces li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
ul.pieces li:last-child { border-bottom: 0; }
ul.pieces span { color: var(--green); font-weight: 800; white-space: nowrap; }
ul.traits { list-style: none; padding: 0; margin: 0 0 1em; }
ul.traits li { margin-bottom: .4em; }
.cards.more { margin-top: clamp(40px, 7vw, 72px); }
.cards.more .icon { aspect-ratio: auto; padding: 22px 0 6px; background: none; }
.compare .still { color: var(--amber); font-size: .9em; }
