/* Shared styles for guide pages (/play-with-friends/, /rules/*).
   shortcut: tokens, navbar and footer are duplicated from the inline styles in /index.html; move the homepage onto this file if it gets a redesign. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-padding-top: 70px;
}

img {
  display: block;
  max-width: 100%;
}

:root {
  --amber: #c47d2a;
  --amber-light: #e09a40;
  --cream: #f5f0e8;
  --cream-muted: #a89e8c;
  --card-bg: rgba(0, 0, 0, 0.35);
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --transition: 0.25s ease;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(ellipse at 50% 20%, #4a2010 0%, #2c1810 40%, #1a0a05 100%) fixed;
  color: var(--cream);
  line-height: 1.6;
}

/* ── NAVBAR ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 10, 5, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 125, 42, 0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-cta {
  background: var(--amber);
  color: #1a0a05;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--amber-light);
}

/* ── ARTICLE ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--cream-muted);
  margin-bottom: 1rem;
}

h1 {
  font-weight: 900;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.2;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

h2 {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--amber);
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.25rem;
}

p,
li {
  font-size: 0.95rem;
  line-height: 1.75;
}

ol,
ul {
  padding-left: 1.25rem;
}

li+li {
  margin-top: 0.6rem;
}

main a {
  color: var(--amber-light);
}

.answer {
  background: var(--card-bg);
  border: 1px solid rgba(196, 125, 42, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.reviewed {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--cream-muted);
}

/* ── FOOTER ── */
#footer {
  background: rgba(0, 0, 0, 0.55);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
}

.footer-headline {
  font-weight: 800;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--amber);
}

.footer-sub {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.store-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badges a img {
  height: 56px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--cream-muted);
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--cream-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 3px;
}

/* ── RULES PAGES ── */
.example {
  border-left: 3px solid var(--amber);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

th,
td {
  text-align: left;
  padding: 0.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

th {
  color: var(--amber-light);
}
