:root {
  --wine: #16080b;
  --wine-2: #2b0d13;
  --panel: #241014;
  --panel-2: #120b0e;
  --gold: #f5c04a;
  --gold-light: #ffe39c;
  --ivory: #fff5dc;
  --muted: #cdbd9f;
  --line: rgba(245, 192, 74, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: #d4d4d4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--wine);
  box-shadow: 0 0 24px rgba(0, 0, 0, .26);
}
.download-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #271400;
  background: linear-gradient(90deg, #f3c934, #ff8b43);
  border-bottom: 3px solid #8e1d2e;
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.download-bar a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #101720;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 1000;
  letter-spacing: -.05em;
}
.site-header > span {
  color: #e7d8b8;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-nav {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #101720;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: #d9d2c4;
  background: #202b37;
  border: 1px solid rgba(245, 192, 74, .15);
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
}
.section-nav a[aria-current="page"] {
  color: #281500;
  background: linear-gradient(180deg, #ffda70, #dfa122);
  border-color: var(--gold-light);
}
main { padding-bottom: 78px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: #120b0e;
  font-size: .65rem;
}
.breadcrumb a { color: var(--gold); font-weight: 800; }
.page-hero {
  padding: 22px 14px 20px;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 192, 74, .12), transparent 32%),
    linear-gradient(180deg, #2b0d13, #190b0f);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1 {
  margin: 5px 0 0;
  font-size: clamp(1.55rem, 7vw, 2rem);
  line-height: 1.14;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.lead {
  margin: 11px 0 0;
  color: #e0d3ba;
  font-size: .82rem;
}
.primary-cta {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 9px 12px;
  color: #281500;
  background: linear-gradient(180deg, #ffda70, #dfa122);
  border: 1px solid #ffe39c;
  border-radius: 11px;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.page-hero > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .62rem;
  text-align: center;
}
.quick-summary,
.faq-section,
.related-section {
  padding: 19px 12px;
  border-bottom: 1px solid var(--line);
}
.quick-summary h2,
.faq-section h2,
.related-section h2 {
  margin: 4px 0 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.summary-card {
  min-width: 0;
  min-height: 92px;
  padding: 11px;
  background: linear-gradient(145deg, #32151b, #1c0d11);
  border: 1px solid rgba(245, 192, 74, .18);
  border-radius: 11px;
}
.summary-card:last-child { grid-column: 1 / -1; min-height: auto; }
.summary-card > span { color: var(--gold); font-size: 1.05rem; }
.summary-card p { margin: 4px 0 0; color: #e2d5bd; font-size: .72rem; }
.article-body { padding: 4px 12px 0; }
.topic-section {
  padding: 17px 0;
  border-bottom: 1px solid rgba(245, 192, 74, .16);
}
.topic-section h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: 1.08rem;
  line-height: 1.25;
}
.topic-section p {
  margin: 9px 0 0;
  color: #dfd2ba;
  font-size: .78rem;
}
.topic-section ul {
  display: grid;
  gap: 6px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.topic-section li {
  position: relative;
  padding-left: 18px;
  color: #e7dcc5;
  font-size: .73rem;
}
.topic-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}
.notice-card {
  margin: 17px 12px 2px;
  padding: 13px;
  color: #e9ddc6;
  background: #101720;
  border: 1px solid rgba(245, 192, 74, .28);
  border-radius: 11px;
}
.notice-card strong { color: var(--gold); font-size: .77rem; }
.notice-card p { margin: 5px 0 0; font-size: .7rem; }
.faq-item {
  padding: 12px;
  background: linear-gradient(145deg, #30141a, #1b0d11);
  border: 1px solid rgba(245, 192, 74, .16);
  border-radius: 10px;
}
.faq-item + .faq-item { margin-top: 8px; }
.faq-item h3 { margin: 0; color: var(--gold-light); font-size: .79rem; }
.faq-item p { margin: 5px 0 0; color: #d8cbb4; font-size: .72rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.related-card {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  background: #241014;
  border: 1px solid rgba(245, 192, 74, .2);
  border-radius: 10px;
}
.related-card > span { color: var(--gold); font-size: .54rem; font-weight: 850; text-transform: uppercase; }
.related-card strong { margin-top: 3px; color: var(--ivory); font-size: .82rem; }
.related-card small { margin-top: 6px; color: var(--muted); font-size: .62rem; }
.site-footer {
  padding: 21px 15px 88px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .67rem;
  text-align: center;
}
.site-footer strong { color: var(--gold); }
.site-footer p { margin: 5px 0 0; }
.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  color: #d9d5cb;
  background: rgba(12, 18, 26, .97);
  border-top: 1px solid rgba(245, 192, 74, .34);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .32);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}
.nav-item {
  min-width: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  color: inherit;
}
.nav-item > span { color: var(--gold); font-size: 1.15rem; line-height: 1; }
.nav-item small { font-size: .54rem; font-weight: 760; }
.nav-item-primary { color: #261400; background: linear-gradient(180deg, #ffda70, #dfa122); }
.nav-item-primary > span { color: #59101f; }
a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: -3px;
}
@media (hover: hover) {
  .primary-cta:hover,
  .summary-card:hover,
  .related-card:hover { filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
