/* Shared styling for the written pages around the game (about, how to play,
   privacy…). Deliberately plain CSS with no build step: these files are
   copied straight out of public/ so they work even if the game's bundle
   fails to load. */

:root {
  color-scheme: dark;
  --ink: #fff4e8;
  --bg: #120b24;
  --panel: #1d1036;
  --gold: #ffd23f;
  --orange: #ff8a3d;
  --line: rgba(255, 244, 232, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.62 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 740px;
  margin-inline: auto;
  padding: 0 20px 72px;
}

/* ---- masthead */
header.top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #2a1550, var(--bg));
}
header.top .wrap {
  padding-block: 22px 18px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 21px;
}
.brand span {
  color: var(--gold);
}
.brand small {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 15px;
}
nav.site a {
  color: var(--ink);
  opacity: 0.6;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav.site a:hover,
nav.site a:focus-visible {
  opacity: 1;
}
nav.site a[aria-current='page'] {
  opacity: 1;
  border-bottom-color: var(--orange);
}

/* ---- text */
h1 {
  font-size: clamp(27px, 5.2vw, 36px);
  line-height: 1.15;
  margin: 34px 0 6px;
}
.lede {
  font-size: 18px;
  opacity: 0.82;
  margin-top: 0;
}
h2 {
  font-size: 21px;
  margin-top: 40px;
  color: var(--gold);
}
h3 {
  font-size: 17px;
  margin-top: 28px;
  margin-bottom: 4px;
}
a {
  color: var(--orange);
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin-bottom: 7px;
}
code,
kbd {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
kbd {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom-width: 2px;
  font-family: inherit;
  white-space: nowrap;
}
.updated {
  font-size: 14px;
  opacity: 0.55;
}

/* ---- play button */
.play {
  display: inline-block;
  margin: 26px 0 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb03a, var(--orange));
  color: #2a1000;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 5px 0 #9c4410;
}
.play:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #9c4410;
}

/* ---- tables and cards */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
td.num {
  text-align: right;
  white-space: nowrap;
}
.scroll {
  overflow-x: auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
}
.card h3 {
  margin-top: 0;
}
.tier {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-left: 8px;
  vertical-align: 2px;
  opacity: 0.85;
}

/* ---- ads: always labelled, never next to a link or a button */
.ad {
  margin: 40px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.ad > span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 6px;
}
.ad ins {
  display: block;
  min-height: 100px;
}

/* ---- footer */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 20px;
  font-size: 14px;
  opacity: 0.7;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
}
footer.site a {
  color: var(--ink);
}
