/* +1 Stone Skipping Guide — visual direction v1-freshwater-bounce
   Derived from observed game sources: cyan water dominance, "+1" outlined
   numerals, chunky rounded display type, per-zone accents, grey stone subject,
   bright daylight palette. See visual_direction.md in the private project. */

:root {
  --water-600: #0891b2;
  --water-400: #22d3ee;
  --water-100: #e0f5fc;
  --surface: #f8fbfd;
  --ink: #0f172a;
  --ink-soft: #334155;
  --accent: #0369a1;
  --gold: #b45309;
  --zone-palm: #0ea5e9;
  --zone-cactus: #d97706;
  --zone-autumn: #ea580c;
  --zone-marsh: #16a34a;
  --zone-frost: #0284c7;
  --outline: #0f172a;
  --radius: 14px;
  --font-display: "Baloo 2", "Comfortaa", ui-rounded, "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 8px; padding-bottom: 56px; }

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.2px;
}
h1 { font-size: 2.1rem; margin: 0.6em 0 0.4em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 0.4em; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--water-600); }

/* hero lane: cyan water band behind the first screen */
.hero-lane {
  background: linear-gradient(180deg, #067fa8, var(--water-600));
  border-radius: 0 0 var(--radius) var(--radius);
  color: #ffffff;
  padding: 26px 20px 24px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.hero-lane .wrap { padding: 0; }
.hero-lane h1 {
  color: #ffffff;
  text-shadow: -2px -2px 0 var(--outline), 2px -2px 0 var(--outline), -2px 2px 0 var(--outline), 2px 2px 0 var(--outline);
  margin: 0.2em 0 0.3em;
}
.hero-lane p { max-width: 720px; margin: 0.4em 0; }
.hero-lane a { color: #e0f7ff; }
.hero-stone {
  position: absolute; right: 4%; top: 12%;
  width: 130px; height: auto; opacity: 0.95;
  transform: rotate(-12deg);
}

/* gain chips: the "+1" outlined numerals */
.gain-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 2.5px solid var(--outline);
  border-radius: 999px;
  padding: 1px 12px 2px;
  transform: rotate(-2deg);
  text-shadow: -1.5px -1.5px 0 var(--outline), 1.5px -1.5px 0 var(--outline), -1.5px 1.5px 0 var(--outline), 1.5px 1.5px 0 var(--outline);
  margin: 0 4px 4px 0;
}

/* lego-stud strip */
.stud-strip {
  height: 14px;
  border-radius: 8px;
  background-image: radial-gradient(circle at 8px 7px, rgba(255,255,255,0.55) 3.2px, transparent 3.6px);
  background-size: 24px 14px;
  background-color: var(--water-600);
  margin: 18px 0;
}

.loop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; list-style: none; }
.loop-steps li {
  background: #ffffff;
  border: 2px solid var(--water-100);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 2px 0 rgba(8, 145, 178, 0.12);
}
.loop-steps .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--water-600);
  font-size: 1.3rem;
}

.splash-divider {
  height: 18px;
  margin: 30px 0 6px;
  background-image: radial-gradient(circle at 10px 9px, var(--water-400) 4px, transparent 4.6px);
  background-size: 34px 18px;
  background-repeat: repeat-x;
  opacity: 0.7;
}

/* status strip */
.status-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 14px 0 6px;
}
.status-pill {
  background: #ffffff;
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}
.status-pill .pill-label { color: var(--ink-soft); font-weight: 500; }

/* cards and tables */
.card {
  background: #ffffff;
  border: 2px solid var(--water-100);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0;
}
.zone-marker { border-left-width: 6px; }
.zone-palm   { border-left-color: var(--zone-palm); }
.zone-cactus { border-left-color: var(--zone-cactus); }
.zone-autumn { border-left-color: var(--zone-autumn); }
.zone-marsh  { border-left-color: var(--zone-marsh); }
.zone-frost  { border-left-color: var(--zone-frost); }

.zone-chain {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  list-style: none; padding: 12px 14px; margin: 14px 0;
  background: #ffffff; border: 2px solid var(--water-100); border-radius: var(--radius);
}
.zone-chain li { font-family: var(--font-display); font-weight: 700; padding: 2px 10px; border-radius: 999px; color: #fff; border: 2px solid var(--outline); }
.zone-chain li.zc-palm { background: var(--zone-palm); }
.zone-chain li.zc-cactus { background: var(--zone-cactus); }
.zone-chain li.zc-autumn { background: var(--zone-autumn); }
.zone-chain li.zc-marsh { background: var(--zone-marsh); }
.zone-chain li.zc-frost { background: var(--zone-frost); }
.zone-chain li.zc-arrow { background: transparent; border: none; color: var(--ink-soft); padding: 0 2px; }

table { border-collapse: collapse; width: 100%; margin: 14px 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1.5px solid var(--water-100); }
th { background: var(--water-100); font-family: var(--font-display); font-weight: 700; }
tr:last-child td { border-bottom: none; }

.unknown-tag {
  display: inline-block;
  background: #fef3c7; color: #92400e;
  border: 1.5px solid #f59e0b; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700; padding: 0 8px;
}

.as-of {
  display: inline-block;
  background: var(--water-100); color: var(--ink-soft);
  border-radius: 8px; padding: 1px 10px;
  font-size: 0.9rem; font-weight: 600;
}

.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  border-radius: 999px; padding: 8px 20px;
  border: 2px solid var(--outline);
  background: var(--water-400); color: var(--outline);
  text-decoration: none;
  box-shadow: 0 2px 0 var(--outline);
}
.btn:hover { background: var(--water-100); color: var(--ink); }

.note {
  background: #fffbeb; border: 2px solid #fde68a; border-radius: var(--radius);
  padding: 12px 16px; margin: 14px 0;
}
.source-note { color: var(--ink-soft); font-size: 0.92rem; }

/* header */
.site-header { background: #ffffff; border-bottom: 3px solid var(--water-400); position: sticky; top: 0; z-index: 10; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.12rem; }
.brand-mark { border-radius: 9px; }
.main-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; font-family: var(--font-display); color: var(--ink); }
.main-nav a:hover { color: var(--water-600); }

/* footer */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 30px; }
.footer-row { padding: 26px 20px 30px; }
.footer-note { max-width: 760px; }
.site-footer a { color: #7dd3fc; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0; }
.footer-updated { font-size: 0.9rem; color: #94a3b8; }

/* breadcrumb */
.crumbs { font-size: 0.92rem; color: var(--ink-soft); margin-top: 14px; }
.crumbs a { color: var(--accent); }

/* mobile: single column, stacked cards */
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .hero-stone { width: 84px; top: 6%; }
  .loop-steps { grid-template-columns: 1fr; }
  table, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 2px solid var(--water-100); padding-bottom: 6px; margin-bottom: 6px; }
  th { background: transparent; padding: 2px 2px 0; }
  td { border-bottom: none; padding: 1px 2px 4px; }
  td::before { content: attr(data-th); display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
  th { display: none; }
}
