@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap');

/* =========================================
   MUSIC BACKGROUND LAYER SYSTEM
   ========================================= */

.music-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, background-image 0.8s ease-in-out;
    z-index: -2;
    pointer-events: none;
}

.music-bg-layer.active {
    opacity: 0.5;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --text-foreground: #fff8fb;
    --text-soft: #fdf1f7;
    --text-muted: #f7dfe9;
    --text-deep-maroon: #ffd4e4;
    --text-ash: #f6e4ee;
    --accent-red: #b3003c;
    --accent-red-strong: #e0004f;
}

body[data-track-contrast="warm"] {
    --text-foreground: #fff9fc;
    --text-soft: #fff1f6;
    --text-muted: #ffe1ee;
    --text-deep-maroon: #ffcfe1;
    --text-ash: #f8dfeb;
}

body[data-track-contrast="cool"] {
    --text-foreground: #fffdfd;
    --text-soft: #f0f3ff;
    --text-muted: #e7e2ff;
    --text-deep-maroon: #d9c9ff;
    --text-ash: #ebdefd;
}

body[data-track-contrast="bright"] {
    --text-foreground: #ffffff;
    --text-soft: #fff7fb;
    --text-muted: #fff0f7;
    --text-deep-maroon: #ffdfe9;
    --text-ash: #f9e7f0;
}

* {
    box-sizing: border-box;
}

body {
    background: #030203;
    color: var(--text-foreground);
    font-family: Arial, sans-serif;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;

    position: relative;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(72, 116, 116, 0.42),
            rgba(45, 219, 240, 0.30),
            rgba(39, 240, 163, 0.36)
        );

    pointer-events: none;
    z-index: -1;
}



h1 {
    color: #b3003c;
    font-size: 64px;
    letter-spacing: 8px;
    margin-top: 120px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(179, 0, 60, 0.5);
}

p {
    color: var(--text-soft);
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 40px;
}

button {
    background-color: #b3003c;
    color: white;
    border: none;
    padding: 12px 24px;
    min-height: 44px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background-color: #e0004f;
    box-shadow: 0 0 20px rgba(224, 0, 79, 0.5);
    transform: translateY(-3px);
}
.top-banner-wrap {
    width: min(1200px, calc(100% - 24px));
    margin: 92px auto 0;
    border: 1px solid rgba(179, 0, 60, 0.28);
    background: rgba(15, 3, 9, 0.55);
    overflow: visible;
    border-radius: 12px;
    box-shadow: 
        /* Inner depth glow */
        inset 0 0 40px rgba(179, 0, 60, 0.15),
        /* Primary red/pink surround glow - maximum spread */
        0 0 60px rgba(179, 0, 60, 0.35),
        0 0 120px rgba(179, 0, 60, 0.30),
        0 0 180px rgba(179, 0, 60, 0.25),
        0 0 260px rgba(179, 0, 60, 0.20),
        0 0 340px rgba(179, 0, 60, 0.15),
        0 0 420px rgba(179, 0, 60, 0.10),
        /* Secondary cyan glow for depth */
        0 0 80px rgba(45, 219, 240, 0.25),
        0 0 160px rgba(45, 219, 240, 0.18),
        0 0 240px rgba(45, 219, 240, 0.12),
        0 0 320px rgba(45, 219, 240, 0.08),
        /* Tertiary green accent */
        0 0 100px rgba(39, 240, 163, 0.15),
        /* Directional surround pressure - extended */
        -80px 0 160px rgba(179, 0, 60, 0.18),
        80px 0 160px rgba(179, 0, 60, 0.18),
        0 -80px 160px rgba(45, 219, 240, 0.15),
        0 80px 160px rgba(179, 0, 60, 0.15);
    position: relative;
}

.top-banner-image {
    display: block;
    width: 100%;
    height: clamp(140px, 24vw, 320px);
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.85) contrast(1.05);
    border-radius: 12px;
}

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 30px 20px 40px;

    box-sizing: border-box;

    animation: fadeIn 1.5s ease;
}

.clock {
    color: #5c001f;
    font-size: 24px;
    letter-spacing: 6px;
    margin-bottom: 20px;
    position: relative;
    width: 90px;
    height: 90px;
    border: 1px solid #5c001f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.clock::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 1px;
    background-color: #b3003c;
    top: 50%;
    left: 50%;
    transform-origin: left center;
    transform: rotate(-35deg);
    z-index: 0;
}

.identity {
    max-width: 500px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.tag {
    color: var(--accent-red);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.identity p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 12px;
    margin-bottom: 0;
}

#archive {
    min-height: 100vh;
    padding: 100px 20px;
    text-align: center;
}

#archive h2 {
    color: #b3003c;
    font-size: 42px;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(179, 0, 60, 0.4);
}

#archive p {
    color: var(--text-muted);
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-intro {
    margin-bottom: 50px;
}

.archive-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.archive-card {
    padding: 30px;
    border: 1px solid #3a0a1b;
    background-color: rgba(15, 3, 9, 0.7);
    border-radius: 12px;
    text-align: left;
    transition: 0.3s ease;
}

.archive-card:hover {
    border-color: #b3003c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(179, 0, 60, 0.15);
}

.archive-card span {
    color: white;
    font-size: 12px;
    letter-spacing: 3px;
}

.archive-card h3 {
    color: #b3003c;
    font-size: 24px;
    letter-spacing: 4px;
    margin: 15px 0 10px;
}

.archive-card p {
    color: var(--text-ash);
    font-size: 14px;
    margin: 0;
}

.archive-link {
    display: inline-block;
    margin-top: 20px;
    color: #b3003c;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.archive-link:hover {
    color: #e0004f;
    letter-spacing: 3px;
}

#socials {
    min-height: 100vh;
    padding: 100px 20px;
    text-align: center;
}

#socials h2 {
    color: #b3003c;
    font-size: 42px;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(179, 0, 60, 0.4);
}

#socials p {
    color: var(--text-ash);
    font-size: 16px;
}

.social-intro {
    margin-bottom: 50px;
}

.social-links {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-card {
    display: grid;
    grid-template-columns: 50px 1fr 2fr;
    align-items: center;
    padding: 20px 25px;
    border: 1px solid #3a0a1b;
    background-color: rgba(15, 3, 9, 0.7);
    color: #f2e9ed;
    text-decoration: none;
    text-align: left;
    transition: 0.3s ease;
}

.social-card:hover {
    border-color: #b3003c;
    background-color: rgba(30, 4, 15, 0.8);
    transform: translateX(8px);
    box-shadow: 0 0 25px rgba(179, 0, 60, 0.12);
}

.social-card span {
    color: #5c001f;
    font-size: 12px;
    letter-spacing: 2px;
}

.social-card strong {
    color: #b3003c;
    font-size: 17px;
    letter-spacing: 3px;
}

.social-card small {
    color: var(--text-ash);
    font-size: 13px;
}

#anime {
    min-height: 100vh;
    padding: 100px 20px;
    text-align: center;
}

#anime h2 {
    color: #b3003c;
    font-size: 42px;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(179, 0, 60, 0.4);
}


.anime-intro {
    max-width: 600px;

    margin: 0 auto 80px;

    color: #8f737e;

    opacity: 0.65;

    text-align: center;
}



.anime-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.anime-card {
    padding: 30px;
    border: 1px solid #3a0a1b;
    background-color: rgba(15, 3, 9, 0.7);
    text-align: left;
    transition: 0.3s ease;
}

.anime-card:hover {
    border-color: #b3003c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(179, 0, 60, 0.15);
}

.anime-card span {
    color: #5c001f;
    font-size: 12px;
    letter-spacing: 3px;
}

.anime-card h3 {
    color: #b3003c;
    font-size: 22px;
    letter-spacing: 3px;
    margin: 15px 0 10px;
}

.anime-card p {
    color: var(--text-ash);
    font-size: 14px;
    margin: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(8, 5, 8, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(179, 0, 60, 0.2);
    z-index: 1000;
}

.nav-logo {
    color: #b3003c;
    font-size: 18px;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s ease;
}


#music-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;

    cursor: pointer;

    position: relative;

    transform: translateY(-3px);


}

#music-disc {
    width: 32px;
    height: 32px;

    display: block;
    object-fit: contain;

    pointer-events: none;
}

#music-toggle:hover {
    box-shadow: none;
}

#music-toggle:hover #music-disc {
    filter:
        drop-shadow(0 0 5px rgba(179, 0, 60, 0.55))
        drop-shadow(0 0 10px rgba(179, 0, 60, 0.25));
}



