/* =====================================================
   showa.boo - Showa-era ghost town meets vaporwave
   Palette:
     #e87040 sunset orange
     #6a4c93 twilight purple
     #fdf5e8 cream
     #1a1a1a film black
     #f0e8f4 ghost white
     #e8608a neon pink
   Fonts: Shippori Mincho, Noto Sans JP, Klee One
   ===================================================== */

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

:root {
    --sunset: #e87040;
    --twilight: #6a4c93;
    --cream: #fdf5e8;
    --film: #1a1a1a;
    --ghost: #f0e8f4;
    --neon: #e8608a;

    --font-display: "Shippori Mincho", "Noto Serif JP", serif;
    --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
    --font-hand: "Klee One", "Noto Sans JP", cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--film);
    background: linear-gradient(
        180deg,
        #f4a86a 0%,
        var(--sunset) 12%,
        #c25c7e 28%,
        var(--twilight) 45%,
        #38264f 70%,
        var(--film) 95%,
        var(--film) 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.75;
    font-size: 16px;
}

/* =====================================================
   GHOST KANJI LAYER
   ===================================================== */

.ghost-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ghost-kanji {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ghost);
    opacity: 0.03;
    user-select: none;
    white-space: nowrap;
    animation: ghostDrift 38s linear infinite;
}

.ghost-kanji--1 { font-size: 22vw; left: -2%;  top: 10%;  animation-duration: 42s; }
.ghost-kanji--2 { font-size: 16vw; right: -1%; top: 35%;  animation-duration: 56s; animation-delay: -8s; }
.ghost-kanji--3 { font-size: 30vw; left: 20%;  top: 60%;  animation-duration: 34s; animation-delay: -14s; }
.ghost-kanji--4 { font-size: 14vw; right: 5%;  top: 80%;  animation-duration: 50s; animation-delay: -4s; }
.ghost-kanji--5 { font-size: 18vw; left: 5%;   top: 130%; animation-duration: 44s; animation-delay: -20s; }
.ghost-kanji--6 { font-size: 24vw; right: 10%; top: 170%; animation-duration: 60s; animation-delay: -10s; }
.ghost-kanji--7 { font-size: 16vw; left: 30%;  top: 220%; animation-duration: 48s; animation-delay: -26s; }
.ghost-kanji--8 { font-size: 20vw; right: 0%;  top: 260%; animation-duration: 52s; animation-delay: -16s; }

@keyframes ghostDrift {
    0%   { transform: translateY(0)     translateX(0); opacity: 0.03; }
    50%  { transform: translateY(-60vh) translateX(20px); opacity: 0.05; }
    100% { transform: translateY(-120vh) translateX(0); opacity: 0.02; }
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    z-index: 2;
    border-bottom: 4px solid var(--film);
    isolation: isolate;
}

.hero__sky {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 60%, #ffd6a0 0%, var(--sunset) 25%, #b85a7b 55%, var(--twilight) 85%, #2a1c47 100%);
    z-index: 1;
}

.hero__sun {
    position: absolute;
    left: 50%;
    bottom: 28%;
    width: 240px;
    height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(circle, #fff2d4 0%, #ffd089 35%, var(--sunset) 70%, transparent 78%);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 80px rgba(255, 200, 130, 0.6);
    z-index: 2;
    animation: sunPulse 8s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: translateX(-50%) scale(1);    filter: blur(1px); }
    50%      { transform: translateX(-50%) scale(1.04); filter: blur(0.5px); }
}

.hero__stars {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero__stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--ghost);
    border-radius: 50%;
    opacity: 0.7;
    animation: twinkle 4s ease-in-out infinite;
}

