#daily { display: none !important; }
.world-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; align-items: stretch; text-align: center; }
#world-info { font-size: 17px; font-weight: 900; }
.world-card .btn { width: 100%; }
.craft-box { gap: 8px; padding: 10px; max-height: calc(100% - 24px); }
.craft-top { display: flex; gap: 6px; align-items: center; }
#craft-tabs { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
/* tabs take their label's width (long English labels get more room), shrinking with an ellipsis only on tiny screens */
#craft-tabs .tab { flex: 1 1 auto; min-width: 0; padding: 6px 3px; font-size: 15px; min-height: 44px; background: #e8e1cf; box-shadow: 2px 2px 0 #111; border-width: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#craft-tabs .tab.on { background: #ffd23f; transform: translateY(-2px); }
@media (max-width: 380px) { #craft-tabs .tab { font-size: 13px; padding: 6px 2px; } }
.xbtn { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; font-size: 20px; background: #ff3b3b; color: #fff; }
#recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; min-height: 88px; background: #fff; box-shadow: 3px 3px 0 #111; border-width: 3px; }
.tile .ticon { width: 44px; height: 44px; object-fit: contain; display: block; }
.emo { display: inline-flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; }
.tile .tname { font-size: 13px; line-height: 1.15; font-weight: 900; text-align: center; }
.tile.cant { background: #efe8d6; }
.tile.lock { background: #d6d0c2; }
.tile.lock .ticon { filter: grayscale(1); opacity: .55; }
.tile.own { background: #d9ffd9; }
.tile.sel { outline: 4px solid #ff3b3b; outline-offset: 1px; }
.tile .badge { position: absolute; top: 2px; right: 4px; font-size: 14px; }
.tile .count { position: absolute; top: 2px; left: 4px; font-size: 13px; font-weight: 900; background: #111; color: #fff; border-radius: 8px; padding: 0 5px; }
#craft-detail { background: #fff; border: 3px solid #111; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.cd-row { display: flex; gap: 10px; align-items: center; }
#cd-icon { width: 52px; height: 52px; object-fit: contain; flex: 0 0 52px; display: block; }
span#cd-icon { font-size: 38px; }
.cd-txt { min-width: 0; }
#cd-name { font-size: 19px; font-weight: 900; }
#cd-desc { font-size: 14px; font-weight: 600; color: #444; line-height: 1.3; }
#cd-cost { display: flex; flex-wrap: wrap; gap: 10px; }
#cd-cost span { display: inline-flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 900; }
#cd-cost span.lack { color: #d61f1f; }
#cd-cost img, #cd-cost canvas { width: 26px; height: 26px; }
#cd-cost .emo { font-size: 20px; }
#cd-lock { font-size: 14px; font-weight: 900; color: #c0262c; min-height: 0; }
#cd-lock.ok { color: #2b8a3e; }
#cd-lock:empty { display: none; }
#cd-go { width: 100%; }
/* voice subtitles: in play between the hero and the touch buttons; under the panel when one is open */
#subtitle { top: auto; bottom: 30%; }
#results.show ~ #subtitle, #craft.show ~ #subtitle, #help.show ~ #subtitle { top: auto; bottom: 2%; }
/* the how-to text got longer with the seasons: let it scroll inside its panel on short screens */
#help .modal-box { max-height: calc(100% - 24px); display: flex; flex-direction: column; }
#help .modal-box p { overflow-y: auto; min-height: 0; flex: 1 1 auto; white-space: pre-line; }
