/* =========================================================
PIXEL ARCHIVE
RETRO ARCADE PORTFOLIO
========================================================= */

:root {
--black: #050509;
--deep-black: #080811;
--panel: #0c0c16;
--panel-light: #111121;

--cyan: #00f6ff;
--cyan-dark: #008f99;

--magenta: #ff00d9;
--yellow: #ffe600;

--green: #39ff14;
--red: #ff3158;

--white: #f4f4f4;
--gray: #73738a;
--dark-gray: #28283a;

--pixel-font: "Press Start 2P", monospace;
--terminal-font: "VT323", monospace;

}

/* =========================================================
RESET
========================================================= */

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

html {
scroll-behavior: smooth;
}

body {
background: var(--black);
color: var(--white);
font-family: var(--terminal-font);
overflow-x: hidden;
cursor: none;
}

button,
a {
cursor: none;
}

button {
font-family: var(--pixel-font);
}

.green {
color: var(--green) !important;
}

/* =========================================================
CRT
========================================================= */

.crt {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 9990;
}

.scanlines {
position: absolute;
inset: 0;

background:
    repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.025) 0px,
        rgba(255,255,255,0.025) 1px,
        transparent 1px,
        transparent 4px
    );

}

.noise {
position: absolute;
inset: 0;
opacity: 0.025;

background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");

animation: noiseMove 0.2s infinite;

}

@keyframes noiseMove {
0% { transform: translate(0); }
25% { transform: translate(2px, -1px); }
50% { transform: translate(-1px, 2px); }
75% { transform: translate(1px, 1px); }
100% { transform: translate(0); }
}

/* =========================================================
CURSOR
========================================================= */

#pixelCursor {
    position: fixed;
    top: 0;
    left: 0;

    width: 12px;
    height: 12px;

    background: var(--cyan);
    box-shadow:
        0 0 8px var(--cyan),
        0 0 20px rgba(0, 246, 255, 0.4);

    pointer-events: none !important;
    z-index: 10000;

    transform: translate(-50%, -50%);
    image-rendering: pixelated;

    /* Evita que interfiera con los clics */
    user-select: none;
}

#pixelCursor::after {
content: "";

position: absolute;

width: 22px;
height: 22px;

border: 1px solid var(--cyan);

left: -6px;
top: -6px;

opacity: .4;

}

body.cursor-hover #pixelCursor {
background: var(--magenta);

box-shadow:
    0 0 8px var(--magenta),
    0 0 25px var(--magenta);

transform:
    translate(-50%, -50%)
    scale(1.5);

}

/* =========================================================
PARTICLES
========================================================= */

#particles {
position: fixed;
inset: 0;

width: 100%;
height: 100%;

pointer-events: none;
z-index: 1;

}

/* =========================================================
GENERAL
========================================================= */

.screen {
min-height: 100vh;
position: relative;
overflow: hidden;
}

/* =========================================================
INTRO
========================================================= */

.intro {
min-height: 100vh;

display: flex;
justify-content: center;
align-items: center;

background:
    radial-gradient(
        circle at center,
        #16162b 0%,
        #080811 42%,
        #030306 100%
    );

}

.intro-grid {
position: absolute;
inset: 0;

background-image:
    linear-gradient(
        rgba(0,246,255,.06) 1px,
        transparent 1px
    ),
    linear-gradient(
        90deg,
        rgba(0,246,255,.06) 1px,
        transparent 1px
    );

background-size: 50px 50px;

transform:
    perspective(400px)
    rotateX(55deg)
    scale(1.5);

transform-origin: center bottom;
opacity: .45;

}

.intro-grid::after {
content: "";

position: absolute;
inset: 0;

background:
    linear-gradient(
        transparent 0%,
        rgba(0,246,255,.1) 50%,
        transparent 100%
    );

animation: gridScan 4s linear infinite;

}

@keyframes gridScan {
from { transform: translateY(-100%); }
to { transform: translateY(100%); }
}

.intro-content {
position: relative;
z-index: 5;

text-align: center;

width: min(900px, 90%);

}

.system-text {
font-family: var(--pixel-font);

color: var(--green);

font-size: 10px;
letter-spacing: 3px;

margin-bottom: 45px;

animation: blink 1.5s steps(2) infinite;

}

.logo-small {
color: var(--cyan);

font-family: var(--pixel-font);

font-size: 11px;
letter-spacing: 5px;

margin-bottom: 20px;

}

.logo {
font-family: var(--pixel-font);

font-size: clamp(38px, 8vw, 92px);

line-height: .9;
letter-spacing: -5px;

color: var(--white);

text-shadow:
    5px 5px 0 var(--magenta),
    -4px -4px 0 var(--cyan);

animation: logoGlitch 5s infinite;

}

.logo span {
color: var(--yellow);
}

.logo-line {
color: var(--cyan);

font-size: 15px;

margin: 20px 0;

overflow: hidden;

}

.logo-sub {
font-family: var(--pixel-font);

color: var(--magenta);

font-size: 11px;
letter-spacing: 5px;

}

.boot-info {
display: flex;
justify-content: center;

gap: 35px;

margin-top: 55px;

font-size: 20px;

color: var(--gray);

}

.boot-info b {
color: var(--green);
}

.pixel-button {
position: relative;

border: none;

background: var(--cyan);
color: #020205;

padding: 18px 28px;

font-family: var(--pixel-font);
font-size: 11px;

clip-path: polygon(
    0 4px,
    4px 4px,
    4px 0,
    calc(100% - 4px) 0,
    calc(100% - 4px) 4px,
    100% 4px,
    100% calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 100%,
    4px 100%,
    4px calc(100% - 4px),
    0 calc(100% - 4px)
);

transition: .15s;

}

.pixel-button:hover {
background: var(--yellow);

transform: translateY(-4px);

box-shadow:
    6px 6px 0 var(--magenta);

}

.start-button {
margin-top: 40px;

animation:
    startPulse 1.2s steps(2) infinite;

}

.button-icon {
margin-right: 12px;
}

.press-start {
font-family: var(--pixel-font);

font-size: 9px;

color: var(--gray);

margin-top: 25px;

animation: blink 1s steps(2) infinite;

}

.version {
position: absolute;

bottom: 25px;
right: 30px;

color: var(--gray);

font-size: 18px;

}

/* =========================================================
HUD
========================================================= */

.hud {
position: sticky;

top: 0;

height: 72px;

border-bottom: 2px solid var(--cyan);

background: rgba(5,5,9,.94);

display: flex;

align-items: center;

justify-content: space-between;

padding: 0 35px;

z-index: 20;

box-shadow:
    0 4px 25px rgba(0,246,255,.08);

}

