:root {
  --ink: #17140f;
  --paper: #fff8e1;
  --sun: #ffd928;
  --fire: #ef3b32;
  --blue: #1463ff;
  --mint: #1fbf75;
  --cream: #fffdf4;
  --line: rgba(23, 20, 15, 0.14);
  --shadow: 0 22px 70px rgba(23, 20, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 20, 15, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 20, 15, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 248, 225, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: 25px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(23, 20, 15, 0.65);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
}

.nav-links a {
  padding: 8px 10px;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover {
  border-color: var(--fire);
}

.hero {
  min-height: calc(100svh - 76px);
  padding: 22px clamp(18px, 4vw, 56px) 46px;
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(239, 59, 50, 0.22), transparent 24%),
    linear-gradient(135deg, #fff7c8 0%, #ffe65a 42%, #ff6d38 100%);
  overflow: hidden;
}

.ticker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scrollbar-width: none;
}

.ticker span {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 13px;
  font-weight: 900;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.96;
  font-weight: 900;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
  font-weight: 700;
}

.hero-actions,
.filter-tabs,
.broker-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.tab,
.broker-card,
.mini-link,
.newsletter a {
  border: 3px solid var(--ink);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button,
.mini-link,
.newsletter a {
  min-height: 48px;
  padding: 12px 18px;
}

.button:hover,
.tab:hover,
.broker-card:hover,
.mini-link:hover,
.newsletter a:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary {
  background: var(--ink);
  color: white;
}

.ghost,
.tab,
.mini-link,
.newsletter a {
  background: var(--cream);
}

.hero-character {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-character::before {
  position: absolute;
  width: min(92vw, 570px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 12px 12px 0 var(--ink);
  content: "";
}

.hero-character img {
  position: relative;
  width: min(100%, 620px);
  filter: drop-shadow(0 26px 24px rgba(23, 20, 15, 0.28));
  animation: flexPop 3.6s ease-in-out infinite;
}

.power-badge {
  position: absolute;
  right: 0;
  bottom: 34px;
  width: min(220px, 48vw);
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--blue);
  color: white;
  box-shadow: 7px 7px 0 var(--ink);
}

.power-badge span,
.power-badge small,
.power-badge strong {
  display: block;
}

.power-badge strong {
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: 54px;
  line-height: 0.95;
}

.mission-strip,
.story-steps,
.dashboard,
.challenge-band,
.series-band,
.content-layout,
.x-band,
.research-lab,
.archive-band,
.broker-band,
.site-footer {
  padding: clamp(34px, 7vw, 76px) clamp(18px, 4vw, 56px);
}

.mission-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: white;
}

.mission-strip article {
  min-height: 170px;
  padding: 20px;
  border: 3px solid white;
  border-radius: 8px;
}

.mission-strip span,
.series-card span {
  display: inline-block;
  margin-bottom: 14px;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: 30px;
}

.mission-strip h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 34px);
}

.mission-strip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-bottom: 3px solid var(--ink);
  background: #fffdf4;
}

.story-steps article {
  min-height: 170px;
  padding: 18px;
  background: var(--cream);
}

.story-steps span {
  display: inline-block;
  margin-bottom: 10px;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: 24px;
}

.story-steps h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.story-steps p {
  margin-bottom: 0;
  line-height: 1.7;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading.split {
  display: flex;
  max-width: 1240px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.broker-band h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.08;
}

.update-stamp,
.x-embed-help {
  margin-bottom: 0;
  color: rgba(23, 20, 15, 0.68);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1240px;
}

.stat-card,
.chart-panel,
.trade-log,
.story-steps article,
.challenge-card,
.post-card,
.x-feature,
.x-embed,
.profile-card,
.watchlist,
.newsletter,
.research-lab article {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 150px;
  padding: 18px;
}

.stat-card span,
.stat-card small,
.post-kicker,
.post-meta,
.broker-card span,
.broker-card small {
  font-size: 13px;
  font-weight: 900;
}

.stat-card strong {
  display: block;
  margin: 12px 0;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.96;
}

.stat-card.red { background: #ffdedc; }
.stat-card.yellow { background: #fff06f; }
.stat-card.blue { background: #d9e6ff; }
.stat-card.green { background: #dff8ea; }

.challenge-band {
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.18), transparent 38%),
    #fffdf4;
}

.challenge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(220px, 0.55fr));
  gap: 16px;
  max-width: 1240px;
}

.challenge-card {
  min-height: 240px;
  padding: 20px;
  background: var(--cream);
}

.challenge-card.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  align-items: center;
  background: var(--ink);
  color: white;
}

.challenge-card.main img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--sun);
}

.challenge-card h3 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
}

.challenge-card p {
  margin-bottom: 0;
  line-height: 1.75;
  font-weight: 700;
}

.challenge-card > span {
  display: inline-block;
  margin-bottom: 16px;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: 30px;
}

.challenge-card > strong {
  display: block;
  margin-bottom: 12px;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
}

.chart-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  max-width: 1240px;
  margin-top: 16px;
}

.chart-panel {
  padding: 20px;
  background: #17140f;
  color: white;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 8px;
  background: #fffdf4;
}

.trade-log {
  padding: 20px;
}

