
.level-rules-screen {
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(13, 9, 6, 0.82);
    box-sizing: border-box;
}

.level-rules-screen.d-none {
    display: none;
}

.level-rules-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 12px;
    box-sizing: border-box;
    text-align: center;
    color: #fff4d6;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.level-rules-card h2,
.level-rules-card p {
    display: none;
}

.level-rules-image {
    display: block;
    width: auto;
    height: 75%;
    max-width: 100%;
    max-height: 75%;
    object-fit: contain;
    flex: 0 1 auto;
}

.level-action-button {
    flex: 0 0 auto;
    font-family: 'Rye', cursive, sans-serif;
    padding: 10px 30px;
    font-size: clamp(13px, 3.5vh, 20px);
    letter-spacing: 1.5px;
    color: white;
    background: linear-gradient(180deg, #ff9800, #e65100);
    border: 3px solid #fff;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease;
}

#levelRulesStartBtn,
#sombreroRewardScreen .level-action-button {
    margin-top: 10px;
    color: #fff1cf;
    background:
        repeating-linear-gradient(0deg, transparent 0 11px, rgba(70, 30, 10, 0.18) 12px 14px, transparent 15px 24px),
        linear-gradient(180deg, #df943f 0%, #b96729 48%, #854019 100%);
    border: 4px solid #54270f;
    border-radius: 14px;
    box-shadow: inset 0 3px 0 #f4b760, inset 0 -4px 0 #622d13, 0 5px 0 #351808;
    font-weight: 800;
    text-shadow: 2px 2px 0 #4b220d;
    transition: filter 0.2s ease, transform 0.15s ease;
}

#levelRulesStartBtn:hover,
#sombreroRewardScreen .level-action-button:hover {
    filter: brightness(1.12);
    transform: scale(1.05);
}

#levelRulesStartBtn:active,
#sombreroRewardScreen .level-action-button:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}

.level-action-button:hover {
    transform: scale(1.05);
}

.level-action-button:active {
    transform: scale(0.98);
}

#levelRulesStartBtn:disabled {
    opacity: 0.55;
    cursor: wait;
}

#sombreroRewardScreen {
    z-index: 30;
    padding: 12px;
    box-sizing: border-box;
    background: rgba(13, 9, 6, 0.82);
}

#sombreroRewardScreen .level-rules-card {
    gap: 10px;
}

#sombreroRewardImage {
    width: auto;
    height: 75%;
    max-width: 100%;
    max-height: 75%;
    margin: 0;
    object-fit: contain;
    filter: none;
}