.hud-left,
.hud-right {
display: flex;

gap: 30px;

align-items: center;

}

.hud-center {
font-family: var(--pixel-font);

color: var(--cyan);

font-size: 11px;

letter-spacing: 2px;

}

.hud-label {
display: block;

color: var(--gray);

font-size: 14px;

}

.hud-value,
#score {
color: var(--yellow);

font-size: 23px;

}

.online {
color: var(--green);

font-size: 17px;

}

/* =========================================================
MENU
========================================================= */

.menu-section {
background:
radial-gradient(
circle at 50% 20%,
#161626,
#050509 65%
);
}

.menu-container {
width: min(1100px, 92%);

margin: auto;

padding: 70px 0 50px;

}

.menu-heading {
border-left: 5px solid var(--magenta);

padding-left: 25px;

margin-bottom: 45px;

}

.stage-number {
font-family: var(--pixel-font);

color: var(--magenta);

font-size: 9px;

}

.menu-heading h2 {
font-family: var(--pixel-font);

font-size: clamp(25px, 4vw, 42px);

margin: 15px 0;

color: var(--white);

}

.menu-heading p {
color: var(--gray);

font-size: 22px;

}

.stage-list {
display: grid;

gap: 14px;

}

.stage-card {
min-height: 125px;

display: grid;

grid-template-columns: 100px 1fr auto;

align-items: center;

border: 1px solid var(--dark-gray);

background:
    linear-gradient(
        90deg,
        rgba(0,246,255,.025),
        transparent
    );

position: relative;

overflow: hidden;

transition: .2s;

}

.stage-card::before {
content: "";

position: absolute;

left: 0;
top: 0;
bottom: 0;

width: 3px;

background: var(--cyan);

transform: scaleY(0);

transition: .2s;

}

.stage-card:hover {
border-color: var(--cyan);

background: rgba(0,246,255,.04);

transform: translateX(8px);

}

.stage-card:hover::before {
transform: scaleY(1);
}

.stage-number-big {
font-family: var(--pixel-font);

color: var(--dark-gray);

font-size: 28px;

text-align: center;

}

.stage-card:hover .stage-number-big {
color: var(--cyan);
}

.stage-info {
padding: 20px;
}

.stage-status {
color: var(--green);

font-size: 15px;

}

.stage-info h3 {
font-family: var(--pixel-font);

font-size: 15px;

margin: 10px 0;

color: var(--white);

}

.stage-info p {
color: var(--gray);

font-size: 18px;

}

.stage-button {
margin-right: 25px;

border: 1px solid var(--cyan);

background: transparent;

color: var(--cyan);

padding: 13px 20px;

font-family: var(--pixel-font);

font-size: 9px;

transition: .15s;

}

.stage-button:hover {
background: var(--cyan);

color: var(--black);

box-shadow:
    4px 4px 0 var(--magenta);

}

.stage-button span {
margin-left: 10px;
}

.locked {
opacity: .45;
}

.locked::before {
background: var(--gray);
}

.locked-status {
color: var(--red);
}

.stage-button:disabled {
border-color: var(--gray);

color: var(--gray);

}

.menu-footer {
display: flex;

justify-content: space-between;

border-top: 1px solid var(--dark-gray);

margin-top: 50px;

padding-top: 20px;

color: var(--gray);

font-size: 18px;

}

/* =========================================================
SUBMENÚ TEMPLATES
========================================================= */

.templates-section {
min-height: 100vh;

display: none;

background:
    radial-gradient(
        circle at 50% 20%,
        #161626,
        #050509 65%
    );

}

.templates-section.active {
display: block;

animation:
    screenIn .4s steps(4);

}

.templates-header {
border-bottom-color: var(--yellow);
}

.templates-container {
width: min(1100px, 92%);

margin: auto;

padding: 70px 0 50px;

}

.template-list {
display: grid;

gap: 14px;

}

.template-card {
min-height: 125px;

display: grid;

grid-template-columns: 100px 1fr auto;

align-items: center;

border: 1px solid var(--dark-gray);

background:
    linear-gradient(
        90deg,
        rgba(255,230,0,.025),
        transparent
    );

position: relative;

overflow: hidden;

transition: .2s;

}

.template-card::before {
content: "";

position: absolute;

left: 0;
top: 0;
bottom: 0;

width: 3px;

background: var(--yellow);

transform: scaleY(0);

transition: .2s;

}

.template-card:hover {
border-color: var(--yellow);

background:
    rgba(255,230,0,.04);

transform:
    translateX(8px);

}

.template-card:hover::before {
transform: scaleY(1);
}

.template-number {
font-family: var(--pixel-font);

color: var(--dark-gray);

font-size: 28px;

text-align: center;

}

.template-card:hover .template-number {
color: var(--yellow);

text-shadow:
    0 0 10px rgba(255,230,0,.5);

}

.template-info {
padding: 20px;
}

.template-info > span {
color: var(--green);

font-size: 15px;

}

.template-info h3 {
font-family: var(--pixel-font);

font-size: 15px;

margin: 10px 0;

color: var(--white);

}

.template-info p {
color: var(--gray);

font-size: 18px;

}

.template-card:hover .template-info h3 {
color: var(--yellow);
}

/* =========================================================
GALERÍA
========================================================= */

.gallery-section {
min-height: 100vh;

background: #06060c;

display: none;

overflow: visible;
}

.gallery-section.active {
display: block;

animation:
    screenIn .4s steps(4);

}

.gallery-header {
min-height: 90px;

border-bottom: 2px solid var(--magenta);

display: grid;

grid-template-columns: 1fr 2fr 1fr;

align-items: center;

padding: 15px 35px;

background: #090911;

}

.back-button {
justify-self: start;

border: 1px solid var(--cyan);

background: transparent;

color: var(--cyan);

padding: 12px 18px;

font-family: var(--pixel-font);

font-size: 9px;

}

.back-button:hover {
background: var(--cyan);

color: var(--black);

}

.gallery-header > div:nth-child(2) {
text-align: center;
}

.gallery-stage {
color: var(--magenta);

font-family: var(--pixel-font);

font-size: 8px;

}

.gallery-header h2 {
font-family: var(--pixel-font);

font-size: 18px;

margin-top: 10px;

}

.gallery-counter {
justify-self: end;

color: var(--gray);

font-size: 16px;

}

.gallery-counter span {
color: var(--yellow);
}

