* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, "Roboto", "Noto Sans SC", "PingFang SC", sans-serif;
  background: linear-gradient(#FFF5F7, #FFE9EE);
  color: #2b2b2b;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
}
header { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 0; }
h1 { margin: 0; font-size: 26px; }
.lock { font-size: 24px; background: none; border: none; opacity: .35; padding: 8px; }

main { height: calc(100% - 52px); padding: 12px 16px 20px; display: flex; gap: 16px;
       justify-content: center; align-items: stretch; overflow-x: auto; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#loading { font-size: 40px; color: #aaa; flex: 1; }
.empty { flex: 1; font-size: 22px; color: #888; }

/* one card per child */
.card { flex: 1 1 0; min-width: 220px; max-width: 420px; background: rgba(255,255,255,.75);
        border-radius: 28px; padding: 14px 14px 18px; display: flex; flex-direction: column; align-items: center; }
.kid { display: flex; flex-direction: column; align-items: center; }
.kid .face { font-size: 54px; line-height: 1.1; }
.kid .face img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.kid .name { font-size: 30px; font-weight: 800; margin-top: 2px; }

.jar { position: relative; width: 78%; max-width: 230px; flex: 1; min-height: 150px; max-height: 300px; margin: 10px 0 6px; }
.jar .lid { height: 18px; width: 62%; margin: 0 auto; border-radius: 9px 9px 4px 4px; }
.jar .neck { height: 12px; width: 52%; margin: 0 auto; border: 4px solid; border-top: 0; border-bottom: 0; opacity: .55; }
.jar .body { position: absolute; top: 28px; bottom: 0; left: 0; right: 0; border: 5px solid; border-radius: 30px 30px 36px 36px;
             background: rgba(255,255,255,.55); overflow: hidden; display: flex; flex-wrap: wrap-reverse;
             align-content: flex-start; justify-content: center; padding: 6px; }
.jar .star { font-size: 22px; line-height: 1; width: 26px; text-align: center; }
.count { font-size: 40px; font-weight: 900; }
.count .s { font-size: 30px; }

.btn { border: none; border-radius: 999px; font-size: 22px; font-weight: 800; padding: 14px 22px; color: #fff; margin-top: 8px; width: 92%; }
.btn.ask { background: #FF6B8B; }
.btn.wait { background: #34C759; }
.btn.grey { background: #e5e5ea; color: #333; }
.btn.small { font-size: 18px; padding: 10px 16px; width: auto; margin: 0; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 10; }
.hidden { display: none !important; }
.sheet { background: #FFFBF4; border-radius: 28px; width: min(92vw, 900px); max-height: 92vh; overflow-y: auto; padding: 18px 22px 24px; }
.sheet.small { width: min(86vw, 460px); }
.sheet h2 { margin: 6px 0 10px; font-size: 28px; }
.sheet p { font-size: 19px; color: #555; }
.big { font-size: 64px; }

.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-head .who { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; }
.shop-head .who small { display: block; font-size: 18px; color: #FF9500; font-weight: 700; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.item { background: #fff; border-radius: 22px; padding: 14px 10px; text-align: center; border: none; font: inherit; color: inherit; }
.item .pic { font-size: 50px; height: 64px; display: flex; align-items: center; justify-content: center; }
.item .pic img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.item .label { font-size: 19px; font-weight: 700; margin-top: 6px; }
.item .price { font-size: 18px; color: #FF9500; font-weight: 800; margin-top: 4px; }
.item.off { opacity: .4; }
.item.off .price { color: #888; }
.pending { margin-top: 10px; }
.pending .row { display: flex; align-items: center; gap: 12px; background: #EAF8EE; border-radius: 18px; padding: 10px 14px; margin-top: 8px; font-size: 20px; }
.pending .row .grow { flex: 1; }
.section-title { font-size: 20px; font-weight: 800; color: #34A853; margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: rgba(0,0,0,.82); color: #fff;
         padding: 14px 22px; border-radius: 999px; font-size: 20px; z-index: 20; }

/* parent menu */
.menu h3 { margin: 18px 0 6px; font-size: 19px; }
.menu select, .menu .choices button { font-size: 18px; padding: 8px 12px; border-radius: 12px; }
.menu .choices { display: flex; gap: 8px; flex-wrap: wrap; }
.menu .choices button { border: 2px solid #ddd; background: #fff; }
.menu .choices button.on { border-color: #FF6B8B; }
.menu pre { font-size: 12px; white-space: pre-wrap; word-break: break-all; background: #fff; border-radius: 10px; padding: 8px; max-height: 32vh; overflow: auto; user-select: text; -webkit-user-select: text; }
