/* whitepaper theme */


/* global */

body {
	font-family: 'Quantico', Monospace, Verdana, Arial, Helvetica, sans-serif;
	-webkit-text-size-adjust: none;
	background-color: black;
	color: white;
	font-size: 120%;
}


a {
	color: #62d8ff;
	text-decoration: none;
}

a:visited {
	color: #62d8ff;
	text-decoration: none;
}

a:hover {
	color: #62d8ff;
	text-decoration: underline;
}



/* standard layer */

.wrapper {
	position: absolute;
	inset: 0;
	overflow: hidden;

	background:
		radial-gradient(circle at 50% 35%, rgba(0, 174, 255, 0.075), transparent 38%),
		linear-gradient(rgba(22, 183, 255, 0.022) 1px, transparent 1px),
		linear-gradient(90deg, rgba(22, 183, 255, 0.022) 1px, transparent 1px),
		#020507;
	background-size: auto, 42px 42px, 42px 42px, auto;
}



.wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 50;
	opacity: 0.18;
	background: repeating-linear-gradient(
		to bottom,
		rgba(255,255,255,0.022) 0px,
		rgba(255,255,255,0.022) 1px,
		transparent 1px,
		transparent 4px
	);
}

.wrapper::after {
	content: "CYBERCITY // FIELD TERMINAL";
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: min(980px, 72vw);
	z-index: 60;
	pointer-events: none;

	color: rgba(102, 219, 255, 0.44);
	font-family: 'Quantico', monospace;
	font-size: 9px;
	letter-spacing: 2px;
	text-align: right;
}

.graphics {
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	width: min(980px, 72vw);
	height: 48%;
	padding: 14px;
	box-sizing: border-box;
	overflow: hidden;

	background:
		linear-gradient(135deg, rgba(14, 27, 34, 0.97), rgba(3, 8, 12, 0.985));
	border: 1px solid rgba(89, 211, 255, 0.55);

	box-shadow:
		0 0 0 1px rgba(255,255,255,0.025) inset,
		0 0 24px rgba(0, 173, 239, 0.10),
		0 18px 40px rgba(0,0,0,0.35);

	clip-path: polygon(
		0 12px,
		12px 0,
		calc(100% - 38px) 0,
		calc(100% - 26px) 12px,
		100% 12px,
		100% calc(100% - 12px),
		calc(100% - 12px) 100%,
		32px 100%,
		20px calc(100% - 12px),
		0 calc(100% - 12px)
	);
}

.text {
	position: absolute;
	top: calc(48% + 32px);
	left: 50%;
	transform: translateX(-50%);
	bottom: 76px;
	width: min(980px, 72vw);
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	padding: 18px 22px 22px 22px;

	background:
		linear-gradient(180deg, rgba(8, 17, 23, 0.97), rgba(2, 7, 10, 0.985));
	border: 1px solid rgba(89, 211, 255, 0.34);
	border-top-color: rgba(89, 211, 255, 0.55);

	color: #e7f4f8;

	box-shadow:
		0 0 0 1px rgba(255,255,255,0.018) inset,
		0 0 22px rgba(0, 173, 239, 0.055);

	scrollbar-color: #315767 #071015;
	scrollbar-width: thin;
}

.input {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 18px;

	width: min(980px, 72vw);
	height: 44px;
	padding: 0;
	box-sizing: border-box;

	display: flex;

	background:
		linear-gradient(90deg, rgba(10, 25, 33, 0.985), rgba(4, 11, 15, 0.985));
	border: 1px solid rgba(89, 211, 255, 0.48);

	box-shadow:
		0 0 18px rgba(0, 173, 239, 0.065),
		0 0 0 1px rgba(255,255,255,0.02) inset;
}

.input-left {
	flex: 1.15;
	display: flex;
	align-items: center;
	position: relative;
	padding-left: 34px;
}

.input-left::before {
	content: ">";
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #62d8ff;
	font-family: 'Quantico', monospace;
	font-weight: bold;
	text-shadow: 0 0 7px rgba(98, 216, 255, 0.55);
}

