.treasure-theme .scene-content {
    padding-top: 18px;
    margin-bottom: -10px;
}

.treasure-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
}

.treasure-cards .treasure-panel {
    gap: 10px;
    width: auto;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
}

.treasure-cards .treasure-map {
    padding: 12px 6px;
}

.treasure-cards .treasure-map strong {
    font-size: 15px;
    text-align: center;
    overflow-wrap: anywhere;
}

.treasure-cards .treasure-map-icon {
    font-size: 40px;
}

.treasure-cards .treasure-timer {
    font-size: 22px;
}

.treasure-cards .treasure-action {
    width: 100%;
    min-width: 0;
    padding: 7px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.treasure-cards + #treasureResult {
    grid-column: 1 / -1;
}

.treasure-panel {
    display: grid;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid #b7844d42;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0, #c28b3e20, transparent 44%),
        linear-gradient(180deg, #15171c, #0e1219);
    box-shadow: inset 0 1px #ffffff0a;
}

.treasure-panel.locked {
    border-color: #c25b4d42;
    filter: saturate(0.65);
}

.treasure-panel.locked .treasure-map {
    opacity: 0.65;
}

.treasure-map {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 18px 12px;
    border: 1px solid #d2a35b35;
    border-radius: 12px;
    background: #0b0f15a8;
}

.treasure-map-icon {
    font-size: 48px;
    filter: drop-shadow(0 7px 12px #00000099);
}

.treasure-map strong {
    color: #f0d7a5;
    font-family: Georgia, serif;
    font-size: 19px;
}

.treasure-map small,
.treasure-status small {
    color: #8f99a6;
    font-size: 11px;
    text-align: center;
}

.treasure-status {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid #ffffff10;
    border-bottom: 1px solid #ffffff10;
}

.treasure-status span {
    color: #b7c0ca;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.treasure-timer {
    color: #f3c66f;
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    text-shadow: 0 0 18px #e29a3838;
}

.treasure-action {
    width: 100%;
    min-height: 48px;
    border: 1px solid #b68442;
    border-radius: 10px;
    color: #f6e2bd;
    background: linear-gradient(180deg, #50351f, #2c2119);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.treasure-action.ready {
    border-color: #68b891;
    background: linear-gradient(180deg, #24543e, #173326);
}

.treasure-action:disabled {
    cursor: default;
    opacity: 0.55;
}

.treasure-reward {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #67ad8245;
    border-radius: 10px;
    background: #122019b8;
    text-align: center;
}

.treasure-reward strong {
    color: #9ed3ae;
    font-size: 15px;
}

.treasure-reward span {
    color: #e8d7b9;
    font-size: 13px;
}

.treasure-error {
    color: #e19a91;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 560px) {
    .treasure-theme .scene-content {
        padding-top: 10px;
    }

    .treasure-panel {
        border-radius: 0;
        border-right: 0;
        border-left: 0;
    }

    .treasure-cards {
        gap: 8px;
    }

    .treasure-cards .treasure-panel {
        border: 1px solid #b7844d42;
        border-radius: 12px;
    }
}
