/* Shared stylesheet for BlitzVolley content pages (guide, rules, FAQ, legal…).
   The game itself keeps its own inline styles in index.html; these pages are plain
   documents, served as static files, and must stay readable without any JS. */
:root {
  --ink: #2b2417;
  --soft: #6b6250;
  --accent: #ff8a3d;
  --panel: #fff7e6;
  --line: #eadfbf;
  --link: #1e5bbf;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #4FA9EC, #2FB6C4 60%, #F3EAC2);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
}
main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.card {
  background: var(--panel);
  border: 0.2rem solid #2c2417;
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 0.75rem 2.5rem rgba(20, 12, 0, .35);
}
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; border-bottom: 2px solid var(--line); padding-bottom: .3rem; }
h3 { font-size: 1.02rem; margin: 1.4rem 0 .3rem; }
p, li { font-size: 1rem; }
a { color: var(--link); }
a:hover { color: #16408a; }
.muted { color: var(--soft); font-size: .9rem; }
.lede { font-size: 1.08rem; }

/* Top bar: back to the game + language switch. */
.topbar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.back { color: #fff; text-decoration: none; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.back:hover { color: #fff; text-decoration: underline; }
.lang { color: #fff; font-size: .88rem; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.lang a { color: #fff; font-weight: 700; }

/* In-page hub navigation, repeated at the foot of every content page. */
.hubnav { margin-top: 2.5rem; border-top: 2px solid var(--line); padding-top: 1rem; }
.hubnav h2 { border: 0; margin-top: 0; font-size: 1.05rem; }
.hubnav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem .9rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.hubnav li { font-size: .95rem; }

/* Card grid used on the guide index. */
.grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.25rem 0 0; }
.tile { border: 2px solid var(--line); border-radius: .7rem; padding: .9rem 1rem; background: #fffdf6; }
.tile h3 { margin: 0 0 .25rem; font-size: 1rem; }
.tile p { margin: 0; font-size: .92rem; color: var(--soft); }
.tile a { text-decoration: none; }
.tile a:hover h3 { text-decoration: underline; }

table { border-collapse: collapse; width: 100%; margin: .75rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th { background: #fdf3dc; }
.wrap { overflow-x: auto; }

code { background: #f4ead0; border-radius: .25rem; padding: .05rem .3rem; font-size: .92em; }
.note { background: #fff3cd; border: 1px solid #f0c14b; border-radius: .5rem; padding: .7rem .9rem; font-size: .94rem; }
.play { display: inline-block; margin-top: 1.25rem; background: var(--accent); color: #2b2417;
  border: 2px solid #2c2417; border-radius: .6rem; padding: .55rem 1.1rem; font-weight: 700; text-decoration: none; }
.play:hover { background: #ffa462; color: #2b2417; }
footer.legal { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.45); }
footer.legal a { color: #fff; }
