:root { --c: #4F772D; --c2: #ECF39E; --bg: #cfe6f2; --ink: #1f2a14; --mut: #5e6b4a; --paper: #fbf6e8; --sat: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; touch-action: none; display: block; }
#menu { position: fixed; inset: 0; z-index: 20; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#menu.on { display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }

.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 62px) 16px 24px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 3px 14px rgba(20,40,10,.55); }
.logo h1 { margin: 0; font-size: clamp(42px, 12vw, 60px); font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo p { margin: 4px 0 0; font-weight: 800; font-size: 16px; }
.spacer { height: max(190px, calc(52vh - 150px)); width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; cursor: pointer; }
.pethint { background: rgba(255,255,255,.8); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; color: var(--mut); }
.sheet { width: 100%; background: rgba(251,246,232,.97); border-radius: 26px; padding: 14px; box-shadow: 0 -6px 30px rgba(20,40,10,.2); display: flex; flex-direction: column; gap: 8px; }
.dogline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px; }
.dogline b { font-size: 21px; font-weight: 900; }
.dogline span { color: var(--mut); font-weight: 800; font-size: 14px; text-align: right; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: #fff; font-weight: 800; font-size: 17px; margin: 6px 0; box-shadow: 0 6px 16px rgba(20,40,10,.14); }
.btn.main { background: linear-gradient(180deg, #7aa547, #4F772D); color: #fff; box-shadow: 0 8px 20px rgba(79,119,45,.4); }
.btn.big { min-height: 76px; font-size: 26px; font-weight: 900; }
.btn small { display: block; font-size: 14px; font-weight: 700; opacity: .92; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 0; border-radius: 20px; background: #fff; padding: 12px; text-align: left; min-height: 104px; box-shadow: 0 4px 14px rgba(20,40,10,.1); display: flex; flex-direction: column; gap: 2px; }
.tile i { font-style: normal; font-size: 26px; }
.tile b { font-size: 16.5px; }
.tile small { color: var(--mut); font-weight: 700; font-size: 12.5px; line-height: 1.3; }
.tile.hot { background: linear-gradient(180deg, #f4f8d6, #e2ecb0); }
.link { border: 0; background: #fff; border-radius: 14px; min-height: 48px; padding: 10px 16px; font-weight: 800; width: 100%; box-shadow: 0 3px 10px rgba(20,40,10,.08); }
.foot { color: var(--mut); font-size: 13px; text-align: center; margin: 6px 0 0; }
.foot a { color: var(--c); }

.page { max-width: 640px; margin: 0 auto; padding: calc(var(--sat) + 68px) 16px 40px; min-height: 100%; background: var(--paper); }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.top h2 { margin: 0; font-size: 24px; font-weight: 900; }
.back { border: 0; background: #fff; border-radius: 14px; min-height: 44px; padding: 0 14px; font-weight: 800; box-shadow: 0 3px 10px rgba(20,40,10,.1); }
.mut { color: var(--mut); font-size: 14px; margin: 4px 0 10px; font-weight: 600; line-height: 1.45; }
h3 { margin: 18px 0 8px; font-size: 18px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { border: 0; background: #fff; border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 12px; text-align: left; box-shadow: 0 3px 12px rgba(20,40,10,.07); min-height: 56px; width: 100%; }
.row > i, .row summary > i { font-style: normal; font-size: 22px; font-weight: 900; width: 40px; height: 40px; border-radius: 12px; background: #eef3dc; display: grid; place-items: center; flex: none; color: var(--c); }
.row > div, .row summary > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row b { font-size: 16.5px; }
.row small { color: var(--mut); font-weight: 600; font-size: 13px; line-height: 1.35; }
.row em { font-style: normal; font-weight: 900; color: #c99a1e; font-size: 18px; letter-spacing: 1px; }
.row span { font-weight: 600; line-height: 1.45; font-size: 14.5px; }
.row.lock { opacity: .55; }
.hearts { color: #e2533f; font-size: 14px; letter-spacing: 1px; }
details.row { display: block; }
details.row summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; min-height: 44px; }
details.row summary::-webkit-details-marker { display: none; }
details.row p { margin: 10px 4px 2px; line-height: 1.6; font-weight: 600; font-style: italic; color: #3d4a2a; }
.card { background: #fff; border-radius: 20px; padding: 14px 16px; margin: 10px 0; box-shadow: 0 4px 14px rgba(20,40,10,.08); }
.card b { font-size: 17px; }
.card p { margin: 6px 0 0; color: var(--mut); font-weight: 600; line-height: 1.5; }
.wkh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wkh b { font-size: 21px; }
.wkh span { color: #fff; background: var(--c); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.intro { font-size: 16px; color: var(--ink) !important; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: #fff; border-radius: 16px; padding: 10px 6px; text-align: center; box-shadow: 0 3px 10px rgba(20,40,10,.07); }
.stats b { display: block; font-size: 20px; font-weight: 900; color: var(--c); }
.stats span { font-size: 12px; color: var(--mut); font-weight: 700; }
.letter { background: linear-gradient(180deg, #e9dcb8, #d8c48e); }
.paper { background: #fffdf5; border-radius: 6px; padding: 22px 20px; box-shadow: 0 10px 30px rgba(80,60,20,.25); margin: 8px 0 16px; border-top: 6px solid var(--c); }
.paper h2 { margin: 0 0 12px; text-align: center; font-size: 30px; color: var(--c); letter-spacing: 1px; }
.paper .lh { text-align: center; margin: 0; font-weight: 800; color: var(--mut); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; }
.paper p, .paper li { line-height: 1.6; font-weight: 600; color: #2c3320; }
.paper ul { padding-left: 20px; }
.paper .sig { text-align: right; font-style: italic; font-weight: 800; }