.gallery-container {
width: min(1250px, 92%);

margin: auto;

padding: 55px 0;

overflow: visible;
}

/*
.gallery-grid {
display: grid;

grid-template-columns:
    repeat(
        auto-fit,
        minmax(250px, 1fr)
    );

gap: 25px;

}¨
*/

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 24px;

    align-items: start;

    width: 100%;

}

/*
.asset-card {
position: relative;

background: var(--panel);

border: 1px solid #29293b;

padding: 10px;

transition: .2s;

animation:
    assetIn .45s both;

}
*/

.asset-card {
    position: relative;

    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    background: var(--panel);

    border: 1px solid #29293b;

    padding: 10px;

    overflow: hidden;

    transition: .2s;

    animation: assetIn .45s both;

    min-width: 0;
}

.asset-card:hover {
border-color: var(--cyan);

transform:
    translateY(-8px)
    scale(1.015);

box-shadow:
    8px 8px 0 rgba(255,0,217,.5),
    0 0 30px rgba(0,246,255,.15);

}

/*
.asset-image {
width: 100%;

aspect-ratio: 4 / 3;

object-fit: cover;

display: block;

image-rendering: auto;

background: #000;

}
*/

.asset-image {
    display: block;

    width: 100%;
    height: auto;

    /* Mantiene las proporciones originales */
    object-fit: contain;

    /* Evita espacios extra debajo de la imagen */
    vertical-align: middle;
}

.asset-number {
position: absolute;

top: 17px;
left: 17px;

background: var(--black);

color: var(--cyan);

padding: 7px;

font-family: var(--pixel-font);

font-size: 8px;

}

/*
.asset-footer {
padding: 15px 5px 5px;

display: flex;

justify-content: space-between;

align-items: center;

}
*/

.asset-footer {
    padding: 15px 5px 5px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

/*
.asset-name {
color: var(--white);

font-size: 19px;

}
*/

.asset-name {
    color: var(--white);

    font-size: 19px;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

/*
.asset-type {
color: var(--magenta);

font-family: var(--pixel-font);

font-size: 7px;

}
*/

.asset-type {
    color: var(--magenta);

    font-family: var(--pixel-font);

    font-size: 7px;

    flex-shrink: 0;
}

.loading-screen {
display: none;

width: min(600px, 85%);

margin: 120px auto;

text-align: center;

}

.loading-screen.active {
display: block;
}

.loading-title {
font-family: var(--pixel-font);

color: var(--cyan);

font-size: 12px;

margin-bottom: 25px;

}

.loading-bar {
height: 20px;

border: 2px solid var(--cyan);

padding: 3px;

}

#loadingProgress {
height: 100%;

width: 0%;

background: var(--cyan);

}

#loadingText {
color: var(--gray);

font-size: 19px;

margin-top: 15px;

}

.gallery-footer {
border-top: 1px solid var(--dark-gray);

padding: 20px 35px;

display: flex;

justify-content: space-between;

align-items: center;

gap: 20px;

color: var(--gray);

flex-wrap: wrap;
}

.green-dot {
color: var(--green);
}

/* =========================================================
MODAL
========================================================= */

.image-modal {
position: fixed;

inset: 0;

z-index: 9000;

display: none;

align-items: center;

justify-content: center;

padding: 20px;

overflow-y: auto;

overflow-x: hidden;
}

.image-modal.active {
display: flex;
}

.modal-overlay {
position: absolute;

inset: 0;

background: rgba(0,0,0,.9);

backdrop-filter: blur(4px);

}

.modal-window {
position: relative;

z-index: 2;

width: min(1100px, 95vw);

max-height: calc(100vh - 40px);

overflow-y: auto;

overflow-x: hidden;

background: #090911;

border: 2px solid var(--cyan);

box-shadow:
    10px 10px 0 var(--magenta),
    0 0 50px rgba(0,246,255,.15);
}

.modal-header {
height: 55px;

padding: 0 20px;

display: flex;

justify-content: space-between;

align-items: center;

border-bottom: 1px solid var(--dark-gray);

color: var(--cyan);

font-family: var(--pixel-font);

font-size: 9px;

}

.modal-header button {
border: 0;

background: transparent;

color: var(--red);

font-family: var(--pixel-font);

font-size: 10px;

}

.modal-content {
display: grid;

grid-template-columns:
    minmax(0, 1fr) 280px;

gap: 25px;

padding: 25px;

min-width: 0;
}

/*
.image-frame {
min-height: 450px;

background:
    repeating-linear-gradient(
        45deg,
        #08080e 0,
        #08080e 10px,
        #0b0b13 10px,
        #0b0b13 20px
    );

display: flex;

justify-content: center;

align-items: center;

border: 1px solid var(--dark-gray);

padding: 20px;

}
*/

.image-frame {
    min-height: 300px;

    background:
        repeating-linear-gradient(
            45deg,
            #08080e 0,
            #08080e 10px,
            #0b0b13 10px,
            #0b0b13 20px
        );

    display: flex;

    justify-content: center;

    align-items: center;

    border: 1px solid var(--dark-gray);

    padding: 20px;

    min-width: 0;
}

/*
.image-frame img {
max-width: 100%;

max-height: 65vh;

object-fit: contain;

}
*/

.image-frame img {
    display: block;

    max-width: 100%;

    max-height: 65vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.asset-info {
border-left: 1px solid var(--dark-gray);

padding-left: 25px;

}

.info-line {
display: flex;

flex-direction: column;

margin-bottom: 25px;

}

.info-line span {
color: var(--gray);

font-size: 15px;

}

.info-line strong {
color: var(--white);

font-size: 20px;

}

.asset-divider {
height: 1px;

background: var(--dark-gray);

margin: 25px 0;

}

.asset-message span {
color: var(--cyan);

font-size: 15px;

}

.asset-message p {
color: var(--gray);

margin-top: 10px;

font-size: 18px;

white-space: pre-line;

}

.modal-footer {
height: 50px;

border-top: 1px solid var(--dark-gray);

display: flex;

align-items: center;

justify-content: space-between;

padding: 0 20px;

color: var(--gray);

}

.modal-footer span {
cursor: none;
}

/* =========================================================
PROFILE
========================================================= */

.profile-section {
min-height: 100vh;

background:
    radial-gradient(
        circle at 70% 30%,
        #171022,
        #050509 60%
    );

padding: 100px 20px;

}

.profile-container {
width: min(950px, 95%);

margin: auto;

}

.section-title {
border-left: 5px solid var(--yellow);

padding-left: 20px;

margin-bottom: 45px;

}

.section-title span {
color: var(--yellow);

font-family: var(--pixel-font);

font-size: 8px;

}

.section-title h2 {
font-family: var(--pixel-font);

margin-top: 15px;

font-size: clamp(22px, 4vw, 38px);

}

.profile-card {
display: grid;

grid-template-columns: 220px 1fr;

gap: 40px;

border: 1px solid var(--dark-gray);

padding: 35px;

background: rgba(255,255,255,.015);

}

.profile-avatar {
aspect-ratio: 1;

border: 3px solid var(--cyan);

display: flex;

justify-content: center;

align-items: center;

position: relative;

background:
    repeating-linear-gradient(
        45deg,
        #0a0a12,
        #0a0a12 10px,
        #10101d 10px,
        #10101d 20px
    );

}

.profile-avatar-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: .18;

    z-index: 1;

    image-rendering: auto;

    pointer-events: none;
}


