/* Nimbelo Games website v1 (Designer, 2026-11-20).
   Plain CSS, system fonts only, no third-party requests, no JavaScript needed.
   Three themes on <body>: .studio (home, support), .switchlight, .peekwise.
   All text pairs checked: body text >= 7:1, small/secondary text >= 4.5:1. */

:root{
  color-scheme: dark;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: #F4F1E8;
  --radius: 20px;
  --max: 1080px;
  --gutter: 20px;
}

/* ---- themes ---- */
.studio{      --top:#15122A; --bottom:#211B3D; --surface:#2A2350; --raised:#3A3166; --text2:#D6D0E6; --muted:#B4ACCB; --accent:#C7B6FF; --onAccent:#15122A; --accentEdge:#8E7BD6; --line:#FFFFFF1F; }
.switchlight{ --top:#2A1E4F; --bottom:#8A3F5E; --surface:#34265E; --raised:#46356F; --text2:#E3D3E6; --muted:#BBA8CC; --accent:#FFC94D; --onAccent:#1A1300; --accentEdge:#C98F12; --line:#FFFFFF1F; }
.peekwise{    --top:#0E2F3B; --bottom:#144652; --surface:#15404C; --raised:#1F5566; --text2:#CFE3DF; --muted:#A9CBC6; --accent:#FF8A5C; --onAccent:#2B0F02; --accentEdge:#C2522A; --mint:#5CF2B5; --line:#FFFFFF1F; }

*{box-sizing:border-box}
html{background:var(--top)}
body{margin:0;font:17px/1.6 var(--font);color:var(--text);background:linear-gradient(var(--top),var(--bottom)) fixed;min-height:100vh;-webkit-text-size-adjust:100%}
img,svg{max-width:100%;display:block}
a{color:var(--text);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2.5px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.skip{position:absolute;left:-999px}.skip:focus{left:var(--gutter);top:8px;background:var(--surface);padding:8px 12px;z-index:9}

/* ---- header ---- */
.site-header{padding:18px 0}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.studio-name{font-weight:800;font-size:19px;letter-spacing:.3px;text-decoration:none;display:inline-flex;align-items:center;gap:10px}
.studio-mark{width:26px;height:26px;display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.studio-mark i{border-radius:2.5px;background:#FFFFFF2E}
.studio-mark i.on{background:#FFC94D}.studio-mark i.alt{background:#FF8A5C}.studio-mark i.mint{background:#5CF2B5}
.site-nav{display:flex;gap:18px;font-size:16px}
.site-nav a{text-decoration:none;color:var(--text2);padding:6px 2px}
.site-nav a[aria-current=page]{color:var(--text);text-decoration:underline}

/* ---- type ---- */
h1{font-size:clamp(34px,6vw,54px);line-height:1.1;margin:0 0 14px;font-weight:800;letter-spacing:-.5px}
h2{font-size:clamp(24px,3.4vw,30px);line-height:1.2;margin:0 0 12px;font-weight:750}
h3{font-size:19px;line-height:1.3;margin:0 0 6px}
.lead{font-size:clamp(18px,2.2vw,21px);color:var(--text2);max-width:36em;margin:0}
p{margin:0 0 12px}
section{padding:44px 0}
.muted{color:var(--muted)}

/* ---- buttons and pills ---- */
.btn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 22px;border-radius:14px;font-weight:750;font-size:17px;text-decoration:none;color:var(--onAccent);background:var(--accent);box-shadow:0 5px 0 var(--accentEdge);transition:transform 80ms,box-shadow 80ms}
.btn:active{transform:translateY(4px);box-shadow:0 1px 0 var(--accentEdge)}
.btn.quiet{background:var(--raised);color:var(--text);box-shadow:0 5px 0 #00000055}
.soon{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:999px;background:#0000004D;border:1.5px solid var(--line);color:var(--text);font-size:15px;font-weight:650}
.soon::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
/* When live: replace .soon with Google's official "Get it on Google Play" badge
   (Google's files and rules only, verify on the Google Play badge page). */

/* ---- home ---- */
.hero{padding-top:40px;padding-bottom:28px;position:relative}
.hero-cells{position:absolute;right:var(--gutter);top:22px;display:grid;grid-template-columns:repeat(5,34px);gap:8px;opacity:.55;pointer-events:none}
.hero-cells i{width:34px;height:34px;border-radius:9px;background:#FFFFFF14;border:1.5px solid #FFFFFF1F}
.hero-cells i.on{background:#FFC94D;border-color:#FFC94D;box-shadow:0 0 18px #FFC94D66}
.hero-cells i.alt{background:#FF8A5C;border-color:#FF8A5C;box-shadow:0 0 18px #FF8A5C55}
.hero-cells i.mint{background:#5CF2B5;border-color:#5CF2B5;box-shadow:0 0 18px #5CF2B555}
@media (max-width:760px){.hero-cells{position:static;grid-template-columns:repeat(5,22px);gap:6px;margin:0 0 20px;opacity:.7}.hero-cells i{width:22px;height:22px;border-radius:6px}}
.games{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}
.game-card{transition:transform 220ms cubic-bezier(.22,1,.36,1),box-shadow 220ms;border-radius:26px;padding:24px;display:flex;flex-direction:column;gap:14px;background:linear-gradient(var(--top),var(--bottom));border:1.5px solid var(--line);box-shadow:0 18px 40px #0006}
.game-card .head{display:flex;align-items:center;gap:16px}
.game-card .icon{width:76px;height:76px;border-radius:22%;overflow:hidden;flex:none;box-shadow:0 6px 16px #0007}
.game-card .wordmark{height:38px;width:auto}
.game-card p{color:var(--text2);margin:0}
.game-card .actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:auto}
.panel{background:var(--surface);border-radius:var(--radius);padding:26px;border:1.5px solid var(--line)}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}

/* ---- game pages ---- */
.game-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center;padding-top:30px;padding-bottom:44px}
@media (max-width:820px){.game-hero{grid-template-columns:1fr}}
.game-hero .id{display:flex;align-items:center;gap:18px;margin-bottom:18px;flex-wrap:wrap}
.game-hero .icon{width:96px;height:96px;border-radius:22%;overflow:hidden;box-shadow:0 8px 22px #0007}
.game-hero .wordmark{height:72px;width:auto}
.subtitle{margin:4px 0 0;font-weight:700;font-size:18px;color:var(--text2)}
.peekwise .shot{border:3px solid #08202A}
.sr-h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.shot{aspect-ratio:9/19.5;max-width:300px;width:100%;margin:0 auto;border-radius:30px;border:6px solid #0A0B14;background:var(--surface);box-shadow:0 18px 44px #0008;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:14px;padding:16px;overflow:hidden}
.shot img{width:100%;height:100%;object-fit:cover;border-radius:24px}
.points{display:grid;gap:30px}
.point{display:grid;grid-template-columns:1fr 240px;gap:28px;align-items:center}
.point:nth-child(even){grid-template-columns:240px 1fr}
.point:nth-child(even) .shot{order:-1}
@media (max-width:720px){.point,.point:nth-child(even){grid-template-columns:1fr}.point:nth-child(even) .shot{order:0}.point .shot{max-width:240px}}
.point .num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent);color:var(--onAccent);font-weight:800;margin-bottom:10px;box-shadow:0 3px 0 var(--accentEdge)}

/* ---- FAQ (native details, works without JS) ---- */
.faq{display:grid;gap:10px;max-width:780px}
.faq details{background:var(--surface);border:1.5px solid var(--line);border-radius:16px}
.faq summary{cursor:pointer;list-style:none;padding:16px 50px 16px 18px;font-weight:700;position:relative;min-height:48px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:20px;top:50%;width:10px;height:10px;border-right:2.5px solid var(--text2);border-bottom:2.5px solid var(--text2);transform:translateY(-70%) rotate(45deg);transition:transform 150ms}
.faq details[open] summary::after{transform:translateY(-30%) rotate(225deg)}
.faq .a{padding:0 18px 16px;color:var(--text2)}
.faq .a p:last-child{margin:0}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---- support ---- */
.mail{font-size:clamp(20px,3vw,26px);font-weight:750;word-break:break-word}
.checklist{margin:10px 0 0;padding-left:22px;color:var(--text2)}

/* ---- footer ---- */
.site-footer{border-top:1.5px solid var(--line);margin-top:30px;padding:24px 0 40px;font-size:15px;color:var(--text2)}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;justify-content:space-between}
.site-footer nav{display:flex;flex-wrap:wrap;gap:8px 20px}
.site-footer a{color:var(--text2)}

/* ---- motion (light touch; all of it off with prefers-reduced-motion) ---- */
@media (prefers-reduced-motion:no-preference){
  /* hero cells: a slow light wave, like a level being solved */
  .hero-cells i{animation:cellwave 6s ease-in-out infinite;animation-delay:calc(var(--d,0) * 120ms)}
  @keyframes cellwave{0%,70%,100%{filter:none;transform:none}78%{filter:brightness(1.6);transform:scale(1.08)}}
  /* game cards lift a little on hover/focus */
  .game-card:hover,.game-card:focus-within{transform:translateY(-4px);box-shadow:0 26px 50px #0008}
  /* soft glow on game icons */
  .game-hero .icon{animation:iconglow 4.8s ease-in-out infinite}
  @keyframes iconglow{50%{box-shadow:0 8px 34px color-mix(in srgb,var(--accent) 45%,transparent)}}
  /* FAQ answers ease in */
  .faq details[open] .a{animation:fadein 220ms ease-out}
  @keyframes fadein{from{opacity:0;transform:translateY(-4px)}}
}

/* ---- phones (360-430 px): header stays on one line ---- */
@media (max-width:430px){
  :root{--gutter:16px}
  body{font-size:16px}
  .studio-name{font-size:16px;gap:8px}
  .studio-mark{width:22px;height:22px}
  .site-nav{gap:12px;font-size:15px}
  .game-card{padding:20px}
  .game-card .icon{width:64px;height:64px}
  .game-hero .wordmark{height:54px}
  .game-card .wordmark{height:32px}
  .panel{padding:20px}
  section{padding:34px 0}
}

/* ---- legal pages (/privacy, /terms; added by the developer in the first build, kept here so rebuilds keep it) ---- */
.legal{max-width:780px;padding-top:24px;padding-bottom:48px}
.legal h1{margin-top:8px}
.legal h2{margin-top:32px;font-size:clamp(20px,2.6vw,23px);scroll-margin-top:16px}
.legal p,.legal li{color:var(--text2)}
.legal strong{color:var(--text)}
.legal li{margin:6px 0}
.legal code{font-size:.92em}
.legal .note{border-left:3px solid currentColor;padding-left:12px}
.langs{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.95em}
.langs a[aria-current]{font-weight:700;text-decoration:none}

/* ---- screenshots not ready yet: hide the empty frames (real screenshots only) ----
   Remove the "pending" class from a .shot when its real image goes in. */
.shot.pending{display:none}
.game-hero:has(.shot.pending){grid-template-columns:1fr;padding-bottom:20px}
.points:has(.shot.pending){grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.point:has(.shot.pending){display:block;background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius);padding:22px}