.nav-links a:hover {
    color: #e0004f;
}

@media (max-width: 600px) {

.hero {
    padding-top: 130px;
}

    .navbar {
        padding: 15px 20px;
    }

    .nav-logo {
        font-size: 14px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 10px;
    }

    h1 {
        font-size: 42px;
        letter-spacing: 5px;
    }

    .clock {
        width: 75px;
        height: 75px;
    }

    .archive-grid,
    .anime-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .archive-card,
    .anime-card {
        padding: 25px;
    }

    .social-card {
        grid-template-columns: 35px 1fr;
        gap: 5px;
    }

    .social-card small {
        grid-column: 2;
        margin-top: 5px;
    }
}

@media (max-width: 430px) {
    body {
        font-size: clamp(14px, 2.8vw, 15px);
    }

    .top-banner-wrap {
        width: calc(100% - 18px);
        margin-top: 78px;
    }

    .hero {
        min-height: auto;
        padding: 112px 16px 36px;
    }

    h1 {
        font-size: clamp(2.4rem, 11vw, 3.4rem);
        letter-spacing: 0.2em;
        line-height: 1.08;
        margin-top: 18px;
    }

    p {
        font-size: 1rem;
        margin-top: 14px;
        margin-bottom: 28px;
    }

    .identity {
        max-width: 300px;
        margin-top: 14px;
    }

    .tag {
        letter-spacing: 0.26em;
    }

    .identity p {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    button {
        width: min(100%, 240px);
        padding: 14px 18px;
        font-size: 0.9rem;
        letter-spacing: 0.12em;
        border-radius: 999px;
    }

    .navbar {
        height: 60px;
        padding: 12px 14px;
    }

    .nav-logo {
        font-size: 11px;
        letter-spacing: 0.18em;
        max-width: 150px;
        line-height: 1.2;
    }

    #music-toggle {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }

    #music-disc {
        width: 30px;
        height: 30px;
    }

    .menu-toggle {
        gap: 5px;
        padding: 6px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2.5px;
    }

    .dropdown-menu {
        top: 60px;
        max-width: 100%;
    }

    .menu-nav-section {
        gap: 10px;
        padding: 16px 12px 12px;
    }

    .menu-nav-link {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    #archive,
    #socials,
    #games,
    #projects,
    #personal {
        padding-left: 16px;
        padding-right: 16px;
    }

    #archive h2,
    #socials h2,
    #games h2,
    #projects h2,
    #personal h2 {
        font-size: clamp(1.8rem, 8vw, 2.9rem);
        letter-spacing: 0.16em;
    }

    .archive-grid,
    .social-links,
    .project-list,
    .personal-list {
        gap: 16px;
    }

    .archive-card,
    .social-card,
    .project-entry,
    .personal-entry {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) and (min-height: 700px),
       (device-width: 390px) and (device-height: 844px),
       (device-width: 412px) and (device-height: 915px),
       (device-width: 430px) and (device-height: 932px),
       (-webkit-min-device-pixel-ratio: 2) and (max-width: 480px) {
    html, body {
        width: 100%;
        max-width: 100%;
    }

    body {
        font-size: clamp(14px, 3.1vw, 15.5px);
    }

    .top-banner-wrap {
        width: calc(100% - 12px);
        margin-top: 72px;
    }

    .hero {
        min-height: auto;
        padding: 96px 16px 32px;
    }

    h1 {
        font-size: clamp(2.4rem, 11vw, 3.4rem);
        letter-spacing: 0.2em;
        line-height: 1.08;
        margin-top: 18px;
    }

    p {
        font-size: 1rem;
        margin-top: 14px;
        margin-bottom: 28px;
    }

    .identity {
        max-width: 300px;
        margin-top: 14px;
    }

    .tag {
        letter-spacing: 0.26em;
    }

    .identity p {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    button {
        width: min(100%, 240px);
        padding: 14px 18px;
        font-size: 0.9rem;
        letter-spacing: 0.12em;
        border-radius: 999px;
    }

    .navbar {
        height: 60px;
        padding: 12px 14px;
    }

    .nav-logo {
        font-size: 11px;
        letter-spacing: 0.18em;
        max-width: 150px;
        line-height: 1.2;
    }

    #music-toggle {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }

    #music-disc {
        width: 30px;
        height: 30px;
    }

    .menu-toggle {
        gap: 5px;
        padding: 6px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2.5px;
    }

    .dropdown-menu {
        top: 60px;
        width: min(100%, 100vw);
        max-width: 100vw;
    }

    .menu-nav-section {
        gap: 10px;
        padding: 16px 12px 12px;
    }

    .menu-nav-link {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    #archive,
    #socials,
    #games,
    #projects,
    #personal {
        padding-left: 16px;
        padding-right: 16px;
    }

    #archive h2,
    #socials h2,
    #games h2,
    #projects h2,
    #personal h2 {
        font-size: clamp(1.8rem, 8vw, 2.9rem);
        letter-spacing: 0.16em;
    }

    .archive-grid,
    .social-links,
    .project-list,
    .personal-list {
        gap: 16px;
    }

    .archive-card,
    .social-card,
    .project-entry,
    .personal-entry {
        padding: 20px 16px;
    }

    .music-links-menu {
        padding: 10px 10px 12px;
    }

    .music-preview-label {
        font-size: 8px;
        letter-spacing: 0.14em;
    }
}

@media (max-width: 390px) {
    .top-banner-wrap {
        width: calc(100% - 14px);
        margin-top: 72px;
    }

    .hero {
        padding-top: 96px;
    }

    h1 {
        letter-spacing: 0.16em;
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .nav-logo {
        max-width: 130px;
        font-size: 10px;
    }

    .menu-nav-link {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .archive-card,
    .social-card,
    .project-entry,
    .personal-entry {
        padding: 18px 14px;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 10px 12px;
        height: 56px;
    }

    .nav-logo {
        max-width: 120px;
        letter-spacing: 0.14em;
    }

    .hero {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 90px;
    }

    h1 {
        letter-spacing: 0.12em;
        font-size: clamp(2rem, 9.5vw, 2.6rem);
    }

    p,
    .identity p {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    button {
        width: 100%;
        max-width: 220px;
        font-size: 0.8rem;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .hero {
        min-height: auto;
        padding-top: 86px;
        padding-bottom: 28px;
    }

    .top-banner-wrap {
        margin-top: 64px;
    }

    .dropdown-menu {
        max-height: calc(100vh - 60px);
    }

    .menu-nav-section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#games {
    min-height: 100vh;
    padding: 100px 20px;
    text-align: center;
}

#games h2 {
    color: #b3003c;
    font-size: 42px;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(179, 0, 60, 0.4);
}

.games-intro {
    color: var(--text-ash);
    margin-bottom: 50px;
}







/* =========================================================
   KURUMII ANIME ARCHIVE — POLISHED PRESENTATION
   ========================================================= */

#anime {
    padding: 100px 20px 120px;
}

#anime .anime-intro {
    margin-bottom: 72px;
}

#anime .anime-best {
    position: relative;
    max-width: 900px;
    margin: 0 auto 112px;
    text-align: center;
}

#anime .anime-best::before {
    content: "";
    position: absolute;
    inset: 12% 8% 18%;
    background: rgba(179, 0, 60, 0.14);
    filter: blur(46px);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
}

#anime .anime-best-meta,
#anime .anime-best-label {
    display: block;
    position: relative;
    text-transform: uppercase;
}

#anime .anime-best-meta {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    opacity: 0.58;
}

#anime .anime-best-label {
    margin-bottom: 22px;
    color: #b3003c;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    opacity: 0.92;
}

#anime .anime-best-image {
    position: relative;
    width: 100%;
    height: 440px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(179, 0, 60, 0.46);
    border-radius: 22px;
    background: rgba(15, 3, 9, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 240, 0.08),
        0 18px 48px rgba(0, 0, 0, 0.22);
}

#anime .anime-best-image img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(3, 2, 3, 0.42);
}

#anime .anime-best h3 {
    position: relative;
    margin: 24px 0 0;
    color: var(--text-foreground);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: 0.14em;
}

#anime .anime-category {
    max-width: 1080px;
    margin: 0 auto 30px;
}

#anime .anime-ribbon {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 60px;
    padding: 16px 20px;
    border: 1px solid rgba(179, 0, 60, 0.34);
    border-radius: 14px;
    background: rgba(15, 3, 9, 0.42);
    color: var(--text-foreground);
    opacity: 0.82;
    text-align: left;
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 230, 240, 0.04);
    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#anime .anime-ribbon:hover,
