:root {
  --bg: #03111A;
  --surface: #071B27;
  --deep-ocean: #082C3F;
  --abyss-navy: #041C2C;
  --gold: #D6A84F;
  --bronze: #9A6A36;
  --teal: #1DB6A3;
  --aqua: #4DD8FF;
  --pearl: #EAF8FF;
  --mist: #A7C7D9;
  --muted: #7FA6B8;
  --text: #F3FBFF;
  --accent-grad: linear-gradient(135deg, #1DB6A3, #4DD8FF);
  --treasure-grad: linear-gradient(135deg, #D6A84F, #9A6A36);
  --font-main: 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--aqua);
  transition: color var(--transition);
}

a:hover {
  color: var(--teal);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.signal-bar {
  background: var(--abyss-navy);
  text-align: center;
  padding: 6px 20px;
  font-size: 0.85rem;
  color: var(--mist);
  border-bottom: 1px solid rgba(77, 216, 255, 0.1);
}

.signal-bar a {
  margin-left: 10px;
  color: var(--gold);
  font-weight: bold;
}

.site-header {
  position: sticky;
  top: 0;
  height: 72px;
  background: var(--abyss-navy);
  border-bottom: 1px solid var(--aqua);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--pearl);
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 0.7rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--mist);
  font-size: 0.9rem;
  position: relative;
  padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--pearl);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-primary {
  background: var(--accent-grad);
  color: var(--abyss-navy);
}

.btn-gold {
  background: var(--treasure-grad);
  color: var(--abyss-navy);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--aqua);
  color: var(--aqua);
}

.btn-text {
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
}

.btn-text:hover {
  color: var(--pearl);
  transform: none;
}

section {
  padding: 60px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.expedition-text h1 {
  font-size: 3rem;
  color: var(--pearl);
  margin-bottom: 20px;
  line-height: 1.1;
}

.expedition-text p {
  color: var(--mist);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.expedition-actions {
  display: flex;
  gap: 15px;
}

.expedition-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.expedition-image-wrapper::after {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  box-shadow: inset 0 0 20px rgba(77, 216, 255, 0.2);
  pointer-events: none;
}

.lazy-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity var(--transition);
}

.discovery-panels {
  background: var(--surface);
  padding: 40px 0;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.panel {
  background: var(--deep-ocean);
  padding: 24px;
  border-radius: 8px;
  border-top: 2px solid var(--teal);
}

.panel-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.panel h3 {
  color: var(--pearl);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.panel p {
  color: var(--muted);
  font-size: 0.85rem;
}

.game-chamber {
  background: var(--bg);
  text-align: center;
  padding: 80px 0;
}

.game-chamber-title {
  display: none;
}

.game-frame {
  max-width: 1020px;
  margin: 0 auto;
  background: var(--deep-ocean);
  border: 2px solid var(--gold);
  border-radius: 28px;
  padding: 20px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(77, 216, 255, 0.3), 0 20px 40px rgba(0,0,0,0.8);
}

.game-frame::before,
.game-frame::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 4px solid var(--bronze);
  pointer-events: none;
}

.game-frame::before {
  top: -6px; left: -6px;
  border-right: none; border-bottom: none;
  border-radius: 28px 0 0 0;
}

.game-frame::after {
  bottom: -6px; right: -6px;
  border-left: none; border-top: none;
  border-radius: 0 0 28px 0;
}

.iframe-container {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  height: 500px;
  position: relative;
  border: 1px solid var(--bronze);
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.relics {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  color: var(--pearl);
  font-size: 2.2rem;
}

.relic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.relic-card {
  background: var(--deep-ocean);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(154, 106, 54, 0.3);
}

.relic-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.relic-content {
  padding: 20px;
}

.relic-content h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

.relic-content p {
  color: var(--mist);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.relic-link {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--aqua);
}

.chronicle-section {
  background: var(--bg);
}

.chronicle-text h2 {
  color: var(--pearl);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.chronicle-text p {
  color: var(--mist);
  margin-bottom: 15px;
  font-size: 1rem;
}

.support-deck {
  background: var(--surface);
}

.support-info h2 {
  color: var(--pearl);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.support-email {
  color: var(--aqua);
  font-size: 1.2rem;
  margin-bottom: 30px;
  display: block;
}

.faq-preview {
  margin-top: 20px;
}

.faq-preview h4 {
  color: var(--gold);
  margin-bottom: 10px;
}

.faq-preview ul li {
  color: var(--mist);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.support-form {
  background: var(--deep-ocean);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(77, 216, 255, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--pearl);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: var(--abyss-navy);
  border: 1px solid var(--muted);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aqua);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.abyssal-footer {
  background: var(--abyss-navy);
  padding: 60px 0 30px;
  border-top: 1px solid var(--bronze);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--mist);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--aqua);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(127, 166, 184, 0.2);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin-bottom: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cookie Popup */
.cookie-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3, 17, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition);
}

.cookie-overlay.active {
  visibility: visible;
  opacity: 1;
}

.cookie-card {
  background: var(--deep-ocean);
  border: 1px solid var(--aqua);
  border-radius: 24px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.cookie-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.cookie-card h3 {
  color: var(--pearl);
  margin-bottom: 10px;
}

.cookie-card p {
  color: var(--mist);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Page Content */
.page-header {
  background: var(--abyss-navy);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid rgba(77, 216, 255, 0.1);
}

.page-header h1 {
  color: var(--pearl);
  font-size: 2.5rem;
}

.page-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  color: var(--gold);
  margin: 30px 0 15px;
}

.page-content p {
  color: var(--mist);
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-content ul {
  list-style: disc inside;
  color: var(--mist);
  margin-bottom: 20px;
}

.page-content li {
  margin-bottom: 8px;
}

.return-home {
  display: block;
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; }
  .discovery-grid, .relic-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 600px) {
  .discovery-grid, .relic-grid, .footer-grid { grid-template-columns: 1fr; }
  .expedition-text h1 { font-size: 2.2rem; }
  .game-frame { padding: 10px; border-radius: 16px; }
  .iframe-container { height: 350px; }
}