/* ===== GLOBAL ===== */
body {
    margin: 0;
    background: #0d021a;
    color: #e7d7ff;
    font-family: "Press Start 2P", monospace;
    line-height: 1.8;
    padding-bottom: 60px;
}

/* Nintendo purple */
:root {
    --nintendo-purple: #471978;
    --nintendo-accent: #a45bff;
    --nintendo-border: #d7b3ff;
}

h1, h2, h3 {
    color: var(--nintendo-accent);
    text-shadow: 0 0 8px #a45bff;
}

h3 {
    margin-bottom: 20px;
    border-left: 6px solid var(--nintendo-accent);
    padding-left: 12px;
}

ul {
    list-style: square;
    padding-left: 25px;
}

/* ===== CRT SCANLINE EFFECT ===== */
.scanline {
    pointer-events: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.01) 0,
        rgba(0,0,0,0.2) 3px,
        rgba(0,0,0,0.25) 4px
    );
    z-index: 999;
}

.crt::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.10) 3px
    );
    mix-blend-mode: overlay;
}

/* ===== HEADER ===== */
.header {
    padding: 50px 10%;
	margin: 0 5%;
    background: var(--nintendo-purple);
    border-bottom: 6px solid var(--nintendo-border);
    box-shadow: 0 0 25px #471978aa;
}

.title {
    font-size: 22px;
}

.subtitle {
    margin-top: 15px;
    font-size: 14px;
}

.intro {
    margin-top: 25px;
    /* max-width: 850px; */
}

/* ===== BLOCK SECTIONS ===== */
.block {
    margin: 40px 10%;
    padding: 30px;
    background: #1a062c;
    border: 4px solid var(--nintendo-border);
    box-shadow: 0 0 20px #47197888;
}

/* ===== EXPERIENCE CARDS ===== */
.xp-card {
    margin: 25px 0;
    padding: 20px;
    background: #22073f;
    border: 3px dashed var(--nintendo-accent);
    box-shadow: 0 0 8px #a45bff55;
}

.xp-card span {
    color: var(--nintendo-accent);
}

.xp-info {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 12px;
}

/* ===== FOOTER ===== */
.footer {
    /* margin-top: 50px; */
	margin: 0 5%;
    padding: 25px;
    text-align: center;
    border-top: 4px solid var(--nintendo-border);
}

/* ===== APPEARING ANIMATION ===== */
.header, .block, .xp-card {
    animation: pop 0.45s ease-out;
}

@keyframes pop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media(max-width: 900px) {
    body { font-size: 10px; }

	.block {margin: 20px 5%;}
}

/* ===================== INTRO PRESS START ===================== */

#intro-screen {
    position: fixed;
    inset: 0;
    background: black;
    color: #a45bff;
    font-family: "Press Start 2P", monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
    animation: fadeIn 1s ease forwards;
}

.intro-content h1 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
}

.press-start {
    font-size: 14px;
    animation: blink 0.9s infinite steps(1);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===================== DIALOG BOX STYLE ===================== */

.dialog-box {
    border: 6px solid #d7b3ff;
    background: #1a062c;
    padding: 30px;
    box-shadow:
        inset 0 0 0 4px #471978,
        0 0 12px #471978aa;
}

.dialog-box-inner {
    border: 4px solid #a45bff;
    background: #22073f;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 3px #471978;
}

/* Animation SNES pop */
.dialog-box, .dialog-box-inner {
    animation: dialogPop 0.25s ease-out;
}

@keyframes dialogPop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