#anime .anime-category.open .anime-ribbon {
    opacity: 1;
    background: rgba(179, 0, 60, 0.09);
    border-color: rgba(179, 0, 60, 0.68);
    transform: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 240, 0.08),
        0 10px 26px rgba(0, 0, 0, 0.14);
}

#anime .category-index {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    opacity: 0.6;
}

#anime .anime-ribbon .category-title {
    margin: 0;
    color: var(--text-foreground);
    font-size: 0.82rem;
    font-weight: normal;
    letter-spacing: 0.28em;
    opacity: 0.92;
}

#anime .anime-ribbon-icon {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
}

#anime .anime-category .anime-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.7s ease,
        opacity 0.4s ease,
        margin-top 0.4s ease;
}

#anime .anime-category.open .anime-row {
    max-height: 5000px;
    margin-top: 22px;
    overflow: visible;
    opacity: 1;
}

#anime .anime-card {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    text-align: left;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#anime .anime-card > img,
#anime .anime-placeholder {
    display: block;
    width: 100%;
    height: 390px;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid rgba(179, 0, 60, 0.28);
    border-radius: 16px;
    background: rgba(15, 3, 9, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 240, 0.05),
        0 12px 28px rgba(0, 0, 0, 0.14);
    object-fit: contain;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#anime .anime-placeholder {
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-align: center;
}

#anime .anime-card:hover {
    transform: translateY(-3px);
}

#anime .anime-card:hover > img,
#anime .anime-card:hover .anime-placeholder {
    border-color: rgba(179, 0, 60, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 240, 0.08),
        0 16px 32px rgba(179, 0, 60, 0.14);
    transform: scale(1.02);
}

#anime .anime-number {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

#anime .anime-card h4 {
    margin: 0;
    color: var(--text-foreground);
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1.45;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

#anime .anime-card:hover h4 {
    color: #fff0f6;
}

@media (max-width: 700px) {
    #anime {
        padding: 64px 16px 80px;
    }

    #anime .anime-intro {
        margin-bottom: 54px;
    }

    #anime .anime-best {
        margin-bottom: 72px;
    }

    #anime .anime-best-image {
        height: 380px;
        padding: 12px;
        border-radius: 18px;
    }

    #anime .anime-best-image img {
        border-radius: 12px;
    }

    #anime .anime-category {
        margin-bottom: 18px;
    }

    #anime .anime-ribbon {
        grid-template-columns: 34px 1fr auto;
        min-height: 56px;
        padding: 14px 16px;
        border-radius: 12px;
    }

    #anime .anime-ribbon .category-title {
        font-size: 0.74rem;
        letter-spacing: 0.2em;
    }

    #anime .anime-category .anime-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #anime .anime-card > img,
    #anime .anime-placeholder {
        height: auto;
        min-height: 320px;
        max-height: 500px;
        margin-bottom: 14px;
        border-radius: 14px;
    }
}

@media (max-width: 390px) {
    #anime .anime-best-image {
        height: 340px;
    }

    #anime .anime-card > img,
    #anime .anime-placeholder {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #anime .anime-ribbon,
    #anime .anime-category .anime-row,
    #anime .anime-ribbon-icon,
    #anime .anime-card,
    #anime .anime-card > img,
    #anime .anime-placeholder,
    #anime .anime-card h4 {
        transition-duration: 0.01ms;
    }
}
#projects {
    min-height: 80vh;
    padding: 100px 20px;
    text-align: center;
}

#projects h2 {
    color: #b3003c;
    font-size: 42px;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(179, 0, 60, 0.4);
}

.projects-intro {
    color: var(--text-ash);
    margin-bottom: 50px;
}

.projects-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    padding: 35px;
    border: 1px solid #3a0a1b;
    background-color: rgba(15, 3, 9, 0.7);
    text-align: left;
    transition: 0.3s ease;
}

.project-card:hover {
    border-color: #b3003c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(179, 0, 60, 0.15);
}

.project-card span {
    color: #5c001f;
    font-size: 12px;
    letter-spacing: 3px;
}

.project-card h3 {
    color: #b3003c;
    font-size: 21px;
    letter-spacing: 2px;
    margin: 15px 0 10px;
}

.project-card p {
    color: var(--text-ash);
    font-size: 14px;
    margin: 0 0 20px;
}

.project-card small {
    color: var(--text-deep-maroon);
    font-size: 10px;
    letter-spacing: 3px;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    background: rgba(8, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 70px;
}

.nav-logo {
    color: #b3003c;
    font-size: 18px;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.nav-links a {
    position: relative;
    top: 3px;
}

.nav-links a:hover {
    color: #b3003c;
}

/* =========================================
   HAMBURGER MENU BUTTON
   ========================================= */

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    margin-left: auto;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: #b3003c;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =========================================
   DROPDOWN MENU
   ========================================= */

.dropdown-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 70px);
    background: #450a0e;
    border-left: 2px solid #b3003c;
    box-shadow: -10px 0 40px rgba(179, 0, 60, 0.3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.dropdown-menu.active {
    transform: translateX(0);
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(15, 3, 9, 0.5);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #b3003c;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #e0004f;
}

/* Navigation Section */
.menu-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(179, 0, 60, 0.4);
}

.menu-nav-link {
    padding: 12px 16px;
    color: #f2e9ed;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-nav-link:hover {
    background-color: rgba(179, 0, 60, 0.2);
    border-left-color: #b3003c;
    color: #e0004f;
    padding-left: 20px;
}

/* Music Player Section */
.menu-music-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 20px;
}

/* Current Track Display */
.current-track-display {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(15, 3, 9, 0.6);
    border: 1px solid rgba(179, 0, 60, 0.3);
    border-radius: 8px;
}