.avatar-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(0, 246, 255, .08),
            rgba(255, 0, 217, .08)
        );

    z-index: 2;

    pointer-events: none;
}

.avatar-inner {
    position: relative;

    z-index: 3;

    font-family: var(--pixel-font);

    color: var(--magenta);

    font-size: 18px;

    line-height: 1.5;

    text-align: center;

    text-shadow:
        2px 2px 0 var(--black),
        0 0 10px rgba(255, 0, 217, .5);
}

.profile-avatar::before {
content: "PLAYER 01";

position: absolute;

top: -12px;
left: 15px;

background: var(--black);

padding: 4px 8px;

color: var(--cyan);

font-family: var(--pixel-font);

font-size: 7px;

}

.avatar-inner {
font-family: var(--pixel-font);

color: var(--magenta);

font-size: 18px;

line-height: 1.5;

text-align: center;

}

.profile-name {
font-family: var(--pixel-font);

color: var(--white);

font-size: 18px;

margin-bottom: 30px;

}

.profile-row {
display: flex;

justify-content: space-between;

border-bottom: 1px solid var(--dark-gray);

padding: 12px 0;

}

.profile-row span {
color: var(--gray);
}

.profile-row strong {
color: var(--cyan);
}

.skills {
margin-top: 60px;
}

.skills h3 {
font-family: var(--pixel-font);

color: var(--magenta);

font-size: 13px;

margin-bottom: 30px;

}

.skill {
display: grid;

grid-template-columns:
    170px 1fr 40px;

align-items: center;

gap: 15px;

margin-bottom: 18px;

}

.skill > span {
color: var(--gray);

font-size: 17px;

}

.skill-bar {
height: 12px;

background: #171722;

border: 1px solid var(--dark-gray);

padding: 2px;

}

.skill-bar i {
display: block;

height: 100%;

background: var(--cyan);

box-shadow:
    0 0 8px var(--cyan);

}

.skill b {
color: var(--yellow);
}

.contact-box {
margin-top: 70px;

padding: 25px;

border: 1px solid var(--cyan);

display: flex;

justify-content: space-between;

align-items: center;

}

.contact-box span {
display: block;

color: var(--gray);

}

.contact-box strong {
display: block;

color: var(--cyan);

font-family: var(--pixel-font);

font-size: 12px;

margin-top: 10px;

}

.contact-links {
display: flex;

gap: 10px;

}

.contact-links a {
text-decoration: none;

color: var(--white);

border: 1px solid var(--magenta);

padding: 10px 15px;

font-family: var(--pixel-font);

font-size: 7px;

}

.contact-links a:hover {
background: var(--magenta);

color: var(--black);

}

/* =========================================================
FINAL
========================================================= */

.end-section {
min-height: 70vh;

display: flex;

align-items: center;

justify-content: center;

text-align: center;

background: #030305;

}

.end-glitch {
color: var(--red);

font-family: var(--pixel-font);

font-size: 9px;

margin-bottom: 25px;

}

.end-content h2 {
font-family: var(--pixel-font);

font-size: clamp(25px, 6vw, 55px);

line-height: 1.4;

color: var(--white);

text-shadow:
    4px 0 var(--cyan),
    -4px 0 var(--magenta);

}

.end-content p {
color: var(--gray);

font-size: 20px;

margin: 25px 0;

}

/* =========================================================
ANIMATIONS
========================================================= */

@keyframes blink {
0%, 45% {
opacity: 1;
}

46%, 100% {
    opacity: .2;
}

}

@keyframes startPulse {
0%, 100% {
filter: brightness(1);
}

50% {
    filter: brightness(1.3);
}

}

@keyframes logoGlitch {
0%, 92%, 100% {
transform: none;
}

93% {
    transform: translateX(-4px);
}

94% {
    transform: translateX(4px);
}

95% {
    transform: translateX(-2px);
}

}

@keyframes screenIn {
from {
opacity: 0;
transform: scale(.98);
}

to {
    opacity: 1;
    transform: scale(1);
}

}

