:root { --c: #3A86FF; --c2: #FFBE0B; --bg: #79C7FF; --ink: #14203d; --mut: #5d6a8a; --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) + 60px) 16px 24px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 3px 14px rgba(10,40,110,.45); }
.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(52vh - 160px)); width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.pethint { background: rgba(255,255,255,.8); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; color: var(--mut); }
.sheet { width: 100%; background: rgba(255,255,255,.96); border-radius: 26px; padding: 14px; box-shadow: 0 -6px 30px rgba(10,40,110,.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(10,40,110,.14); }
.btn.main { background: linear-gradient(180deg, #5a9bff, #2A6EE8); color: #fff; box-shadow: 0 8px 20px rgba(42,110,232,.4); }
.btn.big { min-height: 80px; font-size: 23px; font-weight: 900; padding: 8px 12px; }
.btn small { display: block; font-size: 14px; font-weight: 700; opacity: .92; margin-top: 2px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 0; border-radius: 20px; background: #F1F6FF; padding: 12px; text-align: left; min-height: 104px; box-shadow: 0 4px 14px rgba(10,40,110,.08); 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, #FFF6D6, #FFE8A3); }
.link { border: 0; background: #F1F6FF; border-radius: 14px; min-height: 48px; padding: 10px 16px; font-weight: 800; width: 100%; }
.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: #F4F8FF; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.top h2 { margin: 0; font-size: 23px; 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(10,40,110,.1); flex: none; }
.mut { color: var(--mut); font-size: 14px; margin: 4px 0 12px; font-weight: 600; line-height: 1.45; }
.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(10,40,110,.07); min-height: 56px; width: 100%; }
.row > i { font-style: normal; font-size: 22px; font-weight: 900; width: 40px; height: 40px; border-radius: 12px; background: #E7F0FF; color: var(--c); display: grid; place-items: 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.35; }
.row span { font-weight: 600; line-height: 1.45; font-size: 14px; color: #33405f; }
.row em { font-style: normal; font-weight: 900; color: #E8A400; font-size: 17px; flex: none; }
.row.lock { opacity: .55; }
.row.fam img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stk { position: relative; background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 3px 12px rgba(10,40,110,.07); filter: grayscale(1); opacity: .55; }
.stk.on { filter: none; opacity: 1; background: linear-gradient(180deg, #FFFBEA, #FFF1BF); }
.stk i { font-style: normal; font-size: 34px; }
.stk b { font-size: 15px; }
.stk small { color: var(--mut); font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.stk em { position: absolute; top: 10px; right: 12px; font-style: normal; font-weight: 900; background: #FF7F11; color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 13px; }
