@font-face { font-family: "Bricolage"; src: url("/assets/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/BricolageGrotesque-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --violet: #5A3FFF;
  --violet-dark: #4329E0;
  --coral: #FF5B3A;
  --gold: #FFC233;
  --ink: #15132B;
  --paper: #FFF8EF;
  --mist: #EEEBFF;
  --slate: #5F5D75;
  --line: rgba(21, 19, 43, 0.10);
  --display: "Bricolage", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* safe areas: notches, camera holes, rounded corners, home indicator */
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-right: env(safe-area-inset-right, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
  --sa-left: env(safe-area-inset-left, 0px);
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--text); }
a { color: var(--violet-dark); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: calc(var(--sa-left) + 12px); top: calc(var(--sa-top) + 8px); z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

.sample-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--gold); color: var(--ink); text-align: center; font-size: 12px; padding: 3px 16px calc(3px + var(--sa-bottom)); opacity: 0.94; }

/* ---------- frame: header / content / footer pinned to the bottom ---------- */
.frame {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding:
    calc(var(--sa-top) + clamp(12px, 2.4vh, 26px))
    calc(var(--sa-right) + var(--gutter))
    calc(var(--sa-bottom) + clamp(10px, 1.8vh, 20px))
    calc(var(--sa-left) + var(--gutter));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(10px, 2.2vh, 26px);
}
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.brand { display: inline-flex; border-radius: 8px; }
.brand svg { display: block; height: clamp(28px, 4vh, 40px); width: auto; }

main { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 4vh, 48px); min-width: 0; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-top: clamp(8px, 1.4vh, 14px); border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--slate); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; order: 2; }
.foot-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--violet-dark); text-decoration: underline; }
.foot-links svg { color: var(--violet); flex: none; }
.legal { margin: 0; order: 1; }
@media (max-width: 600px) {
  .foot { justify-content: center; text-align: center; }
  .foot-links { order: 1; justify-content: center; }
  .legal { order: 2; width: 100%; }
}

/* ---------- hero ---------- */
.hero h1 { font-weight: 800; font-size: clamp(1.9rem, min(7.4vw, 9vh), 5.4rem); line-height: 0.98; }
.hero h1 .accent { color: var(--violet); }
.intro { color: var(--slate); font-size: clamp(0.95rem, 2vh, 1.2rem); max-width: 50ch; margin: clamp(6px, 1.4vh, 16px) 0 0; }
.timing { position: relative; width: min(360px, 70%); height: 14px; margin-top: clamp(10px, 2.2vh, 22px); }
.timing::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(21, 19, 43, 0.14); }
.timing .zone { position: absolute; left: 68%; width: 12%; top: 3px; height: 8px; border-radius: 4px; background: var(--coral); opacity: 0.85; }
.timing .dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px var(--paper); animation: sweep 2.4s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes sweep { from { left: 0; } to { left: calc(100% - 14px); } }
@media (prefers-reduced-motion: reduce) { .timing .dot { animation: none; left: 72%; } }

