@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one.c87fb1fa84.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fredoka;
  src: url("/fonts/fredoka-600.4052fba78b.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #24066e;
  --bg-2: #3a0a9e;
  --ink: #ffffff;
  --muted: #f6e9ff;
  --gold: #ffe56a;
  --lime: #c6f26a;
  --lime-ink: #142006;
  --card: #43128f;
  --line: rgba(255, 229, 106, 0.45);
  --magenta: #ff2ea8;
  --blue: #209dff;
  --yellow: #ffc718;
  --green: #70e01e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
button { font-family: inherit; color: inherit; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 10% -10%, #6a22e8 0%, transparent 60%),
    radial-gradient(700px 420px at 110% 8%, #3d0d9a 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: Fredoka, "Trebuchet MS", Verdana, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: #fff4b0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: var(--lime-ink);
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top, .foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  color: white;
  text-decoration: none;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a, .ghost {
  color: white;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.hero { padding: 12px 0 28px; }
.jelly { display: flex; gap: 10px; margin: 8px 0 18px; }
.jelly span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.35), 0 8px 0 rgba(0, 0, 0, 0.18);
}
.magenta { background: var(--magenta); }
.blue { background: var(--blue); }
.yellow { background: var(--yellow); }
.green { background: var(--green); }
h1, h2, h3 {
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 8px; }
h3 { font-size: 1.35rem; margin: 0 0 6px; }
.lede { font-size: 1.2rem; max-width: 38rem; color: var(--muted); margin: 0 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.cta {
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 0 #3d7a0c;
}
.cta:hover { color: var(--lime-ink); transform: translateY(1px); }
.stores { color: var(--muted); margin: 0 0 18px; }
.wordmark { width: min(280px, 70vw); height: auto; display: block; margin: 8px 0 16px; }
.grid, .shots, .faq, .guides { display: grid; gap: 14px; }
.card, .shot, .faq article, .guide-list a {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.card p, .faq p, .prose p { margin: 0 0 10px; }
.card p:last-child, .faq p:last-child { margin-bottom: 0; }
.section { padding: 10px 0 28px; }
.crumbs { color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--gold); }
.by { color: var(--muted); }
.shot img { border-radius: 16px; display: block; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.guide-list a { display: block; color: white; text-decoration: none; min-height: 48px; }
.foot { border-top: 3px solid rgba(255, 255, 255, 0.12); margin-top: 12px; color: var(--muted); }
.foot a { margin-right: 12px; }

@media (min-width: 800px) {
  .hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
  .grid, .faq { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
}
#demo-root { min-height: 28rem; }
.demo-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 420px);
  margin: 8px 0 16px;
  padding: 8px;
  background: #2a0880;
  border-radius: 18px;
}
.demo-cell {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #4a1aa8;
  padding: 0;
  touch-action: manipulation;
}
.demo-cell.hint { outline: 3px solid var(--gold); outline-offset: -3px; }
.demo-cell.ghost { background: rgba(255, 229, 106, 0.85); }
.demo-cell:disabled { opacity: 1; }
.demo-tray { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.demo-piece {
  min-width: 76px;
  min-height: 64px;
  border: 3px solid transparent;
  border-radius: 16px;
  background: var(--card);
  color: white;
  padding: 8px;
  touch-action: manipulation;
}
.demo-piece.selected { border-color: var(--gold); }
.mini { display: grid; gap: 2px; margin: 0 auto; }
.mini span { width: 12px; height: 12px; border-radius: 3px; background: transparent; }
.demo-offer {
  margin-top: 8px;
  padding: 16px;
  border-radius: 22px;
  background: var(--card);
  border: 3px solid var(--line);
}
.demo-offer h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta:hover { transform: none; }
}
/* The same logo, palette and typography as the current game. */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 176px; height: 84px; object-fit: contain; display: block; }
.top { padding: 6px 0 18px; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; color: var(--gold); }
.hero h1 { font: 600 1rem Fredoka, sans-serif; color: var(--muted); margin: 0 0 10px; }
.hero-hook { font: 400 clamp(2.6rem,5.5vw,4.5rem)/1.03 "Lilita One",sans-serif; margin: 0 0 24px; }
.hero-hook span { color: var(--gold); }
.hero-note { font-size: .95rem; color: var(--muted); }
.hero .jelly { margin-bottom: 28px; }
.hero-grid { padding: 20px 0 56px; }
.gameplay { margin: 0 auto; max-width: 340px; width: 100%; background:#1d0755; border:2px solid #774dce; border-radius:28px; overflow:hidden; box-shadow:0 24px 72px #140332; }
.gameplay video { display:block; width:100%; height:auto; aspect-ratio:390 / 844; background:#24066e; }
.gameplay figcaption { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:10px 14px; font-size:.8rem; }
.gameplay button, .editor button { background:var(--lime); color:var(--lime-ink); border:0; border-radius:12px; min-height:44px; padding:10px 14px; font:inherit; cursor:pointer; }
.section { padding:24px 0 42px; }
.shots { gap:24px; margin-top:24px; }
.shot { margin:0; padding:12px; border:1px solid #7650b4; }
.shot img { width:100%; }
.shot figcaption { padding:20px 8px 8px; }
.shot figcaption p { color:var(--muted); }
.prose { max-width:760px; margin:0 auto; }
.prose > .shot { width:min(300px,100%); margin:24px auto; }
.editor { padding-bottom:64px; }
.editor-grid { display:grid; grid-template-columns:240px minmax(0,1fr); gap:32px; }
.editor label { display:block; margin:18px 0 6px; }
.editor input:not([type=checkbox]), .editor textarea { display:block; width:100%; padding:12px; font:inherit; color:white; background:#18053e; border:1px solid #ad86e8; border-radius:10px; }
.editor form { margin-bottom:28px; }
.editor button { margin:10px 6px 6px 0; }
.editor button:disabled { opacity:.5; cursor:wait; }
.editor .review { display:flex; align-items:flex-start; gap:12px; }
.editor .review input { width:22px; height:22px; flex-shrink:0; }
.editor #status:not(:empty) { padding:16px; background:var(--card); border-radius:12px; }
@media(max-width:799px) {
  .top { gap:4px; } .brand img { width:140px; height:68px; }
  .nav a { padding:0 10px; font-size:.9rem; min-height:44px; }
  .hero-grid { display:flex; flex-direction:column; gap:24px; padding-top:0; }
  .hero { padding-bottom:0; } .hero-hook { font-size:clamp(2.6rem,9.4vw,4rem); }
  .hero .jelly { display:none; } .gameplay { max-width:320px; }
  .shots { grid-template-columns:1fr; max-width:340px; margin:24px auto 0; }
  .editor-grid { grid-template-columns:1fr; } .editor aside { order:2; }
}
/* Intrinsic screenshot widths must not widen narrow grid tracks. */
.card, .shot, .faq article, .hero, .editor-grid > * { min-width:0; }
@media(max-width:799px) { .grid, .shots, .faq { grid-template-columns:minmax(0,1fr); } }
@media(min-width:800px) { .shots { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.foot p { min-width:0; }
.foot p:last-child { display:flex; flex-wrap:wrap; gap:12px; }
.foot p:last-child a { margin:0; overflow-wrap:anywhere; }
.more-guides { margin: 28px 0 12px; }
.more-guides h2 { font-size: 1.45rem; }
.facts { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.facts th, .facts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.press-shots { display: grid; gap: 12px; list-style: none; padding: 0; }
.press-shots img { border-radius: 12px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-family: Fredoka, sans-serif;
}
.store-badge:hover { color: #111; }
@media (min-width: 800px) {
  .press-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width:480px) {
  .brand img { width:110px; height:56px; }
  .nav a { padding:0 8px; font-size:.85rem; }
  .hero-hook { font-size:clamp(2.3rem,9.4vw,3.5rem); }
  .actions .cta { font-size:1.1rem; padding:0 16px; }
  .actions .ghost { font-size:.95rem; padding:0 12px; }
  .hero-note { font-size:.875rem; }
}
