/* Juices Merge — site styles
 *
 * Design tokens from the Stitch "Purple & Yellow" design, rebuilt as plain
 * CSS rather than loading Tailwind from a CDN: a crawler that cannot reach
 * the CDN would otherwise index an unstyled page, and every visitor pays a
 * round trip before the page can paint.
 */

:root{
  --surface:        #130C21;   /* page background */
  --surface-low:    #160D24;   /* nav, footer */
  --surface-card:   #1E1333;   /* cards, tables, FAQ items */
  --surface-cont:   #331355;   /* pills, raised chips */

  --fg:             #FFFFFF;
  --muted:          #B4A7C9;
  --border:         #3B255E;

  --amber:          #FBBF24;   /* the accent: links, highlights, star */
  --amber-soft:     #FDE68A;
  --violet:         #411865;   /* icon tiles */
  --violet-lift:    #5D3487;

  /* Kept so existing rules keep working; both now point at the amber accent. */
  --orange:         #FBBF24;
  --orange-deep:    #FBBF24;
  --mango:          #FBBF24;
  --sky:            #A78BFA;
  --teal:           #8B5CF6;
  --green:          #34D399;
  --pink:           #F472B6;

  --radius:         16px;
  --radius-sm:      12px;
  --shadow:         0 4px 20px -6px rgba(0,0,0,.55);
  --shadow-lg:      0 12px 38px -12px rgba(0,0,0,.7);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--surface);
  color:var(--fg);
  font:16px/1.7 "Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,
       "Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
::selection{background:rgba(251,191,36,.28);color:#130C21}

img{max-width:100%;height:auto}
table{max-width:100%}

.wrap{max-width:1040px;margin:0 auto;padding:0 20px}

/* ---------------------------------------------------------------- nav ---- */
nav.site{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--border);
  box-shadow:0 4px 24px -6px rgba(0,0,0,.5);
}
nav.site .wrap{
  display:flex; align-items:center; gap:18px;
  min-height:72px; flex-wrap:wrap; padding-top:10px; padding-bottom:10px;
}
nav.site a.brand{
  display:flex; align-items:center; gap:11px;
  text-decoration:none; color:var(--fg);
}
nav.site a.brand img{width:40px;height:auto;display:block}
nav.site a.brand .name{font-weight:800;font-size:1.02rem;line-height:1.15;letter-spacing:-.01em}
nav.site a.brand .studio{
  display:block;font-family:"Rubik",sans-serif;font-weight:600;
  font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--orange-deep);margin-top:1px;
}
nav.site .links{display:flex;gap:22px;margin-left:auto;flex-wrap:wrap;align-items:center}
nav.site .links a{
  color:var(--muted);text-decoration:none;font-size:.93rem;font-weight:600;
  transition:color .15s ease;
}
nav.site .links a:hover,nav.site .links a[aria-current]{color:var(--orange-deep)}

/* ---- official store badges ---- */
.store-badges{display:flex;gap:10px;flex-wrap:wrap}
.badge{
  display:inline-flex;align-items:center;gap:9px;
  background:#000;color:#fff;border:1px solid var(--border);text-decoration:none;
  padding:9px 16px;border-radius:10px;line-height:1.1;
  transition:transform .15s ease, box-shadow .15s ease;
}
.badge:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.badge svg{width:22px;height:22px;flex:0 0 auto;fill:#fff}
.badge .b-small{display:block;font-size:.58rem;letter-spacing:.04em;opacity:.92}
.badge .b-big{display:block;font-size:.95rem;font-weight:700;letter-spacing:-.01em}

/* --------------------------------------------------------------- hero ---- */
header.hero{
  position:relative;
  padding:52px 0 10px;
  isolation:isolate;
  overflow:hidden;
}
/* Gameplay screenshot behind the hero, held back by a purple wash so the
   white headline stays readable. Two layers rather than one: the image sits
   at low opacity, and a gradient on top deepens toward the page background
   so the banner fades out instead of ending on a hard edge. */
header.hero::before{
  content:"";
  position:absolute; inset:0; z-index:-2;
  background:url("/assets/banner.jpg") center 30% / cover no-repeat;
  opacity:.38;
}
header.hero::after{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg,
      rgba(19,12,33,.34) 0%,
      rgba(19,12,33,.52) 42%,
      rgba(19,12,33,.86) 74%,
      rgba(19,12,33,1) 100%),
    radial-gradient(1100px 420px at 78% -8%, rgba(139,92,246,.34), transparent 66%),
    radial-gradient(760px 340px at 8% 0%, rgba(251,191,36,.10), transparent 62%);
}
header.hero .inner{display:flex;gap:30px;align-items:center;flex-wrap:wrap}
header.hero img.logo{width:132px;height:auto;filter:drop-shadow(0 6px 20px rgba(139,92,246,.4))}
header.hero h1{
  font-size:2.7rem;line-height:1.08;margin:0 0 10px;
  font-weight:800;letter-spacing:-.025em;
}
header.hero p.lede{margin:0;color:var(--muted);font-size:1.12rem;max-width:52ch;line-height:1.6}