.input-right {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;

	padding: 0 6px;
	background:
		linear-gradient(90deg, rgba(17, 38, 48, 0.72), rgba(7, 18, 24, 0.85));
	border-left: 1px solid rgba(89, 211, 255, 0.22);
}

.command-buttons-container {
  flex: 1;
  overflow: hidden;
}

.command-buttons {
  display: flex;
  transition: transform 0.3s ease;
}

.input-right button {
	margin-left: 5px;
	background: rgba(11, 27, 35, 0.92);
	color: #dff7ff;
	border: 1px solid rgba(89, 211, 255, 0.30);
	border-radius: 0;
	cursor: pointer;
	padding: 4px 9px;
	white-space: nowrap;

	font-family: 'Quantico', monospace;
	font-size: 12px;
	letter-spacing: 0.3px;
	text-transform: uppercase;

	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease,
		box-shadow 0.15s ease;
}

.input-right button:hover {
	background: rgba(25, 94, 119, 0.40);
	border-color: #59d3ff;
	color: #ffffff;
	box-shadow: 0 0 10px rgba(89, 211, 255, 0.12);
}

.nav-button {
	flex: 0 0 auto;
	background: rgba(7, 17, 22, 0.95) !important;
	border: 1px solid rgba(89, 211, 255, 0.28) !important;
	border-radius: 0 !important;
	color: #67dcff !important;
	cursor: pointer;
	padding: 4px 8px !important;
}


.prompt {
	border: none;
	margin: 0;
	outline: none;
	width: 100%;
	height: 100%;
	box-sizing: border-box;

	font-family: 'Quantico', monospace;
	font-size: 15px;
	letter-spacing: 0.25px;

	background: transparent;
	color: #f0fbff;
	caret-color: #63ddff;
}


.location_picture {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 100%;
	border-radius: 0;

	filter: saturate(0.92) contrast(1.03);
	box-shadow:
		0 0 0 1px rgba(89, 211, 255, 0.10),
		0 0 18px rgba(0, 173, 239, 0.055);
}


.half_text {
	top: calc(48% + 32px);
	bottom: 76px;
}

.half_graphics {
	height: 48%;
	top: 18px;
}

.hidden
{
	height: 0%;
}

.feedback {
	color: #66dcff;
	text-shadow: 0 0 7px rgba(102, 220, 255, 0.25);
	text-transform: uppercase;
}

.all_text {
	top: 18px;
	bottom: 76px;
}

.energy-bar {
  margin: 10px 0;
  font-family: monospace;
}

.energy-label {
  margin-bottom: 2px;
  font-weight: bold;
  color: #00ffff;
}