.hero__stars span:nth-child(1)  { top: 8%;  left: 12%; animation-delay: 0s; }
.hero__stars span:nth-child(2)  { top: 14%; left: 78%; animation-delay: 0.6s; }
.hero__stars span:nth-child(3)  { top: 6%;  left: 45%; animation-delay: 1.2s; }
.hero__stars span:nth-child(4)  { top: 20%; left: 88%; animation-delay: 1.8s; }
.hero__stars span:nth-child(5)  { top: 4%;  left: 30%; animation-delay: 2.4s; }
.hero__stars span:nth-child(6)  { top: 18%; left: 60%; animation-delay: 3.0s; }
.hero__stars span:nth-child(7)  { top: 12%; left: 4%;  animation-delay: 0.3s; }
.hero__stars span:nth-child(8)  { top: 22%; left: 22%; animation-delay: 1.5s; }
.hero__stars span:nth-child(9)  { top: 9%;  left: 92%; animation-delay: 2.1s; }
.hero__stars span:nth-child(10) { top: 16%; left: 50%; animation-delay: 2.7s; }
.hero__stars span:nth-child(11) { top: 5%;  left: 70%; animation-delay: 3.3s; }
.hero__stars span:nth-child(12) { top: 24%; left: 38%; animation-delay: 0.9s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.6); }
}

/* CITYSCAPE */
.cityscape {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.city-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.city-layer--back {
    height: 38%;
    bottom: 18%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    opacity: 0.55;
    filter: blur(0.5px);
}

.city-layer--back .building {
    background: linear-gradient(180deg, #2a1c47, var(--film));
    width: 11%;
    border-top: 2px solid #1a1a1a;
}

.city-layer--back .b1 { height: 60%; clip-path: polygon(0 100%, 0 30%, 30% 0, 70% 0, 100% 30%, 100% 100%); }
.city-layer--back .b2 { height: 45%; clip-path: polygon(0 100%, 0 20%, 50% 0, 100% 20%, 100% 100%); }
.city-layer--back .b3 { height: 75%; clip-path: polygon(0 100%, 0 15%, 25% 0, 75% 0, 100% 15%, 100% 100%); }
.city-layer--back .b4 { height: 50%; clip-path: polygon(0 100%, 0 25%, 50% 0, 100% 25%, 100% 100%); }
.city-layer--back .b5 { height: 68%; clip-path: polygon(0 100%, 0 10%, 50% 0, 100% 10%, 100% 100%); }
.city-layer--back .b6 { height: 40%; clip-path: polygon(0 100%, 0 30%, 30% 0, 70% 0, 100% 30%, 100% 100%); }
.city-layer--back .b7 { height: 55%; clip-path: polygon(0 100%, 0 20%, 50% 0, 100% 20%, 100% 100%); }
.city-layer--back .b8 { height: 80%; clip-path: polygon(0 100%, 0 12%, 40% 0, 60% 0, 100% 12%, 100% 100%); }

/* MID layer - storefronts */
.city-layer--mid {
    height: 40%;
    bottom: 8%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2%;
    gap: 1%;
}

.storefront {
    position: relative;
    flex: 1;
    background: var(--film);
    height: 80%;
    border-radius: 2px 2px 0 0;
    box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.3) inset;
}

.storefront .roof {
    position: absolute;
    top: -22px;
    left: -8%;
    right: -8%;
    height: 22px;
    background: var(--film);
    clip-path: polygon(0 100%, 8% 0, 92% 0, 100% 100%);
}

.storefront .sign-jp {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cream);
    font-size: clamp(0.7rem, 1.4vw, 1.1rem);
    background: rgba(232, 96, 138, 0.0);
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

.storefront .sign-jp.neon {
    color: var(--neon);
    text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon);
    animation: neonFlicker 4.5s infinite;
}

.storefront .window {
    position: absolute;
    bottom: 12px;
    width: 22%;
    height: 28%;
    background: linear-gradient(180deg, #ffd089, var(--sunset));
    border: 1px solid #2a1c47;
    box-shadow: 0 0 12px rgba(255, 200, 130, 0.5);
}

.storefront .w1 { left: 14%; }
.storefront .w2 { right: 14%; }

.storefront.sf1 { height: 70%; }
.storefront.sf2 { height: 85%; }
.storefront.sf3 { height: 75%; }
.storefront.sf4 { height: 90%; }
.storefront.sf5 { height: 78%; }

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon), 0 0 24px var(--neon);
    }
    20%, 24%, 55% {
        opacity: 0.5;
        text-shadow: none;
    }
}

