/* The app's font, served from this site (no requests to other servers).
   Copied from assets/fonts/commissioner; licence in fonts/OFL.txt. Bold text
   (700 and up) uses the ExtraBold file, the nearest heavier weight. */
@font-face {
  font-family: "Commissioner";
  src: url("/fonts/Commissioner-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Commissioner";
  src: url("/fonts/Commissioner-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

/* "Night theatre": the app's own tokens (lib/core/theme/app_tokens.dart).
   The Content-Security-Policy allows no inline styles: every style is here. */
:root {
  --night: #161229;
  --stage: #211b3a;
  --line: #3a3263;
  --chalk: #f4effa;
  --dust: #a59fbf;
  --torch: #ffb84c;
  --laurel: #5fd3a5;
  --mask: #ff6b81;
  --sky: #8fb4ff;
  --space: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 17px/1.6 "Commissioner", system-ui, sans-serif;
}

.sprite { position: absolute; }

/* The stage: a torch beam and a glow behind the page */
.page {
  position: relative;
  overflow-x: clip; /* not hidden: that would stop the menu bar from sticking */
  isolation: isolate;
}
.page::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto 20%;
  height: 720px;
  z-index: -1;
  background: conic-gradient(from 168deg at 50% 0%, transparent 0 12deg, rgba(255, 184, 76, .2) 12deg 30deg, transparent 30deg);
  filter: blur(14px);
}
.page::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  z-index: -1;
  background: radial-gradient(60% 50% at 78% 24%, rgba(255, 184, 76, .14), transparent 70%);
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px var(--space) 56px;
}

a { color: var(--torch); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--torch); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 9vw, 4.25rem); line-height: 1.06; margin: 0 0 14px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--torch); }
h2 { font-size: 1.5rem; margin: 0 0 8px; }
h3 { font-size: 1.15rem; margin: 36px 0 4px; }

.lede { color: var(--dust); font-size: 1.15rem; margin-top: 0; }
.muted { color: var(--dust); }

/* ---------- menu bar ----------
   Sticky, with every link of the site. Phones get two rows (brand + language, then the links in
   a row that scrolls sideways): without scripts a hamburger can't close itself after a tap. */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 18, 41, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--chalk); text-decoration: none; font-weight: 800; }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.bar .pills { margin: 0; }