.track-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.track-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.track-info h4 {
    margin: 0;
    color: #b3003c;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    margin: 4px 0 0;
    color: var(--text-ash);
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(15, 3, 9, 0.4);
    border-radius: 6px;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #b3003c;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #e0004f;
    box-shadow: 0 0 15px rgba(224, 0, 79, 0.5);
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.volume-icon {
    font-size: 18px;
    color: #b3003c;
}

.volume-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(179, 0, 60, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #b3003c;
    cursor: pointer;
    transition: 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #e0004f;
    box-shadow: 0 0 10px rgba(224, 0, 79, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #b3003c;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #e0004f;
    box-shadow: 0 0 10px rgba(224, 0, 79, 0.6);
}

/* Track List */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(15, 3, 9, 0.4);
    border: 1px solid rgba(179, 0, 60, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.track-item:hover {
    background: rgba(179, 0, 60, 0.15);
    border-color: rgba(179, 0, 60, 0.4);
}

.track-item.active {
    background: rgba(179, 0, 60, 0.3);
    border-color: #b3003c;
    box-shadow: inset 0 0 15px rgba(179, 0, 60, 0.2);
}

.track-number {
    font-size: 12px;
    letter-spacing: 1px;
    color: #5c001f;
    min-width: 28px;
}

.track-title {
    font-size: 12px;
    color: var(--text-soft);
    flex: 1;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-item.active .track-title {
    color: #e0004f;
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

   .navbar {
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

   .nav-logo {
    width: auto;
    font-size: 13px;
    letter-spacing: 3px;
    line-height: 1.2;
    text-align: left;
    padding: 0;
    flex-shrink: 0;
}

   .nav-links {
    display: none;
}

    .nav-links a {
        position: relative;
        top: 1px;
        font-size: 9px;
        letter-spacing: 1.2px;
        line-height: 1.2;
    }

   #music-toggle {
    width: 32px;
    height: 32px;
    top: 0;
    transform: none;
    flex-shrink: 0;
}

#music-disc {
    width: 32px;
    height: 32px;
}

    /* Hamburger on second row for mobile */
   .menu-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    padding: 8px;
    margin: 0;
}

    .dropdown-menu {
        max-width: 100%;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: translateY(100%);
        max-height: 60vh;
    }

    .dropdown-menu.active {
        transform: translateY(0);
    }

    .hero {
    padding: clamp(20px, 5vw, 40px) 16px clamp(45px, 9vw, 80px);
}

   .top-banner-wrap {
    width: min(100%, calc(100% - 20px));
    margin-top: clamp(32px, 8vw, 60px);
}

    .top-banner-image {
    height: clamp(110px, 30vw, 180px);
}
    .song-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 10px;
        margin-top: 12px;
    }

    .song-info h4 {
        font-size: 1.1rem;
    }

    .song-info p {
        font-size: 0.77rem;
    }

   

    #personal {
        padding: 80px 20px;
    }

    .personal-entry {
        gap: 18px;
        padding: 24px 0;
    }

    .personal-entry:nth-child(2),
    .personal-entry:nth-child(3) {
        border-top: none;
        border-bottom: none;
    }

    .personal-content h3 {
        font-size: 17px;
    }

    .navbar {
        height: auto;
        min-height: 64px;
        padding: 12px 16px 14px;
        flex-direction: column;
        gap: 10px;
    }

    .nav-logo {
        font-size: 13px;
        letter-spacing: 3px;
        line-height: 1.2;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .nav-links a {
        position: relative;
        top: 1px;
        font-size: 9px;
        letter-spacing: 1.2px;
        line-height: 1.2;
    }

    #music-toggle {
        width: 28px;
        height: 28px;
        top: -1px;
        transform: none;
    }

    #music-disc {
        width: 28px;
        height: 28px;
    }

    h1 {
        font-size: clamp(30px, 8vw, 48px);
        letter-spacing: clamp(3px, 1vw, 7px);

        margin-top: 120px;
       line-height: 1.05;
    }

    p {
        font-size: 15px;
    }

    button,
    .spotify-button,
    .archive-link,
    .stay-tuned {
        min-height: 44px;
        line-height: 1.3;
    }

    .clock {
        width: 75px;
        height: 75px;
        font-size: 20px;
    }

    #archive,
    #socials,
    #anime,
    #games,
    #projects,
    #personal {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 72px;
        padding-bottom: 56px;
    }

    #socials {
        padding-bottom: 28px;
    }

    #anime {
        padding-top: 42px;
    }

    .archive-grid,
    .anime-grid,
    .anime-row,
    .project-list,
    .social-links {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .archive-grid {
        max-width: 380px;
        gap: 12px;
    }

    .archive-card {
        padding: 16px 18px;
        min-height: 124px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .archive-card span {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .archive-card h3 {
        font-size: 1.05rem;
        letter-spacing: 2px;
        margin: 10px 0 8px;
    }

    .archive-card p {
        font-size: 0.76rem;
        line-height: 1.5;
    }

    .archive-link {
        margin-top: 12px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .anime-card,
    .social-card,
    .project-entry,
    .game-entry {
        padding: 20px 16px;
    }

    .social-card {
        grid-template-columns: 32px 1fr auto;
        gap: 10px;
        align-items: center;
    }

    .social-card strong {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .social-arrow {
        justify-self: end;
    }

    .game-entry {
        min-height: 64px;
    }

    .project-entry {
        grid-template-columns: 36px 1fr;
        gap: 12px;
        padding: 18px 8px;
        align-items: start;
    }

    .project-number {
        margin-top: 3px;
    }

    .project-meta {
        margin-bottom: 6px;
        font-size: 0.56rem;
        letter-spacing: 0.18em;
    }

    .project-content h3 {
        margin-bottom: 6px;
        font-size: 0.95rem;
        letter-spacing: 0.08em;
        line-height: 1.3;
    }

    .project-content p {
        font-size: 0.72rem;
        line-height: 1.55;
    }

    .project-status {
        grid-column: 2;
        margin-top: 4px;
        font-size: 0.56rem;
        letter-spacing: 0.14em;
    }

    #games h2,
    #projects h2,
    #archive h2,
    #socials h2,
    #anime h2,
    #personal h2 {
        font-size: clamp(2rem, 8vw, 2.7rem);
        letter-spacing: 4px;
    }
}


#personal {
    min-height: 100vh;
    padding: 100px 20px;
    text-align: center;
}

#personal h2 {
    color: #b3003c;
    font-size: 42px;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(179, 0, 60, 0.4);
}

.personal-intro {
    color: var(--text-ash);
    margin-bottom: 60px;
}

.personal-list {
    max-width: 850px;
    margin: 0 auto;
}

.personal-entry {
    display: flex;
    gap: 35px;
    padding: 35px 0;
    border-bottom: 1px solid #3a0a1b;
    text-align: left;
    transition: 0.3s ease;
}

.personal-entry:first-child {
    border-top: 1px solid #3a0a1b;
}

.personal-entry:hover {
    padding-left: 12px;
    border-color: #b3003c;
}

.personal-number {
    color: #5c001f;
    font-size: 12px;
    letter-spacing: 3px;
    min-width: 35px;
}

.personal-content h3 {
    color: #b3003c;
    font-size: 20px;
    letter-spacing: 3px;
    margin: 0 0 12px;
}

.personal-content p {
    color: var(--text-ash);
    font-size: 14px;
    margin: 0;
}


.song-info {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #3a0a1b;
    background-color: rgba(15, 3, 9, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.song-info h4 {
    color: #f2e9ed;
    font-size: 22px;
    margin: 0 0 6px;
}

.song-info p {
    color: var(--text-ash);
    font-size: 13px;
    margin: 0;
}

.spotify-button {
    color: #b3003c;
    border: 1px solid #5c001f;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 2px;
    transition: 0.3s ease;
    white-space: nowrap;
}

.spotify-button:hover {
    color: #f2e9ed;
    background-color: #b3003c;
    box-shadow: 0 0 15px rgba(179, 0, 60, 0.4);
}


/* =========================================
   FAVORITE ANIME — SHOWCASE
========================================= */

.anime-section {
    padding: 120px 8%;
}

.anime-section > h2 {
    margin-bottom: 12px;
}


.anime-intro {
    max-width: 600px;

    margin: 0 auto 80px;

    color: var(--text-ash);

    opacity: 0.92;

    text-align: center;
}




/* =========================================
   ALL-TIME BEST
========================================= */

.anime-best {
    max-width: 900px;
    margin: 0 auto 140px;
    text-align: center;
}

.anime-best-label {
    display: block;
    margin-bottom: 25px;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    opacity: 0.6;
}

.anime-best-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.anime-best-image img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    display: block;
}


.anime-best .anime-number {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 10px;
}

.anime-best h3 {
    font-size: 2rem;
    letter-spacing: 0.08em;
}


/* =========================================
   CATEGORY SECTIONS
========================================= */

.anime-category {
    margin-bottom: 110px;
}

.category-title {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    margin-bottom: 40px;
    opacity: 0.65;
}


/* =========================================
   THREE-CARD ROW
========================================= */

.anime-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.anime-card {
    min-width: 0;
}

.anime-card > img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin-bottom: 18px;
}
.anime-number {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.55;
    margin-bottom: 8px;
}

.anime-card h4 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
}


/* =========================================
   DUAL #03 CARD
========================================= */

.dual-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: auto;
    overflow: visible;
    margin-bottom: 18px;
}

.dual-images img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}



/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .anime-section {
        padding: 80px 6%;
    }

    .anime-intro {
        margin-bottom: 60px;
        font-size: 0.9rem;
    }

    .anime-best {
        margin-bottom: 70px;
    }

    .anime-best-image {
        height: auto;
    }

    .anime-best h3 {
        font-size: 1.45rem;
        letter-spacing: 0.12em;
    }

    .anime-category {
        margin-bottom: 56px;
    }

    .anime-row {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .anime-category .anime-row {
        max-height: none;
        overflow: visible;
        opacity: 1;
    }

    .anime-card {
        padding: 0;
        background: transparent;
        border: none;
    }

    .anime-card > img {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: contain;
        display: block;
        margin-bottom: 14px;
    }

    .anime-card h4 {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .anime-number {
        margin-bottom: 6px;
    }

    .dual-images {
        height: auto;
    }

    .dual-images img {
        height: 320px;
    }

    .category-title {
        margin-bottom: 22px;
        font-size: 0.7rem;
        letter-spacing: 0.24em;
    }

    .anime-ribbon {
        padding: 14px 16px;
    }

    .project-entry {
        grid-template-columns: 40px 1fr;
        gap: 18px;
        padding: 30px 5px;
    }

    .project-status {
        grid-column: 2;
        margin-top: 5px;
    }

    .project-content h3 {
        font-size: 1rem;
    }

    .project-content p {
        font-size: 0.8rem;
    }
}


/* =========================================
   FAVORITE CHARACTERS
========================================= */

#characters {
    position: relative;
    padding: 120px 8%;
    overflow: hidden;
}

.characters-intro {
    max-width: 600px;
    margin: 0 auto 100px;
    opacity: 0.7;
    text-align: center;
}