/* FRONT layer - lampposts */
.city-layer--front {
    height: 8%;
    bottom: 0;
}

.lamppost {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 80px;
    background: var(--film);
}

.lamppost .lamp {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff2d4 0%, var(--sunset) 60%, transparent 80%);
    box-shadow: 0 0 16px #ffd089, 0 0 32px var(--sunset);
    animation: lampGlow 5s ease-in-out infinite;
}

.lamppost.lp1 { left: 18%; height: 70px; }
.lamppost.lp2 { left: 50%; height: 90px; }
.lamppost.lp3 { left: 82%; height: 75px; }

@keyframes lampGlow {
    0%, 100% { box-shadow: 0 0 12px #ffd089, 0 0 24px var(--sunset); }
    50%      { box-shadow: 0 0 20px #ffd089, 0 0 40px var(--sunset); }
}

/* HERO CONTENT */
.hero__content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 8vh 5vw 0;
    max-width: 900px;
    margin: 0 auto;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--cream);
    background: rgba(26, 26, 26, 0.4);
    padding: 8px 18px;
    border: 1px solid rgba(253, 245, 232, 0.3);
    border-radius: 2px;
}

.hero__eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon);
}

.hero__title {
    margin-top: 32px;
    line-height: 1;
    color: var(--cream);
}

.hero__title-jp {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(5rem, 18vw, 14rem);
    letter-spacing: 0.05em;
    color: var(--cream);
    text-shadow:
        0 0 24px rgba(232, 96, 138, 0.4),
        0 4px 0 rgba(26, 26, 26, 0.4);
    line-height: 0.9;
}

.hero__title-en {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.02em;
    color: var(--cream);
    margin-top: 8px;
}

.hero__title-en .dotboo {
    color: var(--neon);
    text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon);
    font-style: italic;
}

.hero__subtitle {
    margin-top: 24px;
    font-family: var(--font-hand);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--cream);
    opacity: 0.92;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 56px;
    padding: 14px 24px;
    border: 1px solid rgba(253, 245, 232, 0.6);
    background: rgba(26, 26, 26, 0.3);
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.3s;
    border-radius: 2px;
}

.hero__scroll:hover {
    background: rgba(232, 96, 138, 0.25);
    transform: translateY(-2px);
}

.hero__scroll .arrow {
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

.hero__neon-sign {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 4;
    text-align: right;
    font-family: var(--font-display);
    font-weight: 700;
}

.neon-text {
    display: block;
    color: var(--neon);
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon), 0 0 32px rgba(232, 96, 138, 0.5);
    animation: neonFlicker 5.5s infinite;
}

.neon-text--small {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-top: 4px;
    animation-delay: 0.3s;
}

/* =====================================================
   FILM STRIP FRAMES
   ===================================================== */

.frame {
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--film);
    border-bottom: 4px solid var(--film);
    background: linear-gradient(180deg, rgba(253, 245, 232, 0.04), rgba(253, 245, 232, 0.02));
    padding: 64px 0;
    margin-top: -4px; /* tile borders */
}

.frame__sprockets-top,
.frame__sprockets-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    pointer-events: none;
    background-image:
        linear-gradient(to right, transparent 12px, var(--cream) 12px, var(--cream) 28px, transparent 28px);
    background-size: 40px 24px;
    background-repeat: repeat-x;
    background-position: 0 0;
}

.frame__sprockets-top {
    top: -4px;
    background-image:
        repeating-linear-gradient(to right,
            transparent 0,
            transparent 12px,
            var(--cream) 12px,
            var(--cream) 28px,
            transparent 28px,
            transparent 40px);
    height: 12px;
    background-size: auto;
    background-position: 0 0;
    background-color: var(--film);
    border-bottom: 2px solid var(--film);
}

