:root {
  --outer: #15111a;
  --bg: #120b1c;
  --bg-soft: #1c112b;
  --panel: #251637;
  --panel-2: #2d1b43;
  --gold: #e8bd69;
  --gold-bright: #ffd98a;
  --violet: #7f4ac5;
  --violet-soft: #b98cff;
  --paper: #f7f3ed;
  --ink: #241d2b;
  --text: #fffaf2;
  --muted: #c9bdd5;
  --line: rgba(255,255,255,.11);
  --shadow: 0 22px 60px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--outer); }
body {
  margin: 0;
  color: var(--text);
  background: var(--outer);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }

.ea-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 5%, rgba(127,74,197,.24), transparent 26%),
    linear-gradient(180deg, var(--bg), #160d22 58%, #0e0916);
  box-shadow: var(--shadow);
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(18,11,28,.9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 5px; font-size: 24px; font-weight: 950; letter-spacing: -.06em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(232,189,105,.48);
  border-radius: 12px 5px 12px 5px;
  color: #22142e;
  background: linear-gradient(145deg, #ffe5a9, var(--gold));
  font-size: 17px;
  letter-spacing: -.08em;
  transform: rotate(-2deg);
}
.brand strong { color: var(--gold-bright); font-style: italic; }
.top-action {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(232,189,105,.4);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(232,189,105,.07);
  font-size: 12px;
  font-weight: 850;
}

.hero { position: relative; min-height: 560px; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,7,18,.06) 5%, rgba(12,7,18,.26) 36%, rgba(18,11,28,.96) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(17,9,28,.88), transparent 72%);
}
.hero-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 24px 20px 32px; }
.eyebrow, .section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}
.hero h1 { max-width: 360px; margin: 0 0 12px; font-size: 37px; line-height: 1.02; letter-spacing: -.055em; }
.hero-lead { max-width: 355px; margin: 0; color: #e0d6e8; font-size: 14px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.button { display: grid; place-items: center; min-height: 50px; padding: 0 12px; border-radius: 15px; font-size: 13px; font-weight: 950; }
.button-gold { color: #24162d; background: linear-gradient(135deg, #ffe3a4, var(--gold)); box-shadow: 0 13px 28px rgba(232,189,105,.24); }
.button-glass { border: 1px solid rgba(255,255,255,.2); color: var(--text); background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }

.section-tabs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: -1px 14px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(38,23,56,.94);
  box-shadow: 0 15px 34px rgba(0,0,0,.24);
}
.section-tabs a { display: grid; place-items: center; min-height: 57px; gap: 2px; border-radius: 13px; color: var(--muted); font-size: 10px; font-weight: 800; }
.section-tabs a:first-child { color: #2a1935; background: linear-gradient(145deg, #ffe2a0, var(--gold)); }
.section-tabs span { font-size: 19px; line-height: 1; }

.section { padding: 28px 16px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 26px; line-height: 1.08; letter-spacing: -.04em; }
.section-heading > span { color: #7c6e80; font-size: 10px; }
.light-heading h2 { color: var(--text); }
.editorial { margin-top: 20px; color: var(--ink); background: var(--paper); }
.editorial .section-kicker { color: #7c47b3; }
.article-feed { display: grid; gap: 13px; }
.article-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid #e3d9e5;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(50,33,58,.07);
}
.article-media { min-height: 138px; overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; }
.article-copy { display: flex; min-width: 0; flex-direction: column; padding: 12px 12px 11px; }
.article-label { margin: 0 0 5px; color: #7f4ac5; font-size: 9px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.article-copy h3 { display: -webkit-box; overflow: hidden; margin: 0 0 5px; font-size: 15px; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-description { display: -webkit-box; overflow: hidden; margin: 0 0 8px; color: #766b79; font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; color: #9a8e9d; font-size: 9px; }
.article-meta a { color: #65408d; font-weight: 900; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; font-size: 11px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 0 9px; border: 1px solid #ded1df; border-radius: 12px; background: #fff; }

.categories { border-top: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.category-card { position: relative; min-height: 210px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: var(--panel); }
.category-wide { grid-column: 1 / -1; min-height: 220px; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-card:hover img { transform: scale(1.035); }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(13,8,19,.9) 100%); }
.category-copy { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; padding: 16px; }
.category-copy small { color: var(--gold); font-size: 9px; font-weight: 950; letter-spacing: .14em; }
.category-copy strong { margin-top: 2px; font-size: 25px; line-height: 1.05; letter-spacing: -.04em; }
.category-copy em { margin-top: 3px; color: #d6cbdc; font-size: 11px; font-style: normal; }

.guide-panel { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(44,26,64,.7), rgba(22,13,33,.5)); }
.guide-panel .section-heading h2 { color: var(--text); }
.guide-list { display: grid; gap: 10px; }
.guide-list article { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.guide-list article > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #2b1935; background: linear-gradient(145deg, #ffe1a0, var(--gold)); font-size: 12px; font-weight: 950; }
.guide-list h3 { margin: 0 0 3px; font-size: 15px; }
.guide-list p { margin: 0; color: var(--muted); font-size: 12px; }
.responsible, .article-responsible { margin-top: 13px; padding: 15px; border-left: 3px solid var(--gold); border-radius: 11px 16px 16px 11px; background: rgba(232,189,105,.08); }
.responsible strong, .article-responsible strong { color: var(--gold-bright); font-size: 13px; }
.responsible p, .article-responsible p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

footer { padding: 25px 18px; border-top: 1px solid var(--line); text-align: center; }
.footer-brand { justify-content: center; margin-bottom: 9px; }
footer p { margin: 4px 0; color: #a99caf; font-size: 10px; }
.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(18,11,28,.95);
  backdrop-filter: blur(18px);
}
.bottom-nav a { display: grid; place-items: center; min-height: 54px; gap: 2px; color: #aa9db2; font-size: 9px; font-weight: 800; }
.bottom-nav i { font-size: 19px; font-style: normal; line-height: 1; }
.bottom-nav .active { color: var(--gold-bright); }
.bottom-nav .nav-focus i { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -21px; border-radius: 14px; color: #281832; background: linear-gradient(145deg, #ffe1a0, var(--gold)); box-shadow: 0 10px 25px rgba(232,189,105,.25); }

.article-hero { position: relative; min-height: 385px; overflow: hidden; }
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,8,23,.1), rgba(15,8,23,.42) 42%, rgba(18,11,28,.98)); }
.article-hero-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 24px 18px; }
.article-hero-copy p { margin: 0 0 8px; color: var(--gold); font-size: 10px; font-weight: 950; letter-spacing: .15em; }
.article-hero-copy h1 { margin: 0; font-size: 34px; line-height: 1.06; letter-spacing: -.05em; overflow-wrap: anywhere; }
.breadcrumb { display: flex; gap: 8px; padding: 13px 16px; overflow: hidden; color: #b7aabf; font-size: 10px; white-space: nowrap; }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.article-wrap { padding: 0 11px 24px; }
.article-paper { overflow: hidden; border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 42px rgba(0,0,0,.26); }
.article-header { padding: 20px 18px 16px; border-bottom: 1px solid #e4dae4; }
.article-deck { margin: 0 0 13px; color: #5d5262; font-size: 15px; font-weight: 650; }
.article-byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; color: #908293; font-size: 10px; }
.article-body { padding: 19px 18px; font-size: 16px; line-height: 1.72; overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { color: #2e2035; line-height: 1.22; letter-spacing: -.035em; scroll-margin-top: 82px; }
.article-body h2 { margin: 28px 0 11px; font-size: 25px; }
.article-body h3 { margin: 22px 0 9px; font-size: 20px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 17px; padding-left: 22px; }
.article-body li + li { margin-top: 7px; }
.article-body a { color: #7040a1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-body img { width: 100%; height: auto; margin: 20px auto; border-radius: 16px; object-fit: cover; }
.article-body blockquote { margin: 19px 0; padding: 14px 15px; border-left: 4px solid var(--violet); border-radius: 9px 14px 14px 9px; color: #59485f; background: #eee5f3; }
.article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { min-width: 105px; padding: 9px; border: 1px solid #d9cedb; text-align: left; }
.pagebreak { padding: 0 18px 18px; text-align: center; }
.pagebreak a, .pagebreak span { display: inline-grid; place-items: center; min-width: 38px; min-height: 38px; margin: 3px; border: 1px solid #dacdda; border-radius: 12px; background: #fff; }
.prenext { display: grid; gap: 9px; padding: 16px 18px 20px; border-top: 1px solid #e4dae4; }
.prenext div { padding: 11px 12px; border-radius: 12px; color: #644f69; background: #ece4ed; font-size: 12px; }
.related { border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.045); }
.related-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.related-card span { display: -webkit-box; overflow: hidden; padding: 11px; font-size: 12px; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-responsible { margin: 0 16px 25px; }

.section-cover { position: relative; min-height: 340px; overflow: hidden; }
.section-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-cover > span { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,7,20,.06), rgba(13,7,20,.86) 82%, var(--bg)); }
.section-cover > div { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 25px 18px; }
.section-cover p { margin: 0 0 6px; color: var(--gold); font-size: 10px; font-weight: 950; letter-spacing: .15em; }
.section-cover h1 { margin: 0; font-size: 39px; line-height: 1; letter-spacing: -.055em; }
.section-cover em { display: block; margin-top: 7px; color: #d8cddd; font-size: 13px; font-style: normal; }
.section-inline-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.section-inline-nav a { display: grid; place-items: center; min-height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 10px; font-weight: 850; }
.section-list { padding-top: 24px; }
.section-article-list { display: grid; gap: 12px; }
.section-article-card { display: grid; grid-template-columns: 120px 1fr; min-height: 142px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.045); }
.section-article-card > img { width: 100%; height: 100%; object-fit: cover; }
.section-article-card > span { display: flex; min-width: 0; flex-direction: column; padding: 13px; }
.section-article-card small { color: var(--gold); font-size: 9px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.section-article-card strong { display: -webkit-box; overflow: hidden; margin-top: 5px; font-size: 15px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.section-article-card em { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.not-found { display: grid; place-items: center; min-height: calc(100vh - 64px); padding: 30px; text-align: center; }
.not-found p { margin: 0; color: var(--gold); font-size: 76px; font-weight: 950; line-height: 1; }
.not-found h1 { margin: 8px 0 22px; font-size: 29px; }
.not-found .button { width: 190px; }

:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

@media (min-width: 431px) {
  body { background: #15111a; }
  .ea-shell { border-right: 1px solid rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 33px; }
  .article-card { grid-template-columns: 104px 1fr; }
  .article-description { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .category-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-card img { transition: none; }
}
