:root {
  --paper: #f4efe4;
  --ink: #1c1712;
  --pine: #1e6b43;
  --clay: #9a3d24;
  --gold: #8a5a12;
  --card: #fffaf3;
  --line: #e4d8c6;
  --muted: #6d6256;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.35;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { max-width: 32rem; margin: 0 auto; padding: 1.1rem 1.1rem calc(5.6rem + env(safe-area-inset-bottom)); }
.brand { margin: 0; color: var(--pine); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -0.02em; }
h1 { font-size: 2.4rem; line-height: 1.05; margin: 0.15rem 0; }
h2 { font-size: 1.55rem; margin: 0 0 0.35rem; }
.muted { color: var(--muted); }
.banner { border-radius: 1rem; padding: 0.8rem 1rem; background: #e5f2ea; color: var(--pine); }
.banner.warn { background: #f3d6cc; color: var(--clay); }
.chips { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.7rem 0 0.2rem; }
.chip, .tab, .solid, .ghost {
  border: 0; border-radius: 999px; padding: 0.55rem 0.85rem;
}
.chip { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-cols: 2; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.card, .tile {
  background: var(--card); border-radius: 1.2rem; padding: 0.9rem 1rem;
  box-shadow: inset 0 0 0 1px var(--line); margin-top: 0.7rem;
}
.tile { margin-top: 0; }
.tile b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; font-weight: 560; }
.ask { width: 100%; min-height: 5.5rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--paper); padding: 0.7rem; }
.solid { display: block; width: 100%; background: var(--pine); color: white; font-weight: 700; border-radius: 1rem; margin-top: 0.6rem; }
.row .solid, .row .ghost, .row .chip { width: auto; margin-top: 0; flex: none; }
.ghost { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.row { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.small { font-size: 0.92rem; }
a { color: var(--pine); }
nav {
  position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,250,243,0.96);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
nav button { background: none; border: 0; padding: 0.85rem 0.2rem; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
nav button.on { color: var(--pine); }
.shot { position: relative; border-radius: 1.2rem; overflow: hidden; background: #111; }
.shot img { width: 100%; display: block; }
.shot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gold { color: var(--gold); }
