/* Blokidoo website — Cream theme. Plain CSS, no build step. */
:root {
  --bg: #FFF4E6;
  --board: #E9D5B7;
  --cell: #F6E7D2;
  --text: #5A3E2B;
  --subtle: #9C8472;      /* decorative / large text only */
  --muted: #7A5F4B;       /* small secondary text (AA on --bg and --cell) */
  --accent: #FF8A3D;
  --link: #A84E14;        /* accent-family colour with AA contrast on --bg */
  --bezel: #4A3527;
  --red: #FF6B6B; --orange: #FFA94D; --yellow: #FCC419; --green: #51CF66;
  --teal: #20C997; --blue: #4DABF7; --purple: #9775FA; --pink: #F783AC;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(90, 62, 43, .12);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--text); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 28px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 244, 230, .94);
  border-bottom: 1px solid var(--board);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 244, 230, .82); backdrop-filter: blur(8px); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.3rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 700; font-size: .95rem; padding: 6px 10px; border-radius: 10px; }
.nav a:hover { background: var(--cell); }
.nav .hide-sm { display: none; }
@media (min-width: 640px) { .nav .hide-sm { display: inline-block; } }

/* ---------- Logo (one block per letter) ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 18px; }
.logo-row { display: flex; gap: 6px; }
.logo .b {
  --s: clamp(44px, 13vw, 62px);
  width: var(--s); height: var(--s);
  display: grid; place-items: center;
  border-radius: 12px;
  border-bottom: 5px solid rgba(0, 0, 0, .15);
  color: #fff;
  font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: calc(var(--s) * .56); line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22);
}
.logo--sm .b { --s: 30px; border-radius: 8px; border-bottom-width: 3px; }
.logo--sm { gap: 4px; margin: 0; }
.logo--sm .logo-row { gap: 3px; }
.c1 { background: var(--red); } .c2 { background: var(--orange); } .c3 { background: var(--yellow); }
.c4 { background: var(--green); } .c5 { background: var(--teal); } .c6 { background: var(--blue); }
.c7 { background: var(--purple); } .c8 { background: var(--pink); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-copy { text-align: center; }
.tagline { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; }
.hero-text { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0 auto 24px; }
.chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { background: var(--cell); border: 1px solid var(--board); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .9rem; }
.hero-visual { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .hero-copy { text-align: left; }
  .hero-text { margin-left: 0; }
  .chips { justify-content: flex-start; }
  .logo { align-items: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 16px;
  font: 800 1.05rem/1.2 "Nunito", sans-serif; text-decoration: none;
  border: 0; border-bottom: 5px solid rgba(0, 0, 0, .15);
}
.btn-soon { background: var(--accent); color: #3E2A1C; cursor: not-allowed; }
.btn-soon small { display: block; font-weight: 700; font-size: .8rem; opacity: .9; }
.btn-soon .play { width: 0; height: 0; border-left: 14px solid #3E2A1C; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.soon-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* ---------- Phone frame ---------- */
.phone {
  width: 100%; max-width: 260px;
  background: var(--bezel);
  border-radius: 34px;
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .06);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); z-index: 1;
}
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 25px; background: var(--cell); }
.hero .phone { max-width: 300px; transform: rotate(2deg); }
@media (prefers-reduced-motion: reduce) { .hero .phone { transform: none; } }

/* ---------- Fair section ---------- */
.fair { background: var(--cell); border-top: 1px solid var(--board); border-bottom: 1px solid var(--board); }
.fair-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .fair-grid { grid-template-columns: repeat(3, 1fr); } }
.fair-card { background: var(--bg); border: 1px solid var(--board); border-radius: var(--radius); padding: 24px; }
.fair-card p { color: var(--muted); margin: 0; }

/* mini block icons */
.ico { display: grid; grid-template-columns: repeat(2, 14px); gap: 3px; margin-bottom: 14px; }
.ico i { width: 14px; height: 14px; border-radius: 4px; border-bottom: 3px solid rgba(0, 0, 0, .15); }
.ico i.e { background: var(--board); border-bottom-color: transparent; }

