.property-img-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #050914;
    overflow: hidden;
}

.attempt-badge {
    position: absolute;
    top: max(3.8rem, calc(3rem + var(--safe-area-top, 0px)));
    right: max(12px, var(--safe-area-right, 0px));
    background: var(--primary);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 15;
    transition: background 0.3s ease;
}


.directional-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.directional-hint.hint-higher {
    background: rgba(255, 146, 43, 0.2);
    color: #ff922b;
    border: 1px solid rgba(255, 146, 43, 0.4);
}

.directional-hint.hint-lower {
    background: rgba(51, 154, 240, 0.2);
    color: #339af0;
    border: 1px solid rgba(51, 154, 240, 0.4);
}

.game-wrapper {
    padding-top: 1rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(1rem, 2vh, 1.5rem);
}

@media (hover: hover) and (pointer: fine) {
    .game-wrapper {
        padding-top: 4.5rem;
    }
}

.progress-badge {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .game-header {
        gap: 0.25rem;
    }
    .nav-back, .progress-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

}

.hint-slots-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hint-progress {
    margin: 0;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
}

.hint-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hint-slot {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.hint-slot[data-hint-state="locked"] {
    border-style: dashed;
    color: var(--text-muted);
}

.hint-slot-title {
    font-size: 0.7rem;
    font-weight: 700;
}

.hint-slot-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.hint-slot-status-unlocked {
    color: var(--primary);
}

.hint-slot-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hint-slot-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.hint-slot-detail .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

@media (max-width: 480px) {
    .hint-slots {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .hint-slot {
        gap: 0.25rem;
        padding: 0.45rem;
        text-align: left;
    }

    .hint-slot[data-hint-state="locked"] {
        align-items: center;
        justify-content: center;
    }

    .hint-slot[data-hint-state="locked"] .hint-slot-title {
        display: none;
    }

    .hint-slot-status {
        font-size: 0.65rem;
    }

    .hint-slot-details {
        gap: 0.25rem;
    }

    .hint-slot-detail {
        align-items: baseline;
        gap: 0.25rem;
    }

}
