/* Tchok Yoles - the site. One stylesheet, no framework. Colours and lettering come from the game's own interface (brass, coral, turquoise on deep sea blue;
   Barlow Condensed for the titles, Barlow for the text, both under the SIL Open Font License, served from this site). */
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --sea-0: #04141a;
  --sea-1: #07232c;
  --sea-2: #0b3440;
  --sea-3: #12505b;
  --brass: #f3b43c;
  --brass-dim: #b98625;
  --coral: #ff6a45;
  --coral-deep: #e04a28;
  --turq: #2fd0c8;
  --ivory: #f7faf8;
  --mist: #b9cdd0;
  --ink: #031015;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--sea-0); color: var(--ivory); font-family: var(--text); font-weight: 500; font-size: 18px; line-height: 1.6;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(47, 208, 200, .10), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(255, 106, 69, .08), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: #ffd17a; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; margin: 0 0 .4em; }
h1 { font-size: clamp(3rem, 9vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); color: var(--brass); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: #e5efef; max-width: 46ch; }
.kicker { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--turq); font-size: .95rem; margin-bottom: .8rem; }
.muted { color: var(--mist); }
.small { font-size: .92rem; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.top.solid { background: rgba(4, 20, 26, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(243, 180, 60, .25); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.nav a.link { color: var(--ivory); text-decoration: none; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; padding: 8px 2px; }
.nav a.link:hover { color: var(--brass); }
@media (max-width: 760px) { .nav a.link { display: none; } .brand img { height: 38px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 12px 26px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.25rem; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--gold { background: linear-gradient(180deg, #ffd072, var(--brass) 55%, #e09d1f); color: var(--ink); box-shadow: 0 8px 22px rgba(243, 180, 60, .32), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn--gold:hover { color: var(--ink); box-shadow: 0 10px 28px rgba(243, 180, 60, .5), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn--coral { background: linear-gradient(180deg, #ff8a68, var(--coral) 55%, var(--coral-deep)); color: #fff; box-shadow: 0 8px 22px rgba(255, 106, 69, .35), inset 0 -3px 0 rgba(0, 0, 0, .2); }
.btn--coral:hover { color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--ivory); border: 2px solid rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.btn[aria-disabled="true"] { background: #243c44; color: #86a1a6; box-shadow: none; cursor: not-allowed; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* hero */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero picture, .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 20, 26, .92) 0%, rgba(4, 20, 26, .62) 38%, rgba(4, 20, 26, .08) 70%), linear-gradient(0deg, var(--sea-0) 0%, rgba(4, 20, 26, 0) 28%); }
.hero .wrap { padding-block: 150px 70px; }
.hero h1 { text-shadow: 0 6px 30px rgba(0, 0, 0, .55); max-width: 9ch; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lead { text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hero .kicker { text-shadow: 0 2px 10px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; padding: 6px 14px; border-radius: 999px; background: rgba(4, 20, 26, .7); border: 1px solid rgba(243, 180, 60, .55); color: var(--brass); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(0deg, rgba(4, 20, 26, .96) 0%, rgba(4, 20, 26, .7) 42%, rgba(4, 20, 26, .1) 78%); } .hero .wrap { padding-block: 120px 44px; } .hero img.bg { object-position: 66% 30%; } }

/* sections */
section { padding-block: clamp(56px, 9vw, 110px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 56px); }
.rope { height: 10px; margin: 22px 0 0; width: 120px; background: repeating-linear-gradient(115deg, var(--brass) 0 6px, #8a5f12 6px 10px); border-radius: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { background: linear-gradient(180deg, rgba(18, 80, 91, .38), rgba(7, 35, 44, .72)); border: 1px solid rgba(243, 180, 60, .32); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .ico { width: 54px; height: 54px; margin-bottom: 14px; color: var(--turq); }
.card ul { margin: 0; padding-left: 1.1em; color: #dfeaea; }
.card li { margin-bottom: .35em; }

/* gallery */
.shots { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.shot { grid-column: span 4; position: relative; border-radius: 14px; overflow: hidden; background: var(--sea-1); border: 1px solid rgba(255, 255, 255, .1); cursor: zoom-in; padding: 0; color: inherit; aspect-ratio: 16 / 9; font: inherit; }
.shot:nth-child(n+7) { grid-column: span 6; }
.shot--phone { aspect-ratio: 20 / 9; grid-column: span 6; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: .92rem; background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent); text-align: left; }
@media (max-width: 980px) { .shot { grid-column: span 6; } }
@media (max-width: 620px) { .shot, .shot:nth-child(n+7), .shot--phone { grid-column: span 12; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .86); }
dialog.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
dialog.lightbox button { position: absolute; top: -8px; right: -8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brass); color: var(--ink); font-size: 1.6rem; font-weight: 800; cursor: pointer; }

/* download */
.dl { display: grid; gap: 26px; grid-template-columns: 1.3fr 1fr; align-items: stretch; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.dl .card--android { border-color: rgba(47, 208, 200, .6); background: linear-gradient(180deg, rgba(47, 208, 200, .14), rgba(7, 35, 44, .8)); }
.dl .card--windows { border-color: rgba(255, 106, 69, .55); background: linear-gradient(180deg, rgba(255, 106, 69, .10), rgba(7, 35, 44, .8)); }
.dl .dl-more { grid-column: 1 / -1; display: grid; gap: 26px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .dl .dl-more { grid-template-columns: 1fr; } }
.steps-2 { display: grid; gap: clamp(26px, 5vw, 64px); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 900px) { .steps-2 { grid-template-columns: 1fr; } }
.dl-main { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
@media (max-width: 560px) { .dl-main { grid-template-columns: 1fr; } }
.qr { background: #fff; padding: 12px; border-radius: 14px; width: 170px; height: 170px; box-shadow: var(--shadow); }
.qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .qr { display: none; } }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 14px; border-radius: 999px; font-size: .95rem; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.status--soon { color: var(--brass); background: rgba(243, 180, 60, .14); }
.status--beta { color: var(--turq); background: rgba(47, 208, 200, .14); }
.status--live { color: #7cf29a; background: rgba(124, 242, 154, .14); }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: #dfeaea; font-size: 1rem; }
.facts li { display: flex; gap: 10px; }
.facts li::before { content: "▸"; color: var(--coral); font-weight: 800; }
code, .hash { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; word-break: break-all; background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 6px; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 2.3rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; color: var(--ink); background: linear-gradient(180deg, #ffd072, var(--brass)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.steps h3 { margin: 0 0 .15em; font-size: 1.5rem; color: var(--ivory); }
.steps p { margin: 0; color: #d3e2e3; }

/* faq */
details { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; }
details[open] { border-color: rgba(243, 180, 60, .4); }
summary { cursor: pointer; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brass); font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: #d3e2e3; }

/* pages */
.page { padding-top: 130px; }
.page h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.page h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 1.6em; color: var(--brass); }
.page .wrap { max-width: 860px; }
.page ul { padding-left: 1.2em; }
.note { border-left: 4px solid var(--coral); background: rgba(255, 106, 69, .09); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.4em 0; }

/* footer */
footer { border-top: 1px solid rgba(243, 180, 60, .25); background: rgba(2, 10, 13, .6); padding-block: 44px; color: var(--mist); font-size: .98rem; }
footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ivory); margin: 0 0 10px; font-size: 1.1rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--mist); }
footer a:hover { color: var(--brass); }
footer img { height: 44px; width: auto; margin-bottom: 10px; }
