:root {
  --bg: #090b10;
  --panel: #11151d;
  --panel-2: #151a23;
  --ink: #f1f3f7;
  --muted: #a2acbc;
  --quiet: #7f8998;
  --line: #28313f;
  --line-strong: #3a4659;
  --positive: #43d39e;
  --negative: #ff676d;
  --accent: #e9bd5c;
  --chart-token: #ef6b78;
  --chart-btc: #f2f4f8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  height: 64px;
}

.brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.brand-mark {
  position: relative;
  width: 15px;
  height: 15px;
  background: transparent;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
}

.snapshot-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  border-color: var(--line);
}

.language-switch button {
  min-height: 38px;
  padding: 7px 11px;
  font-weight: 600;
}

.hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr);
  gap: 64px;
  padding: 72px 0 52px;
}

.eyebrow,
.finding-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: none;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
}

html[lang="ko"] .hero h1 {
  line-height: 1.08;
  letter-spacing: -.025em;
  word-break: keep-all;
}

.lede {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.hero-action:hover {
  background: #dfe3ea;
  border-color: #dfe3ea;
}

.finding-card {
  padding: 24px;
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: none;
}

.finding {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.018em;
}

.finding-meter {
  display: flex;
  width: 100%;
  height: 7px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel-2);
}

.finding-meter span:first-child {
  background: var(--negative);
}

.finding-meter span:last-child {
  background: var(--positive);
}

.finding-split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.finding-split > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.finding-split b {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
}

.finding-split i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-down { background: var(--negative); }
.dot-up { background: var(--positive); }

.finding-note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.55;
}

.stats {
  border-color: var(--line);
  border-radius: 12px;
}

.stats article {
  min-width: 0;
  padding: 20px 16px;
  border-color: var(--line);
}

.stats span,
.controls label > span,
.results-head,
.details-panel span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .045em;
}