@keyframes assetIn {
from {
opacity: 0;
transform: translateY(20px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

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

@media (max-width: 800px) {

body {
    cursor: auto;
}

#pixelCursor {
    display: none;
}

.hud {
    padding: 0 15px;
    height: 60px;
}

.hud-center {
    display: none;
}

.hud-left,
.hud-right {
    gap: 12px;
}

.hud-label {
    font-size: 11px;
}

.hud-value,
#score {
    font-size: 17px;
}

.online {
    font-size: 13px;
}

.boot-info {
    flex-direction: column;

    gap: 8px;

    margin-top: 35px;
}

.stage-card,
.template-card {
    grid-template-columns: 60px 1fr;

    padding: 15px;
}

.stage-number-big,
.template-number {
    font-size: 20px;
}

.stage-button {
    grid-column: 2;

    justify-self: start;

    margin:
        0
        0
        10px
        20px;
}

.menu-footer {
    flex-direction: column;

    gap: 10px;
}

.gallery-header {
    grid-template-columns: 1fr 1fr;

    padding: 12px 15px;
}

.gallery-header > div:nth-child(2) {
    text-align: right;
}

.gallery-counter {
    display: none;
}

.gallery-grid {
    grid-template-columns: 1fr;
}

.gallery-footer {
    flex-direction: column;

    gap: 8px;

    padding: 15px;
}

.modal-content {
    grid-template-columns: 1fr;

    overflow: visible;

    max-height: none;
}

.image-frame {
    min-height: 250px;
}

.asset-info {
    border-left: none;

    border-top: 1px solid var(--dark-gray);

    padding-left: 0;

    padding-top: 20px;
}

.profile-card {
    grid-template-columns: 1fr;
}

.profile-avatar {
    width: 180px;

    margin: auto;
}

.skill {
    grid-template-columns:
        1fr 50px;
}

.skill > span {
    grid-column: 1 / -1;
}

.contact-box {
    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
}

.contact-links {
    flex-wrap: wrap;
}

}

@media (max-width: 450px) {

.logo {
    font-size: 34px;
}

.logo-sub {
    font-size: 8px;
}

.system-text {
    font-size: 7px;
}

.menu-container,
.templates-container {
    padding-top: 40px;
}

.stage-info h3,
.template-info h3 {
    font-size: 11px;
}

.stage-info p,
.template-info p {
    font-size: 16px;
}

.modal-window {
    width: 96vw;

    box-shadow:
        5px 5px 0 var(--magenta);
}

.modal-footer span {
    font-size: 13px;
}

}

/* =========================================================
TOUCH / MOBILE STAGE SELECTION
========================================================= */

@media (hover: none) and (pointer: coarse) {

.stage-card,
.template-card {
    transition:
        transform .2s steps(3),
        border-color .2s steps(3),
        background .2s steps(3),
        box-shadow .2s steps(3);
}

.stage-card.touch-selected,
.template-card.touch-selected {
    border-color: var(--cyan);

    background:
        linear-gradient(
            90deg,
            rgba(0,246,255,.08),
            rgba(255,0,217,.04)
        );

    transform:
        translateX(6px);

    box-shadow:
        6px 0 0 var(--magenta),
        0 0 25px rgba(0,246,255,.15);

    animation:
        mobileStagePulse 1s steps(2) infinite;
}

.stage-card.touch-selected::before,
.template-card.touch-selected::before {
    transform: scaleY(1);
}

.stage-card.touch-selected .stage-number-big,
.template-card.touch-selected .template-number {
    color: var(--cyan);

    text-shadow:
        0 0 8px var(--cyan);
}

.stage-card.touch-selected .stage-info h3,
.template-card.touch-selected .template-info h3 {
    color: var(--yellow);
}

.stage-card.touch-selected .stage-button,
.template-card.touch-selected .stage-button {
    background: var(--cyan);

    color: var(--black);

    box-shadow:
        4px 4px 0 var(--magenta);
}

}

@keyframes mobileStagePulse {

0%, 100% {
    filter: brightness(1);
}

50% {
    filter: brightness(1.15);
}

}

/* =========================================================
   VISOR DE IMAGEN COMPLETA
========================================================= */

.fullscreen-viewer {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, .96);

    overflow: auto;
}

.fullscreen-viewer.active {
    display: flex;

    animation: fullscreenIn .2s steps(3);
}


/* Fondo */

.fullscreen-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(20, 20, 35, .5),
            rgba(0, 0, 0, .98)
        );
}


/* Imagen */

#fullscreenImage {
    position: relative;

    z-index: 2;

    display: block;

    max-width: 95vw;
    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;

    image-rendering: auto;

    cursor: none;

    box-shadow:
        0 0 30px rgba(0, 246, 255, .15);
}


/* X */

.fullscreen-close {
    position: absolute;

    top: 20px;
    right: 25px;

    z-index: 5;

    width: 45px;
    height: 45px;

    border: 2px solid var(--red);

    background: var(--black);

    color: var(--red);

    font-family: var(--pixel-font);

    font-size: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: none;

    transition: .15s;
}

.fullscreen-close:hover {
    background: var(--red);

    color: var(--black);

    box-shadow:
        5px 5px 0 var(--cyan);
}


/* Animación */

@keyframes fullscreenIn {

    from {
        opacity: 0;

        transform:
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            scale(1);
    }

}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 800px) {

    .fullscreen-viewer {
        padding: 15px;
    }

    #fullscreenImage {
        max-width: 96vw;
        max-height: 92vh;
    }

    .fullscreen-close {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 13px;
    }

}
/* =========================================================
EVENT ARCHIVE — PROJECT-SPECIFIC LAYOUT
========================================================= */
.hidden-screen:not(.screen-visible), .screen-hidden { display: none !important; }
.screen-visible { display: block; animation: screenIn .35s steps(4); }
.content-screen { display: none; min-height: 100vh; background: radial-gradient(circle at 50% 12%, #111126, #050509 66%); }
.content-screen.screen-visible { display: block; }
.intro.screen-hidden, .menu-section.screen-hidden { display: none !important; }
.intro.screen-visible { display: flex; }
.menu-section.screen-visible { display: block; }

/* Intro logo can hold the longer project name without breaking the arcade layout. */
.logo { line-height: 1.55; }
.logo span { color: var(--cyan); }
.logo-sub { letter-spacing: 2px; }

/* About/profile database */
.profile-layout, .events-container, .detail-container { width: min(1120px, 92%); margin: 0 auto; padding: 58px 0 70px; }
.profile-card-event { margin: 0 auto 22px; max-width: 850px; }
.profile-avatar-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #111a2c, #080811); }
.profile-avatar-placeholder::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(0,246,255,.5); }
.profile-avatar-placeholder .avatar-inner { position: relative; z-index: 2; }
.database-panel { border: 1px solid var(--dark-gray); background: rgba(12,12,22,.88); padding: 25px 28px; margin: 18px 0; box-shadow: 7px 7px 0 rgba(0,246,255,.045); }
.panel-kicker { color: var(--cyan); font-family: var(--pixel-font); font-size: 9px; margin-bottom: 18px; }
.bio-copy { color: #d4d4df; font-size: 25px; line-height: 1.35; max-width: 950px; }
.language-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(115,115,138,.2); font-size: 21px; }
.language-row span { color: var(--white); }
.language-row strong { color: var(--yellow); font-size: 17px; font-weight: normal; }
.language-meter { display: block; height: 7px; background: #252538; }
.language-meter b { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 9px rgba(0,246,255,.35); }
.language-note { color: var(--gray); font-size: 18px; margin-top: 14px; }
.skill-panel .skill { margin: 16px 0; }
.profile-bottom-note, .detail-footnote { color: var(--gray); font-size: 17px; text-align: center; padding: 22px 0 0; letter-spacing: 1px; }

/* Event mission list */
.event-list { display: grid; gap: 14px; }
.event-card { min-height: 148px; display: grid; grid-template-columns: 78px minmax(0,1fr) 118px auto; align-items: center; gap: 12px; border: 1px solid var(--dark-gray); background: linear-gradient(90deg, rgba(0,246,255,.035), transparent 70%); position: relative; transition: .2s; cursor: pointer; }
.event-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cyan); transform: scaleY(0); transition: .2s; }
.event-card:hover { border-color: var(--cyan); transform: translateX(6px); background: rgba(0,246,255,.045); }
.event-card:hover::before { transform: scaleY(1); }
.event-number { color: var(--dark-gray); font: 25px var(--pixel-font); text-align: center; }
.event-card:hover .event-number { color: var(--cyan); }
.event-identity { padding: 18px 8px; min-width: 0; }
.event-status { font-size: 15px; color: var(--green); }
.event-card.progress .event-status { color: var(--yellow); }
.event-card.upcoming .event-status { color: var(--magenta); }
.event-identity h3 { font: 13px/1.8 var(--pixel-font); overflow-wrap: anywhere; margin: 8px 0; }
.event-identity p { color: var(--gray); font-size: 20px; }
.event-identity p span { color: var(--cyan); padding: 0 5px; }
.event-identity small { display: block; color: var(--cyan); font-size: 16px; margin-top: 7px; }
.event-profile-wrap { display: grid; place-items: center; gap: 5px; color: var(--gray); font-size: 13px; }
.event-profile { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--cyan-dark); image-rendering: auto; }
.profile-missing::before { content: "PROFILE"; width: 72px; height: 72px; display: grid; place-items: center; border: 1px dashed var(--cyan-dark); color: var(--cyan); font: 8px var(--pixel-font); text-align: center; }
.event-enter { margin-right: 18px; white-space: nowrap; }

