:root { --c: #E9C46A; --c2: #e8742a; --bg: #f2c98a; --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; }

.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 64px) 16px 24px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 3px 14px rgba(90,40,0,.5); }
.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: 17px; }
.spacer { height: max(200px, calc(50vh - 150px)); width: 100%; display: flex; align-items: flex-start; justify-content: center; cursor: pointer; }
.pethint { margin-top: 8px; background: rgba(255,255,255,.78); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 800; color: var(--mut); text-align: center; }
.sheet { width: 100%; background: rgba(255,247,232,.96); border-radius: 26px; padding: 14px; box-shadow: 0 -6px 30px rgba(80,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: 6px 0; box-shadow: 0 6px 16px rgba(80,40,10,.14); }
.btn.main { background: linear-gradient(180deg, #ffb35c, #e8742a); color: #fff; box-shadow: 0 8px 20px rgba(232,116,42,.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(80,40,10,.1); display: flex; flex-direction: column; gap: 2px; }
.tile i { font-style: normal; font-size: 26px; }
.tile b { font-size: 17px; }
.tile small { color: var(--mut); font-weight: 700; font-size: 12.5px; line-height: 1.3; }
.tile.hot { background: linear-gradient(180deg, #fff1d6, #ffd9a0); }
.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(80,40,10,.08); }
.foot { color: var(--mut); font-size: 13px; text-align: center; margin: 6px 0 0; }
.foot a { color: #c45a14; }

.page { max-width: 640px; margin: 0 auto; padding: calc(var(--sat) + 68px) 16px 40px; min-height: 100%; background: #fff7ea; }
.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(80,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(80,40,10,.07); min-height: 56px; width: 100%; }
.row > i { font-style: normal; font-size: 28px; width: 40px; text-align: center; flex: none; }
.row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row b { font-size: 17px; }
.row small { color: var(--mut); font-weight: 600; font-size: 13px; line-height: 1.4; }
.row em { font-style: normal; font-weight: 900; color: #f0a020; font-size: 18px; letter-spacing: 1px; flex: none; }
.row em .dim { color: #e8dccb; }
.row.lock { opacity: .55; }
.row.on { outline: 3px solid #e8742a; }
.row .sw { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.panel { background: #fff7ea; border-radius: 22px; padding: 20px; max-width: 480px; margin: calc(var(--sat) + 90px) auto 24px; width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.panel h2 { margin: 0 0 6px; }
.panel p { color: var(--mut); font-weight: 700; margin: 0 0 8px; }
