*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
    --font-color: #dbdbdb;
}

body {
    font-family: "M PLUS 1", sans-serif;
    background: linear-gradient(135deg, rgb(45, 50, 83) 0%, rgb(63, 38, 64) 100%) fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; 
    gap: 24px;
    max-width: 1100px;
    width: 100%;
    height: fit-content;
    grid-template-areas: 
        "links card-a"
        "links card-b";
    z-index: 2;
    margin: auto;
    padding: 24px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.left-links {
    grid-area: links;
}

.right-card-a {
    grid-area: card-a;
}

.right-card-b {
    grid-area: card-b;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar img {
    height: 100px;
    width: 100%;
    object-fit: contain;
}

.profile h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--font-color);
}

.links-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.1s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.icons {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.x-link .icons { background: #000; }
.honi-club-link .icons { background: rgb(119, 181, 140); }
.misskey-link .icons { background: rgb(134, 179, 0); }
.discord-link .icons { background: #5865F2; }
.steam-link .icons { background: #1b2838; }
.custom-link .icons { background: #757575; }
.cosense-link .icons { background: #ffb300; }
.pixiv-link .icons { background: #0096fa; }

.link-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--font-color);
}

.link-id {
    font-size: 0.9rem;
    color: #bbb;
}

.container p {
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--font-color);
}

.footer {
    width: 100%;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffffa1;
}

@media (max-width: 960px) {
    .wrapper {
        display: flex;
        flex-direction: column; 
        gap: 24px;
    }
    
    .container {
        flex: 1 1 auto; 
    }

    .moving-image {
        width: 200px !important;
        height: 200px !important;
    }
}


/* 動く背景画像の設定 (DVDロゴ風 - ランダムバウンス) */
.moving-image {
    position: fixed; 
    top: 0; 
    left: 0;
    width: auto; 
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2; 
    z-index: -1; 
    pointer-events: none;
    will-change: transform;
}

.first-image {
    background-image: url('https://media.honi.club/files/fec3ead4-17c5-4133-9e53-754043785af8.png'); 
}

.second-image {
    background-image: url('https://media.honi.club/files/45cdb841-31ad-47e3-a99e-ea33c9b948f8.png'); 
}