/* Vortelo public site. The app's materials in CSS only (the site CSP allows no scripts
   and no inline styles): faceted pigment = a colour with assets/mesh.svg blended over it
   (overlay, as the app's backdrop does), deep navy stone panels, chamfered octagon
   silhouettes, sawtooth section bands and italic caps titles with the navy outline.
   Generated parts: scripts/site/build_site_assets.py. */

@font-face {
  font-family: "Vortelo Condensed";
  src: url("fonts/RobotoCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vortelo Condensed";
  src: url("fonts/RobotoCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #06090b;
  --deep: #070c22;
  --well: #0b1331;
  --panel: #111a3a;
  --raised: #17224a;
  --rim: #3a4c84;
  --text: #f0f0ed;
  --ice: #c5cdeb;
  --dim: #8a93b8;
  --red: #bc070c;
  --blue: #0067e0;
  --gold: #e4ab00;
  --green: #007931;
  --magenta: #89114d;
  --purple: #7622a8;
  --pig: var(--red);
  --cut: 12px;
  --outline: 1.1px 0 #0a1a4cd9, -1.1px 0 #0a1a4cd9, 0 1.1px #0a1a4cd9, 0 -1.1px #0a1a4cd9, 0 2px 1px #0000004d;
  --octagon: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  --page: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  color: var(--text);
  font-family: "Vortelo Condensed", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  /* Deep tinted body with the large mesh over it, darkening downwards. */
  background:
    linear-gradient(180deg, #070c2280, #070c22e6 55%, #070c22),
    url("mesh-large.svg") 0 0 / 1200px auto,
    #101c4a;
  background-blend-mode: normal, overlay;
}

img {
  max-width: 100%;
}

a {
  color: #9fc4ff;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, p, ul, ol {
  margin-top: 0;
}

.display {
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .005em;
  text-shadow: var(--outline);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 10px;
}

/* ---------- Pigment, stone and wells ---------- */

.pigment {
  background:
    linear-gradient(180deg, #ffffff1a, #ffffff00 45%, #00000033),
    url("mesh.svg") 0 0 / 560px auto,
    var(--pig);
  background-blend-mode: normal, overlay;
}

.red { --pig: var(--red); }
.blue { --pig: var(--blue); }
.gold { --pig: #c79500; }
.green { --pig: var(--green); }
.magenta { --pig: var(--magenta); }
.purple { --pig: var(--purple); }

.panel {
  clip-path: var(--octagon);
  background:
    linear-gradient(180deg, #17224af2, #111a3af2),
    url("mesh.svg") 0 0 / 560px auto,
    #1a2552;
  background-blend-mode: normal, overlay;
  box-shadow: inset 0 0 0 1px #8caaff1f;
}

.well {
  --cut: 7px;
  clip-path: var(--octagon);
  background: #0b1331;
  box-shadow: inset 0 3px 0 #00000066, inset 0 0 0 1px #8caaff1a;
}

.lift {
  filter: drop-shadow(0 4px 0 #00000059) drop-shadow(0 8px 10px #00082866);
}

/* ---------- Masthead: the app header, faceted, with its living edge at rest ---------- */

.masthead {
  /* Colour: the page's .red/.blue/... class. */
  position: relative;
  padding-bottom: 26px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% calc(100% - 4px), 90% calc(100% - 13px), 84% calc(100% - 2px), 78% calc(100% - 12px), 72% calc(100% - 3px), 66% calc(100% - 14px), 60% calc(100% - 5px), 54% calc(100% - 11px), 48% calc(100% - 1px), 42% calc(100% - 12px), 36% calc(100% - 4px), 30% calc(100% - 14px), 24% calc(100% - 3px), 18% calc(100% - 11px), 12% calc(100% - 2px), 6% calc(100% - 12px), 0 calc(100% - 5px));
}

.masthead.compact {
  padding-bottom: 18px;
}

.masthead-shadow {
  filter: drop-shadow(0 6px 0 #0000004d) drop-shadow(0 10px 14px #00082880);
}

.topbar {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand span {
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: var(--outline);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  --cut: 5px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  clip-path: var(--octagon);
  color: #fff;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: var(--outline);
  background: #00000029;
}

.nav a:hover {
  background: #ffffff26;
}

.nav a[aria-current] {
  background: #0a1130cc;
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 40px;
  padding: 28px 0 40px;
}

.chip {
  --cut: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  clip-path: var(--octagon);
  background: #0a1130cc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #4ee17c;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
}

.lede {
  max-width: 34em;
  margin-bottom: 26px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 1px 2px #00000080;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  --cut: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 26px;
  clip-path: var(--octagon);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  text-shadow: var(--outline);
  transition: transform .12s ease, filter .12s ease;
}

.btn img {
  width: 26px;
  height: 26px;
}

.btn:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  --pig: var(--blue);
}

.btn.key {
  background:
    linear-gradient(180deg, #ffffff14, #ffffff00 45%, #00000040),
    url("mesh.svg") 0 0 / 560px auto,
    #1a2452;
  background-blend-mode: normal, overlay;
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 76vw);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2b3a6e, #0b1331 60%, #1b2553);
  box-shadow: 0 0 0 2px #0a1130, 0 24px 50px #000a2e99, inset 0 0 0 1px #8caaff40;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.float {
  position: absolute;
  z-index: 2;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 14px #000a2e99);
}

.float.one {
  top: 6%;
  left: -6%;
  transform: rotate(-8deg);
}

.float.two {
  bottom: 8%;
  right: 0;
  transform: rotate(7deg);
}

.float.three {
  bottom: -2%;
  left: 2%;
  width: 120px;
  transform: rotate(-4deg);
}

.hero.single {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 26px;
}

.hero.single h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

/* ---------- Stat strip ---------- */

.stats {
  width: var(--page);
  margin: 22px auto 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.hex {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:
    linear-gradient(135deg, #ffffff38, #ffffff00 50%, #00000059),
    var(--pig);
}

.hex img {
  width: 30px;
  height: 30px;
}

.stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: #fff;
}

.stat > div > span {
  display: block;
  margin-top: 3px;
  color: var(--ice);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Sections and bands ---------- */

.section {
  width: var(--page);
  margin: 46px auto;
}

.band {
  --cut: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 16px 10px;
  font-size: 1.45rem;
  clip-path: polygon(0 12px, 12px 3px, 3% 0, 6% 3px, 9% 0, 12% 3px, 15% 0, 18% 3px, 21% 0, 24% 3px, 27% 0, 30% 3px, 33% 0, 36% 3px, 39% 0, 42% 3px, 45% 0, 48% 3px, 51% 0, 54% 3px, 57% 0, 60% 3px, 63% 0, 66% 3px, 69% 0, 72% 3px, 75% 0, 78% 3px, 81% 0, 84% 3px, 87% 0, 90% 3px, 93% 0, 96% 3px, calc(100% - 12px) 3px, 100% 12px, 100% 100%, 0 100%);
}

.band .hex {
  width: 34px;
  height: 34px;
  --pig: #00000059;
}

.band .hex img {
  width: 22px;
  height: 22px;
}

.band small {
  margin-left: auto;
  font-size: .8rem;
  letter-spacing: .06em;
}

.section-body {
  --cut: 12px;
  padding: 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.intro {
  max-width: 46em;
  color: var(--ice);
  font-size: 1.05rem;
}

/* Ways to play */

.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.way {
  --cut: 10px;
  padding: 18px;
  clip-path: var(--octagon);
}

.way h3 {
  margin: 12px 0 6px;
  font-size: 1.35rem;
}

.way p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px #00000080;
}

/* ---------- Game cards (the catalogue tiles) ---------- */

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.game {
  filter: drop-shadow(0 4px 0 #00000059) drop-shadow(0 8px 10px #00082866);
}

.game article {
  --cut: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 14px;
  clip-path: var(--octagon);
  background:
    radial-gradient(circle at 50% 32%, #ffffff2e, #ffffff00 58%),
    linear-gradient(180deg, #ffffff14, #ffffff00 45%, #00000040),
    url("mesh.svg") 0 0 / 480px auto,
    var(--pig);
  background-blend-mode: normal, normal, overlay;
  transition: transform .14s ease, filter .14s ease;
}

.game article:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.game img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-bottom: 6px;
}

.game h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: var(--outline);
}

.game p {
  flex: 1;
  margin: 0 0 10px;
  color: #fffffff0;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 1px #061b4599;
}

.modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.modes li {
  --cut: 4px;
  padding: 2px 8px;
  clip-path: var(--octagon);
  background: #0a1130b3;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.more {
  margin-top: 18px;
  text-align: center;
}

/* Games page: CSS-only filter (radios + labels, no scripts). */

.filter-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-bar {
  --cut: 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  margin-bottom: 18px;
  clip-path: var(--octagon);
  background: #0b1331;
  box-shadow: inset 0 3px 0 #00000066;
}

.filter-bar label {
  --cut: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 6px 8px;
  clip-path: var(--octagon);
  color: var(--ice);
  cursor: pointer;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
}

.filter-bar label:hover {
  color: #fff;
  background: #ffffff0f;
}

.filter-bar label b {
  opacity: .75;
  font-size: .8rem;
}

#mode-all:checked ~ .filter-bar label[for="mode-all"],
#mode-solo:checked ~ .filter-bar label[for="mode-solo"],
#mode-party:checked ~ .filter-bar label[for="mode-party"],
#mode-online:checked ~ .filter-bar label[for="mode-online"] {
  color: #fff;
  text-shadow: var(--outline);
  background:
    linear-gradient(180deg, #ffffff1a, #ffffff00 45%, #00000033),
    url("mesh.svg") 0 0 / 560px auto,
    var(--blue);
  background-blend-mode: normal, overlay;
}

#mode-all:focus-visible ~ .filter-bar label[for="mode-all"],
#mode-solo:focus-visible ~ .filter-bar label[for="mode-solo"],
#mode-party:focus-visible ~ .filter-bar label[for="mode-party"],
#mode-online:focus-visible ~ .filter-bar label[for="mode-online"] {
  box-shadow: inset 0 0 0 3px var(--gold);
}

#mode-solo:checked ~ .games .game:not(.solo),
#mode-party:checked ~ .games .game:not(.party),
#mode-online:checked ~ .games .game:not(.online) {
  display: none;
}

/* ---------- Feature rows (compete, clubs, safety) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 20px;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.feature h3 .hex {
  width: 40px;
  height: 40px;
}

.feature h3 .hex img {
  width: 26px;
  height: 26px;
}

.feature p {
  margin-bottom: 0;
  color: var(--ice);
}

.tiers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
}

.tiers li {
  --cut: 4px;
  padding: 3px 10px;
  clip-path: var(--octagon);
  font-size: .78rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
  text-shadow: var(--outline);
}

.tiers .bronze { --pig: #8a4b1f; }
.tiers .silver { --pig: #5f6f86; }
.tiers .goldt { --pig: #b8860b; }
.tiers .platinum { --pig: #1b7f8c; }
.tiers .diamond { --pig: #2d5be0; }
.tiers .elite { --pig: #8a1fb8; }

/* ---------- Call to action ---------- */

.cta {
  --pig: var(--gold);
  --cut: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  clip-path: var(--octagon);
}

.cta img.emblem {
  width: 84px;
  height: 84px;
}

.cta h2 {
  margin: 0 0 4px;
  font-size: 1.9rem;
}

.cta p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px #00000099;
}

/* ---------- Documents (privacy, terms, support, deletion, links) ---------- */

.doc-wrap {
  width: min(900px, calc(100% - 32px));
  margin: 34px auto 56px;
}

.doc {
  padding: 30px 34px 34px;
  overflow-wrap: anywhere;
}

.doc h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.doc h2 {
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #8caaff2e;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}

.doc p,
.doc li {
  color: #d5dbf0;
}

.doc li {
  margin-bottom: 10px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc strong {
  color: #fff;
}

.eyebrow {
  margin-bottom: 6px;
  color: #ffd34d;
  font-size: .8rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.updated {
  color: var(--dim);
  font-size: .9rem;
}

.notice {
  --cut: 7px;
  margin: 20px 0;
  padding: 16px 18px;
  clip-path: var(--octagon);
  background: linear-gradient(90deg, #e4ab0033, #e4ab000f), #0b1331;
  box-shadow: inset 3px 0 0 var(--gold);
}

.notice h2 {
  margin-top: 0;
  border: 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

.doc .btn {
  margin-top: 6px;
}

.doc-title .eyebrow {
  color: #fff;
  text-shadow: var(--outline);
}

.doc-title .updated,
.doc-title .lede {
  margin-bottom: 0;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px #00000080;
}

/* Link landing pages */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 10px;
}

.steps li {
  --cut: 7px;
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  clip-path: var(--octagon);
  background: #0b1331;
  box-shadow: inset 0 3px 0 #00000066;
}

.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-style: italic;
  text-shadow: var(--outline);
}

.link-art {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 10px 14px #000a2e99);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  background: #05081a;
  border-top: 1px solid #8caaff26;
}

.site-footer .inner {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 30px;
  color: var(--dim);
  font-size: .9rem;
}

.site-footer .brand img {
  width: 34px;
  height: 34px;
}

.site-footer .brand span {
  font-size: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.site-footer a {
  color: var(--ice);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .stage {
    min-height: 0;
  }

  .stats,
  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a {
    min-height: 36px;
    padding: 4px 10px;
    font-size: .9rem;
  }

  .float {
    width: 108px;
  }

  .float.three {
    display: none;
  }

  .stats,
  .ways {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .games {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .game h3 {
    font-size: 1.15rem;
  }

  .game p {
    font-size: .85rem;
  }

  .cta {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .doc {
    padding: 22px 18px 24px;
  }
}

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

/* Room invite page: the short code, large and spaced for reading aloud. */
.room-box {
  margin: 0 0 12px;
  text-align: center;
}

.room-code {
  margin: 4px 0 0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
