/* CubeAnvil Games: navy and gold, the Cube games' menu colours. Fredoka is the games' own font. */
@font-face{font-family:Fredoka;font-weight:500;font-display:swap;src:url(fonts/Fredoka-Medium.ttf)}
@font-face{font-family:Fredoka;font-weight:700;font-display:swap;src:url(fonts/Fredoka-Bold.ttf)}
:root{--ink:#15254a;--soft:#4a5478;--page:#f2f5fb;--gold:#ffcc00;--card:#fff}
*{box-sizing:border-box}
body{margin:0;font:500 18px/1.6 Fredoka,system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--page)}
header,main,footer{max-width:1024px;margin:0 auto;padding:16px}
header{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand span span{display:block;line-height:1.2}
.name{font-size:26px;font-weight:700}
.by{color:var(--soft);font-size:15px}
nav{display:flex;flex-wrap:wrap;gap:4px}
nav a{padding:10px 14px;border-radius:999px;color:var(--ink);text-decoration:none}
nav a[aria-current]{background:var(--gold)}
a{color:var(--ink)}
h1{font-size:clamp(30px,4.6vw,48px);line-height:1.12;margin:0 0 12px}
h2{font-size:24px;line-height:1.2;margin:32px 0 8px}
h2.band{font-size:30px;margin-top:48px}
.lead{background:var(--ink);color:#fff;border-radius:20px;padding:32px 28px;text-align:center}
.lead p{max-width:640px;margin:8px auto}
.promises{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:16px}
.card{background:var(--card);border-radius:16px;padding:4px 24px;box-shadow:0 2px 10px #15254a1a}
.card h2{margin-top:16px;font-size:22px}
main.text{max-width:760px}
main.text .card{margin:16px 0}
.game{display:block;background:var(--card);border-radius:20px;overflow:hidden;text-decoration:none;box-shadow:0 4px 18px #15254a22}
.game img,.hero img{display:block;width:100%;height:auto}
.game .words{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:16px 20px}
.title{font-size:28px;font-weight:700}
.hero{border-radius:20px;overflow:hidden;margin-bottom:16px;box-shadow:0 4px 18px #15254a22}
.soon{display:inline-block;background:var(--gold);color:var(--ink);border-radius:999px;padding:6px 16px;font-weight:700;font-size:16px}
.lead p.soon{margin-top:16px}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
@media (min-width:760px){.gallery{grid-template-columns:repeat(6,1fr)}}
.gallery img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 4px 12px #15254a33}
/* The store buttons: each shows only when the page's data-live names its store. 44px high is Apple's smallest
   comfortable tap target. */
.stores{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.store{display:none;min-height:44px;line-height:44px;padding:0 20px;border-radius:999px;background:var(--gold);font-weight:700;text-decoration:none}
body[data-live~=apple] .store.apple,body[data-live~=google] .store.google{display:inline-block}
body[data-live=""] .stores{display:none}
body:not([data-live=""]) .soon.none{display:none}
footer{color:var(--soft);font-size:15px;text-align:center;padding-top:32px}
/* Links that are always shown, in the store buttons' shape. */
.stores.always,body[data-live=""] .stores.always{display:flex}
.store.always{display:inline-block}
/* The feedback form. 16px or more in a box stops iPhone zooming in on it. */
form.card{padding:8px 24px 24px}
form label{display:block;margin:16px 0 4px;font-weight:700}
form input,form select,form textarea{width:100%;min-height:44px;padding:8px 12px;font:inherit;color:var(--ink);background:#fff;border:2px solid #c5cde0;border-radius:12px}
form button{min-height:48px;padding:0 32px;font:700 18px Fredoka,system-ui,sans-serif;color:var(--ink);background:var(--gold);border:0;border-radius:999px;cursor:pointer}
.hint{color:var(--soft);font-size:15px;font-weight:500}
.trap{position:absolute;left:-9999px}
/* The film: nothing plays or downloads until play is pressed. A tall one is kept narrow enough to see whole. */
.film{text-align:center}
.film video{display:block;width:100%;height:auto;margin:0 auto;border-radius:20px;background:#15254a;box-shadow:0 4px 18px #15254a33}
.film.tall video{max-width:360px}
/* A plain link, so nothing loads from YouTube unless it is pressed. 44px high is a comfortable tap. */
.film p{text-align:center;margin:12px 0 0}
a.yt{display:inline-block;min-height:44px;line-height:44px;padding:0 22px;border:2px solid #15254a;border-radius:999px;font-weight:700;text-decoration:none}
/* Landscape pictures: one a row on a phone, three on a wide screen. */
.gallery.wide{grid-template-columns:1fr}
@media (min-width:760px){.gallery.wide{grid-template-columns:repeat(3,1fr)}}