.frame__sprockets-bottom {
    bottom: -4px;
    background-image:
        repeating-linear-gradient(to right,
            transparent 0,
            transparent 12px,
            var(--cream) 12px,
            var(--cream) 28px,
            transparent 28px,
            transparent 40px);
    height: 12px;
    background-color: var(--film);
    border-top: 2px solid var(--film);
}

.frame__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 6vw;
    position: relative;
    z-index: 2;
}

.frame__inner--center {
    text-align: center;
}

.frame__counter {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--film);
    padding: 6px 14px;
    border: 1px solid var(--cream);
    border-radius: 2px;
    margin-bottom: 24px;
}

.frame__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 0 rgba(26, 26, 26, 0.4);
    letter-spacing: 0.01em;
}

.frame__title--big {
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: var(--cream);
    text-shadow: 0 0 24px rgba(232, 96, 138, 0.3), 0 4px 0 rgba(26, 26, 26, 0.5);
}

.frame__lede {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ghost);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0.92;
}

.frame__lede--center {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 64px;
    font-family: var(--font-hand);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

/* =====================================================
   POLAROID STACK
   ===================================================== */

.polaroid-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    padding: 16px 0;
    perspective: 1000px;
}

.polaroid {
    background: var(--cream);
    padding: 14px 14px 56px;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 14px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.polaroid--rot1 { transform: rotate(-2.5deg); }
.polaroid--rot2 { transform: rotate(1.8deg); }
.polaroid--rot3 { transform: rotate(-1.2deg); }

.polaroid:hover {
    transform: rotate(0) translateY(-8px) scale(1.03);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.45),
        0 28px 60px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.polaroid__photo {
    aspect-ratio: 4 / 3;
    background: var(--film);
    overflow: hidden;
    position: relative;
}

.polaroid__caption {
    margin-top: 14px;
    font-family: var(--font-hand);
    font-size: 0.95rem;
    color: var(--film);
    text-align: center;
    line-height: 1.4;
    padding: 0 6px;
}

/* PHOTO SCENES (CSS-only) */
.photo-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Alley scene */
.scene--alley {
    background: linear-gradient(180deg, #2a1c47 0%, var(--twilight) 50%, #4a2858 100%);
    overflow: hidden;
}

.scene--alley::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.5) 100%);
}

.alley-light {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 200, 130, 0.6) 0%, rgba(232, 112, 64, 0.3) 30%, transparent 70%);
}

.alley-window {
    position: absolute;
    width: 16px;
    height: 22px;
    background: linear-gradient(180deg, #ffd089, var(--sunset));
    box-shadow: 0 0 8px rgba(255, 200, 130, 0.6);
}

.alley-window.aw1 { top: 20%; left: 18%; }
.alley-window.aw2 { top: 36%; right: 22%; }
.alley-window.aw3 { top: 52%; left: 40%; width: 14px; height: 18px; }

.alley-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18%;
    background: linear-gradient(180deg, #1a1a1a, #2a1c47);
}

/* Vending machine scene */
.scene--vending {
    background: linear-gradient(180deg, #2a1c47, var(--film));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8%;
}

.vm {
    width: 50%;
    height: 78%;
    background: linear-gradient(180deg, #d04050 0%, #b03040 100%);
    border: 2px solid var(--film);
    border-radius: 4px;
    padding: 8px;
    position: relative;
    box-shadow: 0 0 24px rgba(255, 200, 130, 0.4);
}

.vm-screen {
    height: 18%;
    background: linear-gradient(180deg, #ffd089, var(--sunset));
    margin-bottom: 6px;
    border: 1px solid var(--film);
}

.vm-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.vm-row span {
    flex: 1;
    height: 18px;
    background: linear-gradient(180deg, var(--cream), #d4c8b0);
    border: 1px solid var(--film);
}

.vm-slot {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 12%;
    background: var(--film);
    border-radius: 2px;
}

/* Neon scene */
.scene--neon {
    background: radial-gradient(circle at 50% 50%, #4a2858 0%, var(--film) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.neon-frame {
    width: 60%;
    aspect-ratio: 1;
    border: 4px solid var(--neon);
    border-radius: 50%;
    box-shadow:
        0 0 16px var(--neon),
        0 0 32px var(--neon),
        inset 0 0 16px var(--neon);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: neonFlicker 6s infinite;
}

.neon-jp {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4rem;
    color: var(--neon);
    text-shadow:
        0 0 8px var(--neon),
        0 0 16px var(--neon),
        0 0 32px var(--neon);
}

/* =====================================================
   ARCHIVE
   ===================================================== */

.archive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    border-left: 2px dashed rgba(253, 245, 232, 0.3);
    padding-left: 32px;
    position: relative;
}

.archive__entry {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    background: rgba(253, 245, 232, 0.06);
    border: 1px solid rgba(253, 245, 232, 0.15);
    border-radius: 2px;
    transition: background 0.4s, transform 0.4s, border-color 0.4s;
    position: relative;
}

.archive__entry::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon);
    border: 2px solid var(--film);
}

.archive__entry:hover {
    background: rgba(232, 96, 138, 0.1);
    border-color: var(--neon);
    transform: translateX(8px);
}

.archive__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--sunset);
    text-shadow: 0 0 12px rgba(232, 112, 64, 0.4);
}

.archive__body h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 6px;
}

