/* Genesys website - one stylesheet for every page.
   Palette and type come from the game's own world map: deep sea, foam, parchment, the orange
   waypoints of the dashed sailing route, and the gold of the compass rose. */
:root {
  --sea-deep: #0a3350;
  --sea: #124a72;
  --sea-line: #2a6a96;
  --foam: #e9f5fa;
  --foam-dim: #a9cbe0;
  --parchment: #f3e6c4;
  --parchment-edge: #d9c393;
  --ink: #2a2419;
  --ink-dim: #6b5d44;
  --ember: #e5642a;
  --ember-dark: #b8461a;
  --gold: #f2b134;
  --ok: #7fe0a4;
  --bad: #ff9a8a;
  --display: "Lilita One", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --radius: 14px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: var(--sea-deep);
  background-image: radial-gradient(ellipse 120% 60% at 50% 0%, #135a88 0%, var(--sea-deep) 70%);
  background-repeat: no-repeat;
  color: var(--foam);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block }
a { color: var(--gold) }
a:hover { color: #ffd27a }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 51, 80, .88); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(169, 203, 224, .15) }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--foam) }
.brand img { width: 34px; height: 34px }
.brand span { font: 28px/1 var(--display); letter-spacing: .5px; -webkit-text-stroke: 1px #06223a; text-shadow: 0 3px 0 #06223a }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center }
.nav a { color: var(--foam-dim); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px }
.nav a:hover, .nav a[aria-current="page"] { color: var(--foam); background: rgba(233, 245, 250, .08) }
.nav a.cta { background: var(--ember); color: #fff; margin-left: 6px }
.nav a.cta:hover { background: var(--ember-dark) }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--sea-line); color: var(--foam); border-radius: 10px; padding: 8px 12px; font: 700 15px var(--body) }

@media (max-width: 760px) {
  .menu-btn { display: block }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--sea-deep); padding: 8px 16px 16px; border-bottom: 1px solid var(--sea-line) }
  .nav.open { display: flex }
  .nav a { padding: 12px 14px }
  .nav a.cta { margin: 6px 0 0; text-align: center }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .3px; line-height: 1.1; margin: 0 }
h1 { font-size: clamp(44px, 7vw, 84px); -webkit-text-stroke: 2px #06223a; text-shadow: 0 5px 0 #06223a }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px }
h3 { font-size: 24px; margin-bottom: 6px }
.eyebrow { font: 700 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold) }
.lead { font-size: 19px; color: var(--foam-dim); max-width: 34em }
.mono { font-family: var(--mono) }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 17px var(--body); text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease }
.btn:hover { transform: translateY(-2px) }
.btn.primary { background: var(--ember); color: #fff; box-shadow: 0 4px 0 var(--ember-dark) }
.btn.primary:hover { color: #fff }
.btn.ghost { color: var(--foam); border: 2px solid var(--foam-dim) }
.btn.ghost:hover { color: var(--foam); border-color: var(--foam) }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px }

/* ---------- live status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; font: 600 14px var(--mono); color: var(--foam-dim); background: rgba(6, 34, 58, .55); border: 1px solid var(--sea-line); border-radius: 999px; padding: 7px 14px }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--foam-dim) }
.status.is-open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(127, 224, 164, .18) }
.status.is-closed .dot { background: var(--bad) }
.status b { color: var(--foam) }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; overflow: hidden }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center }
.hero h1 { margin: 16px 0 18px }
.hero-map { position: relative }
.hero-map img { width: 100%; transform: rotate(2deg); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)) }
@media (prefers-reduced-motion: no-preference) {
  .hero-map img { animation: bob 7s ease-in-out infinite }
  @keyframes bob { 0%, 100% { transform: rotate(2deg) translateY(0) } 50% { transform: rotate(1.2deg) translateY(-10px) } }
}
@media (max-width: 860px) {
  .hero { padding-top: 32px }
  .hero .wrap { grid-template-columns: 1fr }
  .hero-map { order: -1; margin: 0 -8px }
}

/* ---------- the voyage route (signature) ---------- */
.voyage { position: relative; padding: 40px 0 24px }
.route { position: relative }
.voyage-steps { list-style: none; margin: 0; padding: 0; position: relative }
.voyage-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible }
.voyage-path path { fill: none; stroke: var(--foam); stroke-width: 5; stroke-dasharray: 16 14; stroke-linecap: round; opacity: .85 }
.leg { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; width: min(560px, 100%); margin-bottom: 64px }
.leg:nth-child(2) { margin-left: auto }
.leg:nth-child(3) { margin-left: 12% }
.leg:last-child { margin-bottom: 0 }
.waypoint { width: 64px; height: 64px; border-radius: 50%; background: var(--ember); border: 5px solid #fff3; box-shadow: 0 5px 0 var(--ember-dark); display: grid; place-items: center; font: 30px/1 var(--display); color: #fff }
.note { background: var(--parchment); color: var(--ink); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 6px 0 var(--parchment-edge), 0 18px 30px rgba(0, 0, 0, .25) }
.note h3 { color: var(--ink) }
.note p { margin: 0 0 12px; color: var(--ink-dim) }
.note p:last-child { margin-bottom: 0 }
.note a { color: var(--ember-dark); font-weight: 700 }
@media (max-width: 760px) {
  .voyage-path { display: none }
  .leg, .leg:nth-child(2), .leg:nth-child(3) { margin-left: 0; margin-bottom: 28px; grid-template-columns: 48px minmax(0, 1fr); gap: 14px }
  .waypoint { width: 48px; height: 48px; font-size: 24px; border-width: 4px }
  .voyage-steps { border-left: 5px dashed rgba(233, 245, 250, .7); padding-left: 0; margin-left: 22px }
  .leg { margin-left: -27px !important }
}

/* ---------- sections ---------- */
section { padding: 56px 0 }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px }
.section-head h2 { margin: 6px 0 0 }

