.guide-shell {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 18px;
    padding-bottom: 14px;
    position: relative;
    isolation: isolate;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", sans-serif;
    color: #f6f0e6;
    background: radial-gradient(140% 120% at 10% -10%, rgba(140, 110, 70, 0.2), transparent 55%),
        radial-gradient(120% 120% at 90% 0%, rgba(100, 80, 50, 0.16), transparent 60%), rgba(12, 10, 8, 0.45);
    border: 1px solid rgba(120, 95, 70, 0.4);

    --guide-accent: #d4a168;
    --guide-border: rgba(120, 95, 70, 0.65);
    --guide-border-strong: rgba(212, 161, 104, 0.9);
    --guide-surface: rgba(24, 20, 16, 0.96);
    --guide-surface-2: rgba(12, 10, 8, 0.8);
    --guide-shadow: rgba(0, 0, 0, 0.45);
    --guide-title-font: "Ma Shan Zheng", "Caveat", "KaiTi", "STKaiti", ui-serif, "Songti SC", serif;
}

.guide-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%23fff' fill-opacity='0.055'%3E%3Ccircle cx='7' cy='12' r='1'/%3E%3Ccircle cx='22' cy='18' r='1'/%3E%3Ccircle cx='41' cy='9' r='1'/%3E%3Ccircle cx='63' cy='14' r='1'/%3E%3Ccircle cx='80' cy='7' r='1'/%3E%3Ccircle cx='92' cy='20' r='1'/%3E%3Ccircle cx='14' cy='33' r='1'/%3E%3Ccircle cx='36' cy='28' r='1'/%3E%3Ccircle cx='55' cy='36' r='1'/%3E%3Ccircle cx='76' cy='32' r='1'/%3E%3Ccircle cx='88' cy='41' r='1'/%3E%3Ccircle cx='9' cy='52' r='1'/%3E%3Ccircle cx='27' cy='58' r='1'/%3E%3Ccircle cx='47' cy='49' r='1'/%3E%3Ccircle cx='69' cy='55' r='1'/%3E%3Ccircle cx='85' cy='63' r='1'/%3E%3Ccircle cx='4' cy='74' r='1'/%3E%3Ccircle cx='21' cy='82' r='1'/%3E%3Ccircle cx='44' cy='78' r='1'/%3E%3Ccircle cx='64' cy='86' r='1'/%3E%3Ccircle cx='82' cy='78' r='1'/%3E%3Ccircle cx='93' cy='90' r='1'/%3E%3C/g%3E%3Cg fill='%23000' fill-opacity='0.05'%3E%3Ccircle cx='12' cy='6' r='1'/%3E%3Ccircle cx='31' cy='14' r='1'/%3E%3Ccircle cx='52' cy='20' r='1'/%3E%3Ccircle cx='71' cy='10' r='1'/%3E%3Ccircle cx='90' cy='29' r='1'/%3E%3Ccircle cx='6' cy='40' r='1'/%3E%3Ccircle cx='25' cy='44' r='1'/%3E%3Ccircle cx='46' cy='39' r='1'/%3E%3Ccircle cx='66' cy='44' r='1'/%3E%3Ccircle cx='83' cy='46' r='1'/%3E%3Ccircle cx='18' cy='66' r='1'/%3E%3Ccircle cx='38' cy='62' r='1'/%3E%3Ccircle cx='58' cy='70' r='1'/%3E%3Ccircle cx='78' cy='68' r='1'/%3E%3Ccircle cx='92' cy='72' r='1'/%3E%3Ccircle cx='10' cy='92' r='1'/%3E%3Ccircle cx='33' cy='88' r='1'/%3E%3Ccircle cx='56' cy='92' r='1'/%3E%3Ccircle cx='74' cy='90' r='1'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
    opacity: 0.12;
    mix-blend-mode: soft-light;
    filter: blur(0.1px);
}

.guide-hero {
    padding: 34px 16px 14px;
    border-bottom: 1px solid rgba(85, 85, 85, 0.55);
}

.guide-hero h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    font-family: var(--guide-title-font);
    font-weight: 700;
}

.guide-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.guide-subtitle {
    margin: 8px 0 0;
    opacity: 0.95;
    line-height: 1.45;
}

.guide-back {
    padding: 8px 10px;
    min-height: 36px;
}

.guide-card {
    position: relative;
    border-radius: 10px;
    border: 2px solid rgba(95, 75, 52, 0.9);
    background: var(--guide-surface);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 12px;
    overflow: hidden;
    margin: 12px 16px;
}

.guide-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    opacity: 0.55;
    transform: translate(0.6px, -0.4px);
}