/* ---------- Features ---------- */
.feat-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--cell); border-radius: var(--radius); padding: 20px 20px 18px; border-bottom: 5px solid var(--board); }
.feat h3 { display: flex; align-items: center; gap: 10px; }
.feat h3::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--dot, var(--accent)); border-bottom: 3px solid rgba(0, 0, 0, .15); }
.feat p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Screenshots ---------- */
.shots-track {
  list-style: none; margin: 0; padding: 8px 16px 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--board) transparent;
}
.shots-track li { scroll-snap-align: center; }
.shots-track figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.shots-track .phone { max-width: none; }
.shots-track figcaption { margin-top: 12px; font-weight: 700; font-size: .95rem; text-align: center; }
@media (min-width: 560px) { .shots-track { grid-auto-columns: 40%; } }
@media (min-width: 900px) {
  .shots-track {
    grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto;
    overflow: visible; padding: 8px 0 0; max-width: calc(var(--max) - 32px); margin: 0 auto; row-gap: 32px;
  }
  .shots-track .phone { border-radius: 26px; padding: 7px; }
  .shots-track .phone img { border-radius: 20px; }
  .shots-track .phone::before { top: 12px; width: 40px; height: 5px; }
}
.swipe-hint { color: var(--muted); font-size: .9rem; text-align: center; margin: 0; }
@media (min-width: 900px) { .swipe-hint { display: none; } }

/* ---------- Good to know ---------- */
.know { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .know { grid-template-columns: repeat(2, 1fr); } }
.know li { background: var(--bg); border: 1px solid var(--board); border-radius: var(--radius); padding: 18px 20px; }
.know strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 1.12rem; margin-bottom: 4px; }
.know span { color: var(--muted); }

/* ---------- Download ---------- */
.download .card {
  background: var(--board); border-radius: 28px; padding: 36px 20px;
  text-align: center; border-bottom: 6px solid rgba(0, 0, 0, .08);
}
.download .card img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 16px; box-shadow: var(--shadow); }
.download .card p { color: var(--text); }

/* ---------- Contact ---------- */
.contact .mail { font-weight: 800; font-size: 1.15rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--board); padding: 28px 0 36px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer p { margin: 0; color: var(--muted); }

/* ---------- Privacy page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.doc .doc-head { background: var(--cell); border: 1px solid var(--board); border-radius: 24px; padding: 28px 22px; margin-bottom: 32px; }
.doc h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: .2em; }
.doc .updated { color: var(--muted); margin: 0; }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; padding-left: 14px; border-left: 6px solid var(--accent); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc a { word-break: break-word; }
.back { display: inline-block; margin-bottom: 20px; font-weight: 700; }

/* Video (10/10) */
.video-frame { position: relative; width: 100%; max-width: 860px; margin: 24px auto 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #EFE8FB; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { margin-top: 12px; }
.btn-get { background: var(--accent); color: #3E2A1C; text-decoration: none; margin: 0 auto 12px; }
.btn-get small { display: block; font-weight: 700; font-size: .8rem; opacity: .9; }
.btn-get .play { width: 0; height: 0; border-left: 14px solid #3E2A1C; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.download .card .btn + .btn { margin-top: 0; }

/* 18/10: living hero: the phone floats, its screen plays real gameplay, the logo blocks bob like in the game */
.phone video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 25px; background: var(--cell); }
.hero .phone { animation: phone-float 6s ease-in-out infinite; }
@keyframes phone-float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-12px); } }
.logo .b { animation: block-bob 2.8s ease-in-out infinite; }
.logo .c2 { animation-delay: .15s; } .logo .c3 { animation-delay: .3s; } .logo .c4 { animation-delay: .45s; }
.logo .c5 { animation-delay: .6s; } .logo .c6 { animation-delay: .75s; } .logo .c7 { animation-delay: .9s; } .logo .c8 { animation-delay: 1.05s; }
@keyframes block-bob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-6px) rotate(-4deg); } 50% { transform: translateY(0) rotate(0); } }
.short-frame { position: relative; width: 100%; max-width: 340px; margin: 32px auto 0; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #EFE8FB; }
.short-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .hero .phone, .logo .b { animation: none; } .hero .phone { transform: none; } }

/* Google Play badge (official artwork, never recoloured or upscaled) + QR for desktop visitors */
.play-badge { display: inline-block; padding: 18px; line-height: 0; }
.play-badge img { width: 239px; height: auto; max-width: 100%; }
.download .card .play-badge { margin: 0 auto; }
.qr { margin: 8px auto 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr img { width: 160px; height: 160px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 12px; }
.qr figcaption { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px), (pointer: coarse) { .qr { display: none; } }
/* the card's icon rule (.download .card img) must not touch the badge or QR */
.download .card .play-badge img { width: 239px; height: auto; border-radius: 0; margin: 0; box-shadow: none; }
.download .card .qr img { width: 160px; height: 160px; border-radius: 12px; margin: 0; box-shadow: none; }
