body.cards-has-shell {
    padding-top: 0;
}

.cards-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 1rem;
    padding: 0.6rem 1.25rem;
    background-color: #080808;
    border-bottom: 3px solid #00ff00;
    box-shadow: 0 0 15px #00ff0044;
    position: sticky;
    top: 0;
    z-index: 50;
    font-size: 85%;
}

.cards-topbar-brand {
    font-size: 115%;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    text-decoration: none;
    white-space: nowrap;
}

.cards-topbar-brand:hover {
    color: #00ff88;
    text-decoration: none;
}

.cards-topbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cards-topbar-nav a {
    color: #00ff00;
    text-decoration: none;
    font-size: 95%;
}

.cards-topbar-nav a:hover {
    color: #00cc66;
    text-shadow: 0 0 8px #00cc66;
    text-decoration: none;
}

.cards-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.cards-topbar-username {
    color: #00cc66;
    font-size: 90%;
}

.cards-topbar-username.guest {
    color: #668866;
    font-style: italic;
}

.cards-topbar-btn {
    cursor: pointer;
    font-family: inherit;
    font-size: 90%;
    padding: 0.35rem 0.85rem;
    color: #00ff00;
    background: #0a0a0a;
    border: 2px solid #00aa44;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cards-topbar-btn:hover {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
    box-shadow: 0 0 12px #00ff00;
}

.cards-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    box-sizing: border-box;
}

.cards-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.cards-modal.hidden {
    display: none;
}

.cards-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.cards-modal-panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 0;
    z-index: 1;
}

.cards-modal-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 140%;
    text-align: center;
}

.cards-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #00aa44;
    font-size: 150%;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.cards-modal-close:hover {
    color: #ff4444;
}

.cards-modal-hint {
    text-align: center;
    font-size: 85%;
    color: #ffaa44;
    margin: 0 0 1rem;
    min-height: 1.1rem;
}

.cards-modal-hint:empty {
    display: none;
}

@media (max-width: 600px) {
    .cards-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .cards-topbar-user {
        margin-left: 0;
        justify-content: space-between;
    }
}