/* Event details */
.mission-overview { display: grid; grid-template-columns: 220px 1fr; gap: 30px; border: 1px solid var(--dark-gray); background: rgba(12,12,22,.9); padding: 28px; }
.mission-profile { position: relative; display: grid; align-content: start; justify-items: center; gap: 10px; color: var(--gray); font-size: 15px; }
.mission-profile img, .mission-profile-fallback { width: 170px; height: 170px; object-fit: cover; border: 2px solid var(--cyan); }
.mission-profile-fallback { display: none; place-items: center; color: var(--cyan); background: #0a1220; font: 12px/2 var(--pixel-font); text-align: center; }
.mission-data h3 { font: 16px/1.7 var(--pixel-font); margin: 0 0 18px; overflow-wrap: anywhere; }
.mission-row { display: grid; grid-template-columns: 115px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(115,115,138,.22); font-size: 20px; }
.mission-row span { color: var(--gray); }
.mission-row strong { color: var(--white); font-weight: normal; }
.mission-row strong.completed { color: var(--green); }
.mission-row strong.progress { color: var(--yellow); }
.mission-row strong.upcoming { color: var(--magenta); }
.mission-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mission-links a { border: 1px solid var(--cyan-dark); padding: 11px 14px; color: var(--cyan); text-decoration: none; font: 8px var(--pixel-font); }
.mission-links a:hover { color: var(--black); background: var(--cyan); }
.contribution-section { margin-top: 42px; }
.section-heading { border-left: 4px solid var(--magenta); padding-left: 18px; margin-bottom: 22px; }
.section-heading .stage-number { color: var(--magenta); }
.section-heading h3 { font: 18px var(--pixel-font); margin-top: 12px; }
.contribution-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.contribution-card { border: 1px solid var(--dark-gray); background: var(--panel); min-width: 0; }
.contribution-preview { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--cyan); background: repeating-linear-gradient(135deg, rgba(0,246,255,.035) 0 8px, transparent 8px 16px), #080811; border-bottom: 1px solid var(--dark-gray); font: 8px var(--pixel-font); text-align: center; }
.preview-cross { font: 42px var(--terminal-font); color: var(--magenta); }
.contribution-meta { padding: 20px; }
.contribution-type { color: var(--yellow); font-size: 15px; }
.contribution-meta h4 { font: 11px/1.8 var(--pixel-font); margin: 12px 0; }
.contribution-meta p { color: #b8b8c8; font-size: 20px; line-height: 1.2; }
.contribution-meta code { display: block; color: var(--gray); font-size: 15px; margin-top: 14px; overflow-wrap: anywhere; }
.pending-message { margin-top: 25px; padding: 22px; border: 1px dashed var(--magenta); background: rgba(255,0,217,.035); }
.pending-message span { color: var(--magenta); font: 9px var(--pixel-font); }
.pending-message p { color: #d1c3d0; font-size: 22px; margin-top: 12px; }
.empty-output { grid-column: 1/-1; padding: 30px; text-align: center; border: 1px dashed var(--dark-gray); color: var(--gray); font: 9px var(--pixel-font); }

/* Event preview modal */
.modal-window-event { width: min(1000px, 94vw); }
.modal-content-event { grid-template-columns: minmax(0,1fr) 260px; }
.modal-content-event .image-frame { min-height: 340px; }
.modal-content-event .image-frame img { max-height: 65vh; object-fit: contain; }

/* Responsive */
@media (max-width: 800px) {
  .event-card { grid-template-columns: 48px minmax(0,1fr) 82px; padding-right: 10px; }
  .event-enter { grid-column: 2 / 4; justify-self: start; margin: 0 0 14px 8px; }
  .event-profile { width: 60px; height: 60px; }
  .mission-overview { grid-template-columns: 150px 1fr; gap: 18px; padding: 18px; }
  .mission-profile img, .mission-profile-fallback { width: 130px; height: 130px; }
  .modal-content-event { grid-template-columns: 1fr; }
  .modal-content-event .asset-info { width: 100%; }
  .language-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .hud { padding: 0 12px; height: 62px; }
  .hud-left, .hud-right { gap: 10px; }
  .hud-center { display: none; }
  .hud-label { font-size: 12px; }
  .hud-value, #score { font-size: 18px; }
  .online { font-size: 13px; }
  .menu-container, .profile-layout, .events-container, .detail-container { width: 92%; padding-top: 38px; }
  .menu-heading h2 { font-size: 22px; }
  .menu-heading p { font-size: 18px; }
  .stage-card { grid-template-columns: 48px 1fr auto; min-height: 112px; }
  .stage-number-big { font-size: 18px; }
  .stage-info { padding: 12px 8px; }
  .stage-info h3 { font-size: 10px; line-height: 1.7; }
  .stage-info p { font-size: 16px; }
  .stage-button { margin-right: 9px; padding: 10px 8px; font-size: 7px; }
  .gallery-header { grid-template-columns: auto 1fr; gap: 10px; padding: 12px; }
  .gallery-header > div:nth-child(2) { text-align: right; }
  .gallery-header h2 { font-size: 11px; line-height: 1.7; }
  .gallery-counter { display: none; }
  .back-button { padding: 10px 8px; font-size: 7px; }
  .event-card { grid-template-columns: 34px minmax(0,1fr) 62px; gap: 5px; }
  .event-number { font-size: 13px; }
  .event-identity { padding: 12px 4px; }
  .event-identity h3 { font-size: 9px; }
  .event-identity p { font-size: 16px; }
  .event-profile { width: 48px; height: 48px; }
  .event-profile-wrap { font-size: 10px; }
  .event-enter { grid-column: 2/4; }
  .mission-overview { grid-template-columns: 1fr; }
  .mission-profile { justify-items: start; }
  .mission-profile img, .mission-profile-fallback { width: 110px; height: 110px; }
  .mission-data h3 { font-size: 12px; }
  .mission-row { grid-template-columns: 85px 1fr; font-size: 17px; }
  .mission-links { flex-direction: column; align-items: stretch; }
  .contribution-grid { grid-template-columns: 1fr; }
  .contribution-preview { min-height: 150px; }
  .bio-copy { font-size: 21px; }
  .database-panel { padding: 18px; }
  .profile-card-event { display: flex; flex-direction: column; align-items: flex-start; }
  .profile-avatar-placeholder { width: 125px; height: 125px; }
  .profile-data { width: 100%; }
  .profile-row { gap: 10px; }
  .profile-row strong { text-align: right; }
  .menu-footer { font-size: 14px; gap: 8px; }
  .modal-window { width: 96vw; }
  .modal-content-event .image-frame { min-height: 200px; }
}

@media (hover: none) and (pointer: coarse) {
  #pixelCursor { display: none; }
  body, button, a { cursor: auto; }
}

.end-section { display: none; }
.end-section.end-visible { display: flex; }
.menu-end-button { border: 0; background: transparent; color: var(--gray); font: 8px var(--pixel-font); padding: 4px; }
.menu-end-button:hover { color: var(--magenta); }
.contribution-preview { position: relative; overflow: hidden; cursor: pointer; }
.contribution-image { display: none; width: 100%; height: 220px; object-fit: contain; background: #050509; }
.contribution-preview.has-image .contribution-image { display: block; }
.preview-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 190px; }
.contribution-preview.has-image .preview-placeholder { display: none; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tags span { border: 1px solid var(--cyan-dark); color: var(--cyan); padding: 11px 13px; font-size: 18px; background: rgba(0,246,255,.035); }
.language-row { grid-template-columns: 1fr 1.5fr; }

/* =========================================================
   NATI'S EVENT ARCHIVE — NAVIGATION & LAYOUT UPDATE
========================================================= */

/* ABOUT ME INTRO */
.about-intro {
    position: relative;
    padding: 28px 30px;
    margin-bottom: 25px;
    border-left: 4px solid var(--magenta);
    background:
        linear-gradient(
            100deg,
            rgba(255, 0, 217, .08),
            rgba(0, 246, 255, .025),
            transparent
        );
}

.about-intro-label {
    color: var(--green);
    font-family: var(--pixel-font);
    font-size: 8px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-intro h2 {
    font-family: var(--pixel-font);
    font-size: clamp(20px, 4vw, 34px);
    line-height: 1.6;
    color: var(--white);
}

.about-intro h2 span {
    color: var(--cyan);
    text-shadow: 3px 3px 0 var(--magenta);
}

.about-intro p {
    color: var(--gray);
    font-size: 21px;
    margin-top: 12px;
    letter-spacing: 1px;
}

/* ABOUT ME PROFILE CARD */
.profile-card-event {
    max-width: none;
    width: 100%;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 35px;
    padding: 30px;
    margin: 0 0 22px;
    background:
        linear-gradient(
            115deg,
            rgba(0, 246, 255, .055),
            rgba(12, 12, 22, .95) 45%
        );
    border-color: rgba(0, 246, 255, .3);
}

.profile-card-event .profile-avatar {
    width: 100%;
    max-width: 190px;
}

.profile-card-event .profile-name {
    font-size: 23px;
    color: var(--cyan);
    margin-bottom: 18px;
}

.profile-card-event .profile-row {
    gap: 15px;
    font-size: 20px;
}

.profile-card-event .profile-row span {
    font-size: 17px;
}

.profile-card-event .profile-row strong {
    text-align: right;
    font-size: 17px;
}

.about-bio-panel {
    border-left: 3px solid var(--cyan);
}

.bio-copy {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.45;
    color: #d4d4df;
}

/* TWO-COLUMN INFORMATION AREA */
.about-info-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: stretch;
}

.about-info-grid .database-panel {
    margin: 0;
    min-width: 0;
}

.language-panel,
.skill-panel {
    height: 100%;
}

.language-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 12px;
}

.language-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.language-row:first-of-type {
    grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) 1fr;
}

.skill-tags {
    align-content: flex-start;
}

.skill-tags span {
    font-size: 17px;
    line-height: 1.4;
}

/* ABOUT ME NAVIGATION */
.about-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-gray);
}

