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

html {
  scroll-behavior: smooth;
}

body {
  background: #05050f;
  color: #ccc;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 0 80px;
}
.hero-logo {
  width: 280px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px rgba(0, 170, 255, 0.3));
}
.hero-tagline {
  font-size: 24px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 15px;
  color: #888;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-banner {
  width: 100%;
  max-width: 720px;
  border-radius: 8px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 20px rgba(0, 170, 255, 0.25));
  border: 1px solid #333;
}
.hero-banner:hover {
  filter: drop-shadow(0 0 30px rgba(0, 170, 255, 0.4));
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 14px 48px;
  font-family: inherit;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 170, 255, 0.15);
  border: 2px solid #0af;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.cta-btn:hover {
  background: rgba(0, 170, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.25), inset 0 0 20px rgba(0, 170, 255, 0.1);
  transform: translateY(-1px);
}

/* Lore Sections */
.lore {
  padding: 48px 0;
  border-bottom: 1px solid #1a1a2e;
}
.lore h2 {
  font-size: 18px;
  color: #0af;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.lore p {
  font-size: 14px;
  color: #999;
  line-height: 1.7;
  margin-bottom: 12px;
}
.lore p:last-child {
  margin-bottom: 0;
}
.lore strong {
  color: #ccc;
}

/* Roles Section */
.roles {
  padding: 60px 0;
  text-align: center;
}
.roles h2 {
  font-size: 20px;
  color: #0af;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.roles-intro {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.role-card {
  background: rgba(20, 20, 40, 0.7);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.role-card:hover {
  border-color: #0af;
}
.role-icon {
  font-size: 28px;
  color: #0af;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.4));
}
.role-card h3 {
  font-size: 14px;
  color: #ff0;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.role-card p {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* Features Section */
.features {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.feature {
  padding: 24px;
  background: rgba(15, 15, 30, 0.6);
  border-left: 3px solid #0af;
  border-radius: 0 6px 6px 0;
}
.feature h3 {
  font-size: 15px;
  color: #0f8;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.feature p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* Zones Section */
.zones {
  padding: 60px 0;
  text-align: center;
}
.zones h2 {
  font-size: 20px;
  color: #0af;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.zones-intro {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 32px;
}
.zones-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.zone-card {
  padding: 20px 24px;
  background: rgba(15, 15, 30, 0.6);
  border-left: 3px solid #555;
  border-radius: 0 6px 6px 0;
  text-align: left;
}
.zone-card h3 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.zone-card p {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}
.zone-safe { border-left-color: #0f8; }
.zone-safe h3 { color: #0f8; }
.zone-conflict { border-left-color: #fa0; }
.zone-conflict h3 { color: #fa0; }
.zone-deep { border-left-color: #f44; }
.zone-deep h3 { color: #f44; }

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 60px 0 40px;
}
.loop-text {
  font-size: 16px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.cta-sub {
  margin-top: 16px;
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
}

/* Comment Feed */
.comments {
  padding: 60px 0;
  border-top: 1px solid #1a1a2e;
}
.comments h2 {
  font-size: 20px;
  color: #0af;
  letter-spacing: 4px;
  margin-bottom: 24px;
  text-align: center;
}

/* Comment Form */
.comment-form textarea {
  width: 100%;
  background: rgba(15, 15, 30, 0.8);
  border: 1px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-family: inherit;
  font-size: 13px;
  padding: 12px;
  resize: vertical;
  min-height: 70px;
  max-height: 200px;
  transition: border-color 0.2s ease;
}
.comment-form textarea:focus {
  outline: none;
  border-color: #0af;
}
.comment-form textarea::placeholder {
  color: #555;
}
.comment-form-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.comment-form-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-form-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.screenshot-label {
  cursor: pointer;
}
.screenshot-btn {
  font-family: inherit;
  font-size: 12px;
  color: #888;
  padding: 6px 12px;
  border: 1px solid #333;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.screenshot-btn:hover {
  border-color: #0af;
  color: #0af;
}
.screenshot-preview {
  font-size: 11px;
  color: #0f8;
}
.screenshot-preview img {
  height: 36px;
  border-radius: 4px;
  border: 1px solid #333;
  vertical-align: middle;
  margin-right: 6px;
}
.screenshot-preview .remove-screenshot {
  cursor: pointer;
  color: #f44;
  margin-left: 4px;
  font-size: 13px;
}
.comment-submit {
  padding: 8px 24px !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
}
.comment-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.comment-error {
  margin-top: 8px;
  font-size: 12px;
  color: #f44;
}

/* Comment List */
.comment-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-card {
  background: rgba(15, 15, 30, 0.6);
  border: 1px solid #222;
  border-radius: 6px;
  padding: 14px 16px;
}
.comment-card-body {
  font-size: 13px;
  color: #bbb;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-card-screenshot {
  margin-top: 10px;
}
.comment-card-screenshot img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
  border: 1px solid #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.comment-card-screenshot img:hover {
  border-color: #0af;
}
.comment-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: #555;
}
.comment-report-btn {
  background: none;
  border: none;
  color: #555;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: color 0.2s ease;
}
.comment-report-btn:hover {
  color: #f44;
}
.comment-report-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Load More */
.load-more-btn {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: 1px solid #333;
  color: #888;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.load-more-btn:hover {
  border-color: #0af;
  color: #0af;
}

/* Image Lightbox */
.comment-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.comment-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #222;
}
footer a {
  color: #555;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #0af;
}

/* Screen-reader only (visually hidden, accessible to crawlers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .hero { padding: 80px 0 60px; }
  .hero-logo { width: 200px; }
  .hero-tagline { font-size: 18px; letter-spacing: 2px; }
  .hero-sub { font-size: 13px; }
  .cta-btn { padding: 12px 36px; font-size: 15px; }
  .hero-banner { border-radius: 6px; }
  .lore h2 { font-size: 15px; }
  .lore p { font-size: 13px; }
  .roles-grid { grid-template-columns: 1fr; }
  .roles h2, .zones h2 { font-size: 16px; }
  .loop-text { font-size: 14px; }
  .comments h2 { font-size: 16px; }
  .comment-form-row { flex-direction: column; align-items: stretch; }
  .comment-form-right { align-items: stretch; }
}