.guide-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
    font-family: var(--guide-title-font);
}

.guide-card-title::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(212, 161, 104, 0.18);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.guide-tile {
    display: block;
    border: 1px solid rgba(120, 95, 70, 0.65);
    border-radius: 12px;
    padding: 12px;
    background: rgba(8, 6, 5, 0.68);
    color: inherit;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-tile:hover {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(24, 18, 14, 0.7);
    transform: translateY(-1px) rotate(0.25deg);
}

.guide-tile-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.guide-tile-body {
    opacity: 0.9;
    line-height: 1.4;
}

.guide-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-controls-left,
.guide-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-inline-label {
    opacity: 0.9;
    font-weight: 600;
}

.guide-search,
.guide-select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(120, 95, 70, 0.75);
    background: rgba(8, 6, 5, 0.85);
    color: inherit;
    min-height: 40px;
}

.guide-search:focus,
.guide-select:focus {
    outline: none;
    border-color: rgba(212, 161, 104, 0.9);
    box-shadow: 0 0 0 2px rgba(212, 161, 104, 0.18);
}

.guide-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.guide-filter {
    border: 1px solid rgba(120, 95, 70, 0.65);
    background: rgba(0, 0, 0, 0.45);
    color: inherit;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.1;
    transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.guide-filter:hover {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(51, 38, 26, 0.55);
    transform: translateY(-1px);
}

.guide-filter[data-active="1"] {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(212, 161, 104, 0.12);
}

.guide-results-meta {
    margin-top: 10px;
    opacity: 0.88;
    font-size: 13px;
}

.btn-secondary {
    padding: 10px 12px;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(120, 95, 70, 0.75);
    background: rgba(8, 6, 5, 0.85);
    color: inherit;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(24, 18, 14, 0.7);
    transform: translateY(-1px);
}

.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 95, 70, 0.65);
    background: rgba(0, 0, 0, 0.45);
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}

.tool-chip:hover {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(51, 38, 26, 0.55);
    transform: translateY(-1px);
}

.tool-chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(120, 95, 70, 0.7);
    background: rgba(0, 0, 0, 0.35);
    object-fit: cover;
    flex: 0 0 auto;
}

.enemy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.enemy-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.enemy-card {
    border: 1px solid rgba(120, 95, 70, 0.55);
    border-radius: 14px;
    background: rgba(8, 6, 5, 0.55);
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.14s ease, border-color 0.2s ease, background 0.2s ease;
}

.enemy-card:hover {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(24, 18, 14, 0.66);
    transform: translateY(-1px) rotate(0.25deg);
}

.enemy-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.enemy-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.enemy-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(120, 95, 70, 0.7);
    background: rgba(0, 0, 0, 0.35);
    object-fit: cover;
    flex: 0 0 auto;
}

.enemy-name {
    font-weight: 800;
    line-height: 1.15;
}

.enemy-id {
    opacity: 0.75;
    font-size: 12px;
    margin-top: 2px;
}

.enemy-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.enemy-action {
    padding: 6px 8px;
    min-height: 32px;
    border-radius: 10px;
}

.enemy-action.is-active {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(212, 161, 104, 0.12);
}

.enemy-desc {
    margin-top: 10px;
    opacity: 0.92;
    line-height: 1.35;
    font-size: 13px;
    min-height: 2.3em;
}

.enemy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.enemy-badge {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid rgba(120, 95, 70, 0.55);
    background: rgba(0, 0, 0, 0.35);
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
}

.enemy-badge strong {
    color: rgba(212, 161, 104, 0.95);
    font-weight: 800;
}

.enemy-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    opacity: 0.92;
    font-size: 12px;
}

.enemy-meta-pill {
    border: 1px dashed rgba(212, 161, 104, 0.38);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(212, 161, 104, 0.08);
}

.enemy-section {
    margin-top: 10px;
}

.enemy-section-title {
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 6px;
    font-size: 13px;
}

.enemy-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.recipe-card {
    border: 1px solid rgba(120, 95, 70, 0.55);
    border-radius: 14px;
    background: rgba(8, 6, 5, 0.55);
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.14s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.recipe-card:hover {
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(24, 18, 14, 0.66);
    transform: translateY(-1px) rotate(0.25deg);
}

.recipe-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.recipe-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.recipe-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(120, 95, 70, 0.7);
    background: rgba(0, 0, 0, 0.35);
    object-fit: cover;
    flex: 0 0 auto;
}

.recipe-name {
    font-weight: 800;
    line-height: 1.15;
}

.recipe-id {
    opacity: 0.75;
    font-size: 12px;
    margin-top: 2px;
}