.trade-log h3 {
  margin-bottom: 14px;
  font-size: 26px;
}

.trade-log ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trade-log li {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.trade-log span {
  line-height: 1.65;
}

.series-band {
  border-block: 3px solid var(--ink);
  background: #d9e6ff;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1240px;
}

.series-card {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--ink);
}

.series-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  background: var(--sun);
}

.series-card div {
  padding: 20px;
}

.series-card h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.series-card p {
  margin-bottom: 0;
  line-height: 1.7;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  max-width: 1352px;
  margin: 0 auto;
}

.tab {
  cursor: pointer;
  padding: 10px 14px;
}

.tab.active {
  background: var(--fire);
  color: white;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.post-card {
  min-height: 420px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 12px;
  background: #fff06f;
  border-bottom: 3px solid var(--ink);
}

.post-card.strong img,
.broker-post img {
  background: #d9e6ff;
}

.post-card .post-kicker,
.post-card h3,
.post-card p,
.post-card .post-meta {
  margin-right: 22px;
  margin-left: 22px;
}

.post-card .post-kicker {
  margin-top: 18px;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.post-card p {
  line-height: 1.75;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 18px 0;
  border-top: 2px solid var(--line);
}

.side-rail {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 98px;
}

.profile-card,
.watchlist,
.newsletter {
  padding: 20px;
}

.profile-card {
  background: var(--fire);
  color: white;
}

.profile-card img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  margin-bottom: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
}

.side-rail h2 {
  margin-bottom: 10px;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: 34px;
}

.profile-card p,
.newsletter p {
  margin-bottom: 0;
  line-height: 1.7;
}

.watchlist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watchlist li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.newsletter {
  background: var(--sun);
}

.newsletter a {
  display: inline-block;
  margin-top: 16px;
}

.x-band {
  border-block: 3px solid var(--ink);
  background: #e9f7ef;
}

.x-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 16px;
  max-width: 1240px;
}

.x-feature {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--blue);
  color: white;
}

.x-feature h3 {
  margin: 10px 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.x-feature p {
  line-height: 1.8;
  font-weight: 700;
}

.x-embed {
  min-height: 640px;
  overflow: hidden;
  padding: 14px;
  background: var(--cream);
}

.twitter-timeline {
  display: block;
  min-height: 590px;
}

.research-lab {
  background: #fffdf4;
  border-top: 3px solid var(--ink);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1240px;
}

.research-lab article {
  min-height: 230px;
  padding: 20px;
}

.research-lab article span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  color: white;
  font-weight: 900;
}

.research-lab h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.research-lab p {
  margin-bottom: 0;
  line-height: 1.7;
}

.archive-band {
  border-top: 3px solid var(--ink);
  background: #ffdedc;
}

.archive-table {
  display: grid;
  max-width: 1240px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}

.archive-table div {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 2px solid var(--line);
}

.archive-table div:last-child {
  border-bottom: 0;
}

.archive-table span {
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: 28px;
}

.archive-table em {
  font-style: normal;
  font-weight: 700;
}

.archive-table a {
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-weight: 900;
}

.broker-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 24px;
  align-items: center;
  border-block: 3px solid var(--ink);
  background: #dff8ea;
}

.broker-band p {
  max-width: 720px;
  line-height: 1.8;
  font-weight: 700;
}

.broker-card {
  display: grid;
  gap: 8px;
  flex: 1 1 240px;
  min-height: 150px;
  padding: 18px;
  background: var(--cream);
}

.broker-card.accent {
  background: var(--blue);
  color: white;
}

.broker-card.moomoo-main {
  background: #101820;
  color: white;
}

.broker-card strong {
  font-size: 22px;
  line-height: 1.35;
}

.site-footer {
  display: grid;
  gap: 8px;
  background: var(--ink);
  color: white;
}

.site-footer p {
  max-width: 900px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.not-found {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  padding: clamp(28px, 7vw, 80px);
  background:
    radial-gradient(circle at 16% 20%, rgba(239, 59, 50, 0.2), transparent 24%),
    linear-gradient(135deg, #fff7c8 0%, #ffe65a 52%, #dff8ea 100%);
}

.not-found img {
  width: min(100%, 560px);
  filter: drop-shadow(0 22px 24px rgba(23, 20, 15, 0.24));
}

.not-found h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 92px);
}

.not-found p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}

.is-hidden {
  display: none;
}

@keyframes flexPop {
  0%,
  100% {
    transform: rotate(-1deg) scale(1);
  }
  50% {
    transform: rotate(1deg) scale(1.035);
  }
}

@media (max-width: 1080px) {
  .stats-grid,
  .story-steps,
  .series-grid,
  .lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-stack,
  .content-layout,
  .challenge-grid,
  .x-layout,
  .broker-band {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .mission-strip,
  .story-steps,
  .not-found,
  .post-grid,
  .side-rail {
    grid-template-columns: 1fr;
  }

  .hero-character {
    min-height: 410px;
  }

  .archive-table div {
    grid-template-columns: 1fr;
  }

  .challenge-card.main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-character {
    min-height: 330px;
  }

  .power-badge {
    right: 8px;
    bottom: 10px;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .series-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .series-card {
    grid-template-rows: 210px auto;
  }
}
