/* showa.boo - Goblincore Showa Timeline */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --tatami-warm: #E8DCC8;
    --kissaten-brown: #5A3E2A;
    --showa-vermillion: #CC3333;
    --matcha-green: #5A7A4A;
    --gold-label: #C8A84A;
    --sepia-wash: #B8A888;
    --ink-sumi: #1A1A14;
    --aged-paper: #7A7060;
}
html, body {
    height: 100%;
    overflow: hidden;
}
body {
    background: var(--tatami-warm);
    color: var(--ink-sumi);
    font-family: 'Shippori Mincho', serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Era Timeline Bar */
.era-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: var(--kissaten-brown);
    z-index: 100;
    display: flex;
    align-items: center;
}
.era-track {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 2;
}
.era-year {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.7rem;
    color: var(--sepia-wash);
}
.era-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--showa-vermillion), var(--gold-label));
    opacity: 0.4;
    z-index: 1;
    transition: width 0.1s ease;
}

/* Scroll Container */
.scroll-container {
    display: flex;
    height: calc(100vh - 28px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Decade Panels */
.decade-panel {
    flex: 0 0 100vw;
    height: calc(100vh - 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
}
.panel-intro { background: var(--tatami-warm); }
.panel-30s { background: linear-gradient(135deg, var(--tatami-warm), #DDD0B8); }
.panel-50s { background: var(--kissaten-brown); color: var(--tatami-warm); }
.panel-70s { background: linear-gradient(135deg, #D8C8A8, var(--tatami-warm)); }
.panel-80s { background: linear-gradient(135deg, var(--kissaten-brown), #3A2818); color: var(--tatami-warm); }

.panel-content {
    max-width: 600px;
    padding: 2rem;
    position: relative;
}
.collage {
    min-height: 400px;
}
.decade-label {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.8rem;
    color: var(--showa-vermillion);
    display: block;
    margin-bottom: 0.5rem;
}
.panel-50s .decade-label,
.panel-80s .decade-label {
    color: var(--gold-label);
}
.decade-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}
.title-main {
    font-size: clamp(3rem, 7vw, 5rem);
}
.decade-domain {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.9rem;
    color: var(--aged-paper);
    margin-top: 0.5rem;
}
.decade-sub {
    font-size: 0.95rem;
    color: var(--aged-paper);
    margin-top: 0.25rem;
}
.decade-body {
    font-size: 1rem;
    margin-top: 1rem;
    line-height: 1.8;
}

/* Matchbox Labels */
.matchbox {
    position: absolute;
    width: 80px;
    height: 120px;
    background: var(--tatami-warm);
    border: 2px solid var(--gold-label);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.matchbox:hover {
    transform: rotate(0deg) translateY(-4px) !important;
}
.mb-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--showa-vermillion);
}
.mb-year {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.65rem;
    color: var(--aged-paper);
    margin-top: 4px;
}
.mb1 { top: 50%; right: 15%; }
.mb2 { top: 20%; right: 10%; }
.mb3 { position: absolute; }
.mb4 { top: 15%; right: 8%; }
.mb5 { position: absolute; }
.mb6 { top: 20%; right: 12%; }
.mb7 { position: absolute; }
.mb8 { top: 25%; right: 10%; }

/* Panel-specific matchbox colors */
.panel-50s .matchbox,
.panel-80s .matchbox {
    background: var(--kissaten-brown);
    border-color: var(--gold-label);
}
.panel-50s .mb-text,
.panel-80s .mb-text {
    color: var(--gold-label);
}

/* Responsive */
@media (max-width: 600px) {
    .matchbox { width: 60px; height: 90px; }
    .mb-text { font-size: 0.9rem; }
    .panel-content { padding: 1.5rem; }
}