.energy-track {
  width: 100%;
  height: 20px;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  transition: width 0.4s;
  background: linear-gradient(to right, #0f0, #0c0);
}
.energy-fill.medium {
  background: linear-gradient(to right, #ff0, #cc0);
}
.energy-fill.low {
  background: linear-gradient(to right, #f00, #900);
}


.retro_terminal {
	color: #00ff00 !important;
	font-family: 'Courier New', 'Lucida Console', monospace !important;
	background-color: black !important;
	text-shadow: none !important;
	letter-spacing: 1px;
}

.terminal_cursor::after {
	content: "_";
	display: inline-block;
	margin-left: 4px;
	animation: blink 1s steps(1) infinite;
}

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

.status_bar {
	position: absolute;
	top: 0;
	left: 25%;
	width: 50%;
	height: 30px;
	background-color: #111;
	border-bottom: 1px solid #444;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 0 10px;
	box-sizing: border-box;
	z-index: 2000;
}


.disconnect_button {
	background-color: #222;
	color: #0f0;
	border: 1px solid #555;
	border-radius: 4px;
	padding: 2px 10px;
	cursor: pointer;
	font-family: monospace;
	font-size: 14px;
}

.disconnect_button:hover {
	background-color: #333;
}


.opcion_consola {
	display: block;
	cursor: pointer;
	color: #0f0;
	font-family: monospace;
	margin: 4px 0;
}

.opcion_consola:hover {
	color: #ff0;
	text-decoration: underline;
}



.text::before {
	content: "";
	position: sticky;
	display: block;
	top: -18px;
	height: 2px;
	margin: -18px -22px 14px -22px;
	background: linear-gradient(90deg, #59d3ff, rgba(89, 211, 255, 0.06) 34%, transparent 70%);
	box-shadow: 0 0 10px rgba(89, 211, 255, 0.22);
}

.text::-webkit-scrollbar {
	width: 8px;
}

.text::-webkit-scrollbar-track {
	background: #071015;
}

.text::-webkit-scrollbar-thumb {
	background: #284854;
	border: 1px solid #3e6877;
}

::selection {
	background: rgba(89, 211, 255, 0.25);
	color: #ffffff;
}

/* input placeholder */

::-webkit-input-placeholder { color:#777; }
::-moz-placeholder { color:#777; } /* firefox 19+ */
:-ms-input-placeholder { color:#777; } /* ie */
input:-moz-placeholder { color:#777; }



/* block layer */

.block_layer 
{
	position: absolute;
	left :0 ;
	top :0;
	bottom: 0;
	right: 0;
	display: none;
	z-index:1000;
	background-color: black;
}



.block_layer .block_graphics {
	position: absolute;
	width: 100%;
	height:50%; 
	top: 0;
	display: block;
	background-color: black;
	box-sizing: border-box;
}

.block_picture
{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.block_layer .block_text {
	position: absolute;
	top: 52%;
	bottom:0;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	display: block;
	padding: 10px;
	background-color: black;
}

/* transcript layer */

.transcript_layer {
	position: absolute;
	left :0 ;
	top :0;
	bottom: 0;
	right: 0;
	display: none;
	z-index:1001;
	overflow:scroll;
	background-color: black;
	
}

#transcript_area {
	height:100%; 
	width:100%;
	overflow:scroll;
	box-sizing: border-box;
	padding: 10px;
}

.textpic {
	float:left;
	margin: 25px;
}

.anykey_layer {
	position:absolute;
	left: 0;
	top:0;
	bottom:0;
	right:0;
	background-color: transparent;
	z-index: 2000;
	display: none;
}
.context-menu {
  position: absolute;
  background: #222;
  color: #fff;
  border: 1px solid #555;
  z-index: 10000; /* más alto */
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* =====================================================
   MENU INICIAL CYBERCITY
   ===================================================== */

#menu-inicial {
    position: fixed !important;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

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

    background:
        radial-gradient(circle at 50% 42%, rgba(0, 174, 255, 0.10), transparent 34%),
        linear-gradient(rgba(22, 183, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 183, 255, 0.035) 1px, transparent 1px),
        #020507;
    background-size: auto, 42px 42px, 42px 42px, auto;

    z-index: 2147483647 !important;
    isolation: isolate;
}

#menu-inicial::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0.28;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.025) 0px,
        rgba(255,255,255,0.025) 1px,
        transparent 1px,
        transparent 4px
    );
}

#menu-inicial::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 210, 255, 0.035) 48%, rgba(0, 210, 255, 0.08) 50%, rgba(0, 210, 255, 0.035) 52%, transparent 100%);
    animation: cyberSweep 8s linear infinite;
}

#menu-inicial .menu-panel {
    position: relative;
    z-index: 4;

    width: min(520px, calc(100vw - 40px));
    padding: 24px 28px 22px;

    color: #e9f7ff;
    background:
        linear-gradient(135deg, rgba(16, 28, 35, 0.96), rgba(5, 10, 14, 0.98));
    border: 1px solid rgba(89, 211, 255, 0.72);

    font-family: 'Quantico', monospace;
    box-sizing: border-box;

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.035) inset,
        0 0 28px rgba(0, 173, 239, 0.13),
        0 28px 70px rgba(0,0,0,0.58);

    clip-path: polygon(
        0 14px,
        14px 0,
        calc(100% - 42px) 0,
        calc(100% - 30px) 12px,
        100% 12px,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        36px 100%,
        24px calc(100% - 12px),
        0 calc(100% - 12px)
    );

    animation: terminalBoot 0.45s ease-out both;
}

#menu-inicial .menu-panel::before,
#menu-inicial .menu-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

#menu-inicial .menu-panel::before {
    inset: 6px;
    border: 1px solid rgba(89, 211, 255, 0.10);
}

#menu-inicial .menu-panel::after {
    top: 0;
    left: 54px;
    width: 86px;
    height: 2px;
    background: #61d9ff;
    box-shadow: 0 0 12px rgba(97, 217, 255, 0.72);
}

#menu-inicial .menu-topline,
#menu-inicial .menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    font-size: 10px;
    line-height: 1;
    letter-spacing: 1.7px;
    color: #6f8793;
    text-transform: uppercase;
}