.about-navigation .profile-bottom-note {
    text-align: left;
    padding: 0;
    line-height: 1.6;
}

.select-mission-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.select-mission-button span {
    color: var(--magenta);
}

/* SELECT MISSION CARDS WITHOUT PROFILE IMAGES */
.event-card {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    min-height: 140px;
    padding: 12px 0;
}

.event-identity {
    padding: 18px 12px;
}

.event-enter {
    margin-right: 22px;
}

/* LARGER COMMUNITY PROFILE IN INSPECT */
.mission-overview {
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 35px;
}

.mission-profile {
    width: 100%;
    align-content: center;
    justify-items: center;
    gap: 15px;
}

.mission-profile-frame {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    padding: 8px;
    border: 2px solid var(--cyan);
    background:
        repeating-linear-gradient(
            45deg,
            #08080e 0,
            #08080e 10px,
            #10101d 10px,
            #10101d 20px
        );
    box-shadow:
        8px 8px 0 rgba(255, 0, 217, .45),
        0 0 30px rgba(0, 246, 255, .12);
}

.mission-profile-frame::before {
    content: "PLAYER PROOF";
    position: absolute;
    top: -12px;
    left: 15px;
    z-index: 2;
    padding: 5px 8px;
    background: var(--black);
    color: var(--yellow);
    font: 8px var(--pixel-font);
}

