:root {
    --background-color: #000000;
--text-color: #FFFFFF;
--accent-color: #00FFFF;
--secondary-accent: #800080; /* Deep purple for wormholes */
--hover-color: #CC3700;
--border-color: #FF4500;
--shadow-color: rgba(0, 255, 255, 0.5);
--error-color: #FF4500;
--gradient-start: rgba(0, 255, 255, 0.3);
--gradient-end: rgba(15, 52, 96, 0.3);
--nav-height: 60px;
--faction-blue: #00FFFF;
--faction-red: #FF4500;
--faction-purple: #800080;
--sidebar-width: 400px;
--map-padding: 20px;
}
html, body {
height: 100%;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
background: var(--background-color);
color: var(--text-color);
line-height: 1.6;
overflow: hidden;
position: relative;
}
/* Space Layers */
.space-layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -2;
background: radial-gradient(circle at 50% 50%, rgba(0, 0, 50, 0.8) 0%, rgba(0, 0, 0, 1) 100%),
radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
}
.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 1%) 0 0 / 50px 50px;
}
.background-stars {
background-size: 100px 100px;
opacity: 0.5;
}
.foreground-stars {
background-size: 50px 50px;
opacity: 0.8;
}
.nebula-layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
background: url('../img/nebula.png') no-repeat center center / cover;
opacity: 0.1;
mix-blend-mode: screen;
}
.haze-layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
background: radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
opacity: 0.2;
mix-blend-mode: screen;
animation: hazeGlow 15s ease-in-out infinite alternate;
}
@keyframes hazeGlow {
    0% {
opacity: 0.2;
transform: scale(1) translate(0, 0);
    }
    100% {
opacity: 0.3;
transform: scale(1.02) translate(5px, 5px);
    }
}
/* Navigation */
nav {
position: fixed;
top: 0;
width: 100%;
height: var(--nav-height);
background: rgba(10, 10, 30, 0.85);
backdrop-filter: blur(12px);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
z-index: 10;
border-bottom: 1px solid rgba(0, 255, 255, 0.3);
transition: background 0.5s ease-in-out, padding 0.5s ease-in-out, height 0.5s ease-in-out;
}
.logo {
display: flex;
align-items: center;
font-family: 'Orbitron', sans-serif;
font-size: 20px;
font-weight: 700;
color: var(--accent-color);
text-transform: uppercase;
letter-spacing: 2px;
padding: 8px 12px;
border-radius: 5px;
text-shadow: 0 0 3px var(--shadow-color);
}
.logo img {
height: 40px;
width: auto;
margin-right: 8px;
}
.nav-links {
display: flex;
gap: 30px;
}
.nav-links a {
display: inline-block;
padding: 5px 5px;
border: 1px solid transparent;
border-radius: 5px;
color: var(--text-color);
text-decoration: none;
font-size: 16px;
font-weight: 500;
transition: color 0.3s, background-color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
text-shadow: 0 0 4px var(--shadow-color);
}
.nav-links a:hover {
color: var(--text-color);
background-color: var(--hover-color);
border-color: var(--border-color);
transform: scale(1.05);
box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
text-shadow: none;
}
.nav-links a.active {
color: var(--text-color);
border-color: var(--border-color);
}
.hamburger {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
transition: transform 0.3s ease-in-out;
}
.hamburger span {
width: 25px;
height: 3px;
background: var(--accent-color);
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.hamburger.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
opacity: 0;
}
.hamburger.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}
@media (min-width: 800px) {
:root {
--nav-height: 80px;
}
nav {
background: rgba(10, 10, 30, 0.5);
padding: 0 40px;
}
nav.scrolled {
height: 60px;
background: rgba(10, 10, 30, 0.95);
border-bottom: 1px solid rgba(0, 255, 255, 0.5);
box-shadow: 0 2px 10px var(--shadow-color);
}
.logo img {
height: 50px;
}
}
@media (max-width: 500px) {
:root {
--nav-height: 60px;
}
nav.scrolled {
background: rgba(10, 10, 30, 0.95);
}
.logo img {
height: 30px;
}
.hamburger {
display: flex;
}
.nav-links {
display: none;
flex-direction: column;
position: absolute;
top: var(--nav-height);
left: 0;
width: 100%;
background: rgba(10, 10, 30, 0.95);
padding: 20px;
}
.nav-links.active {
display: flex;
}
.nav-links a {
font-size: 18px;
padding: 10px;
}
}
/* Map Container */
#map-container {
position: absolute;
top: var(--nav-height);
left: 0;
width: calc(100% - var(--sidebar-width));
height: calc(100% - var(--nav-height));
overflow: hidden;
cursor: grab;
z-index: 0;
padding: var(--map-padding);
display: grid;
grid-template-columns: 1fr auto;
transition: width 0.3s ease;
}
#map-container.fullscreen {
width: 100%;
}
#map-viewport {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
touch-action: none;
}
#map-content, #system-content {
position: absolute;
top: 0;
left: 0;
transform-origin: 0 0;
width: 2000px;
height: 2000px;
background: transparent;
margin: 0;
}
.system {
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
background-size: cover;
background-position: center;
filter: drop-shadow(0 0 10px var(--accent-color));
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}
.system.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.system:hover {
transform: scale(1.3);
filter: drop-shadow(0 0 20px var(--accent-color));
}
.system-label {
position: absolute;
color: var(--text-color);
font-size: 16px;
text-shadow: 0 0 8px var(--shadow-color);
pointer-events: none;
font-family: 'Orbitron', sans-serif;
}
.planet {
position: absolute;
cursor: grab;
border-radius: 50%;
filter: drop-shadow(0 0 15px var(--shadow-color));
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
animation: rotate 30s linear infinite, pulse 2s ease-in-out infinite alternate;
will-change: transform;
}
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}
.planet:active {
cursor: grabbing;
}
.planet:hover {
filter: drop-shadow(0 0 25px rgba(0, 255, 255, 1));
transform: scale(1.1);
}
.star {
position: absolute;
background: #FFFFFF;
border-radius: 50%;
opacity: 0.9;
filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
animation: twinkle 3s ease-in-out infinite alternate;
will-change: opacity;
}
@keyframes twinkle {
    0% { opacity: 0.9; }
    100% { opacity: 0.5; }
}
#welcome-message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: 'Orbitron', sans-serif;
font-size: 40px;
color: var(--accent-color);
text-shadow: 0 0 8px var(--shadow-color);
text-align: center;
z-index: 1;
pointer-events: none;
display: block;
animation: fadeIn 2s ease-in-out, scan 1s linear infinite alternate;
}
@keyframes scan {
    0% { text-shadow: 0 0 8px var(--shadow-color); }
    100% { text-shadow: 2px 0 10px var(--shadow-color); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#systemInfoPanel {
position: fixed;
top: 100px;
right: calc(var(--sidebar-width) + 10px);
width: 300px;
background: rgba(10, 10, 30, 0.8);
border: 1px solid var(--accent-color);
padding: 20px;
color: var(--text-color);
box-shadow: 0 0 20px var(--shadow-color);
display: none;
z-index: 11;
border-radius: 10px;
transition: transform 0.3s ease;
}
#systemInfoPanel:hover {
transform: translateX(-5px);
}
#systemInfoPanel h2 {
margin: 0 0 10px;
color: var(--accent-color);
text-shadow: 0 0 5px var(--shadow-color);
font-family: 'Orbitron', sans-serif;
}
#systemInfoPanel p {
margin: 5px 0;
font-weight: 300;
}
#planetImages {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.planet-item {
display: flex;
flex-direction: column;
align-items: center;
}
.planet-item img {
width: 50px;
height: 50px;
object-fit: cover;
border: 1px solid var(--accent-color);
border-radius: 50%;
box-shadow: 0 0 10px var(--shadow-color);
transition: transform 0.3s ease;
}
.planet-item img:hover {
transform: scale(1.2);
}
.planet-item span {
margin-top: 5px;
font-size: 12px;
}
/* Inventory Sidebar */
#sidebar {
position: absolute;
top: var(--nav-height);
right: 0;
width: var(--sidebar-width);
height: calc(100% - var(--nav-height));
background: rgba(10, 10, 30, 0.8);
z-index: 10;
padding: 20px;
overflow-y: auto;
border-left: 1px solid rgba(0, 255, 255, 0.3);
transition: transform 0.3s ease;
}
#sidebar.collapsed {
transform: translateX(100%);
}
#sidebarToggle {
position: absolute;
top: 10px;
right: calc(100% + 10px);
background: var(--accent-color);
color: var(--background-color);
border: none;
padding: 10px;
cursor: pointer;
z-index: 11;
border-radius: 5px 0 0 5px;
}
#sidebarContent {
display: block;
}
#inventoryFilters {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
#inventorySearch, #inventorySort {
background: rgba(0, 255, 255, 0.1);
border: 1px solid var(--accent-color);
color: var(--text-color);
padding: 10px;
border-radius: 5px;
width: 100%;
}
.nft-item {
background: rgba(0, 255, 255, 0.1);
margin-bottom: 20px;
padding: 15px;
border-radius: 12px;
cursor: grab;
display: flex;
align-items: center;
border: 1px solid rgba(0, 255, 255, 0.3);
transition: background 0.3s ease, transform 0.3s ease;
font-size: 16px;
}
.nft-item:hover {
background: rgba(0, 255, 255, 0.2);
transform: translateY(-2px);
}
.nft-item img {
width: 80px;
height: 80px;
margin-right: 15px;
border-radius: 50%;
box-shadow: 0 0 12px var(--shadow-color);
}
#hud {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(10, 10, 30, 0.7);
padding: 15px;
border-radius: 8px;
z-index: 10;
text-shadow: 0 0 3px var(--shadow-color);
font-size: 18px;
transition: opacity 0.3s ease;
}
#hud.hidden {
opacity: 0;
}
#tooltip {
position: absolute;
background: rgba(10, 10, 30, 0.9);
padding: 10px 20px;
border-radius: 10px;
pointer-events: none;
display: none;
z-index: 20;
border: 1px solid var(--accent-color);
text-shadow: 0 0 3px var(--shadow-color);
font-size: 18px;
}
.wallet-address {
font-size: 18px;
color: var(--accent-color);
background: rgba(10, 10, 30, 0.9);
padding: 10px 20px;
border: 2px solid var(--accent-color);
border-radius: 12px;
margin-bottom: 20px;
text-shadow: 0 0 5px var(--shadow-color);
display: none;
}
.error-message {
font-size: 18px;
color: var(--error-color);
background: rgba(255, 69, 0, 0.1);
padding: 10px 20px;
border: 2px solid var(--error-color);
border-radius: 12px;
margin-top: 15px;
text-shadow: 0 0 5px rgba(255, 69, 0, 0.6);
display: none;
animation: fadeInError 0.5s ease;
}
@keyframes fadeInError {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
#connectWalletBtn {
padding: 15px 30px;
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
color: var(--text-color);
border: 2px solid var(--accent-color);
border-radius: 12px;
cursor: pointer;
transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
text-shadow: 0 0 5px var(--shadow-color);
font-size: 18px;
width: 100%;
}
#connectWalletBtn:hover {
background: linear-gradient(135deg, rgba(0, 255, 255, 0.5), rgba(15, 52, 96, 0.5));
transform: translateY(-3px);
box-shadow: 0 0 30px var(--shadow-color);
}
#no-wallet-message {
font-size: 16px;
color: #66CCCC;
text-shadow: 0 0 3px rgba(102, 204, 204, 0.4);
margin-top: 20px;
line-height: 1.5;
}
@media (max-width: 800px) {
#map-container {
width: 100%;
grid-template-columns: 1fr;
grid-template-rows: 1fr auto;
padding: 10px;
}
#sidebar {
width: 100%;
height: 50vh;
position: fixed;
bottom: 0;
top: auto;
transform: translateY(100%);
transition: transform 0.3s ease;
overflow-y: auto;
padding: 15px;
}
#sidebar.expanded {
transform: translateY(0);
}
#sidebarToggle {
top: auto;
bottom: calc(100% + 10px);
right: 20px;
border-radius: 5px 5px 0 0;
padding: 12px;
font-size: 20px;
}
#systemInfoPanel {
right: 5%;
top: calc(var(--nav-height) + 20px);
width: 90%;
max-height: 50vh;
overflow-y: auto;
padding: 15px;
font-size: 14px;
}
#systemInfoPanel h2 {
font-size: 20px;
}
#planetImages {
justify-content: center;
}
.planet-item img {
width: 40px;
height: 40px;
}
#inventoryFilters {
flex-direction: column;
gap: 15px;
}
.nft-item {
font-size: 14px;
padding: 10px;
}
.nft-item img {
width: 60px;
height: 60px;
}
#hud {
font-size: 14px;
padding: 10px;
bottom: 10px;
width: 80%;
text-align: center;
}
#welcome-message {
font-size: 30px;
}
#planetModal {
max-width: 90vw;
padding: 15px;
}
.modal-planet img {
width: 40px;
height: 40px;
}
#backButton {
font-size: 14px;
padding: 8px 16px;
left: 10px;
top: calc(var(--nav-height) + 10px);
}
#audioToggle {
bottom: 10px;
right: 10px;
padding: 8px;
}
}
.slot {
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
border: 2px dashed var(--accent-color);
opacity: 0.6;
transition: opacity 0.3s ease, border-color 0.3s ease;
cursor: pointer;
}
.slot:hover {
opacity: 1;
border-color: var(--hover-color);
}
.slot.occupied {
opacity: 0;
cursor: default;
}
.slot.highlight {
border-color: green;
border-style: solid;
}
.slot.invalid {
border-color: red;
border-style: solid;
}
#backButton {
position: absolute;
top: calc(var(--nav-height) + 10px);
left: 20px;
padding: 10px 20px;
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
color: var(--text-color);
border: 2px solid var(--accent-color);
border-radius: 12px;
cursor: pointer;
transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
text-shadow: 0 0 5px var(--shadow-color);
font-size: 16px;
z-index: 10;
display: none;
}
#backButton:hover {
background: linear-gradient(135deg, rgba(0, 255, 255, 0.5), rgba(15, 52, 96, 0.5));
transform: translateY(-3px);
box-shadow: 0 0 30px var(--shadow-color);
}
.ring {
position: absolute;
border: 1px solid rgba(0, 255, 255, 0.2);
border-radius: 50%;
pointer-events: none;
animation: rotateRing 60s linear infinite;
}
@keyframes rotateRing {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#planetModal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(10, 10, 30, 0.9);
padding: 20px;
border: 2px solid var(--accent-color);
border-radius: 12px;
z-index: 20;
display: none;
max-width: 400px;
overflow-y: auto;
box-shadow: 0 0 20px var(--shadow-color);
}
#planetModal h3 {
color: var(--accent-color);
text-shadow: 0 0 5px var(--shadow-color);
font-family: 'Orbitron', sans-serif;
}
.modal-planet {
cursor: pointer;
margin: 10px 0;
padding: 10px;
border: 1px solid rgba(0, 255, 255, 0.3);
border-radius: 8px;
display: flex;
align-items: center;
transition: background 0.3s ease, transform 0.3s ease;
}
.modal-planet:hover {
background: rgba(0, 255, 255, 0.2);
transform: scale(1.05);
}
.modal-planet img {
width: 50px;
height: 50px;
margin-right: 10px;
border-radius: 50%;
}
#closeModal {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
color: var(--border-color);
font-size: 20px;
transition: color 0.3s ease;
}
#closeModal:hover {
color: var(--hover-color);
}
#audioToggle {
position: fixed;
bottom: 20px;
right: 20px;
background: rgba(10, 10, 30, 0.7);
border: 1px solid var(--accent-color);
padding: 10px;
border-radius: 50%;
cursor: pointer;
z-index: 10;
transition: background 0.3s ease;
}
#audioToggle:hover {
background: var(--accent-color);
color: var(--background-color);
}
.ripple {
position: absolute;
background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
pointer-events: none;
animation: rippleEffect 0.5s ease-out;
}
@keyframes rippleEffect {
0% { transform: scale(0); opacity: 1; }
100% { transform: scale(2); opacity: 0; }
}