/* panels.css — cards, rows and bits for the menu panels */
.panel .pbody { color: var(--ink); font-size: 15px; }
.panel .pbody p { margin: 4px 0; }
.sec { background: rgba(251,243,221,.75); border: 2px solid #c9a96a; border-radius: 12px; padding: 8px; margin: 6px 0; }
.sec.warn { border-color: var(--berry); background: rgba(255,225,225,.8); }
.sec.good { border-color: var(--gold); }
.sec h4 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.muted { opacity: .75; font-size: 14px; }
.bad { color: var(--berry); font-weight: 900; }
.good-t { color: var(--moss-d); font-weight: 900; }
.head { display: flex; gap: 10px; align-items: center; }
.portrait { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; background: radial-gradient(#fff8e0, #e8d6a4); border: 3px solid #c9a96a; flex: none; }
.portrait.gold { box-shadow: 0 0 0 3px var(--gold), 0 0 16px 4px rgba(255,200,60,.8); }
.portrait.wilt { filter: grayscale(1); }
.chip { display: inline-block; background: var(--gold); color: var(--ink); border-radius: 8px; padding: 1px 8px; font-size: 13px; font-weight: 900; margin-right: 4px; }
.hname { font-size: 19px; font-weight: 900; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; }
.acts .btn { min-width: 0; padding: 6px 4px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.need { display: flex; align-items: center; gap: 6px; min-height: 25px; font-size: 14px; font-weight: 700; }
.need .nl { width: 76px; flex: none; }
.cbtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.cbtn { position: relative; min-height: 64px; border-radius: 12px; border: 3px solid #a98550; background: var(--parch); color: var(--ink);
  font-family: inherit; font-weight: 900; font-size: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; padding: 2px; }
.cbtn img { width: 32px; height: 32px; object-fit: contain; }
.cbtn:hover, .cbtn.focus { background: #fff3c8; transform: scale(1.04); }
.cbtn.focus { outline: 3px solid var(--gold); }
.cbtn.disabled { filter: grayscale(.6); opacity: .8; }
.cbtn .sweep { position: absolute; inset: 0; pointer-events: none; display: none; align-items: center; justify-content: center; color: #fff; font-size: 18px; text-shadow: var(--outline); }
.cbtn.disabled .sweep { display: flex; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.card { background: var(--parch); border: 3px solid #b99a62; border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 14px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-family: inherit; color: var(--ink); min-height: 96px; }
.card img { width: 64px; height: 64px; object-fit: contain; }
.card:hover, .card.focus { background: #fff3c8; transform: translateY(-2px); }
.card.focus { outline: 3px solid var(--gold); }
.card.sel { border-color: var(--gold); background: #ffeaa0; box-shadow: 0 0 10px rgba(242,193,78,.9); }
.card.locked { filter: grayscale(.9); opacity: .65; cursor: default; }
.card .sil, .sil { filter: brightness(0) opacity(.45); }
.card .q { font-size: 40px; font-weight: 900; height: 64px; line-height: 64px; opacity: .5; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.tabs .btn.on { filter: hue-rotate(-55deg) saturate(1.4) brightness(1.1); }
.lid { display: inline-block; width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative; border: 2px solid rgba(60,40,20,.5);
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, rgba(255,255,255,.0) 22%), radial-gradient(circle at 50% 55%, var(--c, #ccc), color-mix(in srgb, var(--c, #ccc) 70%, #3b2a1a)); box-shadow: 0 3px 0 rgba(60,40,20,.35); }
.lid.big { width: 72px; height: 72px; }
.lid.sm { width: 22px; height: 22px; vertical-align: middle; }
.pop { animation: popin .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes popin { from { transform: scale(.3) rotate(-20deg); } 60% { transform: scale(1.3); } }
.kit { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 10px; }
@media (max-width: 760px) { .kit { grid-template-columns: 1fr 1fr; } .kit > :last-child { grid-column: 1 / -1; } }
.ingbtn { min-height: 48px; border-radius: 12px; border: 3px solid #a98550; background: var(--parch); display: flex; align-items: center; gap: 6px; padding: 2px 8px;
  font-family: inherit; font-weight: 900; font-size: 16px; color: var(--ink); cursor: pointer; margin-bottom: 6px; width: 100%; }
.ingbtn img { width: 44px; height: 44px; object-fit: contain; }
.ingbtn.focus, .ingbtn:hover { background: #fff3c8; outline: none; }
.ingbtn.focus { outline: 3px solid var(--gold); }
.slots { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0; }
.slot { width: 56px; height: 56px; border-radius: 50%; border: 3px dashed #a98550; background: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.slot img { width: 44px; height: 44px; object-fit: contain; }
.arrow { font-size: 26px; font-weight: 900; }
.result { text-align: center; min-height: 120px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lidrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 4px; border-radius: 10px; border: 2px solid transparent; flex-wrap: wrap; }
.lidrow.cur { border-color: var(--gold); background: #fff0b8; }
.lidrow .nm { flex: 1; font-weight: 900; min-width: 70px; }
.mini { width: 36px; height: 36px; object-fit: contain; }
.tcard { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcard .tx { flex: 1; min-width: 120px; font-weight: 900; }
.detail { text-align: center; }
.detail img.big { width: 150px; height: 150px; object-fit: contain; }
.picker { display: flex; gap: 8px; flex-wrap: wrap; }
.picker .btn { min-width: 48px; }
