/* My coins: server artwork, consistent card heights and anchored actions. */
.rh-coin-page {
    width: min(1120px, calc(100% - 48px));
    margin: 48px auto 64px;
}

.rh-coin-page .rh-vote-back {
    margin-bottom: 24px;
}

.rh-coin-intro {
    align-items: end;
    margin-bottom: 26px;
}

.rh-coin-intro h1 {
    margin-bottom: 10px;
}

.rh-coin-server-count {
    flex-shrink: 0;
    padding-bottom: 3px;
    color: var(--vote-muted);
    font-size: 13px;
}

.rh-coin-wallets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 22px;
}

.rh-coin-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #29373e;
    border-radius: 12px;
    background: #0e171c;
}

.rh-coin-card:focus-within {
    border-color: #ba4c32;
}

.rh-coin-art {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-bottom: 1px solid #263239;
    background: #101b21;
}

.rh-coin-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 8, 11, .25), transparent 42%, rgba(9, 16, 20, .25));
    pointer-events: none;
    content: "";
}

.rh-coin-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rh-coin-badge {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #3a444c;
    border-radius: 6px;
    background: rgba(7, 13, 17, .93);
    color: #d0dae0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.rh-coin-badge.is-ready {
    border-color: #285841;
    color: #9fe8bd;
}

.rh-coin-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8d9ca5;
}

.is-ready .rh-coin-badge-dot {
    background: #42dc94;
}

.rh-coin-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 22px;
}

.rh-coin-page .rh-coin-title {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    color: #f4f7f8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.2px;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rh-coin-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 18px 0;
    border-top: 1px solid #26343c;
    border-bottom: 1px solid #26343c;
}

.rh-coin-balance-label {
    display: block;
    margin-bottom: 5px;
    color: #a0b0ba;
    font-size: 12px;
}

.rh-coin-balance-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.rh-coin-balance-value strong {
    color: #f7f9fa;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.rh-coin-balance-value span {
    color: #a0b0ba;
    font-size: 13px;
}

.rh-coin-symbol {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #ff6844;
    stroke: currentColor;
    stroke-width: 1.5;
}

.rh-coin-actions {
    display: grid;
    gap: 9px;
    margin-top: auto;
}

.rh-coin-actions .rh-vote-button {
    width: 100%;
    min-height: 44px;
    padding: 12px 10px;
}

.rh-coin-actions .primary {
    position: relative;
}

.rh-coin-actions .primary > span {
    position: absolute;
    right: 16px;
    font-size: 17px;
    line-height: 1;
}

.rh-coin-actions .secondary {
    background: #101c22;
}

.rh-coin-actions .rh-coin-unavailable {
    border-color: #26343c;
    background: #10171b;
    color: #9aaab4;
    cursor: default;
}

.rh-coin-page .rh-vote-footnote {
    margin-top: 26px !important;
    padding-top: 20px;
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .rh-coin-wallets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .rh-coin-page {
        width: calc(100% - 32px);
        margin-top: 28px;
    }

    .rh-coin-intro {
        flex-wrap: wrap;
        align-items: start;
        gap: 12px;
    }

    .rh-coin-server-count {
        width: 100%;
    }

    .rh-coin-wallets {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .rh-coin-card-body {
        padding: 20px;
    }

    .rh-coin-balance-value strong {
        font-size: 34px;
    }
}
