/* the fridge window and the hunger bar (js/27-fridge.js) */
.pill.hunger{display:flex; align-items:center; gap:8px; padding:5px 12px 5px 10px; pointer-events:none;}
.hbar{display:block; width:84px; height:12px; border-radius:8px; background:rgba(0,0,0,.14); overflow:hidden; flex:none;}
.hbar i{display:block; height:100%; width:0; border-radius:8px; background:#5dbb63; transition:width .4s;}
.hbar i[data-level="mid"]{background:#f0b429;}
.hbar i[data-level="low"]{background:#ef6a4a; animation:hunger-pulse 1.1s ease-in-out infinite;}
.pill.hunger[data-level="low"] svg{animation:hunger-pulse 1.1s ease-in-out infinite;}
@keyframes hunger-pulse{50%{opacity:.55;}}
@media (prefers-reduced-motion:reduce){ .hbar i[data-level="low"], .pill.hunger[data-level="low"] svg{animation:none;} }
.hbar.big{width:min(240px,50vw); height:16px;}
.card.fridge{width:min(720px,100%); gap:10px; max-height:94vh; overflow:auto;}
.card.fridge h2{font-size:34px;}
.hungerline{display:flex; align-items:center; gap:10px; justify-content:center; font-size:18px; font-weight:800; color:var(--leaf-deep);}
.fsec{display:grid; gap:6px;}
.fgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:8px;}
.fitem{
  font:inherit; cursor:pointer; color:var(--ink); display:flex; flex-direction:column; align-items:center; gap:0; padding:6px 6px 4px;
  background:#fff; border:3px solid var(--mint); border-radius:18px; box-shadow:0 4px 0 var(--mint); min-height:44px;
}
.fitem:active{transform:translateY(3px); box-shadow:0 1px 0 var(--mint);}
.fitem canvas{width:52px; height:52px;}
.fitem b{font-size:16px; line-height:1.2; text-align:center;}
.fitem small{font-size:13px; font-weight:700; color:var(--leaf-deep); text-align:center; line-height:1.2;}
.fitem.off{opacity:.5; box-shadow:0 4px 0 #cfd8cf; border-color:#cfd8cf;}
.fempty{margin:0; text-align:center; font-size:16px; font-weight:700; color:var(--leaf-deep);}
body.toddler .card.fridge .fsec:last-of-type, body.toddler .card.fridge .hungerline span:first-child{display:none;}
body.toddler .fitem canvas{width:84px; height:84px;} body.toddler .fitem small{display:none;}
