/* ============================================================
   VESSALIA — Official Web Portal & Distribution Hub
   Retro GBA / 16-bit Aesthetic faithfully styled from the game UI
   ============================================================ */

:root {
  --room:       #16131D;
  --room-2:     #201B2B;

  --shell:      #6B4A96;
  --shell-hi:   #8A63BA;
  --shell-lo:   #452F63;
  --shell-rim:  #2A1C40;
  --shell-ink:  #EBDCFF;

  --btn-a:      #C4553D;
  --btn-a-lo:   #5F1E10;
  --btn-b:      #3E7AAE;
  --btn-b-lo:   #14344D;

  --lcd:        #D5D8DC;
  --lcd-deep:   #B9BEC4;
  --lcd-dark:   #22262B;
  --lcd-ink:    #14171B;
  --lcd-soft:   #4C525A;
  --lcd-glow:   #EEF0F2;
  --lcd-line:   #9BA2AA;

  --gold:       #C08410;
  --gold-glow:  #F5A623;
  --green:      #2F7A4A;
  --green-glow: #4EBA6F;
  --rank-red:   #8A3450;

  --font-display: "Jersey 25", sans-serif;
  --font-pixel:   "Silkscreen", monospace;
  --font-body:    "DotGothic16", monospace;

  color-scheme: dark;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(130% 95% at 50% 0%, var(--room-2) 0%, var(--room) 75%);
  color: var(--shell-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Scanline subtle retro effect */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 999;
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  opacity: 0.6;
}

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

/* Header */
header {
  padding: 24px 0 16px;
  border-bottom: 2px solid var(--shell-rim);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  background: var(--shell);
  border: 2px solid var(--shell-hi);
  color: var(--shell-ink);
  font-family: var(--font-pixel);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 2px;
  color: var(--shell-ink);
  text-shadow: 2px 2px 0 var(--shell-rim);
}

/* Server Health Status Indicator */
.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1527;
  border: 1px solid var(--shell-lo);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-pixel);
  font-size: 11px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #888;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.status-dot.online {
  background-color: var(--green-glow);
  box-shadow: 0 0 8px var(--green-glow);
}

.status-dot.checking {
  background-color: var(--gold-glow);
  box-shadow: 0 0 8px var(--gold-glow);
}

.status-dot.offline {
  background-color: #e74c3c;
  box-shadow: 0 0 8px #e74c3c;
}

/* Hero Section */
.hero {
  padding: 50px 0 40px;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--gold-glow);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 3px 3px 0 var(--shell-rim), 0 0 20px rgba(138, 99, 186, 0.4);
  margin-bottom: 18px;
}

.hero-description {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: #c9bfe3;
}

/* CTA Buttons Container */
.cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(2px);
}

.btn-webgl {
  background: linear-gradient(180deg, var(--gold-glow) 0%, var(--gold) 100%);
  color: #1a1000;
  border: 3px solid #634304;
  box-shadow: 0 5px 0 #4a3203, 0 10px 20px rgba(192, 132, 16, 0.4);
  font-weight: bold;
}

.btn-webgl:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #4a3203, 0 14px 24px rgba(192, 132, 16, 0.5);
}

.btn-download {
  background: linear-gradient(180deg, var(--shell-hi) 0%, var(--shell) 100%);
  color: var(--shell-ink);
  border: 3px solid var(--shell-rim);
  box-shadow: 0 5px 0 var(--shell-rim), 0 10px 20px rgba(42, 28, 64, 0.6);
}

.btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--shell-rim), 0 14px 24px rgba(42, 28, 64, 0.8);
}

.btn-outline {
  background: #20182E;
  color: var(--shell-ink);
  border: 2px solid var(--shell-lo);
  font-size: 20px;
  padding: 8px 18px;
}

.btn-outline:hover {
  background: var(--shell-lo);
  border-color: var(--shell-hi);
}

