/* The site's plain HTML pages (how-to-play.html, faq.html): readable
   without the game, for players and search engines. The game's own face
   comes from the Flutter build's assets. */

@font-face {
  font-family: 'Luckiest Guy';
  src: url('/assets/assets/fonts/LuckiestGuy/LuckiestGuy-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --plum: #7e2057;
  --berry: #b0306f;
  --pink: #e24b9f;
  --ink: #3d0c2a;
  --muted: #6b3a58;
  --cream: #fff7ee;
  --card: #ffffff;
  --gold: #ffc83d;
  --line: #f1d9e6;
  --green: #22a03a;
  --heading: 'Luckiest Guy', 'Arial Rounded MT Bold', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--plum) 0, var(--berry) 420px, var(--cream) 420px);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

a { color: var(--plum); text-underline-offset: 2px; }
a:hover { color: var(--pink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 6px 10px; border-radius: 8px; z-index: 2; }

.top {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 26px/1 var(--heading); }
.brand img { width: 52px; height: auto; }
.brand:hover { color: #fff; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; }
.top nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5fd35f, var(--green));
  box-shadow: 0 4px 0 #157a2a, 0 8px 18px rgb(0 0 0 / 0.18);
  color: #fff;
  font: 20px/1.1 var(--heading);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.top .btn { font-size: 17px; padding: 9px 20px; }

.hero { max-width: 1040px; margin: 0 auto; padding: 28px 16px 36px; color: #fff; }
.crumbs { font-size: 15px; opacity: 0.85; margin: 0 0 6px; }
.crumbs a { color: #fff; }
.hero h1 { font: clamp(34px, 6vw, 54px)/1.08 var(--heading); margin: 0 0 12px; color: var(--gold); text-shadow: 0 3px 0 rgb(80 0 40 / 0.35); }
.hero p { font-size: 19px; max-width: 46em; margin: 0; }

main.page {
  max-width: 1040px;
  margin: 0 auto 48px;
  padding: 8px 16px 0;
}
.sheet {
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgb(90 10 50 / 0.16);
  padding: clamp(20px, 4vw, 44px);
}
.sheet > :first-child { margin-top: 0; }

h2 { font: 30px/1.15 var(--heading); color: var(--plum); margin: 44px 0 12px; letter-spacing: 0.01em; }
h3 { font-size: 20px; margin: 26px 0 6px; color: var(--ink); }
p, li { max-width: 44em; }
ol, ul { padding-left: 1.3em; }
li { margin: 6px 0; }
strong { color: var(--ink); }

.answer { font-size: 19px; border-left: 5px solid var(--pink); padding: 4px 0 4px 16px; margin: 0 0 24px; }

figure { margin: 26px 0; }
figure img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 6px 22px rgb(90 10 50 / 0.18); }
figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 620px; }
.pair figure { margin: 10px 0; }

table { border-collapse: collapse; width: 100%; max-width: 44em; margin: 10px 0 6px; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--plum); }
kbd { font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--cream); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 3px 7px; }

.faq section { border-bottom: 1px solid var(--line); padding: 6px 0 10px; }
.faq section:last-of-type { border-bottom: 0; }
.faq h2 { font: 700 21px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--plum); margin: 18px 0 6px; letter-spacing: 0; }
.faq section p { margin: 0 0 10px; }

.cta { text-align: center; padding: 34px 0 6px; }
.cta p { margin: 0 auto 16px; font-size: 19px; }

.updated { font-size: 14px; color: var(--muted); margin-top: 30px; }

footer.foot { background: var(--plum); color: #fff; }
footer.foot div { max-width: 1040px; margin: 0 auto; padding: 22px 16px; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 15px; }
footer.foot a { color: #fff; }
footer.foot span { margin-left: auto; opacity: 0.85; }

@media (max-width: 640px) {
  body { font-size: 16px; background: linear-gradient(180deg, var(--plum) 0, var(--berry) 360px, var(--cream) 360px); }
  .top nav { margin-left: 0; width: 100%; gap: 14px; }
  .top .btn { margin-left: auto; }
  h2 { font-size: 25px; }
  .hero p { font-size: 17px; }
  footer.foot span { margin-left: 0; width: 100%; }
}
