:root {
    color-scheme: light dark;
}

body {
    font-family: system-ui, Arial, sans-serif;
    margin: 0;
    padding: 16px;
}

.card {
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.horizontal-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.vertical-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
}

.vertical-flex button {
    text-align: left;
}

.buyBtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
}

.price {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stars {
    font-weight: bold;
}

.coins {
    font-size: 0.9em;
    opacity: 0.8;
}

button {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(127, 127, 127, .35);
    background: transparent;
    cursor: pointer;
    margin-right: 8px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

button:hover {
    background: rgba(255, 215, 0, 0.08);
    /* soft gold */
    border-color: rgba(255, 215, 0, 0.6);
}

button:active {
    transform: scale(0.98);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
}

button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35);
}

pre {
    overflow: auto;
    padding: 10px;
    border-radius: 10px;
    background: rgba(127, 127, 127, .12);
    margin: 0;
}

.row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#debugLog {
    max-height: 220px;
    overflow-y: auto;
    font-size: 12px;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, .08);
}