:root {
    --primary-color: #00e676;
    --primary-glow: rgba(0, 230, 118, 0.4);
    --accent-color: #ffab00;
    --dark-bg: #0a0a0a;
    --card-bg: #141414;
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

b,
strong {
    color: var(--primary-color);
    font-weight: 700;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: url('../img/bg.png') no-repeat center center/cover;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, var(--dark-bg) 100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 0 15px var(--primary-glow);
}

.nav-links a {
    color: #bbb;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

section {
    padding: 120px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.section-desc {
    text-align: center;
    margin-bottom: 60px;
    color: #aaa;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: #ccc;
    max-width: 700px;
}

.server-status-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.server-status-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 230, 118, 0.1);
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #eee;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4444;
}

.dot.online {
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
}

.ip-container {
    display: flex;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.ip-address {
    padding: 12px 20px;
    font-family: 'Consolas', monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: #000;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #fff;
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 300px;
    max-width: 400px;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-7px);
    box-shadow: 0 10px 30px -10px rgba(0, 230, 118, 0.15);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.7;
}

.quests-section {
    background: #0f0f0f;
}

.quest-card {
    text-align: left;
    align-items: flex-start;
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(135deg, var(--card-bg), #1a1a1a);
}

.quest-card h3 {
    color: var(--accent-color);
}

.airdrops-section {
    background: url(''), #121212;
}

.drops-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.drop-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    flex: 1 1 250px;
    max-width: 350px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.drop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
}

.drop-card:hover {
    transform: translateY(-5px);
    background: #1a1a1a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.drop-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drop-card p {
    font-size: 0.95rem;
    color: #bbb;
}

.duels-bg {
    background: linear-gradient(to bottom, #111, #0a0a0a);
}

.mode-card {
    background: linear-gradient(145deg, #161616, #111);
    align-items: flex-start;
    text-align: left;
}

.mode-card h3 {
    color: #ff5555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-card h3::before {
    content: '⚔';
    font-size: 1.2rem;
}

.kits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.kit-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    cursor: default;
}

.kit-item:hover {
    border-color: var(--accent-color);
    background: rgba(255, 171, 0, 0.1);
    transform: translateY(-3px);
}

.kit-icon {
    color: var(--accent-color);
}

.services-section {
    background: #080808;
    border-top: 1px solid var(--border-color);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-item {
    background: rgba(0, 230, 118, 0.05);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 230, 118, 0.15);
    color: #ddd;
    font-size: 1rem;
    transition: 0.3s;
    flex: 1 1 220px;
    max-width: 300px;
}

.service-item:hover {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--primary-color);
}

.rules-box {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 16px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.rules-box ul {
    list-style: none;
}

.rules-box li {
    margin-bottom: 25px;
    font-size: 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    color: #eee;
}

.rules-box li:last-child {
    margin-bottom: 0;
}

.rules-box li i {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 50px;
    background: #050505;
    color: #666;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
}

.archive-page {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(0, 230, 118, 0.06), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(255, 171, 0, 0.045), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(79, 172, 254, 0.045), transparent 28%),
        linear-gradient(180deg, #05070a 0%, #090b10 46%, #06070a 100%);
    isolation: isolate;
}

.archive-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
    pointer-events: none;
}

.archive-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0) 58%);
    pointer-events: none;
}

.archive-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.archive-shell > * {
    width: 100%;
    min-width: 0;
}

.archive-panels {
    display: block;
}

.archive-panel {
    margin: 0;
    padding: 0;
}

.archive-panel + .archive-panel {
    margin-top: 12px;
}

.archive-panel > .archive-main-box {
    margin: 0;
}

.archive-music-box[open] .archive-main-summary {
    margin-bottom: 18px;
}