.cta{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0 12px;align-items:center}
.cta .ghost{
  display:inline-flex;align-items:center;gap:8px;
  background:transparent;color:var(--amber);
  border:1.5px solid var(--amber);
  text-decoration:none;padding:12px 22px;border-radius:10px;
  font-weight:700;font-size:.95rem;
  transition:background .15s ease,transform .15s ease;
}
.cta .ghost:hover{background:rgba(251,191,36,.12);transform:translateY(-1px)}

.meta{color:var(--muted);font-size:.88rem;margin:8px 0 0;display:flex;
  gap:8px;flex-wrap:wrap;align-items:center}
.meta .dot{opacity:.4}
.meta .star{color:var(--mango)}

/* ------------------------------------------------------------ content ---- */
main{padding-bottom:70px}
h2{
  font-size:1.62rem;font-weight:800;letter-spacing:-.02em;
  margin:52px 0 14px;padding-bottom:0;border:0;
}
h3{font-size:1.08rem;font-weight:700;margin:26px 0 6px;letter-spacing:-.01em}
p{margin:0 0 15px}
ul,ol{padding-left:22px;margin:0 0 15px}
li{margin:7px 0}
a{color:var(--orange-deep)}

.lead{font-size:1.08rem;line-height:1.72}
/* The design highlights the game name where it first appears in prose. */
.lead > strong:first-child{color:var(--amber)}
h3 strong,p strong{color:var(--fg)}
.rule{height:1px;background:var(--border);border:0;margin:46px 0 0}

/* ---- feature cards ---- */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:26px 0}
@media (max-width:640px){.cards{grid-template-columns:1fr}}
.card{
  background:var(--surface-card);border:1px solid var(--border);
  border-radius:var(--radius);padding:22px 24px;box-shadow:var(--shadow);
}
.card .ic{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  margin-bottom:12px;font-size:19px;
}
.card .ic.o,.card .ic.s,.card .ic.g,.card .ic.m{background:var(--violet)}
.card h3{margin:0 0 6px;font-size:1.05rem}
.card p{margin-bottom:0;color:var(--muted);font-size:.95rem;line-height:1.62}

/* ---- video ---- */
.video-row{display:flex;gap:34px;align-items:center;margin:22px 0 8px;flex-wrap:wrap}
.video-copy p:last-child{margin-bottom:0}
.video-copy{flex:1 1 320px;min-width:0}
.video-copy p:first-child{margin-top:0}
.video{
  position:relative;border-radius:22px;overflow:hidden;
  border:1px solid var(--border);box-shadow:var(--shadow-lg);background:#000;
  aspect-ratio:9/16;width:288px;flex:0 0 auto;
}
.video-play{display:block;width:100%;height:100%;padding:0;border:0;cursor:pointer;
  background:none;position:relative}
.video-play img{width:100%;height:100%;object-fit:cover;display:block}
.video-btn{
  position:absolute;inset:0;margin:auto;width:78px;height:78px;border-radius:50%;
  background:var(--amber);
  border:3px solid rgba(19,12,33,.85);
  box-shadow:0 0 0 10px rgba(19,12,33,.35), 0 10px 30px rgba(0,0,0,.6);
  transition:transform .18s ease,background .18s ease;
}
.video-btn::after{
  content:"";position:absolute;inset:0;margin:auto;width:0;height:0;
  border-style:solid;border-width:11px 0 11px 19px;
  border-color:transparent transparent transparent #130C21;
  border-width:13px 0 13px 22px;
  transform:translateX(2px);
}
.video-play:hover .video-btn{transform:scale(1.07);background:var(--amber-soft)}
.video-play:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.video iframe{width:100%;height:100%;border:0;display:block}
@media (max-width:660px){
  .video{width:100%;max-width:300px;margin:0 auto}
  .video-row{gap:20px}
}

