/* VOICE   occasion: a small games studio, warm and playful, but calm like its puzzles
   IDEA    the game board itself: the site is lit like Novenix at night, built from its rounded tiles
   PICTURE a 9x9 board mid-game drawn from tiles, with the phone showing the real game over it
   COLOUR  night aubergine ground, light lilac ink, the six block colours as accents (teal leads)
   TYPE    Nunito (self-hosted, rounded like the in-game lettering) for display and text
   LAYOUT  header, poster hero (text over board on phones), full-width bands, footer with contact */

@font-face{font-family:"Nunito";font-style:normal;font-display:swap;font-weight:200 1000;src:url(fonts/nunito-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-display:swap;font-weight:200 1000;src:url(fonts/nunito-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{color-scheme:dark;--bg:#150e1e;--bg2:#1e1529;--card:#271c35;--line:#3a2d4b;--ink:#f5f0fb;--soft:#bcb0cc;--teal:#2fc7bf;--blue:#4182ea;--red:#e8505a;--green:#33b277;--purple:#a463ea;--yellow:#f5b843}
*{box-sizing:border-box;min-width:0}
html{scroll-padding-top:80px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 "Nunito",ui-rounded,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-weight:500;overflow-x:clip}
a{color:var(--teal)}
a:focus-visible,button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:6px}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{line-height:1.08;letter-spacing:-.02em;text-wrap:balance;margin:0}
h1{font-size:clamp(40px,6.4vw,72px);font-weight:900}
h2{font-size:clamp(30px,3.6vw,44px);font-weight:900;margin-bottom:.4em}
h3{font-size:21px;font-weight:800;margin-bottom:.3em}
p{margin:.6em 0}
.wrap{max-width:1240px;margin:0 auto}
.band{padding-block:clamp(40px,6vw,88px);padding-left:max(5vw,16px,env(safe-area-inset-left,0px));padding-right:max(5vw,16px,env(safe-area-inset-right,0px))}
.alt{background:var(--bg2)}
.lead{font-size:clamp(18px,1.6vw,21px);color:var(--soft);max-width:36em}
.soft{color:var(--soft)}

/* header */
.top{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;padding:12px max(5vw,16px)}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:900;font-size:19px;margin-right:auto;min-height:44px}
.brand svg{width:30px;height:30px;flex:none}
.nav{display:flex;gap:4px 18px;flex-wrap:wrap;align-items:center}
.nav a{color:var(--soft);text-decoration:none;font-weight:700;padding:10px 2px}
.nav a:hover,.nav a[aria-current]{color:var(--ink)}
.nav .lang{border:1px solid var(--line);border-radius:999px;padding:6px 12px;color:var(--ink)}

/* hero */
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:center}
.hero p.lead{margin:1em 0 1.4em}
.board{position:relative;aspect-ratio:1/1;max-width:560px;width:100%;justify-self:end}
.board>svg{position:absolute;inset:0;width:100%;height:100%}
.phone{position:absolute;right:6%;bottom:-4%;width:44%;border-radius:22px;border:5px solid #0b0710;box-shadow:0 24px 50px -10px #000c;transform:rotate(4deg);overflow:hidden;background:#0b0710}
.phone img{width:100%}
.ctas{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:10px 22px;border-radius:14px;font-weight:800;text-decoration:none;background:var(--teal);color:#06211f;box-shadow:inset 0 -4px 0 #0002}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line);box-shadow:none}

/* store badges (placeholders until real links and official badges) */
.stores{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.store{display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:8px 18px 8px 14px;border-radius:12px;background:#000;color:#fff;border:1px solid #fff4;text-decoration:none;line-height:1.15}
.store svg{width:26px;height:26px;flex:none}
.store small{display:block;font-size:13px;color:#cfc6da;font-weight:600}
.store b{font-size:19px;font-weight:800}
.store.soon{opacity:.8;cursor:default}

/* game cards */
.games{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px;margin-top:28px}
.game{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:22px}
.game img.icon{width:96px;height:96px;border-radius:22px}
.game .links{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;font-weight:700}
.game .links a{padding:8px 0}
.tag{display:inline-block;font-size:14px;font-weight:800;color:var(--yellow);margin-bottom:4px}
.game.next{border-style:dashed;background:transparent}
.mini{display:grid;grid-template-columns:repeat(3,28px);gap:6px}
.mini i{width:28px;height:28px;border-radius:8px;border:2px dashed var(--line)}

/* principles */
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:28px 32px;margin-top:28px}
.pt{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}
.pt .sq{width:34px;height:34px;border-radius:10px;box-shadow:inset 0 -5px 0 #0003,inset 0 3px 0 #fff3}
.pt p{color:var(--soft);margin:.2em 0 0}

/* screenshots */
.shots{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 18px;margin-top:24px;scrollbar-color:var(--line) transparent}
.shots figure{flex:0 0 clamp(200px,24vw,260px);margin:0;scroll-snap-align:start}
.shots img{border-radius:20px;border:1px solid var(--line)}
.scroller-nav{display:flex;gap:10px;justify-content:flex-end}
.scroller-nav button{width:48px;height:48px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-size:22px;cursor:pointer}

/* steps and features */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px;margin-top:24px;counter-reset:s}
.step{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:22px}
.step svg{width:84px;height:84px;margin-bottom:10px}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start}
.list{list-style:none;padding:0;margin:.6em 0}
.list li{position:relative;padding-left:26px;margin:.45em 0}
.list li::before{content:"";position:absolute;left:0;top:.42em;width:14px;height:14px;border-radius:4px;background:var(--c,var(--teal))}
.callout{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:22px 24px}

/* legal pages */
.doc{max-width:46rem;margin:0 auto}
.doc h1{font-size:clamp(34px,4.5vw,48px)}
.doc h2{font-size:22px;margin:2em 0 .3em}
.doc .meta{color:var(--soft)}
.doc li{margin:.4em 0}
mark.todo{background:var(--yellow);color:#241600;border-radius:4px;padding:0 4px;font-weight:800}

/* footer */
.foot{border-top:1px solid var(--line);font-size:15px;color:var(--soft)}
.foot .wrap{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:24px}
.foot h3{font-size:16px;color:var(--ink)}
.foot ul{list-style:none;padding:0;margin:0}
.foot li a{display:inline-block;padding:6px 0;color:var(--soft)}
.foot li a:hover{color:var(--ink)}

@media(max-width:860px){.hero .wrap,.two{grid-template-columns:minmax(0,1fr)}.board{justify-self:center;max-width:460px}.foot .wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.foot .wrap>div:first-child{grid-column:1/-1}}
@media(max-width:520px){.nav{width:100%;justify-content:space-between}.game{grid-template-columns:minmax(0,1fr)}.game img.icon{width:80px;height:80px}.scroller-nav{display:none}}
@media(prefers-reduced-motion:no-preference){.phone{animation:float 6s ease-in-out infinite}@keyframes float{50%{transform:rotate(3deg) translateY(-8px)}}}