.stats strong,
.rank,
.metric-value,
.sale,
.event-time,
.path-main-stats,
.details-panel strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.stats strong {
  margin-top: 7px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.stats small {
  font-size: 11px;
  line-height: 1.45;
}

.explorer {
  padding: 88px 0 76px;
  scroll-margin-top: 24px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.method h2,
.caveats h2 {
  font-weight: 600;
  letter-spacing: -.035em;
}

.section-heading > div > p:last-child {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.share-button,
.sort-button {
  min-height: 44px;
  border-radius: 9px;
  font-weight: 600;
}

.controls {
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border-color: var(--line);
}

.controls select,
.controls input {
  height: 44px;
  border-color: var(--line);
  border-radius: 8px;
}

.results-head {
  margin-top: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--quiet);
  border-color: var(--line);
}

.move-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.move-head > b {
  font-weight: 600;
}

.move-head small {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--quiet);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
}

.move-head i,
.move-head em {
  font-style: normal;
}

.move-head i:first-child { color: var(--negative); }
.move-head i:last-child { color: var(--positive); text-align: right; }

.result-item {
  border-color: var(--line);
}

.result-row {
  min-height: 68px;
  transition: background-color .14s ease;
}

.result-item[open] > .result-row,
.result-row:hover {
  background: #121720;
}

.result-item summary:focus-visible {
  outline-offset: -3px;
}

.token {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.token b {
  font-weight: 600;
}

.token small {
  max-width: 100%;
  overflow: hidden;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-prompt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.chart-prompt::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform .14s ease;
}

.result-item[open] .chart-prompt::before {
  transform: translateY(2px) rotate(225deg);
}

.metric-value {
  font-weight: 600;
}

.bar-svg line {
  stroke: var(--line-strong);
}

.details-panel {
  border-color: var(--line);
  background: var(--line);
  border-radius: 8px;
}

.details-panel div {
  background: #10151d;
}

.details-panel span {
  font-size: 10px;
}

.details-panel strong {
  font-weight: 600;
}

.inline-chart {
  background: #0c1016;
  border-color: var(--line);
  border-radius: 10px;
}

.inline-chart-title span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: none;
}

.inline-chart-title strong {
  font-weight: 600;
}

.etherscan-link {
  min-height: 40px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  transition: background-color .14s ease, border-color .14s ease;
}

.etherscan-link:hover,
.etherscan-link:focus-visible {
  background: rgba(233, 189, 92, .16);
  transform: none;
}

.path-key {
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: .025em;
  text-transform: none;
}

.path-key b {
  font-weight: 500;
}

.path-key .key-token {
  background: var(--chart-token);
}

.path-key .key-btc {
  height: 2px;
  background: var(--chart-btc);
  border: 0;
}

.chart-grid {
  stroke: var(--line);
}

.chart-zero {
  stroke: #637087;
}

.chart-token {
  stroke: var(--chart-token);
}

.chart-btc {
  stroke: var(--chart-btc);
  stroke-dasharray: none;
}

.chart-sale-tick {
  stroke: var(--accent);
}

.chart-label {
  fill: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.inline-chart .event-chart {
  max-width: 1000px;
  margin: 4px auto 0;
}

.path-chart-caption,
.path-anchor-note {
  font-size: 11px;
  line-height: 1.5;
}

.method {
  gap: 72px;
  padding: 76px 0;
}

.method li {
  padding: 20px 0;
}

.method li strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
}

.caveats {
  padding: 68px 0 76px;
}

.caveat-grid {
  border-color: var(--line);
  background: var(--line);
  border-radius: 12px;
}

.caveat-grid p {
  padding: 22px;
  line-height: 1.6;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 60px;
  }

  .stats article {
    min-height: 112px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 12px 18px;
  }

  .language-switch button {
    min-height: 40px;
  }

  .hero {
    gap: 28px;
    padding: 48px 0 36px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.04;
    letter-spacing: -.035em;
  }

  html[lang="ko"] .hero h1 {
    font-size: 39px;
    line-height: 1.08;
  }

  .lede {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-action {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
  }

  .finding-card {
    padding: 20px;
    border-radius: 12px;
  }

  .finding {
    font-size: 18px;
    line-height: 1.45;
  }

  .finding-split {
    font-size: 10.5px;
  }

  .stats article {
    min-height: 116px;
    padding: 18px 14px;
  }

  .stats span,
  .controls label > span {
    font-size: 10px;
  }

  .stats strong {
    font-size: 23px;
  }

  .explorer {
    padding: 64px 0 56px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .share-button {
    min-height: 44px;
    margin-top: 18px;
  }

  .controls {
    padding: 12px;
  }

  .result-row {
    grid-template-columns: 28px 84px minmax(72px, 1fr) 72px;
    gap: 7px;
    min-height: 72px;
    padding: 10px 7px;
  }

  .token {
    font-size: 14px;
  }

  .token small {
    font-size: 9.5px;
  }

  .chart-prompt {
    font-size: 10px;
  }

  .bar-track {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 2px;
  }

  .metric-value {
    font-size: 11px;
  }

  .sale {
    font-size: 10.5px;
  }

  .inline-chart {
    padding: 16px 10px 14px;
  }

  .etherscan-link {
    min-height: 44px;
  }

  .inline-chart .path-key {
    gap: 8px 12px;
  }

  .inline-chart .event-chart {
    margin-top: 8px;
  }

  .chart-label {
    font-size: 17px;
  }

  .chart-event-label {
    font-size: 15px;
  }

  .details-panel span {
    font-size: 10px;
  }

  .details-panel strong {
    font-size: 12px;
  }

  .method {
    padding: 60px 0;
  }

  .caveats {
    padding: 52px 0 60px;
  }

  .source-links a {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .hero h1,
  html[lang="ko"] .hero h1 {
    font-size: 35px;
  }

  .result-row {
    grid-template-columns: 24px 78px minmax(60px, 1fr) 68px;
    gap: 6px;
  }

  .bar-track {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .metric-value,
  .sale {
    font-size: 10px;
  }
}