/* news */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px }
.news article { background: var(--parchment); color: var(--ink); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 6px 0 var(--parchment-edge) }
.news time { font: 600 13px var(--mono); color: var(--ember-dark) }
.news h3 { color: var(--ink); margin: 6px 0 8px; font-size: 23px }
.news p { margin: 0; color: var(--ink-dim) }
.news article:first-child { grid-column: span 2 }
@media (max-width: 620px) { .news article:first-child { grid-column: auto } }

/* feature list */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--sea-line); border: 2px solid var(--sea-line); border-radius: var(--radius); overflow: hidden }
.features div { background: var(--sea); padding: 20px 22px }
.features b { display: block; font: 24px/1.1 var(--display); color: var(--gold); margin-bottom: 6px; letter-spacing: .3px }
.features p { margin: 0; color: var(--foam-dim); font-size: 16px }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr } }

/* ---------- tables (rankings) ---------- */
.board { width: 100%; border-collapse: collapse; font-size: 16px }
.board th { text-align: left; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--foam-dim); padding: 10px 12px; border-bottom: 2px solid var(--sea-line) }
.board td { padding: 12px; border-bottom: 1px solid rgba(42, 106, 150, .45) }
.board td.num, .board th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums }
.board td.rank { width: 56px; font: 20px var(--display); color: var(--foam-dim) }
.board tr:nth-child(1) td.rank { color: var(--gold) }
.board tr:nth-child(2) td.rank { color: #dfe8ee }
.board tr:nth-child(3) td.rank { color: #e7a36a }
.board .name { font-weight: 800 }
.board .sub { color: var(--foam-dim); font-size: 14px }
.panel { background: rgba(18, 74, 114, .6); border: 1px solid var(--sea-line); border-radius: var(--radius); padding: 8px 16px 16px; overflow-x: auto }
.empty { padding: 28px 12px; color: var(--foam-dim); text-align: center }
.empty b { display: block; font: 26px var(--display); color: var(--foam); margin-bottom: 4px; font-weight: 400 }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px }
.chip { font: 700 14px var(--body); color: var(--foam-dim); background: transparent; border: 1px solid var(--sea-line); border-radius: 999px; padding: 7px 14px; cursor: pointer }
.chip:hover { color: var(--foam) }
.chip[aria-pressed="true"] { background: var(--foam); color: var(--sea-deep); border-color: var(--foam) }
.tabs { display: flex; gap: 6px; margin-bottom: 14px }
.tabs .chip { font-size: 16px; padding: 9px 18px }

/* ---------- guide ---------- */
.prose > * { max-width: 46rem }
.prose p, .prose li { color: var(--foam-dim) }
.prose b, .prose strong { color: var(--foam) }
.prose code, code { background: rgba(6, 34, 58, .7); color: var(--foam); padding: 2px 7px; border-radius: 6px; font: 15px var(--mono) }
.tree { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 8px }
.tree .note h3 { font-size: 26px }
.tree ul { list-style: none; margin: 10px 0 0; padding: 0 }
.tree li { color: var(--ink); font-weight: 800; padding: 6px 0 6px 22px; position: relative; border-top: 1px dashed var(--parchment-edge) }
.tree li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--ember) }
.tree li span { display: block; font-weight: 600; color: var(--ink-dim); font-size: 15px }
.faq details { border-bottom: 1px solid var(--sea-line); padding: 14px 0 }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px }
.faq details p { margin: 10px 0 0; color: var(--foam-dim) }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 56px; color: var(--foam-dim) }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--ember); color: #fff; display: grid; place-items: center; font: 20px var(--display) }
.steps b { color: var(--foam) }
.fine { font-size: 14px; color: var(--ink-dim) }

/* ---------- forms (register) ---------- */
.form-card { max-width: 520px }
.form-card label { display: block; margin: 14px 0 5px; font-weight: 700; font-size: 15px; color: var(--ink) }
.form-card input[type=text], .form-card input[type=password], .form-card input[type=email] { width: 100%; padding: 11px 13px; border-radius: 10px; border: 2px solid var(--parchment-edge); background: #fffaf0; color: var(--ink); font: 17px var(--body) }
.form-card input:focus { border-color: var(--ember); outline: none }
.form-card .btn { margin-top: 20px }
.msg { padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; font-weight: 600 }
.msg.err { background: #f8d6cc; color: #7a2410; border: 1px solid #e3a08c }
.msg.ok { background: #d8f0dc; color: #1c5a2c; border: 1px solid #9fd1aa }
.hp { position: absolute; left: -9999px }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 48px 0 8px }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); margin: 10px 0 12px }

/* ---------- footer ---------- */
.foot { margin-top: 40px; padding: 30px 0 40px; border-top: 1px solid rgba(169, 203, 224, .15); color: var(--foam-dim); font-size: 15px }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between }
.foot a { color: var(--foam-dim) }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important } }

.aside { color: var(--foam-dim); font-size: 15px; margin-top: 14px }
.aside b { color: var(--foam) }
.dl h2 { font-size: 32px }
.page-head .status { margin-top: 4px }
