/* jomijo - the quiz site. Light, modern: pink primary, purple accent, pastel tiles. Phone first: 44 px targets, 13 px
   minimum text, safe-area insets, no horizontal scroll. The play screen (camera + canvas) stays dark. */
:root {
  --navy: #14213D; --ink: #EEF1F7; --accent: #C2185B; --accent2: #6D28D9; --yellow: #FFC93C;
  --bg: #FFFFFF; --panel: #F6F7FB; --line: #E4E7F0; --text: #0B1020; --muted: #5B6478;
  --coral: #FF5E5B; --blue: #3A86FF; --green: #16A34A; --purple: #8E5CF7; --red: #DC2626;
  --pink-soft: #FFE4EF; --purple-soft: #EFE6FF; --blue-soft: #E6F0FF; --green-soft: #E3F7EC;
  --r: 16px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; overflow-x: hidden; }
button, select, input, textarea { font: inherit; color: inherit; }
button { min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--text); font-weight: 700; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 10px 24px rgba(245,40,122,0.28); }
button.big { width: 100%; min-height: 58px; font-size: 18px; font-weight: 900; letter-spacing: 0.3px; }
button.ghost { background: #fff; color: var(--text); border-color: var(--text); }
button.pill { border-radius: 999px; }
button.link, a.link { min-height: 44px; border: 0; background: none; color: var(--accent); text-decoration: underline; padding: 6px; display: inline-flex; align-items: center; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
input[type=search] { width: 100%; min-height: 48px; border-radius: 999px; border: 2px solid var(--line); background: var(--ink); padding: 10px 16px; -webkit-appearance: none; appearance: none; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 0 8px; }
[hidden] { display: none !important; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; }
s.was { color: var(--muted); font-weight: 700; text-decoration: line-through; margin-right: 2px; }
button.primary s.was { color: rgba(255,255,255,0.75); }
.screen { display: none; padding: calc(12px + var(--sat)) calc(16px + var(--sar)) calc(20px + var(--sab)) calc(16px + var(--sal)); }
.screen.active { display: block; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.top h1 { font-size: 22px; margin: 0; font-weight: 900; letter-spacing: 0.5px; }
.icon-btn { width: 48px; min-width: 48px; flex: none; padding: 0; font-size: 20px; }
.icon-btn[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.back { width: 48px; min-width: 48px; flex: none; padding: 0; font-size: 30px; line-height: 1; }
.top h1 { min-width: 0; }
.sec { font-size: 17px; margin: 18px 0 10px; font-weight: 900; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-row > button { flex: 1 1 auto; }
.game-chip { display: inline-block; background: var(--purple-soft); color: var(--accent2); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; min-height: 32px; }
.top-right { display: flex; gap: 8px; }

/* ---------- the landing (/) */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; flex: none; }
.logo { font-size: 30px; font-weight: 900; margin: 0; letter-spacing: -1px; line-height: 1.1; text-decoration: none; color: var(--text); }
.logo .dot { color: var(--accent); }
.nav-links { display: none; gap: 18px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.nav .primary { min-height: 44px; padding: 8px 16px; white-space: nowrap; font-weight: 900; box-shadow: none; }
@media (min-width: 520px) { .nav-links { display: flex; } }
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 24px 18px 20px; margin: 6px 0 14px; background: radial-gradient(120% 90% at 85% 10%, var(--purple-soft), transparent 55%), radial-gradient(90% 80% at 10% 100%, var(--pink-soft), transparent 55%), radial-gradient(80% 60% at 90% 95%, var(--blue-soft), transparent 50%), #fff; }
.hero-text { position: relative; }
.hero-h { font-size: 40px; line-height: 1.0; font-weight: 900; letter-spacing: -1.4px; margin: 0 0 12px; }
.hero-sub { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: #2A3142; }
.hero .big { margin-top: 0; }
.assure { margin: 10px 0 12px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.proof { margin: 10px 0 0; color: var(--accent); font-weight: 800; font-size: 13px; text-align: center; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.phone { position: relative; width: 170px; flex: none; }
.phone canvas, .phone img { display: block; width: 170px; height: 302px; border-radius: 22px; border: 6px solid #141826; background: #0E1730; box-shadow: 0 22px 44px rgba(20,24,38,0.28); object-fit: cover; }
.demo-tag { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 13px; font-weight: 900; padding: 4px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: 0.3px; }
.hero-notes { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.scribble { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 18px; line-height: 1.2; color: var(--text); transform: rotate(-6deg); text-align: center; }
.socials { display: flex; flex-direction: column; gap: 6px; }
.socials b { display: inline-block; padding: 5px 10px; border-radius: 10px; font-size: 13px; font-weight: 900; color: #fff; text-align: center; }
.socials b:nth-child(1) { background: #111; } .socials b:nth-child(2) { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); } .socials b:nth-child(3) { background: #FF0033; }
.fade { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade.in { opacity: 1; transform: none; }
.season { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; margin: 0 0 8px; border-radius: 999px; background: var(--pink-soft); color: #9B0A4A; font-weight: 900; text-decoration: none; }
.season-emoji { font-size: 22px; } .season-text { flex: 1; } .season .chev { font-size: 22px; opacity: 0.7; }
.ld-sec { margin-top: 22px; }
.ld-sec h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.6px; margin: 0 0 12px; line-height: 1.1; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps3 li { display: grid; grid-template-columns: 34px 56px 1fr; gap: 12px; align-items: center; background: var(--panel); border-radius: 20px; padding: 14px; }
.steps3 .num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.steps3 li:nth-child(2) .num { background: var(--accent2); } .steps3 li:nth-child(3) .num { background: var(--blue); }
.steps3 .ico { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.ico.pink { background: var(--pink-soft); } .ico.purple { background: var(--purple-soft); } .ico.blue { background: var(--blue-soft); } .ico.green { background: var(--green-soft); }
.steps3 strong { display: block; font-size: 17px; } .steps3 li > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tile { border-radius: 20px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.tile .ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(255,255,255,0.7); }
.tile strong { font-size: 16px; line-height: 1.15; } .tile span { color: #3B4256; font-size: 13px; line-height: 1.35; }
.tile.green { background: var(--green-soft); } .tile.pink { background: var(--pink-soft); } .tile.blue { background: var(--blue-soft); } .tile.purple { background: var(--purple-soft); }
.moment-chips { flex-wrap: wrap; }
.moment-chips button { background: var(--panel); border-color: var(--panel); font-weight: 800; }
.create-sec { position: relative; overflow: hidden; margin-top: 22px; padding: 22px 18px; border-radius: 28px; background: radial-gradient(100% 80% at 90% 0%, var(--purple-soft), transparent 55%), radial-gradient(80% 70% at 0% 100%, var(--pink-soft), transparent 55%), var(--panel); }
.create-sec h2 { font-size: 32px; line-height: 1.02; letter-spacing: -1px; margin: 0 0 10px; font-weight: 900; }
.create-sec > p { margin: 0 0 12px; color: #2A3142; line-height: 1.45; }
.create-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 6px; }
.builder-mock { width: 190px; flex: none; border-radius: 22px; border: 6px solid #141826; background: #fff; padding: 12px 10px; box-shadow: 0 22px 44px rgba(20,24,38,0.2); display: grid; gap: 8px; }
.builder-mock strong { font-size: 13px; } .builder-mock .bm-in { background: var(--ink); border-radius: 8px; padding: 7px 8px; font-size: 11px; color: var(--muted); }
.builder-mock .bm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.builder-mock .bm-grid span { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; font-size: 10px; font-weight: 800; text-align: center; line-height: 1.2; }
.builder-mock .bm-grid span.on { border-color: var(--accent2); background: var(--purple-soft); }
.builder-mock .bm-btn { background: var(--accent2); color: #fff; border-radius: 10px; padding: 8px; font-size: 12px; font-weight: 900; text-align: center; }
.create-visual img { width: 190px; height: 338px; border-radius: 22px; object-fit: cover; box-shadow: 0 22px 44px rgba(20,24,38,0.2); }
.price-card { position: relative; margin-top: 22px; padding: 22px 18px; border-radius: 28px; background: #fff; border: 2px solid var(--line); box-shadow: 0 18px 40px rgba(20,24,38,0.08); }
.price-card h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.1; font-weight: 900; letter-spacing: -0.5px; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: var(--pink-soft); color: #9B0A4A; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; }
.price-big { margin: 0 0 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-big .price { font-size: 42px; font-weight: 900; color: var(--accent); letter-spacing: -1px; line-height: 1; }
.price-once { color: var(--muted); font-weight: 700; font-size: 14px; }
.buy-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; text-align: left; }
.buy-list li { position: relative; padding-left: 28px; font-weight: 600; line-height: 1.35; }
.buy-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.need { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--purple-soft); border: 1px dashed var(--accent2); font-size: 14px; line-height: 1.4; text-align: left; }
.faq { margin-top: 22px; }
.faq details { background: var(--panel); border-radius: 16px; margin-bottom: 8px; padding: 0 14px; }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.sticky-buy { position: fixed; left: 50%; bottom: calc(12px + var(--sab)); transform: translateX(-50%); width: min(100% - 32px, 528px); z-index: 20; }
#landing.has-sticky { padding-bottom: calc(90px + var(--sab)); }
.sticky-buy button { width: 100%; min-height: 54px; font-size: 17px; font-weight: 900; border-radius: 999px; }
.vbanner { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; margin: 0 0 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.vb-text { flex: 1; font-weight: 800; }
.vbanner .primary { min-height: 44px; padding: 8px 14px; white-space: nowrap; }
.upsell { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--pink-soft); display: grid; gap: 6px; }
.upsell strong { font-size: 18px; } .upsell span { color: #3B4256; font-size: 14px; } .upsell button { margin-top: 6px; }

/* ---------- the games list (/play) */
.hub-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.hub-top h1 { font-size: 24px; margin: 0; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; }
.tag { margin: 2px 0 0; color: var(--muted); font-weight: 600; font-size: 13px; }
.install-btn { min-height: 48px; padding: 8px 12px; font-weight: 800; white-space: nowrap; }
.search { margin: 6px 0 10px; }
.chips { display: flex; gap: 8px; }
.chips button { border-radius: 999px; padding: 8px 14px; min-height: 44px; white-space: nowrap; }
.chips button[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.cats { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; margin: 0 calc(-16px - var(--sal)) 0 calc(-16px - var(--sar)); padding-left: calc(16px + var(--sal)); padding-right: calc(16px + var(--sar)); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.qrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 6px; margin: 0 calc(-16px - var(--sal)) 0 calc(-16px - var(--sar)); padding-left: calc(16px + var(--sal)); padding-right: calc(16px + var(--sar)); scrollbar-width: none; }
.qrow::-webkit-scrollbar { display: none; }
.qrow .qcard { flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 359px) { .qgrid { grid-template-columns: 1fr; } }
.qcard { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: left; padding: 0 0 10px; border-radius: 18px; background: var(--panel); border-color: var(--panel); overflow: hidden; min-height: 44px; }
.qcov { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #3A86FF, #8B3DFF); display: flex; align-items: center; justify-content: center; }
.qcard.big .qcov { aspect-ratio: 16 / 10; }
.qcov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qcov.emoji { font-size: 32px; letter-spacing: 2px; white-space: nowrap; padding-top: 26px; }
.qcard.big .qcov.emoji { font-size: 44px; letter-spacing: 6px; }
.qkind { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,0.92); color: var(--accent2); font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.qt { font-weight: 900; font-size: 16px; padding: 6px 10px 0; line-height: 1.2; }
.qh { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qm { font-size: 13px; color: var(--accent); font-weight: 700; padding: 2px 10px 0; margin-top: auto; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }

/* ---------- the intro page */
.intro-card { background: var(--panel); border-radius: 20px; overflow: hidden; padding-bottom: 14px; }
.cover { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #3A86FF, #8B3DFF); display: flex; align-items: center; justify-content: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.emoji { font-size: 48px; letter-spacing: 6px; text-align: center; padding: 0 12px; line-height: 1.25; }
.intro-card h1 { font-size: 26px; margin: 14px 14px 4px; line-height: 1.15; }
.hook { color: var(--accent); margin: 0 14px 8px; font-weight: 700; }
.meta { color: var(--muted); font-size: 13px; margin: 0 14px 10px; font-weight: 600; }
.pchars { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 14px; }
.pchar { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; font-size: 13px; font-weight: 700; text-align: center; }
.pchar .pic { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--c, #2563EB), #0E1730); display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(20,24,38,0.15); }
.pchar .pic img { width: 100%; height: 100%; object-fit: cover; }
.pchar span { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intro-card .hint { margin: 10px 14px 0; }
.sticky-cta { position: sticky; bottom: calc(8px + var(--sab)); display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; padding: 8px; background: rgba(255,255,255,0.92); border-radius: 18px; backdrop-filter: blur(6px); box-shadow: 0 -4px 20px rgba(20,24,38,0.06); }
.missing { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- the play screen (the camera + the canvas): dark */
#play { padding: 0; }
#play.active { display: flex; flex-direction: column; position: fixed; inset: 0; background: #0F1A33; color: #F1F5F9; z-index: 5; height: 100vh; }
@supports (height: 100dvh) { #play.active { height: 100dvh; } }
#play button { background: #1B2A4E; border-color: #2D4070; color: #F1F5F9; }
#play button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.play-bar { display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--sat)) calc(10px + var(--sar)) 6px calc(10px + var(--sal)); background: #0E1730; }
.play-title { flex: 1; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec { display: flex; align-items: center; gap: 6px; font-weight: 900; color: #fff; }
.rec .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.stage-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 6px calc(6px + var(--sar)) calc(6px + var(--sab)) calc(6px + var(--sal)); position: relative; }
.stage-wrap canvas { height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; touch-action: none; -webkit-user-select: none; user-select: none; background: #000; }
@media (max-aspect-ratio: 9/17) { .stage-wrap canvas { height: auto; width: 100%; } }
.cam-gate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; text-align: center; background: rgba(15,26,51,0.94); color: #F1F5F9; z-index: 3; }
.cam-gate h2 { margin: 4px 0; } .cam-gate p { color: #A9B6CF; max-width: 360px; margin: 0 0 8px; } .cam-gate .big { max-width: 360px; }
.big-emoji { font-size: 56px; }

/* ---------- the result */
.res-card { background: var(--panel); border-radius: 20px; padding: 18px; text-align: center; }
.res-pic { width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 50%; background: linear-gradient(135deg, var(--c, #2563EB), #0E1730); display: flex; align-items: center; justify-content: center; font-size: 56px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(20,24,38,0.15); }
.res-pic img { width: 100%; height: 100%; object-fit: cover; }
.res-label { font-size: 13px; font-weight: 900; letter-spacing: 1px; color: var(--accent); }
.res-big { font-size: 30px; font-weight: 900; line-height: 1.1; } .res-sub { color: var(--muted); margin: 4px 0 10px; font-weight: 700; }
.res-desc { margin: 0 0 8px; } .res-line { margin: 0 0 12px; color: var(--accent2); font-weight: 700; }
.res-share { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; text-align: left; margin: 0 0 10px; }
.res-video { background: var(--panel); border-radius: 20px; padding: 12px; margin-top: 12px; }
.res-video video { width: 100%; max-height: 52vh; aspect-ratio: 9/16; background: #000; border-radius: 12px; }
.ad-slot { margin: 12px 0; text-align: center; }
.ad-slot:empty { display: none; }

/* ---------- Create your own */
.pitch-card { background: radial-gradient(100% 80% at 90% 0%, var(--purple-soft), transparent 55%), radial-gradient(80% 70% at 0% 100%, var(--pink-soft), transparent 55%), var(--panel); border-radius: 24px; padding: 22px 18px; text-align: center; }
.pitch-card h2 { margin: 6px 0 6px; font-size: 26px; line-height: 1.1; letter-spacing: -0.5px; }
.pitch-card > p { color: var(--muted); margin: 0 0 14px; }
.mygrid { display: grid; gap: 10px; margin-bottom: 12px; }
.mycard { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; gap: 4px 12px; background: var(--panel); border-radius: 18px; overflow: hidden; padding-right: 10px; }
.mycard .qcov { grid-row: 1 / 3; aspect-ratio: auto; min-height: 96px; font-size: 24px; letter-spacing: 1px; padding-top: 0; }
.mybody { padding-top: 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mybody .qt, .mybody .qm { padding: 0; }
.myacts { display: flex; gap: 8px; align-items: center; padding-bottom: 10px; }
.myacts .primary { min-height: 44px; padding: 8px 16px; }
.mymore { position: relative; }
.mymore summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; }
.mymore summary::-webkit-details-marker { display: none; }
.mymore .btn-row { margin-top: 8px; }
.mymore .btn-row button { min-height: 44px; font-size: 14px; }
button.danger { color: var(--red); }
#create [data-view=list].drop { outline: 3px dashed var(--accent2); outline-offset: 6px; border-radius: 12px; }
.stepdots { list-style: none; display: flex; gap: 6px; margin: 0 0 6px; padding: 0; }
.stepdots li { flex: 1; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); border-radius: 2px; }
.stepdots li.on { color: var(--accent); border-top-color: var(--accent); }
.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fmt-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; min-height: 120px; padding: 14px; border-radius: 18px; background: var(--panel); border-color: var(--panel); }
.fmt-card.on { border-color: var(--accent2); background: var(--purple-soft); }
.fmt-icon { font-size: 30px; } .fmt-card strong { font-size: 16px; line-height: 1.15; } .fmt-line { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.field { display: block; font-weight: 800; font-size: 14px; margin: 10px 0 4px; }
.field input, .field select { display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 600; -webkit-appearance: none; appearance: none; }
textarea.mono { display: block; width: 100%; min-height: 160px; margin: 6px 0; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
details.more { margin: 8px 0; }
details.more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); font-weight: 800; }
#create .sec { margin-top: 12px; }
#create .big { margin-top: 10px; }
#create .btn-row .link { flex: 0 1 auto; }
.checkout .chk { border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }
.chk ul { margin: 6px 0 0; padding-left: 20px; } .chk li { margin: 3px 0; }
.chk.bad { background: #FDE8EC; border: 1px solid #F5A3B5; } .chk.warn { background: #FFF4DD; border: 1px solid #F3C878; } .chk.ok { background: var(--green-soft); border: 1px solid #9FDDB8; }
button.repair { min-height: 44px; font-size: 14px; }
.preview { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.preview h3 { margin: 0; font-size: 18px; } .preview .hook { margin: 4px 0; color: var(--accent); font-weight: 700; } .preview .muted { color: var(--muted); font-size: 13px; }
.preview .cards { display: grid; gap: 8px; margin: 10px 0; }
.rcard { background: var(--panel); border-left: 5px solid var(--c, #2563EB); border-radius: 10px; padding: 10px 12px; font-size: 13px; } .rcard .em { font-size: 26px; } .rcard p { margin: 4px 0; } .rcard em { color: var(--accent2); font-style: normal; }
.preview .rounds { font-size: 14px; padding-left: 20px; } .preview .rounds ul { margin: 2px 0 8px; padding-left: 18px; color: var(--muted); } .preview .rounds li.right { color: var(--green); font-weight: 700; }
.buy-card .buy-list { margin: 10px 0 12px; }

/* ---------- success.php (after Stripe) */
.success-page { max-width: 560px; margin: 0 auto; padding: calc(28px + var(--sat)) 20px 40px; text-align: center; }
.success-page h1 { font-size: 28px; line-height: 1.1; margin: 8px 0; } .success-page p { color: var(--muted); }
.success-page a.primary.big { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; }

/* ---------- modals, toast, rotate */
.modal { position: fixed; inset: 0; background: rgba(11,16,32,0.6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 20px; padding: 22px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(11,16,32,0.3); }
.modal-card p { text-align: left; }
.modal-card ol { text-align: left; padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.rotate { display: none; position: fixed; inset: 0; background: var(--navy); color: #fff; z-index: 100; align-items: center; justify-content: center; text-align: center; font-size: 48px; }
.rotate p { font-size: 20px; font-weight: 900; color: var(--yellow); }
@media (orientation: landscape) and (pointer: coarse) and (max-height: 520px) { .rotate { display: flex; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); background: var(--text); color: #fff; font-weight: 800; padding: 10px 16px; border-radius: 999px; z-index: 70; max-width: 90vw; box-shadow: 0 10px 30px rgba(11,16,32,0.3); }
/* ---------- the landing on a desktop: full width, two columns */
@media (min-width: 900px) {
  body.wide #app { max-width: 1120px; }
  body.wide #landing { padding-left: 32px; padding-right: 32px; }
  .hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; padding: 48px 44px; }
  .hero-h { font-size: 60px; letter-spacing: -2.4px; }
  .hero-sub { font-size: 19px; }
  .hero-text .big { max-width: 420px; }
  .hero .assure { text-align: left; }
  .hero-visual { margin-top: 0; gap: 24px; }
  .phone { width: 250px; } .phone canvas, .phone img { width: 250px; height: 444px; }
  .scribble { font-size: 24px; }
  .steps3 { grid-template-columns: 1fr 1fr 1fr; }
  .steps3 li { grid-template-columns: 34px 56px 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .ld-sec h2 { font-size: 32px; }
  .create-sec { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "title visual" "text visual" "list visual" "cta visual"; column-gap: 32px; padding: 40px 44px; }
  .create-sec h2 { grid-area: title; font-size: 44px; } .create-sec > p { grid-area: text; } .create-sec .buy-list { grid-area: list; } .create-sec > .big { grid-area: cta; max-width: 420px; } .create-visual { grid-area: visual; margin: 0; }
  .builder-mock { width: 230px; }
  .price-card, .faq { max-width: 640px; margin-left: auto; margin-right: auto; }
  .moment-chips button { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade { opacity: 1; transform: none; transition: none; }
}

/* the landing's emotional beat: "Years from now, you won't remember the score." */
.ld-sec.memory { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.ld-sec.memory h2 { font-size: clamp(24px, 4.2vw, 34px); line-height: 1.15; }
.memory-text { font-size: 18px; line-height: 1.6; color: var(--muted, #555); margin: 12px auto 0; }
.hero-h .grad { white-space: nowrap; }   /* "Make memories." stays on one line */

/* the playable hero demo: a bit bigger on phones (so an answer can be tapped), the tag is a button */
.phone canvas { cursor: pointer; touch-action: manipulation; }
button.demo-tag { border: 0; cursor: pointer; min-height: 44px; padding: 0 16px; bottom: -22px; font-family: inherit; }   /* a real button: 44 px like every control */
@media (max-width: 640px) { .phone { width: min(210px, 56vw); } .phone canvas, .phone img { width: min(210px, 56vw); height: calc(min(210px, 56vw) * 16 / 9); } }
.assure.scope { margin-top: 6px; }
.ld-sec.memory #memPlay { margin-top: 18px; }

/* Create: the step-by-step guide (paid only) - make a game with your favorite AI */
.guide-intro { text-align: center; margin: 4px 0 8px; }
.guide-intro h2 { margin: 6px 0; }
.guide-intro p { color: var(--muted); margin: 0 auto; max-width: 460px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.ai-tile { min-height: 56px; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; } .ai-tile .fmt-icon { font-size: 24px; }
.guide-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.gstep { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.gnum { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; display: grid; place-items: center; }
.gbody { display: grid; gap: 4px; min-width: 0; }
.gbody > span { color: var(--muted); line-height: 1.45; }
.gbody > button { justify-self: start; margin-top: 6px; min-height: 44px; }
.mini-code { display: block; max-width: 240px; margin-top: 8px; border-radius: 10px; background: #0E1730; padding: 8px 10px 10px; }
.mc-bar { display: flex; justify-content: space-between; align-items: center; color: #9AA3B8; font: 700 12px ui-monospace, Menlo, Consolas, monospace; }
.mc-bar b { color: #fff; background: rgba(255,255,255,0.16); border-radius: 6px; padding: 2px 8px; }
.mc-line { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); margin-top: 6px; }
.mc-line:nth-of-type(3) { width: 72%; } .mc-line:nth-of-type(4) { width: 48%; }
.guide-tips { display: grid; gap: 8px; margin: 0 0 18px; }
.gtip { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gtip summary { min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 800; cursor: pointer; }
.gtip p { margin: 0; padding: 0 14px 12px; color: var(--muted); line-height: 1.45; }
