@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,600,900");

:root {
    --panel: rgba(45, 45, 48, 0.9);
    --panel-light: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.18);
    --accent: #9b30ff;
    --accent-bright: #b968ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    animation: profiles-background 60s linear infinite;
    background: #211d28 url("../../images/profiles/bg.jpg") bottom left / auto 100% repeat-x fixed;
    color: #fff;
    font-family: "Source Sans Pro", sans-serif;
    line-height: 1.5;
    padding: 32px 20px;
    position: relative;
}

@keyframes profiles-background {
    from {
        background-position: 0 100%;
    }

    to {
        background-position: -2250px 100%;
    }
}

body::before {
    background: rgba(19, 12, 27, 0.56);
    content: "";
    inset: 0;
    position: fixed;
    z-index: -1;
}

.profiles-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42), 0 0 32px rgba(155, 48, 255, 0.18);
    margin: 0 auto;
    max-width: 900px;
    padding: 34px;
}

.profiles-panel h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 10px rgba(155, 48, 255, 0.85), 0 0 28px rgba(155, 48, 255, 0.45);
}

.profiles-panel > p {
    color: rgba(255, 255, 255, 0.78);
    margin: 12px auto 28px;
    max-width: 560px;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 620px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: 15px 18px;
    text-align: left;
}

th {
    background: var(--panel-light);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.icon-cell {
    width: 80px;
}

.game-icon {
    display: block;
    height: 48px;
    object-fit: contain;
    width: 48px;
}

.steam-icon {
    transform: scale(0.9);
}

.discord-icon {
    transform: scale(0.88);
}

.tarkov-icon {
    transform: scale(0.98);
}

.pokemon-icon {
    transform: scale(0.96);
}

.profile-link {
    color: var(--accent-bright);
    text-decoration: none;
}

.profile-link:hover,
.profile-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: rgba(155, 48, 255, 0.14);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.copy-button {
    background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 76px;
    padding: 8px 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.copy-button:hover,
.copy-button:focus-visible {
    background: var(--accent-bright);
}

.copy-button:active {
    transform: translateY(1px);
}

.back-link {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    margin: 24px auto 0;
    text-align: center;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: #fff;
}

#copied-notification {
    background: #4caf50;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    color: #fff;
    opacity: 0;
    padding: 8px 14px;
    pointer-events: none;
    position: absolute;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

#copied-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 680px) {
    body {
        padding: 16px 10px;
    }

    .profiles-panel {
        padding: 24px 14px;
    }

    th,
    td {
        padding: 12px 10px;
    }
}