.archive__body p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ghost);
    opacity: 0.9;
    line-height: 1.6;
}

.archive__year {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: var(--neon);
    text-align: right;
    text-shadow: 0 0 4px rgba(232, 96, 138, 0.4);
}

/* =====================================================
   GLOSSARY (flip cards)
   ===================================================== */

.glossary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding-top: 16px;
}

.g-card {
    aspect-ratio: 1 / 1.2;
    perspective: 1000px;
    cursor: pointer;
}

.g-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.g-card:hover .g-card__inner,
.g-card.is-flipped .g-card__inner {
    transform: rotateY(180deg);
}

.g-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    border-radius: 2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.g-card__face--front {
    background: var(--cream);
    border: 1px solid var(--film);
    color: var(--film);
}

.g-card__face--front::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(26, 26, 26, 0.2);
    pointer-events: none;
}

.g-kanji {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--film);
    line-height: 1;
}

.g-romaji {
    margin-top: 12px;
    font-family: var(--font-hand);
    font-size: 1rem;
    color: var(--sunset);
    letter-spacing: 0.1em;
}

.g-card__face--back {
    background: var(--film);
    color: var(--cream);
    transform: rotateY(180deg);
    border: 1px solid var(--neon);
    box-shadow: 0 0 16px rgba(232, 96, 138, 0.3), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.g-card__face--back p {
    font-family: var(--font-hand);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cream);
    text-align: center;
}

/* =====================================================
   CASSETTE
   ===================================================== */

.cassette {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 56px;
    align-items: start;
    padding-top: 16px;
}

.cassette__shell {
    background: linear-gradient(180deg, #f0e8f4 0%, #d4c8b0 100%);
    border: 3px solid var(--film);
    border-radius: 6px;
    padding: 18px;
    aspect-ratio: 1.6 / 1;
    position: relative;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(26, 26, 26, 0.1);
}

.cassette__label {
    background: var(--cream);
    border: 1px solid var(--film);
    padding: 10px 12px;
    margin-bottom: 12px;
    text-align: center;
}

.cassette__label-line {
    height: 1px;
    background: var(--film);
    margin: 4px 0;
}

.cassette__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--film);
}

.cassette__sub {
    font-family: var(--font-hand);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--twilight);
    margin-top: 2px;
}

.cassette__windows {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cassette__window {
    flex: 1;
    aspect-ratio: 1;
    background: var(--film);
    border-radius: 50%;
    border: 2px solid var(--film);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.cassette__reel {
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--cream) 18%, transparent 19%),
        conic-gradient(from 0deg, var(--film) 0deg 40deg, var(--cream) 40deg 50deg, var(--film) 50deg 90deg, var(--cream) 90deg 100deg, var(--film) 100deg 140deg, var(--cream) 140deg 150deg, var(--film) 150deg 190deg, var(--cream) 190deg 200deg, var(--film) 200deg 240deg, var(--cream) 240deg 250deg, var(--film) 250deg 290deg, var(--cream) 290deg 300deg, var(--film) 300deg 340deg, var(--cream) 340deg 350deg, var(--film) 350deg 360deg);
    border: 1px solid var(--film);
    animation: reelSpin 6s linear infinite;
}