.mission-profile-frame img,
.mission-profile-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--cyan-dark);
}

.mission-profile-fallback {
    display: none;
    place-items: center;
    color: var(--cyan);
    background: #0a1220;
    font: 15px/2 var(--pixel-font);
    text-align: center;
}

.mission-profile > span {
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--cyan);
    letter-spacing: 1px;
}

.mission-data {
    min-width: 0;
}

.mission-data h3 {
    font-size: 18px;
    line-height: 1.8;
}

.mission-row {
    grid-template-columns: 110px minmax(0, 1fr);
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-card-event {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 22px;
    }

    .profile-card-event .profile-avatar {
        max-width: 150px;
    }

    .mission-overview {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 25px;
        padding: 25px;
    }

    .mission-profile-frame {
        max-width: 230px;
    }

    .event-card {
        grid-template-columns: 55px minmax(0, 1fr) auto;
    }

    .event-enter {
        grid-column: auto;
        margin: 0 15px 0 0;
    }
}

@media (max-width: 560px) {
    .about-intro {
        padding: 22px 18px;
    }

    .about-intro-label {
        font-size: 7px;
        line-height: 1.8;
    }

    .about-intro h2 {
        font-size: 20px;
    }

    .about-intro p {
        font-size: 17px;
        line-height: 1.5;
    }

    .profile-card-event {
        display: grid;
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 22px;
    }

    .profile-card-event .profile-avatar {
        width: 135px;
        height: 135px;
        margin: auto;
    }

    .profile-card-event .profile-row {
        font-size: 17px;
    }

    .profile-card-event .profile-row span,
    .profile-card-event .profile-row strong {
        font-size: 14px;
    }

    .bio-copy {
        font-size: 20px;
        line-height: 1.45;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .language-row,
    .language-row:first-of-type {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .language-row strong {
        text-align: left;
    }

    .about-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .about-navigation .profile-bottom-note {
        text-align: center;
        font-size: 14px;
    }

    .select-mission-button {
        justify-content: center;
        width: 100%;
    }

    .event-card {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 5px;
        padding: 12px 8px;
    }

    .event-number {
        font-size: 13px;
    }

    .event-identity {
        padding: 10px 5px;
    }

    .event-enter {
        grid-column: 2;
        justify-self: start;
        margin: 5px 0 5px 5px;
    }

    .mission-overview {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .mission-profile {
        justify-items: center;
    }

    .mission-profile-frame {
        width: min(100%, 280px);
        max-width: 280px;
    }

    .mission-profile > span {
        text-align: center;
    }
}

/* LANGUAGE PROFICIENCY BARS */

.language-level {
    width: 100%;
    height: 8px;
    background: rgba(0, 246, 255, 0.12);
    border: 1px solid rgba(0, 246, 255, 0.35);
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.language-progress.spanish {
    width: 100%;
}

.language-progress.english {
    width: 85%;
}

.language-progress.chinese {
    width: 60%;
}

.language-progress.portuguese {
    width: 30%;
}

.language-row > span:last-child {
    color: var(--yellow);
}

.bio-copy a {
  color: var(--magenta);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.bio-copy a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--magenta);
}


/* =========================================================
   BACKGROUND MUSIC PLAYER
========================================================= */

.music-controls {
    position: fixed !important;
    left: 24px !important;
    bottom: 24px !important;
    z-index: 8000 !important;

    box-sizing: border-box !important;
    width: 205px !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 12px !important;

    background: #080811 !important;
    border: 1px solid var(--cyan-dark) !important;

    box-shadow:
        3px 3px 0 rgba(255, 0, 217, .25),
        0 0 15px rgba(0, 246, 255, .08) !important;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.music-controls.music-controls-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* PLAY / PAUSE BUTTON */

.music-controls .music-toggle {
    all: unset !important;

    box-sizing: border-box !important;
    flex: 0 0 42px !important;

    width: 42px !important;
    height: 42px !important;

    display: grid !important;
    place-items: center !important;

    background: rgba(0, 246, 255, .08) !important;
    border: 1px solid var(--cyan) !important;

    color: var(--cyan) !important;

    font-family: var(--pixel-font) !important;
    font-size: 8px !important;
    line-height: 1 !important;

    cursor: pointer !important;
    transition: .2s ease !important;
}

.music-controls .music-toggle:hover {
    background: var(--cyan) !important;
    color: var(--black) !important;

    box-shadow: 3px 3px 0 var(--magenta) !important;
}

.music-controls .music-toggle.music-playing {
    color: var(--yellow) !important;
    border-color: var(--yellow) !important;
}

/* VOLUME */

.music-controls .music-volume {
    all: unset !important;

    box-sizing: border-box !important;
    flex: 1 1 auto !important;

    min-width: 0 !important;
    width: 100% !important;
    height: 5px !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    background: var(--dark-gray) !important;

    cursor: pointer !important;
}

.music-controls .music-volume::-webkit-slider-thumb {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 10px !important;
    height: 10px !important;

    background: var(--yellow) !important;
    border: none !important;
    border-radius: 0 !important;
}

.music-controls .music-volume::-moz-range-thumb {
    width: 10px !important;
    height: 10px !important;

    background: var(--yellow) !important;
    border: none !important;
    border-radius: 0 !important;
}

/* MOBILE */

@media (max-width: 560px) {
    .music-controls {
        left: 12px !important;
        bottom: 15px !important;
        width: 180px !important;
        padding: 9px !important;
        gap: 9px !important;
    }

    .music-controls .music-toggle {
        flex-basis: 38px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

.music-controls .music-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;

    font-family: Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: bold !important;
}

/* CONTRIBUTION LINKS */

.contribution-meta a,
#modalMessage a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.contribution-meta a:hover,
#modalMessage a:hover {
    color: var(--magenta);
    text-shadow: 0 0 8px rgba(255, 0, 217, 0.6);
}

.contribution-meta a:active,
#modalMessage a:active {
    color: var(--magenta);
}

.contribution-meta a:focus-visible,
#modalMessage a:focus-visible {
    color: var(--magenta);
    outline: 1px dashed var(--magenta);
    outline-offset: 3px;
}

/* =========================================================
   PROFILE AVATAR IMAGE
========================================================= */

.profile-avatar {
  position: relative;
  overflow: hidden;
}

.profile-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 1;
  image-rendering: auto;
  pointer-events: none;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 246, 255, 0.08),
    rgba(255, 0, 217, 0.08)
  );
  z-index: 2;
  pointer-events: none;
}

.avatar-inner {
  position: relative;
  z-index: 3;
}