/* Public site (landing, rules, privacy). Plain CSS on purpose: these pages are
   served as static files, outside the Vue app. Colors and type follow
   frontend/src/styles/tokens.css. */

@font-face {
  font-family: 'Open Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(fonts/open-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(fonts/open-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/sora-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/sora-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #eef0f5;
  --surface: #f8f9fc;
  --raised: #ffffff;
  --border: #dce0ea;
  --text: #151925;
  --dim: #61687b;
  --accent: #1f4f9e;
  --accent-hover: #2a5fb5;
  --night: #0f1a33;
  --night-2: #16305e;
  --gold: #d4a017;
  --gold-hover: #e3b331;
  --wood: #7a4f21;
  --stone: #55565c;
  --iron: #b0401f;
  --font: 'Open Sans Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Sora', 'Open Sans Variable', -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
  --page: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--raised);
  color: var(--text);
  font: 16px/1.6 var(--font);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- Header --- */

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 19px var(--display);
  color: inherit;
  text-decoration: none;
}
.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}
.top nav > a:not(.btn) {
  color: inherit;
  text-decoration: none;
}
.top nav > a:not(.btn):hover {
  text-decoration: underline;
}

/* Language switch: the same flags as the game's LocaleSwitch.vue. */
.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.lang a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--dim);
  font-size: 14px;
  text-decoration: none;
}
.lang a + a {
  border-left: 1px solid var(--border);
}
.lang a:hover:not([aria-current]) {
  color: var(--text);
}
.lang a[aria-current] {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  font-weight: 600;
}
.lang img {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.hero .lang {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}
.hero .lang a {
  color: rgba(255, 255, 255, 0.75);
}
.hero .lang a:hover:not([aria-current]) {
  color: #fff;
}
.hero .lang a[aria-current] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (max-width: 640px) {
  /* A phone has room for the flags, not their names. */
  .top nav .nav-extra,
  .lang span {
    display: none;
  }
  .lang a {
    padding: 0 10px;
  }
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 16px var(--font);
  text-decoration: none;
  white-space: nowrap;
}
.btn.gold {
  background: var(--gold);
  color: var(--night);
}
.btn.gold:hover {
  background: var(--gold-hover);
}
.btn.line {
  border-color: currentColor;
  color: inherit;
}
.btn.sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* --- Hero --- */

.hero {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff;
}
.hero .top nav > a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
}
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding-block: 32px 56px;
}
.hero-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero .eyebrow {
  color: #9fc0ff;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
}
.lead {
  font-size: 18px;
  max-width: 56ch;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.84);
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fine {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}
.hero-shot {
  border-radius: 10px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 860px) {
  .hero-body {
    grid-template-columns: 1fr;
    padding-block: 16px 40px;
  }
}

/* --- Sections --- */

.sec {
  padding-block: 64px;
  display: grid;
  gap: 28px;
}
.sec + .sec {
  padding-top: 0;
}
.sec-head {
  display: grid;
  gap: 10px;
  max-width: 64ch;
}
.sec h2 {
  font-size: clamp(24px, 3vw, 30px);
}
.sec-head p {
  color: var(--dim);
  font-size: 17px;
}
.band {
  background: var(--bg);
}
.band .sec + .sec,
.sec.band-first {
  padding-top: 64px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 860px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}

.pillar {
  display: grid;
  gap: 8px;
  align-content: start;
}
.pillar h3 {
  font-size: 18px;
}
.pillar p {
  color: var(--dim);
}

.race {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.race h3 {
  font-size: 19px;
}
.race .trait {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.race p {
  color: var(--dim);
}
.race.aumen .trait {
  color: var(--accent);
}
.race.nord .trait {
  color: var(--iron);
}
.race.sylvan .trait {
  color: var(--wood);
}

/* Split: text beside an image, used for the map and the phone. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.split.phone-split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.split ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.shot {
  border-radius: 8px;
  border: 1px solid var(--border);
}
.phone {
  justify-self: center;
  width: min(300px, 100%);
  border: 8px solid var(--night);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(15, 26, 51, 0.6);
}
@media (max-width: 860px) {
  .split,
  .split.phone-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
}
.steps b {
  color: var(--accent);
}

.faq {
  display: grid;
  max-width: 72ch;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
}
.faq details p {
  color: var(--dim);
  padding-top: 8px;
}

.closing {
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
  color: #fff;
}
.closing .sec {
  justify-items: center;
  text-align: center;
}
.closing p {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Footer --- */

.foot {
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--dim);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-block: 22px;
}
.foot a {
  color: inherit;
}
.foot .copy {
  margin-left: auto;
}

/* --- Legal pages --- */

.doc-head {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.doc {
  max-width: 72ch;
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}
.doc h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 8px;
}
.doc .meta {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 28px;
}
.doc h2 {
  font-size: 21px;
  margin: 36px 0 10px;
}
.doc h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}
.doc p,
.doc ul,
.doc ol {
  margin: 0 0 12px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 4px;
}
.doc .table {
  overflow-x: auto;
  margin: 0 0 16px;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.doc th {
  background: var(--bg);
  font-weight: 600;
}
.doc .note {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}


/* Test run bar, inserted by site.js while the server runs TEST_MODE. */
.test-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Same column as .wrap, so the dot lines up with the logo below. */
  padding: 6px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  background: var(--raised);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}
.test-mode .dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5620c;
  box-shadow: 0 0 0 3px rgb(165 98 12 / 18%);
}
.test-mode strong {
  font-weight: 600;
  white-space: nowrap;
}
.test-mode .detail {
  min-width: 0;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  color: var(--dim);
}