#menu-inicial .menu-topline {
    margin-bottom: 24px;
}

#menu-inicial .system-status {
    color: #8deaff;
    white-space: nowrap;
}

#menu-inicial .status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #67f7b2;
    box-shadow: 0 0 8px rgba(103, 247, 178, 0.9);
    animation: statusPulse 1.8s ease-in-out infinite;
}

#menu-inicial .menu-brand {
    text-align: center;
}

#menu-inicial .brand-kicker {
    margin-bottom: 3px;
    color: #5b8799;
    font-size: 10px;
    letter-spacing: 4px;
}

#menu-inicial h1 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 8px;

    color: #f4fbff;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: 1px;
    text-shadow:
        2px 0 0 rgba(0, 174, 255, 0.55),
        -1px 0 0 rgba(255, 122, 55, 0.32),
        0 0 18px rgba(0, 174, 255, 0.12);
}

#menu-inicial h1::after {
    content: "";
    position: absolute;
    left: 14%;
    bottom: -7px;
    width: 72%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5bd7ff, transparent);
}

#menu-inicial .menu-subtitulo {
    margin-top: 15px;
    margin-bottom: 0;

    color: #98a9b2;
    font-size: 14px;
    letter-spacing: 2.6px;
    text-align: center;
}

#menu-inicial .menu-divider {
    height: 1px;
    margin: 25px 0 18px;
    background: linear-gradient(90deg, transparent, rgba(87, 205, 245, 0.42), transparent);
}

#menu-inicial .menu-options {
    position: relative;
    padding: 2px 0;
}

#menu-inicial label {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 4px 0;
    padding: 0 12px 0 10px;

    color: #e5f3f8;
    cursor: pointer;
    border-left: 2px solid transparent;
    box-sizing: border-box;

    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease,
        color 0.16s ease;
}

#menu-inicial label:hover {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(45, 191, 242, 0.12), transparent 78%);
    border-left-color: #56d7ff;
    transform: translateX(3px);
}

#menu-inicial input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#menu-inicial .cyber-check {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 15px;

    border: 1px solid #506977;
    background: #04090c;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

#menu-inicial .cyber-check::before {
    content: "";
    position: absolute;
    inset: 4px;
    background: transparent;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

#menu-inicial input[type="checkbox"]:checked + .cyber-check {
    border-color: #5ad9ff;
    background: rgba(27, 138, 178, 0.13);
    box-shadow: 0 0 8px rgba(70, 210, 255, 0.16);
}

#menu-inicial input[type="checkbox"]:checked + .cyber-check::before {
    background: #66dcff;
    box-shadow: 0 0 8px rgba(102, 220, 255, 0.8);
}

#menu-inicial input[type="checkbox"]:focus-visible + .cyber-check {
    outline: 1px solid #ffffff;
    outline-offset: 3px;
}

#menu-inicial .option-text {
    font-size: 16px;
    letter-spacing: 0.5px;
}

