/* +1 Lift Rock for Treasure Guide — v1-lime-lift (visual_direction.md)
   Light daylight theme derived from the game's observed palette:
   lime-green lawn, sky blue, orange +1 accents, green values,
   contrast-corrected rarity chips, heavy display headings. */

:root {
  --bg: #fbfdf9;
  --ink: #17251b;
  --muted: #4b5b50;
  --line: #dbe7dc;
  --card: #ffffff;
  --accent: #c2410c;        /* orange +1 accent (filled surfaces carry white text; darkened from #e8790a for WCAG AA, 5.18:1) */
  --accent-bright: #e8790a;  /* bright orange for borders/tints with dark text */
  --accent-ink: #b45309;
  --value: #1a7f37;         /* green money values */
  --lime: #c8f284;
  --sky: #bfe3ff;
  --r-common: #57606a;
  --r-common-bg: #eef1f4;
  --r-uncommon: #1a7f37;
  --r-uncommon-bg: #e4f6e8;
  --r-rare: #0b7285;
  --r-rare-bg: #e2f4f8;
  --r-epic: #86198f;
  --r-epic-bg: #f8ebfb;
  --r-legendary: #92600a; /* documented value synced to shipped token (D4) */
  --r-legendary-bg: #fdf3d8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 37, 27, 0.06), 0 6px 18px rgba(23, 37, 27, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; }
a { color: #1d6f42; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #14532d; }

h1, h2, h3, .display {
  font-family: "Arial Black", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.12rem; margin: 1.4em 0 0.4em; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-bottom: 64px; }

/* header */
.site-header {
  background: linear-gradient(180deg, var(--sky), #eaf6ff);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: "Arial Black", "Segoe UI", sans-serif; font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.brand-mark { border-radius: 8px; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: 0.93rem;
  padding: 6px 11px; border-radius: 999px;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.75); }
.main-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

/* hero */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #d9f0c8 78%, var(--lime) 100%);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 40px;
}
.hero .kicker {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
  font-size: 0.85rem; letter-spacing: 0.4px; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { font-size: 1.06rem; max-width: 46rem; color: #223528; }
.hero .lift-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lift-chip {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-weight: 750;
  text-decoration: none; border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.lift-chip.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.lift-chip:hover { transform: translateY(-1px); }

/* cards & sections */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin: 18px 0;
}
.card.orange-chip { border-top: 4px solid var(--accent-bright); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.answer-block { scroll-margin-top: 76px; }
.step { display: flex; gap: 14px; margin: 12px 0; }
.step-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}

/* tables */
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: #f2f8ee; font-size: 0.86rem; letter-spacing: 0.3px; cursor: pointer; user-select: none; white-space: nowrap; }
table.data th.no-sort { cursor: default; }
table.data td.num { font-weight: 700; color: var(--value); white-space: nowrap; }
table.data tbody tr:hover { background: #f7fbf4; }

/* rarity chips (hue borrowed from game, contrast-corrected) */
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 750;
  font-size: 0.82rem; white-space: nowrap;
}
.chip.common { background: var(--r-common-bg); color: var(--r-common); }
.chip.uncommon { background: var(--r-uncommon-bg); color: var(--r-uncommon); }
.chip.rare { background: var(--r-rare-bg); color: var(--r-rare); }
.chip.epic { background: var(--r-epic-bg); color: var(--r-epic); }
  /* epic value darkened from #ae3ec9 to #86198f for 7.17:1 on its tint */
.chip.legendary { background: var(--r-legendary-bg); color: var(--r-legendary); }

/* value tag */
.value { color: var(--value); font-weight: 800; font-variant-numeric: tabular-nums; }

/* filters */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-weight: 650; font-size: 0.9rem; cursor: pointer; color: var(--ink);
}
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* callouts */
.note {
  background: #fff8ec; border: 1px solid #f2ddb8; border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 12px 16px; margin: 14px 0;
}
.unknown {
  background: #f4f6f8; border: 1px dashed #b9c4cc; border-radius: 10px;
  padding: 10px 14px; margin: 12px 0; color: #33414b; font-size: 0.95rem;
}

/* zone chain */
.zone-chain { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 16px 0; }
.zone-node {
  flex: 1 1 130px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 10px 12px; text-align: center; box-shadow: var(--shadow);
}
.zone-node .z-mult { font-family: "Arial Black", sans-serif; font-size: 1.05rem; }
.zone-node .z-bar { height: 12px; border-radius: 999px; background: #17251b; margin: 8px 0 4px; position: relative; overflow: hidden; }
.zone-node .z-bar::after { content: ""; position: absolute; inset: 0 55% 0 0; background: #6cc24a; }
.zone-node .z-thr { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.zone-arrow { align-self: center; font-weight: 800; color: var(--accent-bright); text-shadow: 0 1px 0 rgba(23,37,27,0.25); }

/* gate/platform table badges */
.gate {
  display: inline-block; padding: 2px 9px; border-radius: 8px; font-weight: 750; font-size: 0.85rem;
  background: #f1f5ee; border: 1px solid var(--line); white-space: nowrap;
}
.gate.gem { background: #eaf7e0; border-color: #c9e8ac; color: #3c7a1e; }

/* facts list */
ul.facts { margin: 8px 0 8px 18px; padding: 0; }
ul.facts li { margin: 6px 0; }

/* status strip (homepage) */
.status-strip {
  display: flex; gap: 14px; flex-wrap: wrap; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px; margin: 18px 0;
}
.status-strip .stat { min-width: 120px; }
.status-strip .stat b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.status-strip .stat span { color: var(--muted); font-size: 0.85rem; }

/* breadcrumb + page head */
.crumbs { font-size: 0.88rem; color: var(--muted); margin-top: 18px; }
.page-head { margin-bottom: 6px; }
.page-head .lede { color: var(--muted); max-width: 46rem; }
.asof { display: inline-block; font-size: 0.85rem; color: var(--muted); background: #f1f5ee; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

/* footer */
.site-footer { background: #14210f; color: #dcead2; margin-top: 40px; }
.site-footer a { color: #b7e08e; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; padding: 34px 20px 18px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: "Arial Black", sans-serif; font-weight: 800; color: #fff; margin: 0 0 8px; }
.footer-head { font-weight: 750; color: #fff; margin: 0 0 6px; }
.footer-col a { display: block; padding: 2px 0; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #2c3d24; padding: 14px 20px; font-size: 0.88rem; color: #b9cca9; }

/* small screens */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .card { padding: 16px; }
  .main-nav a { padding: 10px 13px; font-size: 0.92rem; min-height: 44px; display: inline-flex; align-items: center; }
  .filter-btn { min-height: 44px; padding: 9px 16px; }
  .lift-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .hero { padding: 30px 0 28px; }
}
.main-nav a, .filter-btn, .lift-chip { min-height: 44px; }
