body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background-color: #000;
}

body.mars-bg {
    background-image: url('/images/mars_background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}
body.mars-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: -1;
}

header {
    background-color: rgba(0,0,0,0.8);
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: #ff8c00;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover {
    color: #ffc107;
}

.content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(0,0,0,0.7);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

h1 {
    color: #ff8c00;
    text-align: center;
    margin-bottom: 2rem;
}

.article img {
    max-width: 300px;
    margin: 0 1rem 1rem 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.float-right {
    float: right;
}
.article p, .article ul {
    line-height: 1.6;
    font-size: 1.1rem;
}
.article ul {
    list-style-type: square;
    padding-left: 1.5rem;
}

.beta-notice {
    background-color: rgba(255,100,0,0.8);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}
.button {
    display: inline-block;
    background-color: #ff8c00;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}
.game-placeholder {
    text-align: center;
}
.game-placeholder img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}
form label {
    font-weight: bold;
}
form input {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}
form button {
    background-color: #ff8c00;
    color: #000;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}
.message {
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}
.message.success {
    background-color: rgba(0,128,0,0.8);
}
.message.error {
    background-color: rgba(255,0,0,0.8);
}

@media (max-width: 768px) {
    .content {
        margin: 1rem;
        padding: 1rem;
    }
    .float-right {
        float: none;
        display: block;
        margin: 0 auto 1rem;
    }
    nav a {
        display: inline-block;
        margin: 0.5rem;
    }
}

@keyframes dustDrift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

.mars-dynamic {
    background: linear-gradient(125deg, #9e4310, #6b2e0e);
    position: relative;
    overflow: hidden;
}
.mars-dynamic::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 160, 80, 0.15) 0px,
                                                rgba(255, 160, 80, 0.15) 1px,
                                                transparent 1px,
                                                transparent 12px
    );
    background-size: 40px 40px;
    animation: dustDrift 60s linear infinite;
    pointer-events: none;
}

.mars-sand-pattern {
  background-color: #b55a1c;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 180, 100, 0.3) 2%, transparent 3%),
    radial-gradient(circle at 80% 70%, rgba(200, 100, 40, 0.4) 1.5%, transparent 2.5%),
    radial-gradient(circle at 40% 80%, rgba(255, 140, 60, 0.3) 3%, transparent 4%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 2px, transparent 2px, transparent 8px);
  background-size: 60px 60px, 80px 80px, 100px 100px, auto;
  background-repeat: repeat;
}

