.villager-render { box-sizing: border-box; padding: 12px; }
.villager-render img, .villager-render .anim-icon { width: 96px; height: 96px; }
@media (max-width: 640px) {
    .villager-render { width: 96px; height: 96px; padding: 10px; }
    .villager-render img, .villager-render .anim-icon { width: 76px; height: 76px; }
}

.anim-icon { position: relative; display: block; width: 38px; height: 38px; animation: icon-in 0.25s var(--ease); }
.anim-icon i { position: absolute; inset: 0; background: var(--strip) 0 0 / 100% calc(var(--frames) * 100%) no-repeat; image-rendering: pixelated; }

.content-bar { justify-content: space-between; margin-bottom: 14px; }
.content-count { font-size: 13px; color: var(--secondary); }
.content-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "render head" "body body"; align-items: center; row-gap: 12px; }
.content-card .villager-render { grid-area: render; }
.content-head { grid-area: head; display: grid; gap: 6px; min-width: 0; }
.content-head h3 { margin: 0; font-size: 19px; line-height: 1.25; overflow-wrap: break-word; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.content-head h3.is-long { font-size: 16px; }
.content-head h3.is-longer { font-size: 14px; }
.biomes li { line-height: 1.3; border-radius: 10px; }
.content-head .biomes li { white-space: nowrap; }
.content-id { font-family: var(--mono); font-size: 11px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-body { grid-area: body; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.content-recipe { justify-self: start; }
.tab-count { margin-left: 4px; font-size: 11px; color: var(--tertiary); }
.pack-icon-large { display: grid; place-items: center; }
.pack-icon-large img { width: 80px; height: 80px; image-rendering: pixelated; }
.recipe-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; }
.recipe-page { display: grid; justify-items: center; gap: 3px; min-width: 0; text-align: center; }
.recipe-page b { font-weight: 400; font-size: 14px; color: #3f3f3f; }
.recipe-page small { font-size: 11px; color: #6b6b6b; }

.mc-gui { --s: 2; --h: 78; position: relative; width: calc(176px * var(--s)); height: calc(var(--h) * 1px * var(--s)); image-rendering: pixelated; }
.mc-gui::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: calc(4px * var(--s)); background: var(--gui) 0 0 / calc(256px * var(--s)) calc(256px * var(--s)) no-repeat; }
.mc-gui::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(4px * var(--s)); background: var(--gui) 0 calc(-162px * var(--s)) / calc(256px * var(--s)) calc(256px * var(--s)) no-repeat; }
.mc-gui-title { position: absolute; font-family: "Minecraft Seven", var(--ui); font-size: calc(8px * var(--s)); line-height: 1; color: #404040; white-space: nowrap; }
.mc-gui-title[data-centred] { left: 0; right: 0; top: calc(6px * var(--s)); text-align: center; }
.mc-gui-slot { position: absolute; width: calc(16px * var(--s)); height: calc(16px * var(--s)); }
.mc-gui .slot { position: relative; display: block; width: 100%; height: 100%; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.mc-gui .slot img, .mc-gui .slot .anim-icon { width: 100%; height: 100%; }
.mc-gui .slot:hover { background: rgba(255, 255, 255, 0.45); }
.mc-gui .slot b { position: absolute; right: calc(-1px * var(--s)); bottom: calc(-2px * var(--s)); font-family: "Minecraft Seven", var(--ui); font-size: calc(8px * var(--s)); font-weight: 400; color: #fff; text-shadow: calc(1px * var(--s)) calc(1px * var(--s)) 0 #3f3f3f; }
.mc-gui-flame { position: absolute; width: calc(14px * var(--s)); height: calc(14px * var(--s)); background: var(--img) 0 0 / 100% 100% no-repeat; }
.mc-gui-arrow { position: absolute; width: calc(24px * var(--s)); height: calc(16px * var(--s)); background: var(--img) 0 0 / calc(24px * var(--s)) 100% no-repeat; animation: mc-cook var(--cook) steps(24, end) infinite; }
@keyframes mc-cook { from { width: 0; } to { width: calc(24px * var(--s)); } }
.mc-gui-choice { position: absolute; width: calc(16px * var(--s)); height: calc(18px * var(--s)); background: var(--img) 0 0 / 100% 100% no-repeat; }
.mc-gui-slot.is-framed { box-shadow: 0 0 0 calc(1px * var(--s)) #8b8b8b, calc(-1px * var(--s)) calc(-1px * var(--s)) 0 calc(1px * var(--s)) #373737, calc(1px * var(--s)) calc(1px * var(--s)) 0 calc(1px * var(--s)) #fff; background: #8b8b8b; }
.mc-gui-brew { position: absolute; width: calc(9px * var(--s)); height: calc(28px * var(--s)); background: var(--img) 0 0 / 100% calc(28px * var(--s)) no-repeat; animation: mc-brew 20s steps(28, end) infinite; }
.mc-gui-bubbles { position: absolute; width: calc(12px * var(--s)); height: calc(29px * var(--s)); background: var(--img) 0 100% / 100% calc(29px * var(--s)) no-repeat; animation: mc-bubbles 0.7s steps(1, end) infinite; }
.mc-gui-fuel-bar { position: absolute; width: calc(18px * var(--s)); height: calc(4px * var(--s)); background: var(--img) 0 0 / 100% 100% no-repeat; }
@keyframes mc-brew { from { height: 0; } to { height: calc(28px * var(--s)); } }
@keyframes mc-bubbles { 0% { clip-path: inset(0 0 0 0); } 14% { clip-path: inset(17% 0 0 0); } 28% { clip-path: inset(31% 0 0 0); } 43% { clip-path: inset(45% 0 0 0); } 57% { clip-path: inset(62% 0 0 0); } 71% { clip-path: inset(79% 0 0 0); } 86% { clip-path: inset(100% 0 0 0); } }
.mc-gui-note.is-brewing { left: calc(124px * var(--s)); top: calc(58px * var(--s)); }
.mc-gui-note { position: absolute; left: calc(80px * var(--s)); top: calc(57px * var(--s)); line-height: 1; font-family: "Minecraft Seven", var(--ui); font-size: calc(7px * var(--s)); color: #404040; }
.recipe-dialog .recipe-panel { max-width: calc(100vw - 24px); box-sizing: border-box; }
@media (max-width: 420px) { .mc-gui { --s: 1.75; } }
@media (max-width: 360px) { .mc-gui { --s: 1.5; } }

.content-props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.content-props .is-wide { grid-column: 1 / -1; }
.content-props div { min-width: 0; }
.content-props dt { font-size: 10.5px; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.content-props dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }

.pack-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
.pack-card-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pack-card .pack-icon { width: 60px; height: 60px; border-radius: 12px; display: grid; place-items: center; }
.pack-card .pack-icon img, .pack-card .pack-icon .anim-icon { width: 100%; height: 100%; }
.pack-title { display: grid; gap: 4px; min-width: 0; }
.pack-title strong { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
.pack-title span { font-size: 13px; color: var(--secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-desc { font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--text) 82%, var(--secondary)); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.pack-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 2px; }
.pack-tags span { padding: 3px 10px; border-radius: 999px; background: var(--fill-2); color: var(--secondary); font-size: 12px; white-space: nowrap; }
.pack-tags b { font-weight: 400; color: var(--text); }
