@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Inter:wght@400;500;700&display=swap');
/* Steal ASMR Guide — game-matched visual system (visual_direction.md v1)
   Identity: butter yellow / sky cyan / royal blue on paper; chunky toy panels
   with ink borders and offset shadows; condition chips mirror in-game labels. */
:root {
  --c-butter: #F7D21B;
  --c-sky: #35C5F0;
  --c-royal: #2447D8;
  --c-ink: #1C2430;
  --c-paper: #FFFDF5;
  --c-white: #FFFFFF;
  --c-green: #1D9A4B;
  --c-teal: #0E8C8C;
  --c-purple: #7B3FBF;
  --c-orange: #E07B12;
  --c-gray: #5C6672;
  --c-red: #C93A3A;
  --accent: var(--c-butter);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 4px 4px 0 var(--c-ink);
  --shadow-soft: 2px 2px 0 var(--c-ink);
  --font-display: "Baloo 2", "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--c-royal); text-underline-offset: 2px; }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-royal); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header {
  background: var(--c-sky);
  border-bottom: 3px solid var(--c-ink);
}
.site-header .bar {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--c-ink); text-decoration: none;
}
.wordmark .egg { width: 34px; height: 34px; flex: none; }
.wordmark:hover { color: var(--c-ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--c-ink); text-decoration: none;
  background: var(--c-white);
  border: 2px solid var(--c-ink); border-radius: 999px;
  padding: 6px 14px; min-height: 44px; display: inline-flex; align-items: center;
  box-shadow: var(--shadow-soft);
}
.site-nav a:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--c-ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-nav a[aria-current="page"] { background: var(--c-butter); }

/* Breadcrumb */
.crumbs { max-width: 1080px; margin: 0 auto; padding: 10px 16px 0; font-size: 0.85rem; color: var(--c-gray); }
.crumbs a { color: var(--c-gray); }

/* Layout */
main { max-width: 1080px; margin: 0 auto; padding: 8px 16px 48px; }
.section { margin: 28px 0; }
.panel {
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 18px 0 10px; }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700;
  margin: 0 0 14px; padding-bottom: 6px;
  border-bottom: 4px solid var(--accent);
  display: inline-block;
}
h3 { font-size: 1.15rem; font-weight: 700; margin: 18px 0 8px; }
.hero-word { display: inline-block; transform: rotate(-2deg); }
.accent-bar { width: 84px; height: 8px; background: var(--accent); border: 2px solid var(--c-ink); border-radius: 6px; margin: 0 0 14px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 18px; }
.hero .icon-frame {
  flex: none; width: 148px; height: 148px;
  border: 3px solid var(--c-ink); border-radius: 24px;
  box-shadow: 6px 6px 0 var(--c-ink);
  overflow: hidden; background: var(--c-white);
  transform: rotate(2deg);
}
.hero .icon-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { flex: 1 1 320px; }
.lede { font-size: 1.1rem; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  text-decoration: none; color: var(--c-ink);
  background: var(--c-butter);
  border: 2px solid var(--c-ink); border-radius: 999px;
  padding: 10px 20px; min-height: 44px;
  box-shadow: var(--shadow);
  transition: transform 60ms ease, box-shadow 60ms ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-ink); color: var(--c-ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.btn.sky { background: var(--c-sky); }
.btn.royal { background: var(--c-royal); color: var(--c-white); }
.btn.royal:hover { color: var(--c-white); }

/* Stat callouts (signboard style) */
.callout-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.stat-callout {
  flex: 1 1 150px; text-align: center;
  background: var(--c-white); border: 2px solid var(--c-ink); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft); padding: 12px 10px;
}
.stat-callout .num { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: var(--c-green); display: block; }
.stat-callout .lbl { font-size: 0.85rem; color: var(--c-gray); }

/* Tables */
.table-wrap { overflow-x: auto; border: 2px solid var(--c-ink); border-radius: var(--radius-sm); background: var(--c-white); box-shadow: var(--shadow-soft); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E4E0D2; }
th {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  background: var(--accent); border-bottom: 2px solid var(--c-ink);
  white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: " ⇅"; opacity: 0.45; font-size: 0.8em; }
th.sort-asc::after { content: " ▲"; opacity: 1; }
th.sort-desc::after { content: " ▼"; opacity: 1; }
tbody tr:hover { background: #FFFBEA; }
td.income { font-family: var(--font-mono); font-weight: 700; color: var(--c-green); white-space: nowrap; }

/* Condition chips — mirror in-game label colors (visual_direction.md) */
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; border: 2px solid var(--c-ink);
  font-family: var(--font-display); white-space: nowrap;
}
.chip[data-cond="OK"] { background: #EDF1F5; color: var(--c-ink); }
.chip[data-cond="Good"] { background: #D9F2E2; color: #0E5A2C; }
.chip[data-cond="Great"] { background: #D2F0F0; color: #06565C; }
.chip[data-cond="Perfect"] { background: #E9DBF7; color: #4A1D80; }
.chip[data-cond="Flawless"] { background: #FCE4C6; color: #8A4A06; }
.chip.rarity { background: var(--c-ink); color: var(--c-butter); }
.chip.reported { background: var(--c-white); color: var(--c-gray); border-style: dashed; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; align-items: center; }
.filter-bar label { font-size: 0.85rem; font-weight: 700; }
.filter-bar select {
  font-family: var(--font-body); font-size: 0.9rem; padding: 8px 10px;
  border: 2px solid var(--c-ink); border-radius: var(--radius-sm);
  background: var(--c-white); min-height: 44px;
}
.count-line { font-size: 0.88rem; color: var(--c-gray); margin: 0 0 12px; }

/* Cards (mobile table fallback) */
@media (max-width: 640px) {
  .table-wrap { border: none; background: none; box-shadow: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { background: var(--c-white); border: 2px solid var(--c-ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); margin-bottom: 12px; padding: 6px 0; }
  td { border-bottom: none; padding: 4px 14px; }
  td::before { content: attr(data-th) ": "; font-weight: 700; color: var(--c-gray); }
  td.income { font-size: 1.1rem; }
}

/* Steps */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 10px 0 10px 52px; margin: 0;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  background: var(--c-butter); border: 2px solid var(--c-ink); border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

/* Note blocks */
.note {
  background: #FFF8DB; border: 2px dashed var(--c-ink); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 14px 0; font-size: 0.95rem;
}
.note.warn { background: #FDECEC; }
.verdict { font-weight: 700; }

/* Egg bullet icons */
.egg-ic { width: 18px; height: 22px; vertical-align: -4px; margin-right: 6px; }

/* Footer */
.site-footer {
  background: var(--c-ink); color: #E8ECF2;
  border-top: 3px solid var(--c-ink);
  margin-top: 40px;
}
.site-footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 16px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
}
.site-footer a { color: var(--c-butter); }
.site-footer h3 { color: var(--c-white); margin: 0 0 8px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .legal { max-width: 1080px; margin: 0 auto; padding: 0 16px 24px; font-size: 0.82rem; color: #AEB7C4; }

/* Back to top */
.back-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--c-butter); border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-soft); font-size: 20px; text-decoration: none;
}
.back-top.show { display: flex; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-nav a, .hero .icon-frame { transition: none; transform: none; }
  .btn:hover, .site-nav a:hover { transform: none; }
}
@media (min-width: 960px) {
  main { padding-top: 16px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
