:root { --ink: #2b2d5b; --cream: #fffdf5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(#7fd6ff, #c9f0ff); color: var(--ink);
  font-family: "Baloo 2", "Comic Sans MS", "Segoe UI", system-ui, sans-serif; }
[dir=rtl] body, body[dir=rtl] { font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
main { max-width: 900px; margin: 0 auto; padding: 16px; }
header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
header h1 { margin: 0; flex: 1; font-size: clamp(26px, 5vw, 40px); color: #fff; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 0 4px 0 var(--ink); }
a { color: #1f5fbf; }
.btn { font: inherit; font-weight: 800; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); padding: 8px 14px;
  box-shadow: 0 4px 0 var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.on { background: #ffe45c; }
.btn.play { background: #2fbf71; color: #fff; }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
select { font: inherit; font-weight: 700; border: 3px solid var(--ink); border-radius: 14px; padding: 7px 10px; background: #fff; color: var(--ink); max-width: 100%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--cream); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); padding: 12px 14px; }
.card h2 { margin: 0 0 8px; font-size: 19px; }
ol.rows { list-style: none; margin: 0; padding: 0; }
ol.rows li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; font-weight: 700; }
ol.rows li:nth-child(odd) { background: rgba(43, 45, 91, .05); }
ol.rows li b { min-width: 2em; text-align: center; color: #ff7a3d; font-size: 18px; }
ol.rows li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.rows li i { font-style: normal; font-weight: 800; }
ol.rows li.top1 b { color: #e0a100; } ol.rows li.new { animation: glow 1.4s; }
@keyframes glow { from { background: #c9f7dc; } }
.note { opacity: .7; text-align: center; padding: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; }
.live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.prose { line-height: 1.6; } .prose h2 { margin-top: 18px; }
footer { text-align: center; margin: 22px 0 8px; font-size: 14px; }
/* the top bar on every page */
nav.top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 18px; background: rgba(255, 253, 245, .92); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 5; }
nav.top a { color: var(--ink); font-weight: 800; text-decoration: none; }
nav.top a:hover { text-decoration: underline; }
nav.top .brand { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-inline-end: auto; }
nav.top .brand img { border-radius: 10px; border: 2px solid var(--ink); }
.btn.small { padding: 4px 10px; box-shadow: 0 3px 0 var(--ink); }
.btn.big { font-size: 20px; padding: 12px 22px; }
.small { font-size: 14px; opacity: .8; }
/* home */
body.home main { max-width: 1100px; }
body.home section { margin: 34px 0; }
body.home h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 0 4px 0 var(--ink); }
body.home h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 14px; }
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; }
.how { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 820px) { .hero, .how { grid-template-columns: 1fr; } }
.pitch p { font-size: 18px; line-height: 1.5; font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }
/* a phone held sideways, with the game inside */
figure.phone { margin: 0; }
figure.phone iframe { display: block; width: 100%; aspect-ratio: 915 / 412; border: 12px solid #1d1f3a; border-inline-width: 26px; border-radius: 34px; background: #7fd6ff;
  box-shadow: 0 10px 0 var(--ink), 0 18px 40px rgba(43, 45, 91, .35); pointer-events: none; }
figure.phone figcaption, .gallery figcaption { text-align: center; font-weight: 700; margin-top: 12px; font-size: 15px; }
ul.moves { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
ul.moves li { display: flex; gap: 12px; align-items: center; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; padding: 8px 12px; font-weight: 700; }
ul.moves .ic { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ffe45c; border: 2px solid var(--ink); }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .levels { grid-template-columns: 1fr; } }
.levels h3 { margin: 0 0 6px; }
.levels p { margin: 0; line-height: 1.45; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); background: #7fd6ff; }
.boardcall { text-align: center; }
.levelbar { display: flex; gap: 8px; flex-wrap: wrap; }
