* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://raw.githubusercontent.com/shortalt020-sketch/DISCord-background-wrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrfaszfaszawrfaszwrfaszwfraz/refs/heads/main/tttttttttttttttttttt.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.38; /* 1 - 0.62 = 0.38 visibility */
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62);
    z-index: -1;
}

.container {
    max-width: 900px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #9ca3af;
    margin-top: 0.25rem;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.menu-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    width: 250px;
    text-align: center;
}

.menu-btn:hover {
    background: #2a2a2a;
    border-color: #a855f7;
    transform: translateY(-2px);
}

.expandable {
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.hidden {
    max-height: 0 !important;
}

.visible {
    max-height: 1000px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 1rem 0;
}

.social-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.2s;
    font-size: 0.85rem;
    text-align: center;
    min-height: 80px;
}

.social-box:hover {
    border-color: #a855f7;
    background: #222;
    transform: translateY(-2px);
}

.social-box .icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.characters-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.char-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 14px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.2s;
    min-height: 120px;
    gap: 0.5rem;
}

.char-btn:hover {
    border-color: #3b82f6;
    background: #222;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(59,130,246,0.15);
}

.char-btn .name {
    font-size: 1rem;
    font-weight: 600;
}

.char-btn .emoji {
    font-size: 2rem;
}

.back-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: #a855f7;
}

/* Character profile page style */
.char-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.char-profile img {
    max-width: 300px;
    border-radius: 16px;
    border: 2px solid #333;
}

.char-profile h2 {
    font-size: 2rem;
}

.char-profile p {
    color: #9ca3af;
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
}

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.5rem 1.25rem;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #3b82f6;
}

.tab-btn.active {
    background: #2a2a2a;
    border-color: #a855f7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.2s;
    cursor: pointer;
}

.gallery-grid img:hover {
    border-color: #a855f7;
    transform: scale(1.02);
}

/* Lightbox for full-size images */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}