/* =========================================
   CHARACTER ENTRY
========================================= */

.character-entry {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 520px;
    margin-bottom: 80px;

    gap: 60px;
}


/* =========================================
   CHARACTER ART
========================================= */

.character-image {
    width: 48%;
    height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.character-image img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    display: block;

    transition: transform 0.5s ease;
}

/* =========================================
   CHARACTER ART HOVER
========================================= */

.character-image img {
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.character-image img:hover {
    transform: translateY(-6px) scale(1.03);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}


/* Keep flipped characters mirrored */

.character-flipped .character-image img:hover {
    transform: translateY(-6px) scaleX(-1) scale(1.03);
}


/* =========================================
   CHARACTER INFORMATION
========================================= */

.character-info {
    width: 42%;
    position: relative;
    z-index: 2;
}

.character-info h3 {
    margin: 0 0 12px;

    font-size: clamp(2rem, 4vw, 4.5rem);
    letter-spacing: 0.08em;

    line-height: 1;
}

.character-info p {
    margin: 0;

    font-size: 0.9rem;
    letter-spacing: 0.2em;

    opacity: 0.6;
}


/* =========================================
   LEFT / RIGHT ARRANGEMENT
========================================= */

.character-left {
    flex-direction: row;
}

.character-right {
    flex-direction: row-reverse;
}


/* =========================================
   SUBTLE DIVIDER
========================================= */

.character-entry::after {
    content: "";

    position: absolute;

    left: 10%;
    right: 10%;
    bottom: -40px;

    height: 1px;

    background: currentColor;
    opacity: 0.12;
}



/* =========================================
   HIDDEN #01
========================================= */

.character-secret {
    text-align: center;

    margin-top: 160px;
    padding: 100px 20px 120px;

    position: relative;
}

.character-secret::before {
    content: "";

    display: block;

    width: 80px;
    height: 1px;

    margin: 0 auto 50px;

    background: currentColor;
    opacity: 0.25;
}

.character-secret .character-number {
    display: block;

    font-size: 0.8rem;
    letter-spacing: 0.5em;

    opacity: 0.5;

    margin-bottom: 20px;
}

.character-secret h3 {
    margin: 0 0 25px;

    font-size: clamp(2rem, 5vw, 5rem);
    letter-spacing: 0.15em;
}


/* =========================================
   STAY TUNED
========================================= */

.stay-tuned {
    display: inline-block;

    font-size: 0.75rem;
    letter-spacing: 0.35em;

    text-decoration: none;

    opacity: 0.6;

    transition:
        opacity 0.3s ease,
        letter-spacing 0.3s ease,
        transform 0.3s ease;
}

.stay-tuned:hover {
    opacity: 1;
    letter-spacing: 0.5em;
    transform: translateY(-2px);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    #characters {
    padding: 70px 4%;
}

    .characters-intro {
        margin-bottom: 60px;
    }

    .character-entry,
    .character-left,
    .character-right {
        flex-direction: column;

        min-height: auto;

        margin-bottom: 100px;

        gap: 25px;
    }

    .character-image {
    width: 100%;
    height: 330px;
}

    .character-info {
        width: 100%;

        text-align: center;

        order: 2;
    }

    .character-info h3 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .character-info p {
        font-size: 0.7rem;
    }

    .character-entry::after {
        left: 5%;
        right: 5%;
        bottom: -50px;
    }

    .character-secret {
        margin-top: 100px;
        padding: 80px 10px 100px;
    }

}

.character-flipped .character-image img {
    transform: scaleX(-1);
}

/* =========================================
   CHARACTER ART HOVER
========================================= */