/* ---- screenshots ---- */
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}
@media (max-width:700px){.shots{grid-template-columns:repeat(2,1fr);gap:13px}}
.shots figure{
  margin:0;background:var(--surface-card);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
}
.shots img{width:100%;height:auto;display:block}
.shots figcaption{
  color:var(--muted);font-size:.85rem;padding:12px 14px;line-height:1.5;
  border-top:1px solid var(--border);
}

/* ---- step + screenshot ---- */
.step-with-shot{display:grid;grid-template-columns:1fr 216px;gap:30px;
  align-items:start;margin:0 0 10px}
.step-with-shot .step-text > :first-child{margin-top:0}
.step-with-shot figure{margin:0}
.step-with-shot img{width:100%;height:auto;display:block;border-radius:var(--radius-sm);
  border:1px solid var(--border);box-shadow:var(--shadow)}
.step-with-shot figcaption{color:var(--muted);font-size:.82rem;margin-top:9px;line-height:1.5}
@media (max-width:760px){
  .step-with-shot{grid-template-columns:1fr;gap:18px}
  .step-with-shot figure{max-width:280px;margin:0 auto}
  .step-with-shot figcaption{text-align:center}
}

/* ---- facts table ---- */
table.facts{width:100%;border-collapse:separate;border-spacing:0;margin:18px 0;
  font-size:.95rem;background:var(--surface-card);
  border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
table.facts th,table.facts td{padding:13px 18px;text-align:left;vertical-align:top;
  border-bottom:1px solid var(--border)}
table.facts tr:last-child th,table.facts tr:last-child td{border-bottom:0}
table.facts th{width:36%;font-weight:700;color:var(--fg);background:var(--surface-cont)}
table.facts td{color:var(--muted)}

/* ---- FAQ ---- */
.qa{display:grid;gap:14px;margin:22px 0}
.qa-item{background:var(--surface-card);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px 24px;box-shadow:var(--shadow)}
.qa-item h3{margin:0 0 7px;font-size:1.04rem}
.qa-item p{margin:0;color:var(--muted);line-height:1.68}
.qa-item p + p{margin-top:10px}

/* ---- callout ---- */
.note{
  border-left:4px solid var(--amber);
  background:linear-gradient(90deg, rgba(251,191,36,.08), transparent 72%);
  padding:16px 22px;border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  margin:24px 0;color:var(--muted);font-size:.96rem;line-height:1.65;
}
.note strong{color:var(--fg)}

/* ---- footer ---- */
footer.site{
  border-top:1px solid var(--border);background:var(--surface-low);
  padding:34px 0;color:var(--muted);font-size:.9rem;
}
footer.site .wrap{display:flex;gap:18px;flex-wrap:wrap;align-items:center}
footer.site .links{margin-left:auto;display:flex;gap:20px;flex-wrap:wrap}
footer.site a{color:var(--muted);text-decoration:none}
footer.site a:hover{color:var(--orange-deep)}

/* ---- responsive ---- */
@media (max-width:760px){
  header.hero{padding-top:34px}
  header.hero::before{opacity:.32;background-position:center 22%}
  header.hero::after{
    background:
      linear-gradient(180deg,
        rgba(19,12,33,.30) 0%,
        rgba(19,12,33,.58) 34%,
        rgba(19,12,33,.90) 62%,
        rgba(19,12,33,1) 84%),
      radial-gradient(700px 320px at 70% -6%, rgba(139,92,246,.30), transparent 66%);
  }
  header.hero h1{font-size:2rem}
  header.hero .inner{gap:20px}
  header.hero img.logo{width:104px}
  header.hero p.lede{font-size:1.02rem}
  nav.site .links{width:100%;margin-left:0;gap:18px}
  /* Never hide the store buttons — they are the page's purpose. Compact
     them instead so they still fit on the top row beside the logo. */
  nav.site .wrap{min-height:0;gap:8px 14px;padding-top:8px;padding-bottom:9px}
  nav.site a.brand{order:1;gap:8px;margin-right:auto}
  nav.site a.brand img{width:30px}
  nav.site a.brand .name{font-size:.9rem}
  nav.site a.brand .studio{display:none}
  nav.site .store-badges{order:3;width:100%;gap:8px;margin-left:0}
  nav.site .store-badges .badge{flex:1 1 0;min-width:0;justify-content:center}
  nav.site .badge{padding:10px 14px;gap:7px;border-radius:10px;min-height:44px}
  nav.site .badge svg{width:20px;height:20px}
  nav.site .badge .b-small{display:none}
  nav.site .badge .b-big{font-size:.86rem;white-space:nowrap}
  nav.site .links{order:2;width:auto;margin-left:0;gap:16px}
  nav.site .links a{font-size:.86rem}
  h2{font-size:1.36rem;margin-top:42px}
  .cta{gap:10px}
  /* The two store buttons share one row; "How to play" gets its own below.
     .store-badges is the wrapper around the pair, so it takes the full width
     and splits it between them. */
  .cta{flex-direction:column;align-items:stretch}
  .cta .store-badges{width:100%;gap:10px;flex-wrap:nowrap}
  .cta .badge{flex:1 1 0;min-width:0;justify-content:center;padding:12px 10px;gap:7px}
  .cta .badge .b-small{font-size:.54rem}
  .cta .badge .b-big{font-size:.86rem;white-space:nowrap}
  .cta .ghost{width:100%;justify-content:center;padding:13px 18px}
  table.facts th{width:44%}
  table.facts th,table.facts td{padding:11px 13px;font-size:.92rem}
}

/* ---- consent banner ---- */
body.has-consent{padding-bottom:138px}
@media (max-width:560px){body.has-consent{padding-bottom:210px}}

.consent{
  position:fixed;left:16px;right:16px;bottom:16px;max-width:660px;margin:0 auto;
  background:var(--surface-card);border:1px solid var(--border);
  border-radius:var(--radius);padding:18px 22px;
  box-shadow:0 10px 40px rgba(0,0,0,.6);z-index:60;
  display:flex;gap:18px;align-items:center;flex-wrap:wrap;
}
.consent p{margin:0;flex:1 1 300px;font-size:.9rem;color:var(--muted);line-height:1.6}
.consent p strong{color:var(--fg);font-size:.97rem;font-weight:700}
.consent-buttons{display:flex;gap:10px;flex-wrap:wrap}
.consent button{
  font:inherit;font-size:.9rem;font-weight:700;padding:10px 22px;
  border-radius:10px;cursor:pointer;border:1.5px solid var(--amber);
}
.consent .yes{background:var(--amber);color:#130C21}
.consent .no{background:transparent;color:var(--amber)}
.consent button:hover{opacity:.9}
@media (max-width:560px){
  .consent{padding:16px 18px}
  .consent-buttons{width:100%}
  .consent button{flex:1}
}

/* ---- very narrow phones (iPhone SE and similar) ---- */
@media (max-width:360px){
  .wrap{padding:0 14px}
  nav.site .wrap{gap:10px}
  nav.site a.brand .studio{display:none}
  nav.site a.brand .name{font-size:.92rem}
  nav.site a.brand img{width:32px}
  nav.site a.brand .name{display:none}
  nav.site .badge{padding:9px 11px;gap:6px;min-height:42px}
  nav.site .badge svg{width:18px;height:18px}
  nav.site .badge .b-big{font-size:.8rem}
  nav.site .links{gap:14px}
  nav.site .links a{font-size:.88rem}
  header.hero h1{font-size:1.8rem}
  /* Long values (the platform list, the package name) push the table wider
     than the screen unless they are allowed to break. */
  table.facts{display:block;overflow-x:hidden}
  table.facts th,table.facts td{padding:9px 10px;font-size:.87rem;
    word-break:break-word;overflow-wrap:anywhere}
  table.facts th{width:40%}
}