#btnIniciarJuego {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 54px;
    margin-top: 25px;
    padding: 12px 18px;

    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(21, 88, 111, 0.32), rgba(8, 21, 28, 0.92));
    color: #eefdff;

    border: 1px solid #5bd9ff;
    border-radius: 0;

    font-family: 'Quantico', monospace;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 1.6px;

    cursor: pointer;
    box-sizing: border-box;

    box-shadow:
        0 0 16px rgba(55, 202, 255, 0.08),
        0 0 0 1px rgba(91, 217, 255, 0.04) inset;

    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

#btnIniciarJuego::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-115%);
    background: linear-gradient(90deg, transparent, rgba(128, 231, 255, 0.14), transparent);
    transition: transform 0.45s ease;
}

#btnIniciarJuego:hover {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(31, 139, 175, 0.38), rgba(8, 29, 38, 0.98));
    box-shadow:
        0 0 20px rgba(74, 214, 255, 0.22),
        0 0 0 1px rgba(91, 217, 255, 0.10) inset;
    transform: translateY(-1px);
}

#btnIniciarJuego:hover::before {
    transform: translateX(115%);
}

#btnIniciarJuego:active {
    transform: translateY(1px);
}

#btnIniciarJuego .button-prefix {
    margin-right: 11px;
    color: #69dcff;
}

#btnIniciarJuego .button-cursor {
    margin-left: 4px;
    color: #69dcff;
    animation: blink 0.9s steps(1) infinite;
}

#menu-inicial .menu-footer {
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid rgba(100, 200, 235, 0.10);
    font-size: 9px;
}

@keyframes terminalBoot {
    0% {
        opacity: 0;
        transform: scaleY(0.05) scaleX(0.88);
        filter: brightness(2.2);
    }
    45% {
        opacity: 1;
        transform: scaleY(1.03) scaleX(1);
        filter: brightness(1.35);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

@keyframes cyberSweep {
    from { transform: translateX(-35%); }
    to { transform: translateX(35%); }
}

@media (prefers-reduced-motion: reduce) {
    #menu-inicial::after,
    #menu-inicial .menu-panel,
    #menu-inicial .status-dot,
    #btnIniciarJuego .button-cursor {
        animation: none;
    }

    #menu-inicial label,
    #btnIniciarJuego {
        transition: none;
    }
}

@media (max-width: 600px) {
    #menu-inicial .menu-panel {
        width: calc(100vw - 24px);
        padding: 20px 18px 18px;
    }

    #menu-inicial h1 {
        font-size: 34px;
    }

    #menu-inicial .menu-topline {
        font-size: 8px;
    }

    #menu-inicial .option-text {
        font-size: 15px;
    }

    #menu-inicial .menu-footer {
        gap: 10px;
        font-size: 8px;
    }
}


@media only screen and (orientation: portrait)
{
	.input
	{
		width: 96%;
	}
	.text {
		width: 96%;

	}
	.graphics
	{
		width: 96%;

	}
}


@media (max-width: 1024px) {

	body {
		font-size: 300%;
	}

	.graphics {
		position: relative;
	}
	.text  {
		position: relative;
		top: auto;
		bottom: auto;
		height: auto;
	}

	.input  {
		position: relative;
		top: auto;
		bottom: auto;
	}


.half_text
{
	top: auto;
	bottom: auto;
	height: auto;
}


.hidden
{
	height: 0%;
}


.all_text 
{
	top: auto;
	bottom: auto;
	height: auto;

}

.wrapper {
	height: auto;
	max-height: auto;
	overflow: auto;
}
	
}


@media (max-width: 1024px) {
	.wrapper::after {
		display: none;
	}

	.graphics,
	.text,
	.input {
		left: auto;
		transform: none;
		margin-left: 2%;
		width: 96%;
	}

	.graphics {
		top: 10px;
	}

	.text {
		padding-left: 16px;
		padding-right: 16px;
	}

	.input {
		bottom: 10px;
	}
}