.character-image img {
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.character-image img:hover {
    transform: translateY(-6px) scale(1.03);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}


/* Keep flipped characters mirrored */

.character-flipped .character-image img:hover {
    transform: translateY(-6px) scaleX(-1) scale(1.03);
}



/* Ai — subtle height adjustment */
.character-ai .character-image img {
    height: 550px;
    width: auto;
}

@media (min-width: 769px) {
    .character-aqua .character-image img {
        height: 590px;
        width: auto;
    }
}

@media (min-width: 769px) {
    .character-aqua .character-image {
        height: 590px;
    }
}

@media (min-width: 769px) {
    .character-ruby .character-image {
        height: 555px;
    }
}

@media (min-width: 769px) {
    .character-maomao .character-image {
        height: 575px;
    }
}

@media (min-width: 769px) {
    .character-tsukasa .character-image {
        height: 480px;
    }
}

/* =========================================
   CHARACTER SCROLL REVEAL
========================================= */

.character-entry {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.character-entry.character-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   CHARACTER TEXT POLISH
========================================= */

.character-info h3 {
    transition:
        letter-spacing 0.4s ease,
        transform 0.4s ease;
}

.character-info p {
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}


/* Slight interaction when hovering the character entry */

.character-entry:hover .character-info h3 {
    letter-spacing: 0.11em;
    transform: translateX(4px);
}

.character-entry:hover .character-info p {
    opacity: 0.8;
    transform: translateX(4px);
}


/* =========================================
   ZAFKIEL CLOCK — BASE
========================================= */

.zafkiel-clock {
   width: min(520px, 90vw);
    aspect-ratio: 1 / 1;

    margin-bottom: 20px;

    position: relative;

    background-image: url("images/zafkiel-clock.png");
    background-repeat: no-repeat;

    /*
       Actual clock inside the 2875 × 3840 artwork:
       X: 441 → 2540
       Y: 843 → 2989
       Center: 1490, 1956
    */

    background-size: 210% auto;
   background-position: 49% 50.94%;

    z-index: 1;

    animation: zafkielPulse 3s ease-in-out infinite;
}

.zafkiel-outer-mechanism {
    position: absolute;

    width: 220px;
    height: 220px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    border: 1px solid rgba(170, 0, 40, 0.55);

    pointer-events: none;

    z-index: 1;
}

.zafkiel-mark {
    position: absolute;

    width: 2px;
    height: 9px;

    left: 50%;
    top: 0;

    transform-origin: 50% 110px;

    background: rgba(170, 0, 40, 0.8);

    box-shadow:
        0 0 5px rgba(170, 0, 40, 0.35);

    pointer-events: none;
}

.zmark-1  { transform: translateX(-50%) rotate(30deg); }
.zmark-2  { transform: translateX(-50%) rotate(60deg); }
.zmark-3  { transform: translateX(-50%) rotate(90deg); }
.zmark-4  { transform: translateX(-50%) rotate(120deg); }
.zmark-5  { transform: translateX(-50%) rotate(150deg); }
.zmark-6  { transform: translateX(-50%) rotate(180deg); }
.zmark-7  { transform: translateX(-50%) rotate(210deg); }
.zmark-8  { transform: translateX(-50%) rotate(240deg); }
.zmark-9  { transform: translateX(-50%) rotate(270deg); }
.zmark-10 { transform: translateX(-50%) rotate(300deg); }
.zmark-11 { transform: translateX(-50%) rotate(330deg); }
.zmark-12 { transform: translateX(-50%) rotate(0deg); }

.zmark-3,
.zmark-6,
.zmark-9,
.zmark-12 {
    width: 2px;
    height: 13px;

    background: rgba(190, 0, 45, 0.9);

    box-shadow:
        0 0 6px rgba(190, 0, 45, 0.45);
}

.zafkiel-accent {
    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: rgba(120, 0, 35, 0.7);

    box-shadow:
        0 0 4px rgba(170, 0, 40, 0.3);

    pointer-events: none;
}

.accent-12 {
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
}

.accent-3 {
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
}

.accent-6 {
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
}

.accent-9 {
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
}

/* Inner decorative ring */

.clock-ring-inner {
    position: absolute;

    inset: 22px;

    border-radius: 50%;

   border: 1px solid rgba(150, 70, 130, 0.45);
}


/* =========================================
   ZAFKIEL CLOCK — ROMAN MARKERS
========================================= */

.clock-mark {
    position: absolute;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: rgba(225, 195, 215, 0.82);

    text-shadow:
        0 0 4px rgba(120, 0, 35, 0.45),
        0 1px 1px rgba(0, 0, 0, 0.8);

    opacity: 0.9;

    user-select: none;
    z-index: 5;
}

/* XII */
.mark-12 {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* III */
.mark-3 {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* VI */
.mark-6 {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* IX */
.mark-9 {
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* XIII centerpiece — hidden */

.clock-xiii {
    display: none;
}


/* Center pivot — hidden */

.clock-center {
    display: none;
}


/* =========================================
   CLOCK HANDS — GUNS
========================================= */

.clock-hand {
    position: absolute;

    left: 50%;
    top: 49.86%;

    width: 0;
    height: 0;

    z-index: 10;

    pointer-events: none;

    transform-origin: center center;
}

/* =========================================
   HOUR — SHORT GUN
========================================= */

.clock-hour {
    width: 0;
    height: 0;
}

.clock-hour img,
.clock-minute img {
    position: absolute;

    left: 0;
    top: 0;

    width: 150px;
    height: auto;

    display: block;

    transform: translate(-50%, -50%);

    transform-origin: center center;

    object-fit: contain;
}

/* =========================================
   MINUTE — LONG GUN
========================================= */

.clock-minute {
    width: 0;
    height: 0;
}

.clock-minute img {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 220px;
    height: auto;

    display: block;

    transform: translate(-50%, -50%);
    transform-origin: center center;

    object-fit: contain;

    opacity: 0.9;

    filter:
        drop-shadow(0 0 5px rgba(120, 0, 25, 0.5));
}


/* Second hand */

.clock-second {
    position: absolute;

    left: 50%;
    top: 49.86%;

    width: 1px;
    height: 145px;

    background: currentColor;

    opacity: 0.65;

    transform-origin: top center;

    z-index: 11;

    pointer-events: none;
}





/* =========================================
   ZAFKIEL CLOCK — HOUR MARKERS
========================================= */

.zafkiel-clock::before {
    content: "";

    position: absolute;

    inset: 28px;

    border-radius: 50%;

    background: transparent;

    border: 1px solid rgba(150, 70, 130, 0.22);

    box-shadow:
        inset 0 0 12px rgba(120, 0, 35, 0.18);

    pointer-events: none;

    z-index: 1;
}

/* =========================================
   ZAFKIEL CLOCK — HOUR RAYS
========================================= */

.clock-hour-rays {
    position: absolute;
    inset: 22px;

    border-radius: 50%;

    background:
        repeating-conic-gradient(
            from -1deg,
            rgba(170, 0, 40, 0.65) 0deg 1.5deg,
            transparent 1.5deg 30deg
        );

    pointer-events: none;

    z-index: 1;
}

/* =========================================
   ZAFKIEL CLOCK — AMBIENT PULSE
========================================= */

.zafkiel-clock {
    position: relative;

    width: min(520px, 90vw);
    height: min(520px, 90vw);

    margin-bottom: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("images/zafkiel-clock.png");
    background-repeat: no-repeat;

    /*
       Artwork: 2875 × 3840
       Clock center: ~1490, 1956
    */

    background-size: 145% auto;
    background-position: 49% 50.94%;

    animation: zafkielPulse 3s ease-in-out infinite;

    z-index: 1;
}
@keyframes zafkielPulse {
    0%,
    100% {
        box-shadow:
            0 0 22px rgba(120, 0, 20, 0.22),
            inset 0 0 25px rgba(0, 0, 0, 0.7);
    }

    50% {
        box-shadow:
            0 0 38px rgba(170, 0, 45, 0.42),
            inset 0 0 25px rgba(0, 0, 0, 0.7);
    }
}

@keyframes zafkielCoreRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



.zafkiel-clock::after {
    display: none;
}

.zafkiel-outer-ring {
    display: none;
}


.zafkiel-core {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 24px;
    height: 24px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(105, 20, 55, 0.95) 0%,
            rgba(45, 12, 35, 0.95) 45%,
            rgba(12, 8, 18, 1) 100%
        );

    border: 1px solid rgba(190, 0, 45, 0.55);

    box-shadow:
        0 0 8px rgba(150, 0, 35, 0.35),
        inset 0 0 6px rgba(0, 0, 0, 0.8);

    pointer-events: none;

    z-index: 3;

    animation: zafkielCoreRotate 12s linear infinite;
}
    


/* =========================================
   GAMES IN ROTATION
========================================= */

.games-ribbon {
    width: 100%;
    max-width: 720px;

    margin: 40px auto 0;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: transparent;

    border: 1px solid currentColor;
    border-radius: 2px;

    color: inherit;

    font: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.25em;

    cursor: pointer;

    opacity: 0.7;

    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        letter-spacing 0.3s ease;
}

.games-ribbon:hover {
    opacity: 1;
    letter-spacing: 0.3em;
    background: rgba(255, 255, 255, 0.03);
}

.games-ribbon-icon {
    font-size: 1.2rem;
    line-height: 1;

    transition:
        transform 0.4s ease;
}


/* =========================================
   GAME LIST
========================================= */

.games-list {
    width: 100%;
    max-width: 720px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    max-height: 0;
    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.6s ease,
        opacity 0.4s ease,
        margin-top 0.4s ease;
}


/* Open state */

.games-list.open {
    max-height: 1000px;

    margin-top: 20px;

    opacity: 1;
}


/* =========================================
   GAME ENTRY
========================================= */

.game-entry {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 14px 4px;

    border-bottom: 1px solid currentColor;

    opacity: 0.7;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.game-entry:hover {
    opacity: 1;
    transform: translateX(6px);
}


/* Game icon */

.game-entry img {
    width: 46px;
    height: 46px;

    object-fit: contain;

    border-radius: 8px;

    flex-shrink: 0;
}


/* Game name */

.game-entry span {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
}


/* =========================================
   MTA ENTRY
========================================= */

.game-placeholder-plus {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid currentColor;
    border-radius: 8px;

    font-size: 1.2rem;

    opacity: 0.5;
}


/* =========================================
   OPEN BUTTON STATE
========================================= */

.games-ribbon.active .games-ribbon-icon {
    transform: rotate(45deg);
}


/* =========================================
   ANIME CATEGORY RIBBONS
========================================= */

.anime-ribbon {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 24px;

    background: transparent;

    border: 1px solid currentColor;

    color: inherit;

    font: inherit;

    cursor: pointer;

    opacity: 0.7;

    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        letter-spacing 0.3s ease;
}

.anime-ribbon:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
}

.anime-ribbon .category-title {
    margin: 0;

    text-align: left;

    font-size: 0.8rem;
    letter-spacing: 0.35em;
}

.anime-ribbon-icon {
    font-size: 1.2rem;
    line-height: 1;

    transition: transform 0.4s ease;
}


/* =========================================
   COLLAPSIBLE ANIME ROW
========================================= */

.anime-category .anime-row {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    margin-top: 0;

    transition:
        max-height 0.7s ease,
        opacity 0.4s ease,
        margin-top 0.4s ease;
}

.anime-category.open .anime-row {
    max-height: 5000px;

    overflow: visible;

    margin-top: 30px;

    opacity: 1;
}

.anime-category.open .anime-ribbon-icon {
    transform: rotate(45deg);
}


/* =========================================
   SOCIAL DIRECTORY
========================================= */

.social-links {
    width: 100%;
    max-width: 800px;

    margin: 50px auto 0;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-card {
    display: grid;

    grid-template-columns: 50px 1fr 30px;
    align-items: center;

    gap: 20px;

    padding: 22px 24px;

    border: 1px solid rgba(179, 0, 60, 0.25);
    border-radius: 16px;

    background: rgba(15, 3, 9, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 232, 0.035),
        0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);

    color: inherit;

    text-decoration: none;

    text-align: left;

    opacity: 0.75;

    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.social-card:hover {
    opacity: 1;

    background: rgba(179, 0, 60, 0.08);

    border-color: rgba(179, 0, 60, 0.7);

    transform: translateX(6px);

    box-shadow:
        inset 3px 0 0 rgba(224, 0, 79, 0.7),
        inset 0 1px 0 rgba(255, 220, 232, 0.08),
        0 10px 28px rgba(179, 0, 60, 0.16);
}


/* Number */

.social-card > span:first-child {
    font-size: 0.7rem;

    letter-spacing: 0.2em;

    opacity: 0.45;

    transition: opacity 0.3s ease;
}


/* Name */

.social-card strong {
    font-size: 0.9rem;

    letter-spacing: 0.18em;

    font-weight: normal;

    transition: color 0.3s ease;
}


/* Arrow */

.social-arrow {
    font-size: 1.1rem;

    text-align: right;

    opacity: 0.5;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.social-card:hover .social-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

.social-card:hover > span:first-child {
    opacity: 0.75;
}

.social-card:hover strong {
    color: var(--text-foreground);
}


/* =========================================
   SOCIAL INTRO
========================================= */

.social-intro {
    max-width: 600px;

    margin: 0 auto;

    color: #8f737e;

    opacity: 0.65;

    text-align: center;
}


/* =========================================
   PROJECT INDEX
========================================= */

.project-list {
    max-width: 1000px;

    margin: 60px auto 0;

    text-align: left;
}


.project-entry {
    display: grid;

    grid-template-columns: 70px 1fr auto;

    align-items: center;

    gap: 30px;

    padding: 40px 10px;

    border-top: 1px solid rgba(179, 0, 60, 0.3);

    transition:
        padding 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}


.project-entry:last-child {
    border-bottom: 1px solid rgba(179, 0, 60, 0.3);
}


.project-entry:hover {
    padding-left: 20px;
    padding-right: 20px;

    background: rgba(179, 0, 60, 0.04);

    border-color: rgba(179, 0, 60, 0.65);
}


/* PROJECT NUMBER */

.project-number {
    color: #5c001f;

    font-size: 0.8rem;

    letter-spacing: 0.2em;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.project-entry:hover .project-number {
    color: #b3003c;

    transform: translateX(4px);
}


/* PROJECT CONTENT */

.project-content {
    min-width: 0;
}


.project-meta {
    margin-bottom: 10px;

    color: var(--text-muted);

    font-size: 0.65rem;

    font-weight: 600;

    letter-spacing: 0.25em;
}


.project-content h3 {
    margin: 0 0 12px;

    color: #b3003c;

    font-size: 1.25rem;

    letter-spacing: 0.12em;
}


.project-content p {
    max-width: 650px;

    margin: 0;

    color: var(--text-ash);

    font-size: 0.95rem;

    font-weight: 500;

    line-height: 1.7;
}


/* STATUS */

.project-status {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--text-soft);

    font-size: 0.65rem;

    letter-spacing: 0.2em;

    white-space: nowrap;

    opacity: 0.85;

    transition:
        opacity 0.3s ease,
        color 0.3s ease;
}


.project-status span {
    color: #b3003c;

    font-size: 1rem;

    transition: transform 0.3s ease;
}


.project-entry:hover .project-status {
    opacity: 1;

    color: #b3003c;
}


.project-entry:hover .project-status span {
    transform: translateX(5px);
}

.zafkiel-clock .clock-mark {
    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 0.62rem !important;
    font-weight: 700 !important;

    letter-spacing: 0.12em !important;

    color: rgba(225, 195, 215, 0.82) !important;

    text-shadow:
        0 0 4px rgba(120, 0, 35, 0.45),
        0 1px 1px rgba(0, 0, 0, 0.8) !important;

    opacity: 0.9 !important;
}

.zafkiel-clock::after {
    display: none;
}

.zafkiel-clock .clock-mark {
    font-size: 0.58rem !important;
    color: rgba(205, 180, 198, 0.72) !important;
    letter-spacing: 0.1em !important;
}

.zafkiel-clock .clock-hour img {
    filter:
        drop-shadow(0 0 4px rgba(120, 0, 25, 0.45))
        drop-shadow(0 0 8px rgba(170, 0, 40, 0.18));
}

.zafkiel-clock .clock-minute img {
    filter:
        drop-shadow(0 0 5px rgba(120, 0, 25, 0.5))
        drop-shadow(0 0 9px rgba(170, 0, 40, 0.2));
}

@media (max-width: 768px) {
    .character-entry {
        flex-direction: column !important;
    }
}

/* =========================================
   HIGH-DENSITY PORTRAIT PHONES
========================================= */

@media (max-width: 480px) and (orientation: portrait) {
    body {
        font-size: 15px;
    }

    .top-banner-wrap {
        width: calc(100% - 24px);
        margin-top: 68px;
    }

    .top-banner-image {
        height: clamp(120px, 30vw, 170px);
    }

    .hero {
        min-height: auto;
        padding: 72px 16px 52px;
    }

    h1 {
        font-size: clamp(2.35rem, 10vw, 3rem);
        letter-spacing: 0.16em;
        margin-top: 12px;
        margin-bottom: 14px;
    }

    .hero > p {
        font-size: 1rem;
        margin: 10px 0 24px;
    }

    #archive,
    #socials,
    #anime,
    #games,
    #projects,
    #personal,
    #characters {
        min-height: auto;
        padding: 64px 16px;
    }

    #archive h2,
    #socials h2,
    #anime h2,
    #games h2,
    #projects h2,
    #personal h2,
    #characters h2 {
        font-size: clamp(1.85rem, 8vw, 2.4rem);
        letter-spacing: 0.12em;
        line-height: 1.15;
    }

    .archive-intro,
    .social-intro,
    .anime-intro,
    .projects-intro,
    .personal-intro,
    .characters-intro {
        margin-bottom: 32px;
    }

    .archive-grid,
    .anime-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .archive-card,
    .anime-card {
        padding: 20px 16px;
    }

    .project-list {
        margin-top: 32px;
    }

    .project-entry {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding: 24px 4px;
        align-items: start;
    }

    .project-content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .project-content p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .project-status {
        grid-column: 2;
        margin-top: 2px;
        font-size: 0.58rem;
    }
}

/* =========================================
   ZAFKIEL ARTWORK MODE
========================================= */

.zafkiel-clock::before,
.zafkiel-clock::after,
.zafkiel-outer-ring,
.clock-ring,
.clock-hour-rays,
.clock-mark {
    display: none;
}

.zafkiel-core {
    display: none;
}

@media (max-width: 600px) {
    .zafkiel-clock {
        width: min(320px, 82vw);
    }

    .clock-hour img,
    .clock-minute img {
        width: 200px;
    }

    .clock-second {
        height: 130px;
    }
}

.clock-hour img,
.clock-minute img {
    visibility: hidden;
}

.clock-second {
    visibility: hidden;
}

/* =========================================
   CLEAN NAVBAR — v0.6
========================================= */

.navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Old desktop navbar links are now inside the hamburger */
.navbar > .nav-links {
    display: none;
}

/* Music disc stays between the logo and hamburger */
#music-toggle {
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 8px;
    transform: none;
}

/* Hamburger stays beside the music disc */
.menu-toggle {
    flex-shrink: 0;
    margin-left: 0;
}


/* =========================================
   MOBILE NAVBAR
========================================= */

@media (max-width: 768px) {

    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 12px 16px;
    }

    .nav-logo {
        width: auto;
        text-align: left;
        padding: 0;
        line-height: 1.2;
    }

    #music-toggle {
        width: 28px;
        height: 28px;
        margin-left: auto;
        margin-right: 6px;
        transform: none;
    }

    #music-disc {
        width: 28px;
        height: 28px;
    }

    .menu-toggle {
        width: auto;
        padding: 8px;
        margin-left: 0;
    }

}

/* =========================================
   FAVORITE SONG — LISTEN TO IT DROPDOWN
   v0.7
========================================= */

.song-entry {
    position: relative;
    z-index: 5;
}

.song-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.song-details {
    min-width: 0;
}

.song-details h4 {
    margin-bottom: 8px;
}

.song-details p {
    margin: 0;
}


/* =========================================
   DROPDOWN WRAPPER
========================================= */

.music-links-dropdown {
    position: relative;
    flex-shrink: 0;
}


/* =========================================
   TOGGLE BUTTON
========================================= */

.music-links-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-width: 150px;

    padding: 12px 16px;

    background: transparent;
    border: 1px solid rgba(179, 0, 60, 0.55);

    color: #c9aeb8;

    font-family: inherit;
    font-size: 10px;
    letter-spacing: 2px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.music-links-toggle:hover {
    background: rgba(179, 0, 60, 0.12);

    border-color: #b3003c;

    color: #ffffff;

    box-shadow:
        0 0 18px rgba(179, 0, 60, 0.18);
}


/* =========================================
   ARROW
========================================= */

.music-links-arrow {
    display: inline-block;

    font-size: 15px;
    line-height: 1;

    transition:
        transform 0.3s ease;
}

.music-links-toggle[aria-expanded="true"]
.music-links-arrow {
    transform: rotate(180deg);
}


/* =========================================
   DROPDOWN PANEL
========================================= */

.music-links-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 430px;
    max-width: min(430px, 90vw);

    padding: 18px;

    background: #450a0e;

    border: 1px solid rgba(179, 0, 60, 0.5);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(179, 0, 60, 0.12);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 100;
}


