@import url('https://fonts.googleapis.com/css2?family=VT323&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
    --pink: #a3839e;
    --red: #cc0000;
    --mono: 'Courier Prime', 'Courier New', monospace;
    --serif: 'VT323', monospace;
}

body {
    font-family: var(--mono);
    background-color: #1a1a1a;
    color: #1a1a1a;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: crosshair;
}

/* ─── BACKGROUND ─── */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url(https://i.pinimg.com/736x/86/84/84/868484ddbb8c295bcc1c8b8031f6103c.jpg) center/cover no-repeat;
    /*background: linear-gradient(160deg, #2e2e2e 0%, #4a4a4a 40%, #6a6a6a 70%, #3a3a3a 100%);*/
}

.page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.30;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ─── CORNER BUTTONS ─── */
.corner-btn {
    position: fixed;
    z-index: 20;
    font-family: var(--mono);
    font-size: 0.85rem;
    padding: 4px 10px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    display: none;
}
.corner-btn:hover { opacity: 0.7; }

#btnReturn {
    bottom: 20px; left: 20px;
    background: #111; color: #fff;
}

/* ─── HOME ─── */
#home {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

        .ascii-logo {
    font-family: monospace;
    font-size: 0.5rem;
    line-height: 1.1;
    color: #000000;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    margin-bottom: 16px;
    white-space: pre;
    opacity: 0.9;
}

.logo .tagline {
    font-size: 0.7rem;
    color: #000000;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 45px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.links a {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: #000000;
    text-decoration: none;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}
.links a:hover {
    color: #fff;
    border-color: var(--pink);
    text-shadow: 0 0 8px var(--pink);
}

/* ─── SECTIONS ─── */
.section {
    display: none;
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 50px 0 60px;
    animation: fadeIn 0.5s ease;
}
.section.active { display: block; }

/* central content box */
.content-box {
    background: #ffffff;
    backdrop-filter: blur(4px);
    opacity: 0.8;
    border: 1px solid rgba(255,255,255,0.3);
    margin: 0 auto;
    max-width: 660px;
    padding: 40px 50px 50px;
    min-height: 75vh;
    box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}

.section-title {
    font-family: var(--serif);
    font-size: 2.8rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.section-body {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: #2a2a2a;
    line-height: 1.7;
}

.section-body p { margin-bottom: 20px; text-indent: 2em; }
.section-body p em { font-style: italic; }

.entry-date {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-indent: 0 !important;
    margin-bottom: 4px;
}

.entry-title {
    font-family: var(--serif);
    font-size: 1.9rem;
    color: #333;
    font-style: italic;
    margin-bottom: 14px;
    text-indent: 0 !important;
}

hr.divider { border: none; border-top: 1px solid rgba(0,0,0,0.15); margin: 28px 0; }

/* lists */
.item-list { list-style: none; padding: 0; }
.item-list li {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: #2a2a2a;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.item-list li:last-child { border-bottom: none; }
.item-name { font-style: italic; }
.item-meta { font-family: var(--mono); font-size: 0.72rem; color: #888; white-space: nowrap; }
.stars { color: var(--pink); font-size: 0.85rem; }

/* games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}
.game-card {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(0,0,0,0.12);
    padding: 14px;
    text-align: center;
}
.game-icon { font-size: 2rem; margin-bottom: 8px; }
.game-name { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: #2a2a2a; margin-bottom: 4px; }
.game-status { font-family: var(--mono); font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* label */
.sub-label {
    text-indent: 0 !important;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.85rem;
    font-family: var(--mono);
    letter-spacing: 1px;
}

#nieve {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}


/* ─── ANIMATION ─── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,110,156,0.4); border-radius: 3px; }

@media (max-width: 700px) {
    .content-box { padding: 28px 22px 36px; margin: 0 12px; }
    .side-quote { display: none; }
}