@font-face{font-family:"Lilita One";src:url(fonts/LilitaOne-Regular.ttf) format("truetype");font-display:swap}
@font-face{font-family:"Inter";font-weight:400;src:url(fonts/Inter-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Inter";font-weight:600;src:url(fonts/Inter-SemiBold.woff2) format("woff2");font-display:swap}
:root{
  /* Light theme (the app's light colours). Dark theme is redefined below. */
  color-scheme:light;
  --bg:#F3F4F8; --card:#FFFFFF; --chip:#E7E9F1; --line:#D3D6E2; --text:#12131A; --muted:#565B70;
  --red:#E5323F; --blue:#2F6FE0; --yellow:#D9A300; --green:#1FA85C; --orange:#EE6A00; --purple:#8247E5; --pink:#DB3F9E; --cyan:#0FA3B1;
  --link:#1F5BC4; --gold:#8A6500; --on:#FFFFFF; --bar:rgba(243,244,248,.92); --bezel:#C9CDDB; --bezel-line:#B3B8CA; --shadow:rgba(40,45,70,.4); --focus:#2F6FE0;
  --display:"Lilita One","Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --wrap:1080px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;
  --bg:#12131A; --card:#1C1E28; --chip:#22242F; --line:#2E3140; --text:#F3F4F8; --muted:#A9ADBD;
  --red:#FF4D5E; --blue:#3D8BFF; --yellow:#FFD23D; --green:#3DDC84; --orange:#FF8A2B; --purple:#A66BFF; --pink:#FF6EC7; --cyan:#2EE6E6;
  --link:#7DB3FF; --gold:#FFD23D; --on:#12131A; --bar:rgba(18,19,26,.92); --bezel:#262936; --bezel-line:#3A3E50; --shadow:#000; --focus:#FFD23D;
}}
:root[data-theme="dark"]{color-scheme:dark;
  --bg:#12131A; --card:#1C1E28; --chip:#22242F; --line:#2E3140; --text:#F3F4F8; --muted:#A9ADBD;
  --red:#FF4D5E; --blue:#3D8BFF; --yellow:#FFD23D; --green:#3DDC84; --orange:#FF8A2B; --purple:#A66BFF; --pink:#FF6EC7; --cyan:#2EE6E6;
  --link:#7DB3FF; --gold:#FFD23D; --on:#12131A; --bar:rgba(18,19,26,.92); --bezel:#262936; --bezel-line:#3A3E50; --shadow:#000; --focus:#FFD23D;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:17px/1.55 var(--body);-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
a{color:var(--link)}
a:focus-visible,button:focus-visible,canvas:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.1;margin:0;text-wrap:balance;letter-spacing:.01em}
h2{font-size:clamp(2rem,5vw,2.9rem)}
h3{font-size:1.45rem}
p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
section{padding:64px 0}
.lede{color:var(--muted);max-width:60ch;margin-top:12px;font-size:1.08rem}
.swipe{display:none}
.art{display:inline-block;width:44px;height:44px;flex:none}
.art svg{display:block;width:100%;height:100%}

/* top bar */
.bar{position:sticky;top:0;z-index:10;height:58px;margin-bottom:-58px;background:transparent;transition:background .2s}
.bar.scrolled{background:var(--bar);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.bar.open{background:var(--bg)}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;padding-bottom:10px}
.brand{display:flex;flex:none}
.brand img{display:block;width:38px;height:38px;border-radius:10px;border:1px solid var(--line)}
.theme{flex:none;width:38px;height:38px;border-radius:999px;border:1px solid var(--line);background:var(--chip);color:var(--text);display:grid;place-items:center;cursor:pointer;padding:0}
.theme svg{width:20px;height:20px;display:block}
.menu{display:none}
.top nav .x,.top nav .art{display:none}
.top nav{margin-left:auto;display:flex;gap:6px;font-family:var(--display);font-size:1.02rem}
.top nav a{color:var(--text);text-decoration:none;padding:8px 12px;border-radius:999px;white-space:nowrap}
.top nav a:hover{background:var(--chip)}
.top nav a.store:hover{background:var(--blue)}
section[id],main{scroll-margin-top:64px}

/* hero */
.hero{position:relative;overflow:hidden;padding:66px 0 72px}
#drift{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hero .wrap{position:relative}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center;padding-top:28px}
.title{display:inline-block;transform:rotate(-7deg);margin:28px 0 30px 10px;font-size:clamp(5.2rem,15vw,9.5rem);line-height:.86}
.title .row{display:flex;gap:.04em}
.title .row span{display:inline-block}
.title .sub{display:block;font-size:.3em;line-height:1;margin-top:.35em;color:var(--text);letter-spacing:.06em}
.tag{font-family:var(--display);font-size:clamp(1.6rem,4vw,2.2rem);color:var(--gold)}
.hero .lede{font-size:1.12rem}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:26px}
.store img{width:30px;height:30px;border-radius:8px;flex:none;margin-left:-6px}
.store{line-height:1.15;text-align:left;display:inline-flex;align-items:center;gap:10px;font-family:var(--display);font-size:1.3rem;color:#fff;background:var(--blue);
  padding:14px 26px;border-radius:18px;text-decoration:none;box-shadow:0 5px 0 #2459b3}
/* Official App Store badge (Apple's artwork, never redrawn). If the file is missing, a plain text button shows instead. */
.badge{display:inline-block;line-height:0;border-radius:10px}
.badge img{display:block;height:54px;width:auto}
.badge span{display:none}
.badge.nobadge img{display:none}
.badge.nobadge span{display:inline-block;line-height:1.2;font-family:var(--display);font-size:1.25rem;color:#fff;background:var(--blue);padding:14px 24px;border-radius:16px;box-shadow:0 5px 0 #2459b3}
.android{margin-top:14px;max-width:46ch;font-size:.92rem;color:var(--muted)}
.android a{color:var(--link);overflow-wrap:anywhere}
.offer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:26px;max-width:460px;text-align:left}
.offer>*{display:flex;flex-direction:column;gap:2px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 16px;color:var(--muted);font-size:.95rem;line-height:1.35;text-decoration:none}
.offer b{font-family:var(--display);font-weight:400;font-size:1.45rem;line-height:1.1}
.offer a:hover{border-color:var(--yellow)}

/* phone demo */
.phone-col{display:flex;flex-direction:column;align-items:center;gap:12px}
.phone{position:relative;width:min(300px,78vw);aspect-ratio:9/17.5;background:var(--bg);border:9px solid var(--bezel);border-radius:44px;
  box-shadow:0 0 0 1px var(--bezel-line),0 30px 60px -20px var(--shadow);overflow:hidden}
.phone.shake{animation:shake .3s}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
#game{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y;cursor:pointer}
.hud{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:14px 12px 10px;background:linear-gradient(var(--bg) 70%,transparent);pointer-events:none;font-family:var(--display)}
.target{display:flex;align-items:center;gap:6px;background:var(--card);border-radius:14px;padding:5px 10px 5px 6px;font-size:.9rem}
.target .art{width:30px;height:30px}
.target.pulse{animation:pulse .5s}
@keyframes pulse{50%{transform:scale(1.15)}}
.score{font-size:1.5rem;font-variant-numeric:tabular-nums}
.score small{font-size:.8rem;color:var(--gold);margin-left:4px}
.hearts{display:flex;gap:2px}
.hearts .art{width:20px;height:20px}
.hearts .art.lost{opacity:.2}
.banner{position:absolute;left:0;right:0;top:42%;text-align:center;font-family:var(--display);font-size:2.3rem;pointer-events:none;
  opacity:0;transition:opacity .2s;text-shadow:0 2px 0 var(--bg)}
.banner.on{opacity:1}
.phone-note{color:var(--muted);font-size:1rem;text-align:center;max-width:300px}
.phone-note b{color:var(--text)}

/* how it plays */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:32px 0 0;padding:0;list-style:none}
.steps li{background:var(--card);border-radius:22px;padding:24px}
.steps .ic{display:block;width:68px;height:68px;margin-bottom:12px}
.steps .ic svg{display:block;width:100%;height:100%}
.steps p{color:var(--muted);margin-top:8px}
.rules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px;padding:0;list-style:none}
.rules li{border:1px solid var(--line);border-radius:16px;padding:14px 16px;font-size:.95rem;color:var(--muted)}
.rules b{display:block;font-family:var(--display);font-weight:400;font-size:1.15rem;color:var(--text)}

