/* The Daily Games Guide (scripts/lmp-guides.py): Last Minute Productions' own look, on its own, apart from
   STRANDED's. White, black ink, LMP violet for links and marks. STRANDED appears only in its own panel. */
:root {
  --paper: #ffffff; --wash: #f6f5f9; --ink: #14101f; --body: #3d3850; --muted: #6b6680; --line: #e6e3ee;
  --violet: #6b3ff2; --violet-wash: #f1ecff; --night: #060817; --alien: #8fe04a;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--body); font: 17px/1.65 var(--sans); background: var(--paper); }
a { color: var(--violet); text-underline-offset: 2px; }
img { max-width: 100%; }

/* The bar along the top */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.top-in { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
nav.site { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
nav.site a { color: var(--body); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }

main.guide { max-width: 760px; margin: 0 auto; padding: 28px 20px 72px; }
nav.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
nav.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
nav.crumbs li + li::before { content: '/'; margin-right: 6px; color: #c9c5d6; }
nav.crumbs a { color: var(--muted); text-decoration: none; }
nav.crumbs a:hover { color: var(--ink); }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin: 0 0 10px; }
h1 { font-size: clamp(30px, 5.4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 14px; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); margin: 48px 0 12px; font-weight: 750; }
h3 { font-size: 18px; color: var(--ink); margin: 24px 0 6px; }
p { margin: 0 0 14px; }
strong { color: var(--ink); }
ol, ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }

.answer { background: var(--wash); border-left: 4px solid var(--violet); border-radius: 4px 12px 12px 4px; padding: 16px 20px; margin: 0 0 18px; }
.answer b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.answer p { margin: 0; color: var(--ink); font-size: 17.5px; }
.disclose { font-size: 14px; color: var(--muted); margin: 0 0 26px; }

/* A game */
.card { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 14px 0; background: var(--paper); }
.card h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--violet); }
.card .n { color: var(--muted); font-weight: 600; margin-right: 8px; }
.card .meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.card .meta span + span::before { content: '·'; margin: 0 6px; }
.card p { margin-bottom: 10px; }
.card .why { color: var(--ink); }
.card .go { font-size: 14px; font-weight: 700; text-decoration: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--wash); color: var(--muted); border: 1px solid var(--line); margin-left: 10px; vertical-align: middle; }
.card.ours { background: var(--wash); }
.card.ours .tag { background: var(--violet-wash); color: var(--violet); border-color: transparent; }

/* Tables */
.scroll { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.scroll table { min-width: 640px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--wash); }
td:first-child { color: var(--ink); font-weight: 650; white-space: nowrap; }
tr.ours td { background: var(--violet-wash); }

/* STRANDED, in its own colours, as a panel */
.feature { display: grid; gap: 18px; grid-template-columns: 1fr; border-radius: 16px; padding: 20px; margin: 30px 0; background: var(--night); color: #c9cfee; }
.feature img { width: 100%; height: auto; border-radius: 10px; display: block; }
.feature h2 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.feature p { color: #c9cfee; }
.feature small { display: block; font-size: 12px; color: #8b92ba; margin-top: 10px; }
@media (min-width: 720px) { .feature { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 24px; } }
.btn { display: inline-block; white-space: nowrap; padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; background: var(--ink); color: #fff; }
.btn:hover { background: var(--violet); }
.btn.game { background: var(--alien); color: var(--night); }
.btn.game:hover { background: #a6f064; }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 7px 14px; font-size: 14px; }
.btn.line:hover { border-color: var(--ink); background: transparent; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; color: var(--ink); font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; padding: 0; list-style: none; }
.related li { margin: 0; }
.related a { display: block; height: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 650; }
.related a span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; }
.related a:hover { border-color: var(--violet); }

/* The foot of the page */
.foot { border-top: 1px solid var(--line); background: var(--wash); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 28px 20px 36px; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.foot-in img { height: 22px; width: auto; }
.foot-in a { color: var(--body); }

/* On a phone the bar keeps only the name and the button, and scrolls away with the page. */
@media (max-width: 640px) {
  .top { position: static; }
  .top-in { flex-wrap: nowrap; padding: 12px 16px; }
  nav.site a:not(.btn) { display: none; }
  .brand small { display: none; }
  .brand span { font-size: 14px; }
  main.guide { padding: 22px 16px 60px; }
}