.archive-music-box {
    background:
        linear-gradient(180deg, rgba(18, 18, 24, 0.88), rgba(12, 14, 20, 0.82)),
        rgba(20, 20, 20, 0.6);
    border-color: rgba(255, 171, 0, 0.18);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.archive-music-box .archive-main-summary {
    color: #ffd166;
}

.archive-log-box {
    background:
        linear-gradient(180deg, rgba(9, 15, 14, 0.88), rgba(8, 10, 12, 0.82)),
        rgba(20, 20, 20, 0.6);
    border-color: rgba(0, 230, 118, 0.16);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.archive-log-box .archive-main-summary {
    color: #8ef0b6;
}

.archive-art-box {
    background:
        linear-gradient(180deg, rgba(14, 16, 20, 0.9), rgba(10, 12, 15, 0.9)),
        rgba(20, 20, 20, 0.56);
    border-color: rgba(179, 189, 215, 0.14);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.archive-art-box .archive-main-summary {
    color: #d9e1ef;
}

.archive-art-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 8px;
    grid-auto-flow: dense;
    gap: 10px;
    align-items: start;
}

.archive-art-item {
    margin: 0;
}

.archive-art-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.archive-art-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.archive-art-thumb {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.archive-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 7, 10, 0.92);
    backdrop-filter: blur(12px);
}

.archive-lightbox.open {
    display: flex;
}

.archive-lightbox-inner {
    position: relative;
    width: min(96vw, 1500px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.archive-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.archive-lightbox-caption {
    color: #c9d0da;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.archive-lightbox-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(12, 16, 20, 0.92);
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.archive-music-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.archive-music-status {
    margin-bottom: 12px;
    color: #9aa0a6;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 64ch;
}

.archive-music-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-music-heading {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.archive-music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.archive-favorite-songs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.archive-song-card {
    background: linear-gradient(180deg, rgba(28, 24, 18, 0.9), rgba(17, 15, 14, 0.92));
    border: 1px solid rgba(255, 209, 102, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.archive-song-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(38, 31, 20, 0.95), rgba(24, 18, 16, 0.96));
    border-color: rgba(255, 209, 102, 0.36);
}

.archive-song-cover {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    object-fit: cover;
    display: block;
}

.archive-song-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
}

.archive-song-meta-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex-grow: 1;
}

.archive-song-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-song-artist {
    color: #a9b0b8;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-album-card {
    background: linear-gradient(180deg, rgba(27, 24, 18, 0.92), rgba(16, 14, 15, 0.96));
    border: 1px solid rgba(255, 209, 102, 0.12);
    border-radius: 18px;
    overflow: hidden;
    min-width: 0;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.archive-album-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 209, 102, 0.34);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.archive-album-cover {
    aspect-ratio: 1;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    display: block;
    object-fit: cover;
}

.archive-album-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 2rem;
}

.archive-album-meta {
    padding: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.archive-album-title {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.archive-album-artist {
    color: #a9b0b8;
    font-size: 0.77rem;
    line-height: 1.35;
}

.archive-album-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-album-tag {
    background: rgba(255, 209, 102, 0.09);
    border: 1px solid rgba(255, 209, 102, 0.14);
    border-radius: 999px;
    padding: 3px 7px;
    color: #f3dfab;
    font-size: 0.68rem;
}

.archive-music-empty {
    color: #78818a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.archive-main-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    overflow-wrap: break-word;
    background: rgba(20, 20, 20, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    padding: 30px 32px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.archive-main-summary {
    width: 100%;
    font-size: 1.42rem;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.archive-main-summary::-webkit-details-marker {
    display: none;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.archive-main-box:not([open]) .toggle-icon {
    transform: rotate(180deg);
}

.archive-main-box[open] .archive-main-summary {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.archive-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.archive-card {
    background:
        linear-gradient(180deg, rgba(15, 18, 22, 0.92), rgba(11, 13, 16, 0.95));
    border: 1px solid rgba(143, 240, 182, 0.1);
    border-radius: 24px;
    padding: 28px 30px;
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    min-height: 0;
    position: relative;
}

.archive-card:hover {
    border-color: rgba(143, 240, 182, 0.26);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.archive-period {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #e7f9ef;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(143, 240, 182, 0.08);
    border: 1px solid rgba(143, 240, 182, 0.14);
}

.archive-period::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8ef0b6;
    box-shadow: 0 0 0 6px rgba(143, 240, 182, 0.08);
}

.archive-copy {
    display: grid;
    gap: 12px;
    max-width: 72ch;
}

.archive-entry {
    position: relative;
    color: #ececec;
    font-size: 0.99rem;
    line-height: 1.75;
    white-space: pre-wrap;
    padding: 14px 18px 14px 24px;
    margin: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.archive-entry::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8ef0b6;
    box-shadow: 0 0 0 5px rgba(143, 240, 182, 0.08);
}

.archive-user-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 230, 118, 0.35);
}

.archive-user-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.usermap-popup {
    display: none;
    position: fixed;
    z-index: 9000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: archiveFadeIn 0.2s;
}

.usermap-popup.open {
    display: block;
}

.popup-backdrop {
    display: none;
    position: fixed;
    z-index: 8999;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.popup-backdrop.open {
    display: block;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.popup-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    background: #1e1e1e;
    flex-shrink: 0;
}

.popup-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #fff;
}

.extra-loading {
    color: #9aa0a6;
    font-size: 0.92rem;
}

.extra-loading.is-muted {
    color: #666;
}

.extra-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.extra-stat-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px;
}

.extra-stat-label {
    font-size: 0.65rem;
    color: #666;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.extra-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.extra-status-note {
    margin-top: 12px;
    font-style: italic;
    color: #888;
    font-size: 0.8rem;
}

@keyframes archiveFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    nav {
        position: sticky;
        top: 0;
        padding: 14px 16px 12px;
        flex-direction: column;
        gap: 12px;
    }

    .logo {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.4;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px 14px;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.76rem;
    }

    section[id] {
        scroll-margin-top: 132px;
    }

    .hero {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 88px;
    }

    .archive-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 24px;
    }

    .archive-main-box {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .archive-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .archive-period {
        font-size: 0.88rem;
    }

    .archive-entry {
        padding: 12px 14px 12px 20px;
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .archive-entry::before {
        left: 9px;
    }

    .archive-favorite-songs {
        grid-template-columns: 1fr;
    }

    .archive-art-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .archive-art-grid {
        grid-template-columns: 1fr;
    }

    .archive-lightbox {
        padding: 12px;
    }

    .archive-lightbox-close {
        top: -2px;
        right: -2px;
    }

    .extra-stats {
        grid-template-columns: 1fr;
    }
}