/* worlds */
.worlds-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:28px;margin-top:32px;align-items:start}
.worlds{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.worlds li{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;background:var(--card);border-radius:18px;padding:14px 18px 14px 14px}
.worlds .n{font-family:var(--display);font-size:1.7rem;width:54px;height:54px;border-radius:14px;display:grid;place-items:center;background:var(--c);color:var(--on)}
.worlds p{color:var(--muted);font-size:.98rem}
.worlds .demo{display:flex;gap:4px}
.worlds .demo .art{width:30px;height:30px}
.switch{margin-top:14px;color:var(--muted);padding-left:14px;border-left:4px solid var(--yellow)}
.switch b{color:var(--text)}
.switch.expert{border-left-color:var(--purple)}
.endless{background:var(--card);border:2px solid var(--yellow);border-radius:24px;padding:26px}
.endless .inf{font-family:var(--display);font-size:4.5rem;line-height:.8;color:var(--yellow);display:block}
.endless h3{font-size:1.9rem;margin-top:10px}
.endless p{color:var(--muted);margin-top:10px}
.endless .ask{font-family:var(--display);font-size:1.4rem;color:var(--text);margin-top:16px}

/* packs */
.packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:32px}
.pack{background:var(--card);border-radius:22px;padding:20px;border-top:7px solid var(--a);display:flex;flex-direction:column;gap:12px}
.pack header{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.pack .price{font-family:var(--display);font-size:1.15rem;color:var(--muted)}
.pack .arts{display:flex;flex-wrap:wrap;gap:6px}
.pack p{color:var(--muted);font-size:.95rem}
.pack .meta{color:var(--text);font-size:.85rem;margin-top:auto}
.allpacks{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;margin-top:18px;
  background:#F5A400;color:#12131A;border-radius:22px;padding:18px 24px}
.allpacks h3{font-size:1.7rem}
.allpacks .big{font-family:var(--display);font-size:2rem}

/* play your way */
.ways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:32px}
.way{background:var(--card);border-radius:22px;padding:22px}
.way p{color:var(--muted);margin-top:8px}
.marks{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.marks .art{width:38px;height:38px}
.modes{display:flex;gap:10px;margin-top:14px}
.modes>span{flex:1;border-radius:12px;padding:10px;display:flex;gap:6px;justify-content:center}
.modes .art{width:26px;height:26px}
.modes .dk{background:#12131A;border:1px solid var(--line)}
.modes .lt{background:#F3F4F8}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding:0;list-style:none;font-size:.9rem}
.pills li{background:var(--chip);border-radius:999px;padding:5px 13px}

/* promise */
.promise{background:var(--card);padding:72px 0}
.promise h2{font-size:clamp(2.3rem,7vw,4.4rem);line-height:1.02}
.promise h2 span{display:block}
.promise .lede{font-size:1.15rem}

/* privacy + footer */
.legal>*{max-width:68ch}
.legal h3{font-size:1.2rem;margin-top:26px}
.legal p,.legal ul{color:var(--muted);margin-top:8px}
.legal ul{padding-left:20px}
.legal .date{font-size:.9rem}
details{margin-top:16px}
summary{display:inline-flex;align-items:center;gap:10px;cursor:pointer;list-style:none;font-family:var(--display);font-size:1.15rem;color:var(--text);
  background:var(--chip);border:1px solid var(--line);border-radius:999px;padding:9px 18px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--gold)}
details[open] summary::after{content:"\2212"}
summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
details .date{margin-top:18px}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes pop{0%{transform:scale(.5)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
.rise{animation:rise .55s cubic-bezier(.2,.7,.2,1) both}
.rise .n,.rise .ic{animation:pop .5s .15s cubic-bezier(.2,.7,.2,1) both}
.mail{font-family:var(--display);font-size:clamp(1.15rem,4.4vw,1.6rem);margin-top:14px}
.mail a{display:inline-flex;align-items:center;gap:.4em;color:var(--link);text-underline-offset:3px}
.mail a span{word-break:break-all}
.mail-icon{width:1.15em;height:1.15em;flex:none}
footer{border-top:1px solid var(--line);padding:28px 0 44px;color:var(--muted);font-size:.9rem}
footer .wrap{display:flex;flex-wrap:wrap;gap:8px 28px;justify-content:space-between}
footer a{color:var(--muted)}
footer a[href]{text-decoration:underline}

@media (max-width:860px){
  .hero-grid,.worlds-grid{grid-template-columns:minmax(0,1fr)}
  .steps{grid-template-columns:minmax(0,1fr)}
  .rules,.packs,.ways{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-grid>div:first-child{text-align:center}
  .title{margin-left:0}
  .title .row{justify-content:center}
  .offer,.android{margin-left:auto;margin-right:auto}
  .cta{justify-content:center}
  .promise .cta{justify-content:flex-start}
  section{padding:48px 0}
}
@media (max-width:540px){
  section{padding:38px 0}
  .hero{padding-bottom:42px}
  .hero-grid{gap:40px}
  .promise{padding:44px 0}
  h2{font-size:2.3rem}
  .lede{margin-top:14px}
  /* card groups become swipeable rows; the next card peeks in from the right edge */
  .steps,.packs,.ways{display:flex;grid-template-columns:none;gap:14px;margin:32px -20px 0;padding:0 20px 6px;
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-left:20px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .steps::-webkit-scrollbar,.packs::-webkit-scrollbar,.ways::-webkit-scrollbar{display:none}
  .steps>li,.packs>.pack,.ways>.way{flex:0 0 80%;scroll-snap-align:start}
  .steps>li:last-child,.packs>.pack:last-child,.ways>.way:last-child{scroll-snap-align:end}
  .swipe{display:flex;justify-content:center;gap:9px;margin-top:16px}
  .swipe i{width:7px;height:7px;border-radius:50%;background:var(--line);transition:background .2s,transform .2s}
  .swipe i.on{background:var(--text);transform:scale(1.25)}
  .rules{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:36px}
  .worlds{gap:12px}
  .worlds li{grid-template-columns:46px minmax(0,1fr)}
  .worlds .n{width:46px;height:46px}
  .worlds .demo{display:none}
  .worlds-grid{gap:36px}
  .switch{margin-top:22px}
  .allpacks{margin-top:28px}
  .top{gap:10px}
  .menu{display:grid}
  .theme:not(.menu){margin-left:auto}
  /* full-screen menu */
  .top nav{display:none;position:absolute;left:0;right:0;top:100%;height:calc(100vh - 58px);height:calc(100dvh - 58px);overflow-y:auto;
    margin:0;flex-direction:column;gap:0;padding:14px 20px 28px;background:var(--bg);
    font-size:clamp(1.7rem,10vw,3.2rem);font-size:clamp(1.7rem,min(10vw,5.4dvh),3.2rem)}
  .bar.open nav{display:flex}
  .top nav a,.top nav .x{display:flex;align-items:center;gap:.5em;padding:8px 10px;border-radius:18px;line-height:1.1;flex:1 1 auto;max-height:104px}
  .top nav .art{display:block;width:.8em;height:.8em}
  .top nav a:nth-child(odd) .art{transform:rotate(-12deg)}
  .top nav a:nth-child(even) .art{transform:rotate(10deg)}
  .top nav a:active{background:var(--chip)}
  .top nav a:nth-last-child(2){margin-bottom:14px}
  .top nav a.badge{flex:0 0 auto;margin-top:auto;justify-content:center;padding:12px 0;background:none}
  .top nav a.badge img{height:56px}
  .top nav a.store{flex:0 0 auto;margin-top:auto;justify-content:center;gap:10px;color:#fff;background:var(--blue);font-size:clamp(1.25rem,5.6vw,1.6rem);padding:18px 20px}
  .bar.open nav a{animation:rise .35s cubic-bezier(.2,.7,.2,1) both}
  .bar.open nav a:nth-child(2){animation-delay:40ms}.bar.open nav a:nth-child(3){animation-delay:80ms}.bar.open nav a:nth-child(4){animation-delay:120ms}
  .bar.open nav a:nth-child(5){animation-delay:160ms}.bar.open nav a:nth-child(6){animation-delay:200ms}.bar.open nav a:nth-child(7){animation-delay:240ms}.bar.open nav a:nth-child(8){animation-delay:300ms}
}
@media (max-width:380px){.store{font-size:1.12rem;padding:14px 18px;gap:8px}}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .phone.shake,.target.pulse,.bar.open nav a{animation:none}
  .banner{transition:none}
}

/* ============================================================
   3. Privacy page and blog (privacy.html, blog.html, posts/*.html)
   ============================================================ */
body:is(.privacy-page,.page){
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.6;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));
  padding-top:calc(32px + env(safe-area-inset-top,0px));padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))
}
:is(.privacy-page,.page) main{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:28px}
:is(.privacy-page,.page) header{display:flex;flex-direction:column;gap:10px}
:is(.privacy-page,.page) .home{align-self:flex-start;font-size:14px;font-weight:600;color:var(--muted);text-decoration:none;margin-bottom:6px}
:is(.privacy-page,.page) .home:hover{color:var(--text);text-decoration:underline}
:is(.privacy-page,.page) .shapes{display:flex;gap:8px;align-items:center}
:is(.privacy-page,.page) .shapes svg{width:22px;height:22px}
:is(.privacy-page,.page) h1{font-size:clamp(30px,7vw,42px);line-height:1.1}
:is(.privacy-page,.page) .updated{color:var(--muted);font-size:14px}
:is(.privacy-page,.page) .summary{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
:is(.privacy-page,.page) section{display:flex;flex-direction:column;gap:8px;padding:0}
:is(.privacy-page,.page) h2{font-size:22px;letter-spacing:.2px}
:is(.privacy-page,.page) p,:is(.privacy-page,.page) ul{margin:0;max-width:65ch}
:is(.privacy-page,.page) ul{padding-left:1.2em;display:flex;flex-direction:column;gap:4px}
:is(.privacy-page,.page) .contact{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
:is(.privacy-page,.page) .email{font-weight:600;overflow-wrap:anywhere}
:is(.privacy-page,.page) footer{color:var(--muted);font-size:14px;border-top:1px solid var(--line);padding:16px 0 0}

/* Top row on these pages: back links on the left, light/dark switch on the right */
:is(.privacy-page,.page) .topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
:is(.privacy-page,.page) .topline .home{margin-bottom:0}
/* Blog: list of posts (blog.html) and single posts (posts/*.html) */
.page .crumbs{display:flex;flex-wrap:wrap;gap:6px 18px}
.page .crumbs a{font-size:14px;font-weight:600;color:var(--muted);text-decoration:none}
.page .crumbs a:hover{color:var(--text);text-decoration:underline}
.page .intro{color:var(--muted);max-width:60ch}
.page .posts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.post-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.post-card h2{font-size:clamp(22px,5vw,28px);line-height:1.15}
.post-card h2 a{color:var(--text);text-decoration:none}
.post-card h2 a:hover{text-decoration:underline}
.post-card .read{font-weight:600;color:var(--link);text-decoration:none;align-self:flex-start}
.post-card .read:hover{text-decoration:underline}
.page .date{color:var(--muted);font-size:14px;margin:0}
.post-body{display:flex;flex-direction:column;gap:16px}
.post-body h2{font-size:24px;margin-top:10px}
.post-body p,.post-body ul{max-width:65ch}
.post-body li::marker{color:var(--gold)}
.post-cta{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px}
.post-cta p{font-family:var(--display);font-size:22px;line-height:1.2}
