:root {
  --bg: #f3eee6;
  --card: #f8f1e6;
  --border: #cdbda8;
  --ink: #2f261d;
  --soft: #6f6153;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.page {
  width: min(1140px, 100%);
  max-width: 1140px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 48px 12px 24px;
  position: relative;
  isolation: isolate;
}

.page::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw;
  bottom: calc(-1 * env(safe-area-inset-bottom));
  height: calc(170px + env(safe-area-inset-bottom));
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 100% at 12% 100%, rgba(184, 143, 99, 0.18) 0%, rgba(184, 143, 99, 0) 70%),
    radial-gradient(95% 85% at 88% 100%, rgba(137, 170, 145, 0.16) 0%, rgba(137, 170, 145, 0) 72%),
    linear-gradient(180deg, rgba(247, 239, 226, 0) 0%, rgba(247, 239, 226, 0.82) 62%, rgba(242, 232, 218, 0.94) 100%);
}

.headerCard,
.contentCard,
.siteFooter {
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(111, 82, 52, 0.08);
}

.headerCard {
  padding: 14px;
  margin-bottom: 18px;
}

.headerCard h1 {
  margin: 0 0 6px;
  line-height: 1;
}

.learnPageTitle {
  font-weight: 650;
  letter-spacing: 0.1px;
}

.learnPageBrand {
  color: var(--ink);
}

.learnPageSub {
  color: #7a6e5f;
  font-weight: 550;
}

.learnBackLink {
  display: inline-block;
  margin: 0 0 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #efe3d2;
  padding: 6px 10px;
  font-weight: 600;
}

.learnBackLink:hover {
  background: #e8d9c4;
}

.quoteLine {
  margin: 0;
  color: var(--soft);
  font-style: italic;
  font-size: 14px;
}

.contentCard {
  padding: 18px;
  margin-bottom: 10px;
}

.contentCard h2 {
  margin: 0 0 8px;
  font-size: clamp(19px, 2vw, 24px);
}

.contentCard > h2 {
  margin-bottom: 18px;
}

.contentCard p {
  margin: 0 0 12px;
  color: var(--soft);
  line-height: 1.5;
  font-size: 15px;
}

.learnHubStack > * + * {
  margin-top: 18px;
}

.contentCard h2.learnLinkSectionTitle {
  margin: 0 0 10px !important;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.2;
}

.learnGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.learnLinkCard {
  display: inline-block;
  text-decoration: none;
  color: #3f5f89;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.learnLinkCard h3 {
  margin: 0 0 6px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.learnLinkCard p {
  margin: 0;
  color: var(--soft);
  font-style: normal;
}

.learnLinkCard:hover h3 {
  color: #2f4f78;
}

.gameCardTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.gameCardTitle h3 {
  margin: 0;
}

.gameIcon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(111, 82, 52, 0.12);
}

.faqItem,
.sectionItem {
  border-top: 1px solid #dccdb9;
  padding-top: 12px;
  margin-top: 12px;
}

.faqItem:first-of-type,
.sectionItem:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.faqItem h2,
.sectionItem h2 {
  margin: 0 0 6px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.2;
}

ul.inlineList {
  margin: 8px 0 0;
  padding-left: 18px;
}

ul.inlineList li {
  margin: 5px 0;
  color: var(--ink);
}

.siteFooter {
  margin-top: 10px;
  padding: 6px 4px 0;
}

.footerNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  color: var(--soft);
  font-size: 12px;
}

.footerNav a {
  text-decoration: none;
  color: var(--soft);
}

.footerNav a + a::before {
  content: "|";
  margin: 0 8px;
  color: var(--border);
}

.footerNav a:hover,
.footerNav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}