/* Palmare Mockup Frame */
.mockup-wrapper {
  margin: 20px auto 50px;
  display: flex;
  justify-content: center;
}

.palmare-frame {
  width: 320px;
  background: linear-gradient(180deg, var(--shell-hi) 0%, var(--shell) 25%, var(--shell-lo) 100%);
  border: 4px solid var(--shell-rim);
  border-radius: 20px 20px 36px 36px;
  padding: 16px 16px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.2);
}

.screen-bezel {
  background: var(--room);
  border-radius: 8px;
  padding: 12px;
  border: 3px solid #14101A;
}

.screen-lcd {
  background: var(--lcd);
  border: 2px solid var(--lcd-dark);
  border-radius: 4px;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  color: var(--lcd-ink);
  font-family: var(--font-pixel);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}

.screen-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  border-bottom: 1px solid var(--lcd-line);
  padding-bottom: 4px;
  color: var(--lcd-soft);
}

.screen-center {
  text-align: center;
  margin: auto 0;
}

.screen-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--lcd-ink);
  line-height: 1;
}

.screen-creatures {
  font-size: 10px;
  color: var(--lcd-dark);
  margin-top: 6px;
}

.screen-bottom {
  font-size: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--lcd-soft);
  border-top: 1px solid var(--lcd-line);
  padding-top: 4px;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 0 10px;
}

.dpad {
  width: 46px;
  height: 46px;
  position: relative;
}

.dpad-cross-v {
  position: absolute;
  width: 14px;
  height: 46px;
  left: 16px;
  background: #2A1C40;
  border-radius: 2px;
}

.dpad-cross-h {
  position: absolute;
  width: 46px;
  height: 14px;
  top: 16px;
  background: #2A1C40;
  border-radius: 2px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  transform: rotate(-15deg);
}

.circle-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,0.4);
}

.btn-b-circle { background: var(--btn-b); border: 2px solid var(--btn-b-lo); }
.btn-a-circle { background: var(--btn-a); border: 2px solid var(--btn-a-lo); }

/* Download Platform Cards */
.downloads-section {
  padding: 40px 0;
  border-top: 2px solid var(--shell-rim);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 38px;
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: #1D1828;
  border: 2px solid var(--shell-lo);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--shell-hi);
  transform: translateY(-2px);
}

.card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(192, 132, 16, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 30px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
}

.card-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 2px 6px;
  background: var(--gold);
  color: #000;
  border-radius: 3px;
  margin-left: auto;
}

.card-details {
  font-size: 13px;
  color: #B5A8CC;
  margin-bottom: 20px;
}

.card-details li {
  list-style: none;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quickstart Guide (3 Steps) */
.guide-section {
  padding: 40px 0;
  border-top: 2px solid var(--shell-rim);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-box {
  background: #191423;
  border: 1px solid var(--shell-rim);
  border-radius: 6px;
  padding: 20px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--shell-hi);
  line-height: 1;
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gold-glow);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.step-text {
  font-size: 13px;
  color: #B5A8CC;
}

/* Changelog */
.changelog-section {
  padding: 40px 0;
  border-top: 2px solid var(--shell-rim);
}

.changelog-box {
  background: #171321;
  border: 1px solid var(--shell-lo);
  border-radius: 6px;
  padding: 20px 24px;
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--shell-rim);
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-pixel);
  font-size: 11px;
}

.version-tag {
  color: var(--gold-glow);
}

.changelog-list {
  padding-left: 20px;
  color: #B5A8CC;
  font-size: 14px;
}

.changelog-list li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  padding: 40px 0 60px;
  border-top: 2px solid var(--shell-rim);
  text-align: center;
  font-size: 13px;
  color: #796A94;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  font-family: var(--font-pixel);
  font-size: 11px;
}

.footer-links a {
  color: var(--shell-ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-glow);
}

@media (max-width: 600px) {
  .hero-headline {
    font-size: 42px;
  }
  .cta-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
