:root { --c: #BC6C25; --c2: #6aa84f; --bg: #8fd0ff; --ink: #3a2412; --mut: #7a5f48; --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(40,60,90,.55); }
.logo h1 { margin: 0; font-size: clamp(42px, 12vw, 60px); font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo p { margin: 6px 0 0; font-weight: 800; font-size: 17px; }
.spacer { height: max(200px, calc(40vh - 60px)); width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; cursor: pointer; }
.pethint { background: rgba(255,255,255,.82); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; color: var(--mut); }
.sheet { width: 100%; background: rgba(255,248,236,.97); border-radius: 26px; padding: 14px; box-shadow: 0 -6px 30px rgba(60,40,10,.2); display: flex; flex-direction: column; gap: 8px; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: #fff; font-weight: 800; font-size: 17px; margin: 4px 0; box-shadow: 0 6px 16px rgba(80,40,10,.14); }
.btn.main { background: linear-gradient(180deg, #e8a050, #bc6c25); color: #fff; box-shadow: 0 8px 20px rgba(188,108,37,.4); }
.btn.big { min-height: 78px; font-size: 26px; font-weight: 900; }
.btn.day { background: linear-gradient(180deg, #8ad06a, #4f9a3a); color: #fff; min-height: 64px; font-size: 20px; font-weight: 900; }
.btn small { display: block; font-size: 14px; font-weight: 700; opacity: .92; }
.row2 { display: flex; gap: 8px; width: 100%; }
.row2 .link { flex: 1; }
.link { border: 0; background: #fff; border-radius: 14px; min-height: 50px; padding: 10px 12px; font-weight: 800; font-size: 15.5px; width: 100%; box-shadow: 0 3px 10px rgba(80,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: #fff8ec; }
.page.narrow { max-width: 460px; display: flex; flex-direction: column; justify-content: center; }
.page h2 { margin: 0; font-size: 24px; font-weight: 900; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.back { border: 0; background: #fff; border-radius: 14px; min-height: 46px; padding: 0 14px; font-weight: 800; box-shadow: 0 3px 10px rgba(80,40,10,.1); }
.mut { color: var(--mut); font-size: 14.5px; margin: 6px 0 12px; font-weight: 600; line-height: 1.5; }
.reg { margin: 14px 0; }
.reg h3 { margin: 0 0 8px; font-size: 18px; color: var(--rc); }
.lvls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lvl { border: 0; background: #fff; border-radius: 18px; padding: 10px 12px; min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; box-shadow: 0 3px 12px rgba(80,40,10,.08); border-left: 6px solid var(--rc); }
.lvl b { font-size: 24px; font-weight: 900; color: var(--c); line-height: 1; }
.lvl span { font-weight: 800; font-size: 15.5px; }
.lvl em { font-style: normal; color: #f2a900; letter-spacing: 2px; font-weight: 900; }
.lvl small { color: var(--mut); font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.lvl.lock { opacity: .5; }
.list { display: flex; flex-direction: column; gap: 10px; }
.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(80,40,10,.07); min-height: 64px; width: 100%; }
.row > i { font-style: normal; font-size: 32px; width: 44px; text-align: center; flex: none; }
.row > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.row b { font-size: 17px; }
.row small { color: var(--mut); font-weight: 600; font-size: 13.5px; }
.row.lock { opacity: .5; }
.card { display: flex; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 3px 12px rgba(80,40,10,.07); }
.card > i { font-style: normal; font-size: 32px; flex: none; width: 40px; text-align: center; }
.card b { font-size: 17px; }
.card p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: #4a3a2a; }
.card.lock { opacity: .6; }
.card.lock p { color: var(--mut); }
.help { padding-left: 20px; }
.help li { margin: 0 0 10px; line-height: 1.5; font-weight: 600; color: #4a3a2a; }
