:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #fff;
  --panel-2: #f1f4f8;
  --line: #e4e9f1;
  --text: #141a26;
  --muted: #687486;
  --brand: #ff5c35;
  --up: #e5484d;
  --down: #2f6bff;
}

* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(720px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
}
.brand { color: var(--brand); font-size: 15px; font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.back { color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; }
main { padding: 24px 0 76px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.tag {
  display: inline-block;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}
h1 { margin: 0; font-size: clamp(30px, 8vw, 43px); line-height: 1.12; letter-spacing: -.035em; }
.ticker { color: var(--muted); font-weight: 750; }
.date { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.hero {
  margin-top: 23px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.price { font-size: clamp(38px, 10vw, 58px); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.change { display: inline-block; margin-top: 11px; font-size: 23px; font-weight: 900; font-variant-numeric: tabular-nums; }
.change small { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.stat { min-width: 0; padding: 14px 15px; border-radius: 13px; background: var(--panel-2); }
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.stat strong { display: block; margin-top: 4px; font-size: 16px; overflow-wrap: anywhere; }
.lead {
  margin: 25px 0 0;
  padding: 19px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 13px 13px 0;
  background: #fff3ee;
  color: #33404f;
  font-size: 16px;
  font-weight: 600;
}
.section { margin-top: 34px; }
.section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.section h2::before {
  width: 8px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), #ffb347);
  content: "";
}
.section p {
  margin: 0 0 13px;
  color: #33404f;
  font-size: 16px;
  text-wrap: pretty;
}
.text-highlight {
  padding: 0 2px;
  background: linear-gradient(transparent 54%, rgba(255, 194, 61, .48) 54%);
  color: var(--text);
  font-weight: 850;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.metric-chip, .number-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin: 0 2px;
  padding: 1px 8px;
  border: 1px solid #ffd5c8;
  border-radius: 8px;
  background: #fff2ed;
  color: #d94822;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  vertical-align: .04em;
  white-space: nowrap;
}
.metric-up {
  border-color: #ffc9cb;
  background: #fff0f1;
  color: #cf3038;
}
.metric-down {
  border-color: #cddaff;
  background: #eef3ff;
  color: #255fd1;
}
.section p a {
  color: var(--down);
  font-weight: 750;
  text-decoration-color: rgba(47, 107, 255, .35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.flow-copy { display: grid; gap: 11px; }
.rich-paragraph {
  position: relative;
  margin: 0 !important;
  padding: 18px 19px 18px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  line-height: 1.82;
}
.rich-paragraph::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), #ffc23d);
  content: "";
}
.rich-paragraph + .rich-paragraph {
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
}
.context-note {
  position: relative;
  margin-top: 14px !important;
  padding: 13px 15px 13px 42px;
  border-radius: 11px;
  background: #eef3ff;
  color: #53627a !important;
  font-size: 14px !important;
  line-height: 1.62;
}
.context-note::before {
  position: absolute;
  top: 13px;
  left: 15px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #b8caff;
  border-radius: 50%;
  color: var(--down);
  content: "i";
  font-size: 12px;
  font-weight: 900;
}
.takeaway {
  position: relative;
  padding: 20px 20px 18px;
  overflow: hidden;
  border: 1px solid #ffd9cc;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff5f1 0%, #fff 68%);
  box-shadow: 0 10px 30px rgba(230, 92, 53, .07);
}
.takeaway::after {
  position: absolute;
  top: -34px;
  right: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 92, 53, .07);
  content: "";
}
.takeaway p { position: relative; z-index: 1; margin: 0; line-height: 1.8; }
.crypto-post {
  --crypto: #6558d9;
  --crypto-soft: #f0efff;
}
.crypto-post .hero {
  border-color: #dedafa;
  background:
    radial-gradient(circle at 95% 8%, rgba(101, 88, 217, .12), transparent 34%),
    var(--panel);
}
.crypto-post .change.up { color: #df3f55; }
.crypto-post .change.down { color: #376de0; }
.crypto-post .section h2::before {
  background: linear-gradient(180deg, var(--crypto), #67c7ff);
}
.crypto-post .rich-paragraph::before {
  background: linear-gradient(180deg, var(--crypto), #67c7ff);
}
.crypto-post .lead {
  border-left-color: var(--crypto);
  background: var(--crypto-soft);
}
.range {
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 13px;
  background: var(--panel-2);
}
.range__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.range__track {
  position: relative;
  height: 8px;
  margin-top: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ba5ff, #b6a8ff 50%, #ff9a9f);
}
.range__track::after {
  position: absolute;
  top: 50%;
  left: var(--position);
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--crypto);
  box-shadow: 0 2px 7px rgba(37, 31, 91, .32);
  content: "";
  transform: translate(-50%, -50%);
}
.range__caption {
  margin-top: 8px;
  color: #53627a;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.theme-grid li {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.theme-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--crypto);
  font-size: 13px;
}
.theme-grid span {
  display: block;
  color: #3d4a5a;
  font-size: 14px;
  line-height: 1.6;
}
.crypto-badge {
  background: var(--crypto-soft);
  color: var(--crypto);
}
.news, .watch, .sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.news li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--down);
  border-radius: 12px;
  background: var(--panel);
}
.news a { color: var(--text); font-weight: 800; text-decoration: none; }
.news a:hover, .sources a:hover { text-decoration: underline; }
.news time { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 750; }
.watch { counter-reset: watch; }
.watch li {
  position: relative;
  padding: 14px 16px 14px 49px;
  border-radius: 12px;
  background: var(--panel-2);
  color: #33404f;
  font-size: 15.5px;
}
.watch li::before {
  counter-increment: watch;
  content: counter(watch);
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.sources a { color: var(--down); font-size: 14px; font-weight: 700; text-decoration: none; }
.sources a::before { content: "↗ "; color: var(--muted); }
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 19px; }
  .theme-grid { grid-template-columns: 1fr; }
}