.cassette__reel--right {
    animation-duration: 9s;
}

@keyframes reelSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.cassette__bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.cassette__hole {
    width: 8px;
    height: 8px;
    background: var(--film);
    border-radius: 50%;
}

/* TRACKLIST */
.tracklist {
    list-style: none;
    counter-reset: track;
    background: rgba(253, 245, 232, 0.06);
    border: 1px solid rgba(253, 245, 232, 0.15);
    border-radius: 2px;
    padding: 8px 0;
}

.tracklist li {
    display: grid;
    grid-template-columns: 56px 1fr 64px;
    gap: 16px;
    padding: 10px 20px;
    align-items: center;
    border-bottom: 1px dashed rgba(253, 245, 232, 0.15);
    transition: background 0.3s, padding-left 0.3s;
}

.tracklist li:last-child {
    border-bottom: none;
}

.tracklist li:hover {
    background: rgba(232, 96, 138, 0.1);
    padding-left: 28px;
}

.t-num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.t-name {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 0.95rem;
}

.t-time {
    font-family: var(--font-hand);
    color: var(--sunset);
    font-size: 0.9rem;
    text-align: right;
}

/* =====================================================
   SIGN-OFF
   ===================================================== */

.signoff {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 32px;
    text-align: left;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.stamp {
    width: 180px;
    height: 180px;
    border: 4px solid var(--neon);
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-8deg);
    box-shadow: 0 0 20px rgba(232, 96, 138, 0.4);
    position: relative;
}

.stamp::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--neon);
    border-radius: 50%;
}

.stamp__inner {
    text-align: center;
    color: var(--neon);
}

.stamp__kanji {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    text-shadow: 0 0 12px var(--neon);
}

.stamp__sub {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    margin-top: 6px;
}

.signoff__text p {
    font-family: var(--font-hand);
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.92;
}

.signoff__small {
    margin-top: 16px;
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
    letter-spacing: 0.1em;
}

/* =====================================================
   TAPE PROGRESS
   ===================================================== */

.tape-progress {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10;
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid var(--neon);
    padding: 10px 14px;
    border-radius: 2px;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.tape-progress__rail {
    width: 100%;
    height: 4px;
    background: rgba(253, 245, 232, 0.2);
    position: relative;
    overflow: hidden;
}

.tape-progress__head {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--sunset), var(--neon));
    transition: width 0.15s linear;
    box-shadow: 0 0 8px var(--neon);
}

.tape-progress__label {
    text-transform: uppercase;
    color: var(--neon);
    text-shadow: 0 0 4px var(--neon);
    font-size: 0.65rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
    .cassette {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cassette__shell {
        max-width: 360px;
        margin: 0 auto;
    }

    .signoff {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .stamp {
        margin: 0 auto;
    }

    .archive__entry {
        grid-template-columns: 50px 1fr;
        gap: 16px;
    }

    .archive__year {
        grid-column: 2 / 3;
        text-align: left;
        margin-top: 4px;
    }

    .hero__neon-sign {
        top: 16px;
        right: 16px;
    }

    .neon-text {
        font-size: 1.2rem;
    }

    .neon-text--small {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .frame__inner {
        padding: 24px 5vw;
    }

    .polaroid-stack {
        gap: 32px;
    }

    .tape-progress {
        bottom: 12px;
        right: 12px;
        min-width: 140px;
        font-size: 0.6rem;
        padding: 8px 10px;
    }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ghost-kanji {
        animation: none;
        opacity: 0.04;
    }

    .neon-text,
    .storefront .sign-jp.neon,
    .neon-frame {
        animation: none;
    }

    .cassette__reel {
        animation: none;
    }
}