/* ---------- game cards ---------- */
.games { display: grid; gap: clamp(8px, 1.4vh, 16px); grid-template-columns: 1fr; }
.game { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 8px; align-items: center; min-width: 0; }
.icon { width: 44px; height: 44px; border-radius: 11px; display: block; }
.icon.letter { display: grid; place-items: center; font: 800 1.3rem/1 var(--display); }
.slot-1 { background: var(--violet); color: #fff; }
.slot-2 { background: var(--coral); color: var(--ink); }
.slot-3 { background: var(--gold); color: var(--ink); }
.game-text { min-width: 0; }
.game-text h2 { font-weight: 600; font-size: 1.12rem; line-height: 1.15; }
.game-text h2 a { color: inherit; text-decoration: none; }
.game-text h2 a:hover { text-decoration: underline; }
.game-text p { margin: 2px 0 0; color: var(--slate); font-size: 0.86rem; line-height: 1.3; }
.stores { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.store { display: inline-flex; line-height: 0; border-radius: 9px; text-decoration: none; }
.store:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.badge { height: 40px; width: auto; }
.badge-text { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 9px; background: var(--ink); color: #fff; font: 600 14px/1 var(--text); }
.soon { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed rgba(21, 19, 43, 0.3); color: var(--slate); font-size: 0.85rem; font-weight: 600; }
.downloads { font-size: 0.84rem; color: var(--slate); white-space: nowrap; }
.downloads b { color: var(--ink); font-weight: 600; }

@media (min-width: 820px) {
  .games { grid-template-columns: repeat(3, 1fr); }
  .game { grid-template-columns: 1fr; align-content: start; padding: clamp(14px, 2.2vh, 22px); border-radius: 22px; row-gap: 10px; }
  .icon { width: 64px; height: 64px; border-radius: 15px; }
  .icon.letter { font-size: 1.6rem; }
  .game-text h2 { font-size: 1.25rem; }
  .game-text p { font-size: 0.92rem; }
}
/* short phone screens (browser bars visible): tighten so the page still fits */
@media (max-width: 600px) and (max-height: 760px) {
  .timing { display: none; }
  .intro { font-size: 0.92rem; }
}
@media (max-width: 600px) and (max-height: 690px) {
  .frame { gap: 10px; }
  main { gap: 12px; }
  .hero h1 { font-size: 1.75rem; }
  .intro { margin-top: 4px; font-size: 0.86rem; line-height: 1.4; }
  .game { padding: 8px 12px; row-gap: 6px; border-radius: 16px; }
  .icon { width: 38px; height: 38px; border-radius: 10px; }
  .game-text h2 { font-size: 1.04rem; }
  .game-text p { font-size: 0.8rem; }
  .badge, .badge-text { height: 34px; }
  .badge-text { font-size: 13px; padding: 0 14px; }
  .foot-links a { min-height: 34px; }
}
/* landscape phones: notch on the side, little height */
@media (orientation: landscape) and (max-height: 500px) {
  .frame { gap: 8px; padding-top: calc(var(--sa-top) + 10px); }
  .top { min-height: 36px; }
  .brand svg { height: 26px; }
  main { gap: 12px; }
  .hero h1 { font-size: 1.55rem; }
  .hero h1 br { display: none; }
  .intro, .timing { display: none; }
  .games { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .game { grid-template-columns: auto 1fr; padding: 8px 10px; row-gap: 6px; border-radius: 16px; }
  .icon { width: 36px; height: 36px; border-radius: 9px; }
  .icon.letter { font-size: 1.1rem; }
  .game-text h2 { font-size: 1rem; }
  .game-text p { font-size: 0.76rem; }
  .badge, .badge-text { height: 32px; }
  .badge-text { font-size: 12.5px; padding: 0 12px; }
  .foot { font-size: 0.78rem; padding-top: 6px; }
  .foot-links a { min-height: 32px; }
}

/* ---------- text pages ---------- */
.prose { max-width: 720px; padding: 8px 0 24px; }
.prose h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.prose h2 { font-weight: 600; font-size: 1.2rem; margin: 28px 0 6px; }
.prose ul { padding-left: 20px; }
.muted { color: var(--slate); }
.page-privacy main, .page-landing main { justify-content: flex-start; }

/* ---------- game landing pages (scrolling, for search and ads) ---------- */
.crumbs { font-size: 0.85rem; color: var(--slate); }
.crumbs a { color: var(--slate); }
.lp-hero { display: grid; gap: 24px; align-items: center; padding: 8px 0 8px; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.lp-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 14px; }
.lp-icon.letter { font-size: 2rem; }
.lp-hero h1 { font-weight: 800; font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1; }
.lp-sub { display: block; font-size: 0.42em; line-height: 1.25; color: var(--violet); margin-top: 10px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 18px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.stores-large .badge, .stores-large .badge-text { height: 48px; }
.lp-shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.lp-shots img { flex: none; width: min(42vw, 220px); height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #fff; scroll-snap-align: start; }
.lp-block { max-width: 760px; padding: 6px 0; }
.lp-block h2 { font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.steps li::marker { font-family: var(--display); font-weight: 800; color: var(--violet); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.features b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.facts dt { font-size: 0.8rem; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 44px; }
.faq p { margin: 0 0 12px; color: var(--slate); }
.lp-cta { background: var(--ink); color: #fff; border-radius: 22px; padding: 24px; max-width: none; }
.lp-cta h2 { color: #fff; }
.lp-cta .downloads, .lp-cta .downloads b { color: #E4E1F5; }
.lp-cta .badge-text { background: #fff; color: var(--ink); }
.more { padding-left: 1.1em; display: grid; gap: 6px; }