.recipe-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.recipe-desc {
    margin-top: 10px;
    opacity: 0.92;
    line-height: 1.35;
    font-size: 13px;
}

.recipe-pattern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.recipe-pattern--compact {
    gap: 8px;
    margin-top: 8px;
}

.recipe-slot {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
}

.recipe-slot--compact {
    width: 40px;
    height: 40px;
}

.frame-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ingredient-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.ingredient-img--choice {
    width: 62%;
    height: 62%;
    transform: translate(-50%, -50%);
}

.ingredient-img--choice-0 {
    top: 52%;
    left: 32%;
}

.ingredient-img--choice-1 {
    top: 52%;
    left: 68%;
}

.ingredient-img--choice-2 {
    top: 74%;
    left: 50%;
    width: 54%;
    height: 54%;
}

.recipe-slot-badge {
    position: absolute;
    right: 3px;
    bottom: 3px;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid rgba(212, 161, 104, 0.55);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.donot-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.82;
}

.recipe-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.recipe-stat {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid rgba(120, 95, 70, 0.55);
    background: rgba(0, 0, 0, 0.35);
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.recipe-stat strong {
    font-weight: 800;
}

.recipe-stat--hp strong {
    color: rgba(255, 120, 120, 0.95);
}

.recipe-stat--hunger strong {
    color: rgba(244, 193, 84, 0.95);
}

.recipe-stat--sanity strong {
    color: rgba(167, 140, 255, 0.95);
}

.recipe-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    opacity: 0.92;
    font-size: 12px;
}

.recipe-pill {
    border: 1px dashed rgba(212, 161, 104, 0.38);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(212, 161, 104, 0.08);
}

.recipe-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 95, 70, 0.65);
    background: rgba(0, 0, 0, 0.45);
    font-size: 13px;
    line-height: 1.2;
}

