/* Vale of Crowns website: the game's own palette (lib/ui/theme.dart), dark like the game. */
@font-face { font-family: "Piazzolla"; font-weight: 800; font-display: swap; src: url("/fonts/Piazzolla-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Commissioner"; font-weight: 400; font-display: swap; src: url("/fonts/Commissioner-Regular.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --bg: #141821;
  --panel: #1e2430;
  --panel2: #262e3d;
  --line: #323b4d;
  --ink: #eee7d4;
  --dim: #959dac;
  --gold: #e8c04a;
  --ember: #e0663a;
  --tide: #3d8fd6;
  --sun: #e8c04a;
  --dusk: #b07cd8;
  --hollow: #8b62c4;
  --display: "Piazzolla", Georgia, serif;
  --body: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 8% 0%, rgba(139, 98, 196, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(43, 53, 80, 0.8), transparent 40rem);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: 0.005em; word-spacing: 0.1em; overflow-wrap: break-word; }

/* One language at a time (lang.js sets data-lang on <html>). Without JavaScript both show. */
html[data-lang="en"] main > [data-lang="el"],
html[data-lang="el"] main > [data-lang="en"] { display: none; }
html[data-lang] .no-js { display: none; }
.langs { display: flex; gap: 16px; justify-content: flex-end; margin: 16px 0 0; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--display); word-spacing: 0.1em; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.picker { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.picker button {
  font: inherit; font-size: 14px; color: var(--dim); background: none; border: 0;
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.picker button[aria-pressed="true"] { background: var(--panel2); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--gold); color: #241a02; font-weight: 700; border-radius: 14px; padding: 14px 22px;
}
.btn:hover { color: #241a02; filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 32px 0 56px; }
.hero > * { min-width: 0; }
.kicker { font: 600 13px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); margin-bottom: 18px; }
.hero h1 span { color: var(--gold); }
.lede { font-size: 19px; color: #c9ced8; margin: 0 0 28px; max-width: 34rem; }
.note { font-size: 14px; color: var(--dim); margin: 14px 0 0; }
.shots { display: flex; gap: 14px; justify-content: center; }
.shots img {
  width: 31%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; min-width: 0;
  border: 5px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.shots img:nth-child(2) { transform: translateY(-18px); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 56px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h2 { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: #c9ced8; }
.dots { display: flex; gap: 6px; margin-bottom: 14px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; display: block; background: var(--line); }
.dots .e { background: var(--ember); }
.dots .t { background: var(--tide); }
.dots .s { background: var(--sun); }
.dots .d { background: var(--dusk); }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; padding: 0; margin: 20px 0 56px; list-style: none; }
.rules li { position: relative; padding-left: 26px; color: #c9ced8; }
.rules li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 10px; height: 10px;
  background: var(--gold); transform: rotate(45deg); border-radius: 2px;
}
.section-title { font-size: 30px; }

footer { border-top: 1px solid var(--line); padding-top: 22px; color: var(--dim); font-size: 15px; display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--dim); }

/* Privacy policy */
.p-hero { padding: 24px 0 8px; }
.p-hero h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 10px; }
.p-meta { color: var(--dim); margin: 0 0 18px; }
.p-intro { font-size: 19px; color: #c9ced8; max-width: 44rem; margin: 0 0 12px; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 28px 0 40px; list-style: none; }
.glance li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  font-weight: 700; display: flex; flex-direction: column; gap: 10px;
}
.glance svg { width: 26px; height: 26px; color: var(--gold); }
.policy { max-width: 46rem; }
.policy h2 { font-size: 26px; margin: 40px 0 12px; scroll-margin-top: 16px; }
.policy p, .policy li { color: #d5d9e1; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--ink); }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; max-width: 46rem; }
.toc h2 { font: 600 13px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
  .modes { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .shots { gap: 10px; }
  .shots img { border-width: 3px; border-radius: 12px; }
  .top { gap: 10px 14px; }
}
