/* ============================================
   taisho.day — Terminal HUD Dispatch Center
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1A1510;
    color: #F0E8D8;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Particles Layer --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    left: var(--x, 50%);
    width: var(--size, 2px);
    height: var(--size, 2px);
    background: #C8A060;
    border-radius: 50%;
    opacity: var(--opacity, 0.3);
    animation: drift var(--duration, 15s) var(--delay, 0s) infinite linear;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: var(--opacity, 0.3);
    }
    50% {
        transform: translateY(-50vh) translateX(15px);
        opacity: var(--opacity, 0.3);
    }
    100% {
        transform: translateY(-110vh) translateX(-10px);
        opacity: 0;
    }
}

/* --- Pulse Animation --- */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* --- Blink Animation --- */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1s step-end infinite;
}

/* --- HUD Panel --- */
/* Panel BG: #2A2018 (Dark Umber) at 85% opacity */
.hud-panel {
    position: relative;
    background: #2A2018;
    background: rgba(42, 32, 24, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(200, 160, 100, 0.3);
    padding: 2.5rem 3rem;
    max-width: 720px;
    margin: 0 auto;
}

/* --- Corner Brackets --- */
.corner-bracket {
    position: absolute;
    width: 18px;
    height: 18px;
}

.corner-bracket::before,
.corner-bracket::after {
    content: '';
    position: absolute;
    background: #C8A060;
}

.corner-bracket.top-left {
    top: -1px;
    left: -1px;
}
.corner-bracket.top-left::before {
    top: 0;
    left: 0;
    width: 18px;
    height: 1px;
}
.corner-bracket.top-left::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 18px;
}

.corner-bracket.top-right {
    top: -1px;
    right: -1px;
}
.corner-bracket.top-right::before {
    top: 0;
    right: 0;
    width: 18px;
    height: 1px;
}
.corner-bracket.top-right::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 18px;
}

.corner-bracket.bottom-left {
    bottom: -1px;
    left: -1px;
}
.corner-bracket.bottom-left::before {
    bottom: 0;
    left: 0;
    width: 18px;
    height: 1px;
}
.corner-bracket.bottom-left::after {
    bottom: 0;
    left: 0;
    width: 1px;
    height: 18px;
}

.corner-bracket.bottom-right {
    bottom: -1px;
    right: -1px;
}
.corner-bracket.bottom-right::before {
    bottom: 0;
    right: 0;
    width: 18px;
    height: 1px;
}
.corner-bracket.bottom-right::after {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 18px;
}

/* --- Status Indicator --- */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #C8A060;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(200, 160, 96, 0.6);
}

/* --- Section 1: Hero --- */
#hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.hero-panel {
    text-align: center;
    padding: 3.5rem 4rem;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #C8A060;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-timestamp {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #8A7050;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.status-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0.8rem;
    color: #8A7050;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Section 2: Data Panel --- */
#data-section {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(200, 160, 100, 0.2);
}

.panel-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #C8A060;
    text-transform: uppercase;
}

.data-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-grid.compact {
    gap: 0.5rem;
}

.data-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.data-key {
    color: #8A7050;
    white-space: nowrap;
    min-width: 100px;
}

.data-separator {
    color: rgba(138, 112, 80, 0.3);
    flex-shrink: 0;
    margin: 0 0.5rem;
    overflow: hidden;
    white-space: nowrap;
}

.data-value {
    color: #F0E8D8;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.data-value.highlight {
    color: #C8A060;
}

/* --- Section 3: Secondary Panel --- */
#secondary-section {
    position: relative;
    z-index: 1;
    padding: 0 2rem 4rem;
}

.section-separator {
    width: 100%;
    max-width: 720px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C8A060, transparent);
    margin: 0 auto 4rem;
}

.signal-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(26, 21, 16, 0.6);
    border-left: 2px solid rgba(200, 160, 100, 0.4);
}

.signal-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #F0E8D8;
    line-height: 2;
    letter-spacing: 0.02em;
}

.signal-line.dim {
    color: #8A7050;
}

/* --- Section 4: Closing --- */
#closing-section {
    position: relative;
    z-index: 1;
    padding: 0 2rem 6rem;
}

.closing-panel {
    text-align: center;
    padding: 3rem 3rem;
}

.closing-domain {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #C8A060;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.closing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: #8A7050;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cursor-line {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: #C8A060;
}

.prompt-char {
    color: #B07840;
    margin-right: 0.25rem;
}

.cursor {
    color: #C8A060;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hud-panel {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .hero-panel {
        padding: 2.5rem 2rem;
    }

    .data-row {
        font-size: 0.75rem;
    }

    .data-key {
        min-width: 80px;
    }

    .signal-block {
        padding: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}

@media (max-width: 480px) {
    .hud-panel {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .data-separator {
        display: none;
    }

    .data-row {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .data-key {
        min-width: unset;
        width: 100%;
    }

    .data-value {
        padding-left: 1rem;
    }
}