/* OPEN STATE */

.music-links-dropdown.open
.music-links-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;
}


/* =========================================
   INDIVIDUAL PREVIEW
========================================= */

.music-preview {
    padding-bottom: 18px;
    margin-bottom: 18px;

    border-bottom:
        1px solid rgba(201, 174, 184, 0.14);
}

.music-preview:last-child {
    padding-bottom: 0;
    margin-bottom: 0;

    border-bottom: none;
}


.music-preview-label {
    display: block;

    margin-bottom: 10px;

    color: #c9aeb8;

    font-size: 9px;
    letter-spacing: 2px;

    opacity: 0.75;
}


/* =========================================
   YOUTUBE
========================================= */

.youtube-embed {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #100406;
}


.youtube-embed iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: none;
}


/* =========================================
   SPOTIFY
========================================= */

.spotify-embed {
    width: 100%;

    overflow: hidden;
}


.spotify-embed iframe {
    width: 100%;

    height: 152px;

    display: block;

    border: none;
}


/* =========================================
   MOBILE OPTIMIZATION
========================================= */

@media (max-width: 768px) {

    .song-info {
        flex-direction: column;

        align-items: stretch;

        gap: 22px;
    }


    .music-links-dropdown {
        width: 100%;
    }


    .music-links-toggle {
        width: 100%;

        justify-content: space-between;
    }


    .music-links-menu {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;
        max-width: none;

        margin-top: 10px;

        padding: 14px;
    }


    .youtube-embed {
        aspect-ratio: 16 / 9;
    }


    .spotify-embed iframe {
        height: 152px;
    }

}

