/* ZARI website: the landing page and the legal pages. The colours, the fonts and the board are
   the app's own (src/theme.ts, src/boardSkins.ts). The fonts are served from this site, so the
   pages load nothing from other servers. */

@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/m-plus-rounded-1c-latin-800-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; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/m-plus-rounded-1c-greek-800-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/m-plus-rounded-1c-latin-900-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; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/m-plus-rounded-1c-greek-900-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/commissioner-latin-400-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; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/commissioner-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/commissioner-latin-500-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; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/commissioner-greek-500-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/commissioner-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; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/commissioner-greek-600-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root {
  /* The sea of the app's screens. */
  --sea-950: #072550;
  --sea-900: #0B2E5A;
  --sea-850: #092852;
  --sea-800: #0E3D78;
  --sea-700: #113D73;
  --sea-500: #1D63AE;
  --rim: #2C6BB0;
  --night: #051B3D;
  /* Gold, as on the app's coins and titles. */
  --gold: #FFD54A;
  --gold-hi: #FFF0A8;
  --gold-mid: #FFC21A;
  --gold-deep: #F5B000;
  --gold-edge: #B98A00;
  --on-gold: #4A3000;
  /* Text on the sea. */
  --text: #FFFFFF;
  --soft: #DCE9FA;
  --muted: #BFD6F5;
  --faint: #8FB0DA;
  /* The light board: maple, a walnut frame, cream and red points. */
  --maple-1: #DDB87C;
  --maple-2: #CFA766;
  --maple-3: #C69858;
  --frame-1: #8E482A;
  --frame-2: #6C3320;
  --frame-3: #4A2114;
  --on-frame: #FFE9D6;
  --red: #BC422E;
  --red-tip: #8C2416;
  --cream: #E5CE9F;
  --cream-tip: #D4B47E;
  /* The glossy buttons. */
  --green-1: #6BE27A;
  --green-2: #34BE4C;
  --green-3: #22A13B;
  --green-4: #1B8E33;
  --green-edge: #0E6B25;
  --blue-1: #5CB8FF;
  --blue-2: #2E8EEB;
  --blue-3: #1E7AD8;
  --blue-4: #1A6CC4;
  --blue-edge: #10448A;

  --display: "M PLUS Rounded 1c", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--sea-950);
}
img, svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

/* ---------- The bar at the top ---------- */
.topbar { padding: 18px 0; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--display); font-weight: 900; font-size: 1.625rem; letter-spacing: 0.02em; }
.brand img { width: 40px; height: 40px; }
.topnav { display: flex; align-items: center; gap: 24px; font-weight: 500; font-size: 1rem; }
.topnav a { color: var(--soft); text-decoration: none; }
.topnav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.topnav .lang { padding: 5px 14px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 999px; }
.topnav .lang:hover { border-color: var(--gold); text-decoration: none; }
@media (max-width: 720px) { .topnav .jump { display: none; } }

/* ---------- Buttons, glossy like the app's ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 12px 20px;
  font-family: var(--display); font-weight: 800; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:active:not(:disabled) { transform: translateY(3px); }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn-green {
  color: var(--text); text-shadow: 0 1px 0 #0B5A1E;
  background: linear-gradient(180deg, var(--green-1) 0%, var(--green-2) 48%, var(--green-3) 52%, var(--green-4) 100%);
  box-shadow: 0 4px 0 var(--green-edge);
}
.btn-green:active:not(:disabled) { box-shadow: 0 1px 0 var(--green-edge); }
.btn-blue {
  color: var(--text); text-shadow: 0 1px 0 rgba(11, 58, 120, 0.8);
  background: linear-gradient(180deg, var(--blue-1) 0%, var(--blue-2) 48%, var(--blue-3) 52%, var(--blue-4) 100%);
  box-shadow: 0 4px 0 var(--blue-edge);
}
.btn-blue:active:not(:disabled) { box-shadow: 0 1px 0 var(--blue-edge); }
.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-mid) 52%, var(--gold-deep) 100%);
  box-shadow: 0 4px 0 var(--gold-edge);
}
.btn-gold:active:not(:disabled) { box-shadow: 0 1px 0 var(--gold-edge); }
.btn-play { padding: 16px 28px; font-size: 1.1875rem; border-radius: 16px; box-shadow: 0 5px 0 var(--green-edge), 0 14px 28px rgba(3, 12, 30, 0.35); }
.btn-play:active { box-shadow: 0 2px 0 var(--green-edge), 0 6px 14px rgba(3, 12, 30, 0.35); }
.btn-soon {
  display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 16px;
  border: 2px dashed rgba(255, 213, 74, 0.7); color: var(--gold);
  font-family: var(--display); font-weight: 800; font-size: 1.125rem;
}

/* ---------- The landing page ---------- */
.landing {
  /* Light from the top centre, darker towards the edges, as in the app. */
  background:
    radial-gradient(130% 1100px at 50% -120px, var(--sea-500) 0%, var(--sea-800) 42%, var(--sea-950) 78%) no-repeat,
    var(--sea-950);
}
.landing section { padding: clamp(56px, 7vw, 96px) 0; }
.landing h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); }
.lead { margin-top: 14px; max-width: 60ch; color: var(--soft); font-size: 1.1875rem; }