.bar .pills a { padding: 4px 14px; font-size: .9rem; }
.menu { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.links a {
  display: block;
  padding: 7px 14px;
  border-radius: 12px;
  color: var(--dust);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.links a:hover, .links a[aria-current] { color: var(--chalk); background: var(--stage); }
.links .short { display: none; }
@media (max-width: 479px) {
  .brand span { display: none; }
  .links { gap: 0; }
  .links a { padding: 7px 9px; font-size: .9rem; }
  .links .full { display: none; }
  .links .short { display: inline; }
}
.links .cta a { background: var(--torch); color: var(--night); }
.links .cta a:hover { background: #ffc974; }

/* ---------- landing page ---------- */
.hero { display: grid; gap: 32px; padding-block: 36px 8px; align-items: center; }
.hero .lede { color: var(--chalk); font-size: 1.25rem; line-height: 1.4; font-weight: 800; }
.hero p { max-width: 54ch; }
.hero p:not(.lede) { color: var(--dust); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li {
  border: 1px solid var(--line);
  background: var(--stage);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.5;
}
.badges li:first-child { border-color: var(--torch); color: var(--torch); }

/* The phone, with the word card that flips */
.phone {
  justify-self: center;
  width: 232px;
  aspect-ratio: 232 / 460;
  border-radius: 38px;
  border: 2px solid var(--line);
  background: #0e0b1c;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 80px -10px rgba(255, 184, 76, .25);
}
.phone-bar { display: flex; justify-content: space-between; gap: 8px; padding: 6px 6px 0; font-size: .75rem; font-weight: 800; color: var(--dust); }
.card3d { flex: 1; perspective: 900px; }
.flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip 9s infinite; }
.face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}
.face small { font-size: .75rem; line-height: 1.3; color: var(--dust); }
.face b { font-size: 1.85rem; line-height: 1.1; font-weight: 800; }
.face.front { background: var(--stage); border: 1px solid var(--line); }
.face.front b { color: var(--torch); }
.face.back { background: #3a1523; border: 1px solid var(--mask); transform: rotateY(180deg); }
.face.back b { color: var(--mask); font-size: 1.5rem; }
.face svg { width: 56px; height: 56px; color: var(--mask); }
.phone-cta { background: var(--torch); color: var(--night); border-radius: 14px; text-align: center; font-weight: 800; padding: 10px; font-size: .9rem; }
@keyframes flip {
  0%, 40% { transform: rotateY(0); }
  50%, 90% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) { .flip { animation: none; } }

/* Steps: a player token marks each one */
.steps { display: grid; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.step { background: var(--stage); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.step h2 { font-size: 1.1rem; margin: 0 0 2px; }
.step p { margin: 0; color: var(--dust); font-size: .9rem; line-height: 1.5; }
.tok { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: var(--night); }
.t1 { background: var(--torch); }
.t2 { background: var(--laurel); }
.t3 { background: var(--mask); }

/* Sections below the hero: the heading is the anchor of the menu link */
.block { margin-top: 48px; }
.block h2, .policy, .policy h3 { scroll-margin-top: 130px; }
.block .muted { margin: 0 0 4px; }

/* The app's screens: a strip that scrolls sideways and snaps to each phone */
.strip {
  display: flex;
  gap: 18px;
  margin: 16px calc(-1 * var(--space)) 0;
  padding: 8px var(--space) 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space);
  scrollbar-color: var(--line) transparent;
}
.strip li { flex: 0 0 min(250px, 68vw); scroll-snap-align: start; }
.strip figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 2px solid var(--line);
  background: #0e0b1c;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .8);
}
.strip small { color: var(--torch); font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.strip h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.strip p { margin: 0; color: var(--dust); font-size: .9rem; line-height: 1.5; }

/* ---------- cookie banner (made by analytics.js; each language is .el / .en like the rest) ---------- */
.consent {
  position: fixed;
  z-index: 30;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 640px;
  margin-inline: auto;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85);
}
.consent-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.consent p { margin: 0; flex: 1 1 260px; font-size: .95rem; line-height: 1.45; }
.consent-btns { display: flex; gap: 8px; }
.btn {
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  padding: 9px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
}
.btn:hover { border-color: var(--torch); color: var(--torch); }
.btn-yes, .btn-yes:hover { background: var(--torch); border-color: var(--torch); color: var(--night); }
.btn:focus-visible, .linkbtn:focus-visible { outline: 3px solid var(--torch); outline-offset: 3px; }
/* The footer's "Cookie settings": a button that looks like the links around it */
.linkbtn { font: inherit; padding: 0; border: 0; background: none; color: var(--torch); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 2px; }
footer { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- links ---------- */
.langs { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 26px 0 0; font-size: .95rem; }

footer { color: var(--dust); font-size: .9rem; margin-top: 20px; }
footer a { color: var(--torch); }

/* ---------- document pages (privacy policy) ---------- */
.doc { max-width: 760px; }
.pills { display: flex; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.pills a {
  display: block;
  border: 1px solid var(--line);
  background: var(--stage);
  color: var(--chalk);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
}
.pills a:hover { border-color: var(--torch); color: var(--torch); }

.policy {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px var(--space) 28px;
  margin-top: 24px;
}
.policy h1 { font-size: clamp(1.9rem, 7vw, 2.75rem); margin-bottom: 6px; }
.policy .muted { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.policy h3 { display: flex; align-items: center; gap: 10px; }
.policy h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--torch); }
.policy strong { color: var(--chalk); }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 8px; padding-left: 4px; }
.policy li::marker { color: var(--torch); }
.policy a { overflow-wrap: anywhere; }

/* ---------- language toggle ----------
   Greek unless the address ends in #english (the pills link to #ellinika and #english, and so
   does the app). The CSP allows no scripts, so :target does the work. A browser without :has
   shows both languages, which loses nothing. The anchors on the landing page sit at the top, so
   the page doesn't jump. The menu's own anchors (#how-en, #screens-en) sit inside the .en blocks,
   so following one keeps the page in English: an anchor outside would drop #english. */
.anchor { position: absolute; top: 0; left: 0; }
@supports selector(:has(*)) {
  html:has(#english:target, .en:target, .en :target) .el { display: none; }
  html:not(:has(#english:target, .en:target, .en :target)) .en { display: none; }
  html:not(:has(#english:target, .en:target, .en :target)) .pills a[href="#ellinika"],
  html:has(#english:target, .en:target, .en :target) .pills a[href="#english"] {
    background: var(--torch);
    border-color: var(--torch);
    color: var(--night);
  }
}

@media (min-width: 760px) {
  .bar-in { padding: 10px 40px; flex-wrap: nowrap; gap: 12px 20px; }
  .brand { flex: none; }
  .menu { order: 0; flex: 1; flex-basis: auto; overflow: visible; display: flex; justify-content: flex-end; }
  .bar .pills { order: 1; }
  .block h2, .policy, .policy h3 { scroll-margin-top: 90px; }
  .strip { margin-inline: -40px; padding-inline: 40px; scroll-padding-inline: 40px; }
  main { padding: 32px 40px 72px; }
  .hero { grid-template-columns: 1.25fr .75fr; gap: 48px; padding-block: 64px 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .policy { padding: 32px 36px 40px; }
}
