/* SquirmyWorms info pages: How to play, Privacy, Terms, Contact. */
:root {
  --bg: #0D0912; --surface: #150F1E; --line: #2C2140;
  --text: #F4EFFA; --muted: #A79CBB; --pink: #FF4FA3; --violet: #8A5CFF; --teal: #5EE6C8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Space Grotesk", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.pg-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 880px; width: 100%; margin: 0 auto; padding: 22px 24px;
}
.pg-brand {
  font-family: 'Chewy', 'Fredoka', cursive; font-size: 30px; color: #fff; text-decoration: none; letter-spacing: .01em;
  text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 #5B3BB8;
}
.pg-brand:hover { color: #fff; }
.pg-play {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 16px; text-decoration: none;
  color: #fff; padding: 9px 20px; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.55), inset 0 0 8px rgba(255,255,255,.25);
  text-shadow: 0 0 8px rgba(255,255,255,.8);
}
.pg-play:hover { color: #160C1F; background: #fff; }

.pg { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: 12px 24px 56px; }
.pg h1 {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(36px, 7vw, 52px); line-height: 1.1;
  margin: 18px 0 10px; color: #fff; text-shadow: 0 0 22px rgba(255,79,163,.45);
}
.pg h2 {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 25px; line-height: 1.25;
  margin: 42px 0 10px; color: var(--pink);
}
.pg p, .pg li { color: #DCD3E8; }
.pg strong { color: #fff; }
.lede { font-size: 20px; color: var(--text) !important; }
.pg-date { color: var(--muted) !important; font-size: 15px; margin: 0 0 18px; }
.pg ul, .pg ol { padding-left: 1.3em; }
.pg li { margin: 6px 0; }
.pg-steps li::marker { font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--teal); }

.pg-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; background: var(--surface); border-radius: 10px; overflow: hidden; }
.pg-table th, .pg-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.pg-table tr:last-child th, .pg-table tr:last-child td { border-bottom: 0; }
.pg-table thead th { font-family: 'Fredoka', sans-serif; color: var(--muted); font-weight: 600; font-size: 15px; }
.pg-table tbody th { font-weight: 400; color: #DCD3E8; }
.pg-table td:last-child { font-family: 'Fredoka', sans-serif; font-weight: 700; color: #fff; text-align: right; }

.pg-ranks { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.pg-ranks li { margin: 0; display: flex; gap: 14px; align-items: baseline; padding: 10px 16px; background: var(--surface); border-radius: 10px; color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600; }
.pg-ranks span { min-width: 52px; color: var(--teal); font-weight: 700; }

.pg-mail { margin: 26px 0 8px; }
.pg-mail a {
  display: inline-block; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(22px, 5vw, 30px);
  color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 16px; border: 2px solid var(--pink);
  box-shadow: 0 0 18px rgba(255,79,163,.5), inset 0 0 14px rgba(255,79,163,.2); word-break: break-all;
}
.pg-mail a:hover { background: rgba(255,79,163,.15); }

/* Shared footer (same rules live in styles.css for the game) */
.site-foot { border-top: 1px solid var(--line); padding: 22px 24px 28px; text-align: center; color: var(--muted); font-size: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 8px; }
.site-foot a { color: #CFC3DC; text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; }
.site-foot a:hover, .site-foot a[aria-current="page"] { color: var(--pink); }
.site-foot p { margin: 0; }