.landing .hero { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 4vw, 56px); }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.08fr 0.92fr; gap: 64px; } }
.hero h1 { font-weight: 800; }
.wordmark {
  display: block; font-weight: 900; color: var(--gold);
  font-size: clamp(5rem, 15vw, 9.5rem); line-height: 0.88; letter-spacing: 0.01em;
  text-shadow: 0 6px 0 var(--gold-edge), 0 18px 36px rgba(3, 12, 30, 0.45);
}
.tagline { display: block; margin-top: 0.55em; max-width: 16ch; font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.12; }
.hero-text { margin-top: 22px; max-width: 46ch; color: var(--soft); font-size: 1.1875rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 30px; }
.hero-note { color: var(--muted); font-size: 0.9375rem; }

/* The dice demo: a corner of the board, in its walnut frame. */
.demo { width: 100%; max-width: 480px; justify-self: center; }
.demo-frame {
  padding: 18px; border-radius: 24px; color: var(--on-frame);
  background: linear-gradient(160deg, var(--frame-1) 0%, var(--frame-2) 55%, var(--frame-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 214, 184, 0.28), 0 6px 0 #2F1209, 0 28px 56px rgba(3, 12, 30, 0.5);
}
.demo-head h2 { font-size: 1.375rem; color: var(--gold); }
.demo-head p { margin-top: 4px; font-size: 0.9375rem; color: rgba(255, 233, 214, 0.82); }
.seal { margin: 14px 0; display: grid; gap: 6px; }
.seal div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; align-items: baseline; }
.seal dt { font-size: 0.8125rem; color: rgba(255, 226, 186, 0.72); }
.seal dd { margin: 0; }
.seal code { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.02em; color: var(--on-frame); word-break: break-all; }
.seal .open-code code { color: var(--gold); }
.field {
  position: relative; overflow: hidden; border-radius: 14px; padding: 56px 14px 16px; min-height: 236px;
  background: linear-gradient(180deg, var(--maple-1) 0%, var(--maple-2) 60%, var(--maple-3) 100%);
  box-shadow: inset 0 0 0 2px rgba(40, 12, 4, 0.5), inset 0 10px 22px rgba(42, 14, 4, 0.28);
}
.field-points { position: absolute; left: 0; top: 0; width: 100%; height: 58%; opacity: 0.55; }
.dice { position: relative; display: flex; justify-content: center; gap: 18px; }
.die { width: 76px; height: 76px; filter: drop-shadow(0 5px 3px rgba(42, 14, 4, 0.35)); }
.history { position: relative; list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.history li { display: flex; gap: 3px; padding: 4px 5px; border-radius: 8px; background: rgba(255, 248, 230, 0.55); box-shadow: inset 0 0 0 1px rgba(74, 33, 20, 0.18); }
.history li.ok { background: rgba(214, 248, 214, 0.85); box-shadow: inset 0 0 0 2px #2E9E4A; }
.mini { width: 22px; height: 22px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.demo-status { margin-top: 12px; min-height: 3.2em; font-size: 0.9375rem; color: var(--on-frame); }
.demo-status.ok { color: #A6F2AF; }
.demo-status.ok::before { content: "✓ "; font-weight: 600; }
@keyframes tumble {
  0% { transform: translateY(-14px) rotate(-22deg); }
  55% { transform: translateY(3px) rotate(7deg); }
  100% { transform: none; }
}
.dice.rolling .die { animation: tumble 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.dice.rolling .die + .die { animation-delay: 50ms; }
@media (prefers-reduced-motion: reduce) { .dice.rolling .die { animation: none; } }

/* How the dice are sealed: three steps, numbered on cream checkers. */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.steps p { color: var(--soft); }
.checker-n {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: #3A2A18;
  background: radial-gradient(circle at 40% 34%, #F3EADA 0%, #E6D8BC 55%, #CBB48C 100%);
  box-shadow: 0 4px 0 #9E8659, inset 0 0 0 6px rgba(110, 84, 50, 0.16);
}
.note { margin-top: 36px; max-width: 64ch; padding-left: 18px; border-left: 3px solid var(--gold); color: var(--muted); }

/* The tables: five points on a board, taller for the tables that open later. */
.landing .tables { background: var(--sea-850); }
.tables { --gap: clamp(6px, 2.2vw, 22px); --fpad: clamp(10px, 3vw, 30px); }
.board {
  margin-top: 40px; padding: 14px; border-radius: 22px;
  background: linear-gradient(180deg, var(--frame-1) 0%, var(--frame-2) 50%, var(--frame-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 214, 184, 0.25), 0 20px 44px rgba(3, 12, 30, 0.4);
}
.board-field {
  height: clamp(150px, 24vw, 260px); border-radius: 10px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); align-items: end; padding: 0 var(--fpad);
  background: linear-gradient(180deg, var(--maple-1) 0%, var(--maple-2) 60%, var(--maple-3) 100%);
  box-shadow: inset 0 0 0 2px rgba(40, 12, 4, 0.5), inset 0 -10px 20px rgba(42, 14, 4, 0.18);
}
.pt { display: block; height: var(--h); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pt-cream { background: linear-gradient(0deg, var(--cream) 0%, var(--cream-tip) 100%); }
.pt-red { background: linear-gradient(0deg, var(--red) 0%, var(--red-tip) 100%); }
.kinds { list-style: none; margin: 20px 0 0; padding: 0 calc(14px + var(--fpad)); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); text-align: center; }
.kinds h3 { font-size: 1.1875rem; }
.kinds .lvl { margin-top: 2px; color: var(--gold); font-size: 0.875rem; font-weight: 500; }
.kinds .names { margin-top: 6px; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.friendly { margin-top: 32px; color: var(--soft); }
@media (max-width: 760px) {
  .kinds { grid-template-columns: 1fr; gap: 18px; padding: 0; text-align: left; }
  .kinds li { display: grid; grid-template-columns: 20px 1fr; column-gap: 14px; }
  .kinds li::before { content: ""; grid-row: span 3; width: 18px; height: 26px; margin-top: 3px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
  .kinds li:nth-child(odd)::before { background: linear-gradient(0deg, var(--cream), var(--cream-tip)); }
  .kinds li:nth-child(even)::before { background: linear-gradient(0deg, var(--red), var(--red-tip)); }
}

/* Mr Kostas: the teacher's warning, drawn as in the app. */
.kostas-in { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .kostas-in { grid-template-columns: 1fr 1fr; gap: 72px; } }
.kostas-copy p { margin-top: 16px; max-width: 52ch; color: var(--soft); }
.kostas-copy h2 + p { margin-top: 18px; }
.dialog { margin: 0; justify-self: center; width: 100%; max-width: 430px; }
.dialog-card {
  padding: 24px 22px 22px; border-radius: 24px; background: var(--sea-700); border: 2px solid var(--rim);
  box-shadow: 0 6px 0 #06204A, 0 26px 48px rgba(3, 12, 30, 0.45);
}
.dialog-title { font-family: var(--display); font-weight: 900; font-size: 1.625rem; color: var(--gold); }
.dialog-text { margin-top: 8px; color: var(--soft); }
.dialog-text strong { color: var(--text); font-weight: 600; }
.dialog-btns { display: grid; gap: 10px; margin-top: 18px; }
.gbtn { display: block; text-align: center; padding: 12px 14px; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--text); }
.gbtn-green { text-shadow: 0 1px 0 #0B5A1E; background: linear-gradient(180deg, var(--green-1) 0%, var(--green-2) 48%, var(--green-3) 52%, var(--green-4) 100%); box-shadow: 0 4px 0 var(--green-edge); }
.gbtn-blue { text-shadow: 0 1px 0 rgba(11, 58, 120, 0.8); background: linear-gradient(180deg, var(--blue-1) 0%, var(--blue-2) 48%, var(--blue-3) 52%, var(--blue-4) 100%); box-shadow: 0 4px 0 var(--blue-edge); }
.gbtn-ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.dialog figcaption { margin-top: 18px; text-align: center; color: var(--faint); font-size: 0.875rem; }

/* Also in ZARI: a short list, each line marked with a checker. */
.also-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 40px; }
.also-list li { display: flex; align-items: center; gap: 14px; color: var(--soft); font-size: 1.125rem; }
.also-list li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #F3EADA 0%, #E6D8BC 55%, #CBB48C 100%); box-shadow: 0 3px 0 #9E8659;
}
.also-list li:nth-child(even)::before { background: radial-gradient(circle at 40% 34%, #3A3531 0%, #221F1C 55%, #0E0D0C 100%); box-shadow: 0 3px 0 #050404, inset 0 0 0 1px rgba(255, 255, 255, 0.14); }

.landing .end { background: var(--sea-850); }
.end-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.end-in p { margin-top: 8px; color: var(--soft); }

/* ---------- The bottom of every page ---------- */
.footer { padding: 36px 0 44px; background: var(--night); color: var(--faint); font-size: 0.9375rem; }
.footer-in { display: grid; gap: 14px; }
.made { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.made img { width: 28px; height: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- The legal pages ---------- */
.legal { background: #F5F8FC; color: #0B1F3A; }
.legal .topbar { background: var(--sea-800); }
.legal .doc { max-width: 780px; margin: 0 auto; padding: 36px 20px 64px; }
.legal .doc h1 { color: var(--sea-800); font-size: clamp(1.875rem, 4.4vw, 2.5rem); }
.legal .doc h2 { color: var(--sea-500); font-size: 1.1875rem; margin: 30px 0 6px; }
.legal .doc p { margin: 8px 0; }
.legal .doc a { color: var(--sea-500); }
.legal .updated { margin-top: 6px; color: #5B6B80; font-size: 0.9375rem; }

/* Without JavaScript the demo cannot run: its buttons and status are hidden, and a line says so. */
.no-js .demo-actions, .no-js .demo-status { display: none; }
.demo-noscript { margin-top: 12px; font-size: 0.9375rem; color: var(--on-frame); }