@media (max-width: 430px) {
    .music-links-menu {
        padding: 10px 10px 12px;
    }

    .music-preview {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .music-preview-label {
        margin-bottom: 8px;
        font-size: 8px;
        letter-spacing: 0.14em;
    }

    .youtube-embed {
        border-radius: 8px;
    }

    .spotify-embed iframe {
        height: 132px;
    }
}

@media (max-width: 360px) {
    .music-links-toggle {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .music-links-menu {
        padding: 8px 8px 10px;
    }

    .music-preview-label {
        font-size: 7px;
        letter-spacing: 0.12em;
    }

    .spotify-embed iframe {
        height: 120px;
    }
}

@media (max-width: 420px) {
    .hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .top-banner-wrap {
        width: calc(100% - 12px);
    }

    .top-banner-image {
        height: clamp(100px, 29vw, 150px);
    }
}

/* =========================================
   TALL PORTRAIT DEVICE VIEWPORTS
========================================= */

@media (min-width: 1000px) and (max-width: 1600px)
       and (min-height: 2400px) and (max-height: 3600px)
       and (orientation: portrait) {
    body {
        font-size: 24px;
    }

    .navbar {
        height: 120px;
        padding: 0 60px;
    }

    .nav-logo {
        font-size: 28px;
        letter-spacing: 5px;
    }

    #music-toggle {
        width: 54px;
        height: 54px;
    }

    #music-disc {
        width: 54px;
        height: 54px;
    }

    .menu-toggle {
        gap: 9px;
        padding: 14px;
    }

    .menu-toggle span {
        width: 38px;
        height: 4px;
    }

    .top-banner-wrap {
        width: calc(100% - 96px);
        margin-top: 156px;
    }

    .top-banner-image {
        height: clamp(260px, 24vw, 360px);
    }

    .hero {
        min-height: auto;
        padding: 180px 60px 160px;
    }

    h1 {
        font-size: clamp(80px, 6vw, 112px);
        letter-spacing: 0.16em;
        line-height: 1.08;
        margin-top: 0;
    }

    .hero > p {
        font-size: 28px;
        margin: 24px 0 42px;
    }

    .hero button,
    button {
        min-height: 72px;
        padding: 20px 36px;
        font-size: 24px;
        letter-spacing: 0.14em;
    }

    #archive,
    #socials,
    #anime,
    #games,
    #projects,
    #personal,
    #characters {
        min-height: auto;
        padding: 104px 60px;
    }

    #archive h2,
    #socials h2,
    #anime h2,
    #games h2,
    #projects h2,
    #personal h2,
    #characters h2 {
        font-size: clamp(56px, 4.5vw, 72px);
        letter-spacing: 0.12em;
        line-height: 1.15;
    }

    #archive > p,
    #socials > p,
    #anime > p,
    #games > p,
    #projects > p,
    #personal > p,
    #characters > p {
        font-size: 24px;
        line-height: 1.55;
    }

    .archive-link,
    .social-card strong,
    .project-status,
    .menu-nav-link {
        font-size: 20px;
    }

    .archive-grid,
    .anime-grid,
    .social-links,
    .project-list,
    .personal-list {
        max-width: 1000px;
        gap: 28px;
    }

    .archive-grid,
    .anime-grid {
        grid-template-columns: 1fr;
    }

    .archive-card,
    .anime-card,
    .personal-entry {
        padding: 36px 32px;
    }

    .archive-card h3,
    .anime-card h4,
    .project-content h3,
    .personal-content h3 {
        font-size: 28px;
        line-height: 1.3;
    }

    .archive-card p,
    .project-content p,
    .personal-content p {
        font-size: 22px;
        line-height: 1.6;
    }

    .anime-row {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .anime-card > img {
        max-height: none;
        margin-bottom: 24px;
    }

    .anime-card h4 {
        color: var(--text-foreground);
        font-size: 26px;
        font-weight: 600;
        line-height: 1.5;
    }

    .anime-number {
        color: var(--text-muted);
        font-size: 18px;
        margin-bottom: 10px;
    }

    .anime-ribbon {
        color: var(--text-foreground);
        opacity: 0.95;
        padding: 24px 30px;
    }

    .anime-ribbon .category-title {
        color: var(--text-foreground);
        font-size: 24px;
        font-weight: 600;
        letter-spacing: 0.22em;
    }

    .anime-ribbon-icon {
        color: var(--text-muted);
        font-size: 30px;
    }

    .character-entry,
    .character-left,
    .character-right {
        flex-direction: column !important;
        min-height: auto;
        margin-bottom: 140px;
        gap: 42px;
    }

    .character-image {
        width: 100%;
        height: 760px;
        order: 1;
    }

    .character-info {
        width: 100%;
        text-align: center;
        order: 2;
    }

    .character-info h3 {
        color: var(--text-foreground);
        font-size: clamp(48px, 5vw, 72px);
        font-weight: 700;
        line-height: 1.1;
    }

    .character-info p {
        color: var(--text-muted);
        font-size: 20px;
        font-weight: 600;
        line-height: 1.5;
        opacity: 1;
    }

    .character-entry::after {
        left: 5%;
        right: 5%;
        bottom: -70px;
    }

    .anime-category .anime-row {
        grid-template-columns: 1fr;
    }

    #archive,
    #socials,
    #anime,
    #games,
    #projects,
    #personal,
    #characters {
        content-visibility: auto;
        contain-intrinsic-size: 900px;
    }

    .music-bg-layer {
        opacity: 0.28;
        transition: opacity 0.35s ease;
    }

    .navbar {
        backdrop-filter: none;
    }

    .top-banner-wrap {
        box-shadow:
            inset 0 0 24px rgba(179, 0, 60, 0.12),
            0 0 32px rgba(179, 0, 60, 0.18),
            0 0 48px rgba(45, 219, 240, 0.1);
    }

    .project-list {
        margin-top: 48px;
    }

    .project-entry {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 24px;
        padding: 42px 12px;
        align-items: start;
    }

    .project-status {
        grid-column: 2;
        margin-top: 6px;
        font-size: 18px;
    }
}


/* =========================================================
   FAVORITE SONG — MOBILE LAYOUT
   ========================================================= */

@media (max-width: 600px) {

    .song-entry .song-info {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .song-entry .song-details {
        width: 100%;
    }

    .song-entry .music-links-dropdown {
        width: 100%;
    }

    .song-entry .music-links-toggle {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .song-entry .music-links-menu {
        width: 100%;
        box-sizing: border-box;
    }

    .song-entry .music-preview {
        width: 100%;
        box-sizing: border-box;
    }

    .song-entry .youtube-embed,
    .song-entry .spotify-embed {
        width: 100%;
        max-width: 100%;
    }

    .song-entry .youtube-embed iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        display: block;
    }

    .song-entry .spotify-embed iframe {
        width: 100%;
        height: 352px;
        display: block;
    }

}

@media (max-width: 360px) {
    #anime .anime-ribbon {
        max-width: none;
    }
}