.recipe-tag-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(120, 95, 70, 0.7);
    background: rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.recipe-tag-meta {
    opacity: 0.82;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.recipe-raw {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(120, 95, 70, 0.45);
    background: rgba(0, 0, 0, 0.25);
    overflow: auto;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.95;
}

.recipe-error {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(212, 161, 104, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.recipe-ingredients-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.recipe-ingredients-container {
    display: none;
    margin-top: 10px;
    border: 1px solid rgba(120, 95, 70, 0.55);
    border-radius: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.recipe-ingredients-container.is-active {
    display: block;
}

.recipe-ingredient-search {
    width: 100%;
    margin-bottom: 10px;
}

.recipe-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.recipe-ingredient-item {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(120, 95, 70, 0.55);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
}

.recipe-ingredient-item:hover {
    transform: translateY(-1px) rotate(0.25deg);
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(24, 18, 14, 0.5);
}

.recipe-ingredient-item.is-selected {
    border-color: rgba(212, 161, 104, 0.95);
    background: rgba(212, 161, 104, 0.12);
}

.recipe-ingredient-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.recipe-ingredient-item span {
    font-size: 12px;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    margin-top: 4px;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .recipe-ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .recipe-ingredient-item {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .recipe-ingredient-item img {
        width: 30px;
        height: 30px;
    }

    .recipe-ingredient-item span {
        font-size: 10px;
    }
}

.guide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1090;
}

.guide-overlay.is-active {
    display: block;
}

.recipe-details {
    display: none;
    position: fixed;
    top: 100px;
    right: 40px;
    width: 360px;
    max-height: calc(100vh - 160px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 2px solid rgba(212, 161, 104, 0.55);
    background: radial-gradient(120% 120% at 10% 0%, rgba(140, 110, 70, 0.22), transparent 55%),
        rgba(18, 14, 12, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
    padding: 14px 14px 16px;
    z-index: 1091;
}

.recipe-details.is-active {
    display: block;
}

.recipe-details-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 28px;
}

.recipe-details-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(120, 95, 70, 0.7);
    background: rgba(0, 0, 0, 0.35);
    object-fit: cover;
    flex: 0 0 auto;
}

.recipe-details-title {
    font-family: var(--guide-title-font);
    font-weight: 900;
    font-size: 20px;
    line-height: 1.05;
}

.recipe-details-sub {
    opacity: 0.8;
    font-size: 12px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recipe-details-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(120, 95, 70, 0.75);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.14s ease, border-color 0.2s ease, background 0.2s ease;
}

.recipe-details-close:hover {
    transform: scale(1.06);
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(24, 18, 14, 0.66);
}

.recipe-details-section {
    margin-top: 12px;
}

.recipe-details-section-title {
    font-weight: 800;
    opacity: 0.92;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: var(--guide-title-font);
}

.recipe-details-actions {
    margin-top: 12px;
}

.recipe-details-notes-title {
    font-weight: 800;
    opacity: 0.92;
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: var(--guide-title-font);
}

.recipe-details-notes-body {
    border: 1px solid rgba(120, 95, 70, 0.45);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .recipe-details {
        width: min(calc(100vw - 32px), 380px);
        max-height: 85vh;
        right: auto;
    }
}

.guide-kv {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 720px) {
    .guide-kv {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.guide-kv-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(120, 95, 70, 0.4);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
}

.guide-kv-row dt {
    opacity: 0.9;
    font-weight: 650;
}

.guide-kv-row dd {
    margin: 0;
    font-weight: 800;
    color: rgba(212, 161, 104, 0.95);
}

.guide-timer {
    border: 1px solid rgba(120, 95, 70, 0.4);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
}

.guide-timer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-timer-title {
    font-weight: 800;
    font-family: var(--guide-title-font);
}

.guide-timer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-timer-actions .btn-secondary {
    min-height: 34px;
    padding: 8px 10px;
}

.guide-timer-readout {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.95;
}

.guide-timer-value {
    font-weight: 900;
    color: rgba(212, 161, 104, 0.95);
    font-variant-numeric: tabular-nums;
}

.guide-timer-bar {
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(120, 95, 70, 0.5);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin-top: 8px;
}

.guide-timer-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(212, 161, 104, 0.9), rgba(212, 161, 104, 0.3));
    transition: width 0.15s linear;
}

.guide-timer.is-done .guide-timer-bar-fill {
    width: 0%;
}

.guide-details {
    border: 1px solid rgba(120, 95, 70, 0.45);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.22);
}

.guide-details summary {
    cursor: pointer;
    font-weight: 800;
    font-family: var(--guide-title-font);
    list-style: none;
}

.guide-details summary::-webkit-details-marker {
    display: none;
}

.guide-details summary::after {
    content: "▾";
    float: right;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.guide-details[open] summary::after {
    transform: rotate(180deg);
}

.guide-details-body {
    margin-top: 10px;
    opacity: 0.95;
    line-height: 1.55;
}

.guide-list {
    margin: 0;
    padding-left: 18px;
}

.guide-list li {
    margin: 6px 0;
}

.enemy-modal[hidden] {
    display: none;
}

.enemy-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 12px;
}

.enemy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.enemy-modal-panel {
    position: relative;
    width: min(960px, 100%);
    max-height: min(92vh, 880px);
    overflow: auto;
    border-radius: 16px;
    border: 2px solid rgba(212, 161, 104, 0.55);
    background: radial-gradient(120% 120% at 10% 0%, rgba(140, 110, 70, 0.24), transparent 55%),
        rgba(24, 20, 16, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

.enemy-modal-header {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(120, 95, 70, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.enemy-modal-title {
    margin: 0;
    font-family: var(--guide-title-font);
    font-weight: 800;
    font-size: 22px;
}

.enemy-modal-sub {
    opacity: 0.8;
    font-size: 13px;
    margin-top: 4px;
}

.enemy-modal-body {
    padding: 12px 14px 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 980px) {
    .enemy-modal-body {
        grid-template-columns: 320px 1fr;
        align-items: start;
    }
}

.enemy-modal-media {
    border: 1px solid rgba(120, 95, 70, 0.55);
    border-radius: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.28);
}

.enemy-modal-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(120, 95, 70, 0.65);
    background: rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.enemy-modal-section {
    border: 1px solid rgba(120, 95, 70, 0.45);
    border-radius: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.enemy-modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-family: var(--guide-title-font);
    margin-bottom: 8px;
}

.enemy-modal-section-title::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(212, 161, 104, 0.18);
}

.enemy-drop {
    border: 1px solid rgba(120, 95, 70, 0.45);
    border-radius: 14px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.enemy-drop + .enemy-drop {
    margin-top: 8px;
}

.enemy-drop-uses {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    opacity: 0.95;
    font-size: 13px;
}

.enemy-drop-uses-label {
    opacity: 0.8;
    font-weight: 650;
}

.guide-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.guide-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(212, 161, 104, 0.6);
    background: rgba(8, 6, 5, 0.8);
    color: inherit;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-to-top:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 161, 104, 0.9);
    background: rgba(24, 18, 14, 0.75);
}

.guide-to-top[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .guide-card {
        margin: 12px 10px;
    }

    .guide-hero {
        padding: 28px 12px 12px;
    }

    .guide-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-to-top {
        right: 12px;
        bottom: 12px;
    }
}
