.number-pad{gap:12px}.number-pad h2{margin-bottom:0}.pad-screen{text-align:center;font-variant-numeric:tabular-nums;border:2px solid var(--ink);background:#fff;border-radius:18px;padding:8px 16px;font-size:2rem;font-weight:800;display:block}.pad-screen.empty{color:var(--ink-soft,var(--ink));opacity:.5}.pad-keys{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.pad-key{height:56px;box-shadow:0 3px 0 var(--ink);cursor:pointer;border-radius:18px;padding:0;font-size:1.6rem;font-weight:800}.pad-key:active{box-shadow:0 1px 0 var(--ink);transform:translateY(2px)}.pad-key.pad-clear{font-size:1rem}.pet{flex-direction:column;align-items:center;margin-top:1cqh;display:flex}.pet-avatar{top:calc(env(safe-area-inset-top) + 8px);left:calc(env(safe-area-inset-left) + 8px);z-index:1;max-width:calc(100cqw - 80px);color:var(--ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;align-items:center;gap:8px;padding:0;display:flex;position:absolute}.pet-avatar-face{border:3px solid var(--ink);width:52px;height:52px;box-shadow:0 2px 0 var(--ink);background:#fff;border-radius:50%;flex:none;place-items:center;display:grid;position:relative}.pet-avatar:active .pet-avatar-face{box-shadow:0 1px 0 var(--ink);transform:translateY(1px)}.pet-avatar-stack{width:44px;height:44px;animation:.7s ease-in-out .6s 2 pet-wiggle;display:block;position:relative}.pet-avatar-stack>.frame-box{position:absolute;inset:0}.pet-avatar-name{border:2px solid var(--ink);text-overflow:ellipsis;white-space:nowrap;background:#fff;border-radius:999px;padding:2px 10px;font-size:.85rem;font-weight:700;overflow:hidden}.pet-edit{gap:6px;margin-top:4px;display:flex}.pet-edit input{border:2px solid var(--ink);width:9.5rem;font:inherit;border-radius:10px;padding:6px 8px}@keyframes pet-wiggle{20%{transform:rotate(-9deg)scale(1.06)}45%{transform:rotate(8deg)scale(1.06)}70%{transform:rotate(-4deg)}}@media (prefers-reduced-motion:reduce){.pet-avatar-stack{animation:none}}@container game (height<=720px){.pet{margin-top:0}}.pet{margin-bottom:16px}@container game (height<=660px){.home .logo{margin-top:4cqh}}.pet-sheet .pet-edit{justify-content:center;margin:0 0 12px}.pet-sheet .pet-edit input{flex:1;min-width:0}.hat-strip{scrollbar-width:none;gap:10px;max-width:100%;margin:0;padding:8px 8px 10px;list-style:none;display:flex;overflow-x:auto}.hat-tile{border:3px solid var(--ink);width:64px;height:64px;box-shadow:0 3px 0 var(--ink);background:#fff;border-radius:50%;place-items:center;padding:0;display:grid}.hat-tile.on{outline:3px dashed var(--accent);outline-offset:3px;background:#fff3c4}.hat-tile:active{box-shadow:0 1px 0 var(--ink);transform:translateY(2px)}.hat-tile-pet{place-items:center;display:grid}.hat-tile-pet>.frame-box{grid-area:1/1;position:relative}.hat-more{color:var(--ink);background:var(--accent);font-size:2rem;font-weight:800;line-height:1}
