/* The rules page. Layout only — colours, buttons and the topbar come from
   theme.css, so this page cannot drift away from the rest of the site. */

.info-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 22px 64px;
}

.info-page h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 10px;
}

.info-page .lead {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 34px;
  line-height: 1.7;
}

.info-page h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 14px;
}

.info-page section:first-of-type h2 { margin-top: 0; }

/* ------------------------------------------------------------------ join -- */

.join {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.address {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.address-label { color: var(--text-dim); font-size: 14px; }

.address code {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--olive-bright);
  background: rgba(157, 178, 79, 0.1);
  border: 1px solid rgba(157, 178, 79, 0.28);
  border-radius: 8px;
  padding: 4px 12px;
  /* The address is the one thing on this page people copy, so it must not
     break across lines however narrow the window gets. */
  white-space: nowrap;
}

.address-note { color: var(--text-dim); font-size: 13px; }

.join ol { margin: 0; padding-left: 22px; line-height: 2; }
.join li::marker { color: var(--olive-bright); font-weight: 700; }

.muted { color: var(--text-dim); font-size: 13.5px; margin: 14px 0 0; }

/* ----------------------------------------------------------------- rules -- */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.rule {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--olive);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.rule h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.5;
}

.rule-icon { font-size: 19px; line-height: 1; }

.rule ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.9;
}

.rule li::marker { color: var(--olive); }

/* ------------------------------------------------------------------- cta -- */

.cta {
  margin-top: 44px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.cta p {
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0 auto 18px;
  max-width: 560px;
}

/* Arriving from the home page's "วิธีเข้าเล่น" card lands on #join, and without
   this the heading sits flush against the top of the window with no context
   above it — the reader cannot tell they are partway down a page. */
.join { scroll-margin-top: 24px; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The Steam mark on the sign-in button. Only shown when signed out — signed in
   the same button goes to the dashboard and has nothing to do with Steam. */
.shop-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-login-icon {
  width: 17px;
  height: 17px;
  /* The logo is dark on its own; the button is olive, so it needs lifting. */
  filter: brightness(0) invert(1);
}
