/* BavaGames studio framing. BavaQuest retains its own original product artwork. */
body[data-view='apps']{
  background:#071824;
}
body[data-view='apps']::before{background:radial-gradient(150% 120% at 50% 30%,transparent 68%,#0005)}
body[data-view='apps'] main{
  --void:#081922;--void-2:#0c202b;--void-3:#05121c;--gold:#cbbc9b;--gold-bright:#f1dca9;--gold-deep:#99855d;
  --parchment:#f0eee7;--parchment-dim:#d1dde0;--parchment-faint:#a6bdc7;
  --line:#93c7d12b;--edge:#c6d9d14f;
  position:relative;isolation:isolate;padding-top:92px;
}
body[data-view='apps'] main::before{
  content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(#051826cb,#051826ee),url('/assets/bava-entrance/games-scene.webp') center 45%/cover;
}
body[data-view='apps'] #nav{
  min-height:76px;padding:10px clamp(18px,3vw,48px);gap:16px;
  background:linear-gradient(180deg,#071b29f5,#071b29d9);border-bottom:1px solid #c4dddf26;
  box-shadow:0 6px 22px #0003;backdrop-filter:blur(16px);
}
body[data-view='apps'] #nav .nav-mark{
  display:grid;grid-template-columns:minmax(0,1fr);place-items:center;flex:0 0 auto;width:clamp(132px,17vw,194px);min-height:48px;
  padding:0;border:0;border-radius:4px;background:transparent;appearance:none;color:#eee6d3;
  font:600 25px/1 'Cormorant Garamond',Georgia,serif;letter-spacing:0;text-transform:none;
}
body[data-view='apps'] #nav .games-nav-brand,body[data-view='apps'] #nav .games-nav-fallback{grid-area:1/1}
body[data-view='apps'] #nav .games-nav-brand{width:100%;height:auto;opacity:0;filter:drop-shadow(0 2px 4px #0008)}
body[data-view='apps'] #nav .nav-mark[data-ready='true'] .games-nav-brand{opacity:1}
body[data-view='apps'] #nav .nav-mark[data-ready='true'] .games-nav-fallback{opacity:0}
body[data-view='apps'] #nav .nav-links{gap:clamp(12px,2vw,30px)}
body[data-view='apps'] #nav .nav-links a{
  font:400 14px/1.3 'Outfit',sans-serif;letter-spacing:.02em;text-transform:none;color:#d9e5e8;
}
body[data-view='apps'] #nav .nav-links .cta{
  min-height:44px;display:inline-flex;align-items:center;padding:10px 18px;
  color:#10212a;background:linear-gradient(140deg,#fff0c8,#dfc28b);border:1px solid #f9e8bd;
  border-radius:7px;box-shadow:0 2px 8px #0004;animation:none!important;
}
body[data-view='apps'] #nav #lang-select{
  min-height:44px;max-width:130px;padding:8px 28px 8px 12px;
  border:1px solid #91b9c34d;border-radius:7px;background-color:#102a3b;color:#e8eef0;
  font:400 13px/1.3 'Outfit',sans-serif;letter-spacing:0;text-transform:none;
}
body[data-view='apps'] #top.hero{
  display:grid;grid-template-columns:minmax(0,1fr);align-items:center;justify-content:initial;
  width:calc(100% - 40px);max-width:1480px;min-height:0;margin:0 auto;padding:32px 24px 0;
  overflow:hidden;border:1px solid #d8c39068;border-radius:24px;text-align:center;
  background:#0a161d;box-shadow:0 18px 60px #0005;
}
body[data-view='apps'] #top .hero-media{transform:none!important}
body[data-view='apps'] #top .hero-poster{
  animation:none!important;transform:none!important;object-position:66% 40%;opacity:.8;filter:saturate(.92);
}
body[data-view='apps'] #top .hero-media video{opacity:.65;filter:saturate(.92)}
body[data-view='apps'] #top .hero-scrim{
  background:linear-gradient(180deg,#071827d9,#071827a8 45%,#06151f26 75%,#06151f88);
}
body[data-view='apps'] #top .hero-inner{
  grid-column:1;grid-row:1;max-width:680px;width:100%;margin:0 auto;opacity:1!important;
  transform:none!important;animation:none!important;transition:none!important;text-align:center;
}
body[data-view='apps'] #top .studio-lockup{
  justify-content:center;gap:8px;margin:0 0 18px;animation:none!important;opacity:.78;
}
body[data-view='apps'] #top .sl-brand{
  font:500 12px/1.3 'Outfit',sans-serif;letter-spacing:.02em;background:none;
  color:#d9dfdb;-webkit-text-fill-color:currentColor;filter:none;text-shadow:0 1px 3px #000;
}
body[data-view='apps'] #top .sl-presents{font:400 12px/1.3 'Outfit',sans-serif;letter-spacing:0;color:#d9dfdb;text-transform:none}
body[data-view='apps'] #top .sl-rule{display:none}
body[data-view='apps'] #top .sl-dia{font-size:5px;animation:none!important;color:#d7c599}
body[data-view='apps'] #top .hero-kicker{
  margin:0 0 16px;color:#f3d998;font:400 13px/1.4 'Outfit',sans-serif;
  letter-spacing:.07em;text-transform:none;text-indent:0;animation:none!important;
}
body[data-view='apps'] #top .wordmark{
  width:100%;font-size:clamp(42px,10vw,66px);line-height:1.05;letter-spacing:-.035em;
  background:none!important;color:#f5efdf;-webkit-text-fill-color:#f5efdf;
  filter:drop-shadow(0 2px 3px #0008);text-shadow:none;opacity:1!important;transform:none!important;animation:none!important;
}
body[data-view='apps'] #top .wordmark b{
  background:linear-gradient(#fff3cf,#e6c177);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;animation:none!important;filter:none;
}
body[data-view='apps'] #top .hero-sub{
  max-width:560px;margin:20px auto 0;font:400 16px/1.7 'Outfit',sans-serif;color:#dce5e5;
  letter-spacing:0;animation:none!important;text-shadow:0 2px 6px #0008;
}
body[data-view='apps'] #top .hero-sub b{color:#fff2d6;font-weight:500}
body[data-view='apps'] #top .hero-cta-row{gap:12px;margin-top:26px;justify-content:center;animation:none!important}
body[data-view='apps'] main .btn{
  min-height:48px;display:inline-flex;align-items:center;justify-content:center;
  padding:13px 22px;font:500 14px/1.4 'Outfit',sans-serif;letter-spacing:.015em;text-transform:none;border-radius:7px;
}
body[data-view='apps'] #top .btn-primary{
  background:linear-gradient(145deg,#ffebbc,#ddbd80);color:#12212a;border:1px solid #ffecc0;animation:none!important;
  box-shadow:0 5px 18px #0005;
}
body[data-view='apps'] #top .btn-primary::after{display:none}
body[data-view='apps'] #top .btn-ghost{background:#092331bb;border-color:#accfd278;color:#eef3ef}
body[data-view='apps'] #top .hero-inner>.gp-badge{display:none}
body[data-view='apps'] #top .hero-proof{
  max-width:470px;margin:18px auto 0;color:#afc3ca;font:400 11px/1.7 'Outfit',sans-serif;
  letter-spacing:0;text-transform:none;animation:none!important;
}
body[data-view='apps'] #top .hero-figure{
  position:relative;grid-row:2;grid-column:1;inset:auto!important;justify-self:center;align-self:end;
  width:100%;max-width:390px;height:clamp(270px,68vw,400px);margin:12px 0 0;
  object-fit:contain;object-position:center bottom;opacity:1!important;transform:none!important;animation:none!important;
  filter:drop-shadow(0 14px 28px #0009);pointer-events:none;
}
body[data-view='apps'] #top .hero-aura,body[data-view='apps'] #top .wow-hero-glow,body[data-view='apps'] #top .scroll-cue{display:none}
body[data-view='apps'] #top #rift-fx{opacity:.45;pointer-events:none}
body[data-view='apps'] main .proof-strip{
  width:calc(100% - 56px);max-width:1160px;margin:0 auto;padding:28px 12px;
  border:0;border-bottom:1px solid #a3c5cf38;background:transparent;box-shadow:none;gap:18px;
}
body[data-view='apps'] main .proof-num{font-family:'Outfit',sans-serif;font-weight:500;font-size:22px;letter-spacing:0;color:#e4d9b9}
body[data-view='apps'] main .proof-cap{font:400 11px/1.5 'Outfit',sans-serif;letter-spacing:.02em;text-transform:none;color:#a8c2ce}
body[data-view='apps'] main .sec-head{margin-bottom:36px}
body[data-view='apps'] main .sec-eyebrow{
  font:400 13px/1.5 'Outfit',sans-serif;letter-spacing:.04em;text-indent:0;text-transform:none;color:#a9c9d4;margin-bottom:12px;
}
body[data-view='apps'] main .sec-eyebrow::before,body[data-view='apps'] main .sec-eyebrow::after{display:none}
body[data-view='apps'] main .sec-title{font-size:clamp(28px,3.7vw,46px);line-height:1.2}
body[data-view='apps'] main .sec-lede{font:400 16px/1.75 'Outfit',sans-serif;color:#bed0d7;max-width:610px;margin-top:18px}
body[data-view='apps'] main .hairline{background:linear-gradient(90deg,transparent,#a6c7cb45,transparent)}
body[data-view='apps'] main :is(#realms,#apps,#showcase,#leaderboard,#pillars,#forge,#gallery,#studio){background-color:transparent}
body[data-view='apps'] main :is(.realm,.game-tile){border-color:#a4c6ce63;border-radius:16px;box-shadow:0 14px 36px #0005;background-color:#102634}
body[data-view='apps'] main .realm-content{background:linear-gradient(transparent,#081925eb 28%);padding-top:58px}
body[data-view='apps'] main .realm-tag{font:400 12px/1.4 'Outfit',sans-serif;letter-spacing:.025em;text-transform:none;color:#afd0de}
body[data-view='apps'] main .realm-desc{font-weight:400;color:#c7d9df;line-height:1.7}
body[data-view='apps'] main .realm-badge{background:#071c2bea;border:1px solid #bfd3d54d;border-radius:6px;color:#e4e5d5;backdrop-filter:blur(10px)}
body[data-view='apps'] main .tile-body{background:linear-gradient(135deg,#153449,#0b202e);padding:24px}
body[data-view='apps'] main .tile-name{font-size:30px;color:#f1e4c7}
body[data-view='apps'] main .tile-desc{font-weight:400;color:#c4d7df;line-height:1.65}
body[data-view='apps'] main .tile-art{border-bottom:1px solid #b6d0d44a}
body[data-view='apps'] main .tile-badge{background:#102938e8;color:#f3e3bb;border:1px solid #d3cca269;border-radius:5px}
body[data-view='apps'] main .tile-soon{opacity:.82}
body[data-view='apps'] main .spotlight{background:#0b2130;border-color:#adc4cd40;border-radius:16px}
body[data-view='apps'] main .spot-thumb{border-radius:9px;border-color:#a2c2cf40}
body[data-view='apps'] main .spot-thumb.active{border-color:#edcd8c}
body[data-view='apps'] main :is(.pillar,.leaderboard-panel){background:#0a2030cc;border-color:#9cbec537;border-radius:14px}
body[data-view='apps'] main #studio{background:linear-gradient(180deg,transparent,#04101bcc)}
body[data-view='apps'] :is(a,button,select):focus-visible{outline:3px solid #c8e8f6;outline-offset:4px}
@media(min-width:600px) and (min-aspect-ratio:1/1), (min-width:980px){
  body[data-view='apps'] #top.hero{
    grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);min-height:min(740px,calc(100svh - 108px));
    padding:clamp(28px,4vw,66px) clamp(24px,4vw,68px);gap:0;text-align:start;
  }
  body[data-view='apps'] #top .hero-inner{grid-row:1;grid-column:1;z-index:3;text-align:start;max-width:610px;margin:0}
  body[data-view='apps'] #top .studio-lockup,body[data-view='apps'] #top .hero-cta-row{justify-content:flex-start}
  body[data-view='apps'] #top .hero-kicker,body[data-view='apps'] #top .hero-proof{margin-inline:0;text-align:start}
  body[data-view='apps'] #top .wordmark{font-size:clamp(34px,5.65vw,88px)}
  body[data-view='apps'] #top .hero-sub{margin-inline:0;font-size:clamp(14px,1.35vw,18px)}
  body[data-view='apps'] #top .hero-figure{
    grid-row:1;grid-column:2;max-width:none;width:118%;height:clamp(340px,64svh,650px);max-height:700px;
    margin:-10px 0 -30px;margin-inline-end:-18%;align-self:end;z-index:2;
  }
  body[data-view='apps'] #top .hero-scrim{background:linear-gradient(var(--games-scrim-angle,90deg),#071825e8,#071825b5 34%,#07182522 70%),linear-gradient(0deg,#06141dab,transparent 35%)}
  body[data-view='apps'] #top .hero-poster{object-position:70% 46%;opacity:.88}
  body[data-view='apps'] #top #rift-fx{clip-path:var(--games-rift-clip,inset(0 0 0 45%))}
}
@media(min-width:600px) and (max-width:820px) and (min-aspect-ratio:1/1){
  body[data-view='apps'] #top.hero{width:calc(100% - 28px);padding:26px 22px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
  body[data-view='apps'] #top .hero-sub{font-size:14px;line-height:1.6;margin-top:16px}
  body[data-view='apps'] #top .hero-cta-row{margin-top:20px;gap:10px}
  body[data-view='apps'] #top .btn{font-size:12px;padding:11px 14px;min-height:44px}
  body[data-view='apps'] #top .hero-figure{width:135%;height:360px;margin-inline-start:-8%;margin-inline-end:-30%;margin-bottom:0}
  body[data-view='apps'] #top .hero-proof{font-size:10px;line-height:1.5}
  body[data-view='apps'] #top .studio-lockup{gap:5px;margin-bottom:14px}
  body[data-view='apps'] #top .sl-brand,body[data-view='apps'] #top .sl-presents{font-size:10px}
}
@media(max-width:760px){
  body[data-view='apps'] #nav .nav-hide{display:none}
}
@media(max-width:599px){
  body[data-view='apps'] main{padding-top:82px}
  body[data-view='apps'] #nav{padding:8px 14px;gap:10px;min-height:68px}
  body[data-view='apps'] #nav .nav-mark{width:120px;min-height:44px;font-size:22px}
  body[data-view='apps'] #nav .nav-links{gap:8px}
  body[data-view='apps'] #nav .nav-links .cta{padding:10px;font-size:12px;min-height:44px}
  body[data-view='apps'] #nav #lang-select{max-width:99px;padding:8px 21px 8px 8px;font-size:12px}
  body[data-view='apps'] #top.hero{width:calc(100% - 24px);padding:26px 18px 0;border-radius:18px}
  body[data-view='apps'] #top .hero-sub{font-size:15px;line-height:1.65;margin-top:18px}
  body[data-view='apps'] #top .hero-cta-row{display:grid;grid-template-columns:1fr;gap:10px;margin-top:22px}
  body[data-view='apps'] #top .btn{width:100%;font-size:14px;min-height:48px;padding:12px}
  body[data-view='apps'] #top .hero-proof{font-size:10px;max-width:300px;margin-top:14px}
  body[data-view='apps'] #top .studio-lockup{margin-bottom:14px}
  body[data-view='apps'] main .proof-strip{width:calc(100% - 32px);padding:24px 8px;gap:14px}
  body[data-view='apps'] main .sec-lede{font-size:15px}
  body[data-view='apps'] main .tile-body{padding:22px}
}
@media(max-width:370px){
  body[data-view='apps'] #nav .nav-mark{width:110px}
  body[data-view='apps'] #nav{padding-inline:12px;gap:8px}
  body[data-view='apps'] #nav .nav-links{gap:6px}
}
@media(prefers-reduced-motion:reduce){
  body[data-view='apps'] #top *,body[data-view='apps'] #top *::before,body[data-view='apps'] #top *::after{animation:none!important;transition:none!important}
}

html[dir='rtl'] body[data-view='apps'] #top{--games-scrim-angle:270deg;--games-rift-clip:inset(0 45% 0 0)}
html[dir='rtl'] body[data-view='apps'] #nav #lang-select{padding:8px 12px 8px 28px;background-position:left 11px center}
@media(max-width:599px){
  html[dir='rtl'] body[data-view='apps'] #nav #lang-select{padding:8px 8px 8px 21px}
}

body[data-view='apps'] #nav .games-nav-fallback{max-width:100%;min-width:0;font:600 clamp(14px,4.2vw,18px)/1 'Cormorant Garamond',Georgia,serif;white-space:nowrap}
@media(max-width:599px){
  body[data-view='apps'] #nav .nav-mark{flex:0 1 120px;min-width:90px;max-width:120px}
  body[data-view='apps'] #nav .nav-links{min-width:0}
  body[data-view='apps'] #nav .nav-links .cta{max-width:105px;white-space:normal;text-align:center;line-height:1.15}
}

@media(min-width:600px) and (max-height:500px) and (min-aspect-ratio:1/1){
  body[data-view='apps'] #nav{min-height:60px;padding-block:5px}
  body[data-view='apps'] #nav .nav-mark{width:146px;min-height:48px}
  body[data-view='apps'] main{padding-top:72px}
  body[data-view='apps'] #top.hero{min-height:0;padding:20px 30px}
  body[data-view='apps'] #top .studio-lockup{display:none}
  body[data-view='apps'] #top .hero-kicker{font-size:12px;margin-bottom:10px}
  body[data-view='apps'] #top .wordmark{font-size:clamp(32px,5vw,54px)}
  body[data-view='apps'] #top .hero-sub{font-size:14px;line-height:1.55;margin-top:12px}
  body[data-view='apps'] #top .hero-cta-row{margin-top:18px;gap:10px}
  body[data-view='apps'] #top .btn{min-height:44px;padding:10px 15px;font-size:12px}
  body[data-view='apps'] #top .hero-proof{margin-top:12px;font-size:10px;line-height:1.5}
  body[data-view='apps'] #top .hero-figure{height:min(70svh,310px);margin-block:0}
}

/* A single invitation to the other world, inside the BavaGames page. */
body[data-view='apps'] #realms.world-connection{
  position:relative;isolation:isolate;display:flex;align-items:center;
  width:calc(100% - 64px);max-width:1160px;min-height:380px;
  margin:62px auto 72px;padding:0;overflow:hidden;border:1px solid #d4b98588;border-radius:20px;
  background:#102736;box-shadow:0 18px 44px #0005;
}
body[data-view='apps'] #realms.world-connection>.seam{display:none}
body[data-view='apps'] #realms.world-connection::before{
  content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#0a1b2cf5,#111c32dc 40%,#121c3240 75%,#15112026);
}
body[data-view='apps'] .connection-art{position:absolute;inset:0;z-index:-2;pointer-events:none}
body[data-view='apps'] .connection-art img{
  display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:76% 49%;
}
body[data-view='apps'] .connection-content{width:58%;max-width:620px;padding:38px clamp(28px,4vw,50px);text-align:start}
body[data-view='apps'] .connection-eyebrow{
  font:400 13px/1.4 'Outfit',sans-serif;letter-spacing:.035em;color:#d9d1be;margin:0 0 8px;
}
body[data-view='apps'] .connection-wordmark{
  display:grid;grid-template-columns:minmax(0,1fr);place-items:center;width:min(100%,390px);margin:0;
  font:600 clamp(32px,4vw,58px)/1.1 'Cormorant Garamond',Georgia,serif;color:#f2d28b;
}
body[data-view='apps'] .connection-brand,body[data-view='apps'] .connection-wordmark-fallback{grid-area:1/1;min-width:0;max-width:100%}
body[data-view='apps'] .connection-brand{display:block;width:100%;height:auto;opacity:0;filter:drop-shadow(0 4px 9px #000a)}
body[data-view='apps'] .connection-wordmark[data-ready='true'] .connection-brand{opacity:1}
body[data-view='apps'] .connection-wordmark[data-ready='true'] .connection-wordmark-fallback{opacity:0}
body[data-view='apps'] .connection-description{
  max-width:400px;font:400 16px/1.7 'Outfit',sans-serif;color:#e1e8e6;margin:8px 0 24px;text-shadow:0 2px 6px #0008;
}
body[data-view='apps'] main .connection-enter{
  min-height:48px;padding:12px 24px;border:1px solid #ffedc1;border-radius:7px;
  color:#14212c;background:linear-gradient(145deg,#fff0be,#ddb877);box-shadow:0 4px 14px #0005;
}
body[data-view='apps'] main .connection-enter:hover{background:linear-gradient(145deg,#fff7d8,#edc989);box-shadow:0 6px 18px #0006}
body[data-view='apps'] #nav .world-nav-link{
  appearance:none;border:0;background:transparent;padding:8px 2px;min-height:44px;cursor:pointer;
  color:#e7dcc3;font:400 14px/1.3 'Outfit',sans-serif;letter-spacing:.02em;
}
body[data-view='apps'] #nav .world-nav-link:hover{color:#fff0c5}
body[data-view='apps'] #studio .worlds-footer-link{
  margin-inline-start:12px;border-color:#a6c9cf80;background:#0e2839bd;color:#e9e7d7;
}
html[dir='rtl'] body[data-view='apps'] #realms.world-connection::before{
  background:linear-gradient(270deg,#0a1b2cf5,#111c32dc 40%,#121c3240 75%,#15112026);
}
@media(max-width:820px) and (min-width:621px){
  body[data-view='apps'] #realms.world-connection{width:calc(100% - 40px);min-height:350px}
  body[data-view='apps'] .connection-content{width:65%;padding:30px}
  body[data-view='apps'] .connection-description{font-size:15px;line-height:1.65}
}
@media(max-width:620px){
  body[data-view='apps'] #realms.world-connection{
    width:calc(100% - 28px);min-height:480px;margin:40px auto 48px;align-items:flex-end;padding-top:145px;border-radius:18px;
  }
  body[data-view='apps'] #realms.world-connection::before,
  html[dir='rtl'] body[data-view='apps'] #realms.world-connection::before{
    background:linear-gradient(180deg,#081c2b22,#0a1c2b38 23%,#101a2fdf 57%,#0b192afa);
  }
  body[data-view='apps'] .connection-art img{object-position:center 37%}
  body[data-view='apps'] .connection-content{width:100%;max-width:none;text-align:center;padding:28px 24px}
  body[data-view='apps'] .connection-wordmark{width:min(100%,330px);margin-inline:auto}
  body[data-view='apps'] .connection-description{font-size:15px;line-height:1.65;margin:6px auto 22px;max-width:350px}
  body[data-view='apps'] main .connection-enter{width:100%;max-width:300px}
  body[data-view='apps'] #studio .btn-primary,body[data-view='apps'] #studio .worlds-footer-link{
    display:flex;width:min(100%,300px);margin-inline:auto;
  }
  body[data-view='apps'] #studio .worlds-footer-link{margin-top:12px}
}

/* Full-width BavaQuest opening, with the game's original art and character. */
body[data-view='apps'] main{padding-top:76px}
body[data-view='apps'] #top.hero{
  width:100%;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none;
  padding:38px 24px 0;isolation:isolate;
}
body[data-view='apps'] #top.hero::after{
  content:'';position:absolute;inset:auto 0 0;height:90px;z-index:2;pointer-events:none;
  background:linear-gradient(transparent,#081922);
}
body[data-view='apps'] #top .hero-poster{opacity:1;filter:saturate(.95);object-position:66% 44%}
body[data-view='apps'] #top .hero-inner{position:relative;z-index:4}
body[data-view='apps'] #top .studio-lockup{opacity:.85;margin-bottom:22px}
body[data-view='apps'] #top .sl-brand{letter-spacing:.12em;color:#e4ddc8;font-size:11px}
body[data-view='apps'] #top .hero-kicker{
  display:inline-flex;align-items:center;gap:9px;padding:7px 12px;border:1px solid #afd9c347;
  border-radius:3px;color:#d5efdb;background:#09272b8a;font-size:11px;letter-spacing:.06em;margin-bottom:20px;
}
body[data-view='apps'] #top .hero-kicker::before{content:'';width:5px;height:5px;border-radius:50%;background:#a1e4b5;box-shadow:0 0 8px #a1e4b560;flex:none}
body[data-view='apps'] #top .wordmark{font-size:clamp(26px,6.5vw,42px);letter-spacing:.18em;line-height:1.05}
body[data-view='apps'] #top .wordmark b{
  display:block;font-size:clamp(64px,16vw,106px);letter-spacing:-.035em;line-height:.98;margin-top:1px;
  background:linear-gradient(165deg,#fff8dc 20%,#ead09b 55%,#b68a46);background-clip:text;-webkit-background-clip:text;
  filter:drop-shadow(0 4px 10px #0006);
}
body[data-view='apps'] #top .hero-sub{max-width:470px;margin-top:24px}
body[data-view='apps'] #top .hero-figure{height:clamp(300px,80vw,420px);margin-top:2px;filter:drop-shadow(0 12px 25px #0008)}
body[data-view='apps'] #top .hero-cta-row{margin-top:28px}
body[data-view='apps'] #top .btn-primary{border-radius:3px;box-shadow:0 4px 24px #d6a54b1c}
body[data-view='apps'] #top .btn-ghost{border-radius:3px;background:#092431b0}
body[data-view='apps'] main .proof-strip{padding-block:28px;border-bottom:1px solid #acc2c328}
body[data-view='apps'] main .proof-strip .proof-div{background:#b5c6c326}
body[data-view='apps'] .community{
  width:calc(100% - 64px);max-width:1160px;margin:0 auto;padding:34px 0 12px;
  display:flex;align-items:center;justify-content:space-between;gap:28px;
}
body[data-view='apps'] .community-heading{max-width:390px;text-align:start}
body[data-view='apps'] .community h2{font:500 25px/1.15 'Cormorant Garamond',Georgia,serif;color:#ede5cf;margin:0 0 8px;letter-spacing:0;text-transform:none}
body[data-view='apps'] .community p{font:400 13px/1.6 'Outfit',sans-serif;color:#abc1cb;margin:0}
body[data-view='apps'] .community-links{display:flex;gap:10px;flex-shrink:0}
body[data-view='apps'] .community-link{
  --community-accent:#b4b9ff;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;
  padding:13px 17px;border:1px solid #bbd1de35;border-radius:5px;background:#10293e70;color:#e1e9ed;
  text-decoration:none;font:400 14px/1.2 'Outfit',sans-serif;transition:border-color .2s,background .2s,transform .2s;
}
body[data-view='apps'] .community-link svg{width:22px;height:22px;flex:none;color:var(--community-accent)}
body[data-view='apps'] .community-facebook{--community-accent:#86b8ff}
body[data-view='apps'] .community-tiktok{--community-accent:#90e7dc}
body[data-view='apps'] .community-arrow{font-size:15px;color:#bdd0da;margin-inline-start:6px}
body[data-view='apps'] .community-link:hover{border-color:var(--community-accent);background:#18384c;transform:translateY(-2px)}
body[data-view='apps'] #studio .tiktok-strip{display:none}
body[data-view='apps'] #studio .socials .social-link{min-width:48px;min-height:48px;border-color:#bdd0d84a;background:#102938}
@media(min-width:600px) and (min-aspect-ratio:1/1), (min-width:980px){
  body[data-view='apps'] #top.hero{
    min-height:min(780px,calc(100svh - 76px));padding:45px max(42px,calc((100vw - 1160px)/2));
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  body[data-view='apps'] #top .hero-figure{height:min(73svh,710px);width:125%;margin-block:0 -30px;margin-inline-end:-22%;z-index:3}
  body[data-view='apps'] #top .hero-scrim{background:linear-gradient(var(--games-scrim-angle,90deg),#071825f2,#071825bd 29%,#07182516 70%),linear-gradient(0deg,#081922,transparent 35%)}
  body[data-view='apps'] #top .hero-poster{object-position:72% 47%}
  body[data-view='apps'] #top .wordmark{font-size:clamp(28px,3.4vw,50px)}
  body[data-view='apps'] #top .wordmark b{font-size:clamp(72px,8.9vw,132px)}
}
@media(min-width:600px) and (max-width:820px) and (min-aspect-ratio:1/1){
  body[data-view='apps'] #top.hero{padding:26px 36px 22px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  body[data-view='apps'] #top .studio-lockup{margin-bottom:14px}
  body[data-view='apps'] #top .hero-kicker{font-size:10px;padding:6px 9px;margin-bottom:14px}
  body[data-view='apps'] #top .wordmark b{font-size:68px}
  body[data-view='apps'] #top .hero-figure{height:390px;width:140%;margin-inline-start:-12%;margin-inline-end:-28%;margin-bottom:-12px}
  body[data-view='apps'] #top .hero-sub{font-size:14px;line-height:1.6;margin-top:17px}
  body[data-view='apps'] #top .hero-cta-row{margin-top:20px}
}
@media(max-width:1000px){
  body[data-view='apps'] .community{flex-direction:column;gap:20px;text-align:center;padding-top:30px}
  body[data-view='apps'] .community-heading{max-width:490px;text-align:center}
}
@media(max-width:599px){
  body[data-view='apps'] main{padding-top:68px}
  body[data-view='apps'] #top.hero{padding:30px 24px 0}
  body[data-view='apps'] #top .studio-lockup{margin-bottom:16px}
  body[data-view='apps'] #top .hero-kicker{margin-bottom:18px}
  body[data-view='apps'] #top .hero-sub{font-size:15px;margin-top:18px}
  body[data-view='apps'] #top .hero-cta-row{margin-top:22px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
  body[data-view='apps'] #top .btn{font-size:12px;padding:11px 10px}
  body[data-view='apps'] #top .hero-proof{font-size:10px;margin-top:16px}
  body[data-view='apps'] .community{width:calc(100% - 32px);padding-top:28px;gap:18px}
  body[data-view='apps'] .community-links{width:100%;gap:8px}
  body[data-view='apps'] .community-link{flex:1;min-width:0;min-height:74px;flex-direction:column;gap:8px;padding:11px 6px;font-size:12px}
  body[data-view='apps'] .community-arrow{display:none}
}
@media(min-width:600px) and (max-height:500px) and (min-aspect-ratio:1/1){
  body[data-view='apps'] main{padding-top:60px}
  body[data-view='apps'] #top.hero{min-height:0;padding:20px 40px}
  body[data-view='apps'] #top .hero-kicker{padding:4px 8px;margin-bottom:10px;font-size:10px}
  body[data-view='apps'] #top .wordmark{font-size:24px}
  body[data-view='apps'] #top .wordmark b{font-size:60px}
  body[data-view='apps'] #top .hero-sub{font-size:13px;line-height:1.5;margin-top:12px}
  body[data-view='apps'] #top .hero-cta-row{margin-top:14px}
  body[data-view='apps'] #top .hero-figure{height:300px;margin-block:0 -14px}
}
@media(prefers-reduced-motion:reduce){body[data-view='apps'] .community-link{transition:none}body[data-view='apps'] .community-link:hover{transform:none}}

/* BavaQuest's product story: one trailer at a time, with readable character art. */
body[data-view='apps'] #showcase{
  padding:60px 0 66px;background:linear-gradient(160deg,#091c2cf5,#0a202ce8);
  border-block:1px solid #bfd4d51f;scroll-margin-top:86px;
}
body[data-view='apps'] #showcase>.seam{display:none}
body[data-view='apps'] #showcase .wrap{max-width:1160px;width:calc(100% - 64px)}
body[data-view='apps'] #showcase .sec-head{text-align:start;max-width:none;margin-bottom:36px}
body[data-view='apps'] #showcase .sec-eyebrow{margin-bottom:8px}
body[data-view='apps'] #showcase .sec-title{font:600 clamp(30px,4vw,48px)/1.12 'Cormorant Garamond',Georgia,serif;letter-spacing:-.02em;text-transform:none}
body[data-view='apps'] #showcase .sec-lede{margin:12px 0 0;max-width:590px;font-size:15px;line-height:1.7}
body[data-view='apps'] #showcase .summon-launch{min-height:44px;margin-top:16px;padding:10px 18px;font:500 13px/1.3 'Outfit',sans-serif;letter-spacing:0;text-transform:none;border-radius:5px;box-shadow:none}
body[data-view='apps'] #showcase .showcase-grid{grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:clamp(30px,4vw,58px);align-items:center}
body[data-view='apps'] #showcase .showcase-media{gap:0}
body[data-view='apps'] #showcase .cinema-frame{
  padding:0 0 52px;aspect-ratio:auto;border:1px solid #b6cbd34f;border-radius:10px;background:#06151f;box-shadow:0 14px 36px #0004;
}
body[data-view='apps'] #showcase .cinema-screen{height:auto;aspect-ratio:16/9;border-radius:9px 9px 0 0}
body[data-view='apps'] #showcase .cinema-screen video{display:block;object-fit:contain}
body[data-view='apps'] #showcase .phone-frame{display:none}
body[data-view='apps'] #showcase .showcase-playback-control{
  position:absolute;inset:auto 12px 4px;min-height:44px;border:0;border-radius:4px;padding:8px 12px;cursor:pointer;
  color:#e3e8de;background:transparent;font:400 13px/1.4 'Outfit',sans-serif;text-align:center;
}
body[data-view='apps'] #showcase .showcase-playback-control[hidden]{display:none}
body[data-view='apps'] #showcase .showcase-playback-control:hover{background:#1b3543}
body[data-view='apps'] #showcase .showcase-playback-control:disabled{cursor:default;color:#a8bac2}
body[data-view='apps'] #showcase .showcase-roster{gap:20px;min-width:0}
body[data-view='apps'] #showcase .roster-tabs{gap:4px;justify-content:center;padding-bottom:10px;border-color:#a7c6d433}
body[data-view='apps'] #showcase .roster-tab{flex:1;min-height:44px;padding:10px 8px;font:400 13px/1.4 'Outfit',sans-serif;letter-spacing:0;text-transform:none}
body[data-view='apps'] #showcase .roster-tab.active::after{box-shadow:none;height:2px;background:#e1c78f}
body[data-view='apps'] #showcase .spotlight{background:none;border:0;box-shadow:none;gap:18px}
body[data-view='apps'] #showcase .spot-stage{height:auto;min-height:0;flex-direction:column;align-items:center;gap:15px}
body[data-view='apps'] #showcase .spot-img{display:block;width:100%;height:285px;max-width:100%;object-fit:contain;filter:drop-shadow(0 15px 22px #0008)}
body[data-view='apps'] #showcase .spot-glow{inset:0 0 65px;background:radial-gradient(ellipse,#b9984330,transparent 66%)}
body[data-view='apps'] #showcase .spot-caption{position:relative;inset:auto;width:100%;text-shadow:none}
body[data-view='apps'] #showcase .spot-name{font:600 clamp(25px,2.7vw,34px)/1.15 'Cormorant Garamond',Georgia,serif;color:#f1e8cd;text-transform:none}
body[data-view='apps'] #showcase .spot-role{font:400 11px/1.5 'Outfit',sans-serif;letter-spacing:.025em;text-transform:none;margin-top:5px}
body[data-view='apps'] #showcase .spot-rail{gap:8px;flex-wrap:nowrap}
body[data-view='apps'] #showcase .spot-thumb{width:56px;height:60px;min-width:44px;flex:0 1 56px;border-radius:6px;box-shadow:none;background:#112b3c;border-color:#a3c5d23d}
body[data-view='apps'] #showcase .spot-thumb.active{border-color:#edcf8e;background:#28404a;box-shadow:0 0 0 1px #dfbd7970}
body[data-view='apps'] #apps{padding-block:62px}
body[data-view='apps'] .community{padding-top:0;padding-bottom:12px}
body[data-view='apps'] #realms.world-connection{margin-top:40px}
@media(max-width:760px){
  body[data-view='apps'] #showcase{padding:40px 0 46px}
  body[data-view='apps'] #showcase .wrap{width:calc(100% - 40px)}
  body[data-view='apps'] #showcase .showcase-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  body[data-view='apps'] #showcase .sec-head{text-align:center;margin-bottom:28px}
  body[data-view='apps'] #showcase .sec-lede{margin-inline:auto}
  body[data-view='apps'] #showcase .showcase-roster{max-width:440px;width:100%;margin-inline:auto}
  body[data-view='apps'] #showcase .spot-img{height:285px}
}
@media(max-width:520px){
  body[data-view='apps'] #showcase .wrap{width:calc(100% - 32px)}
  body[data-view='apps'] #showcase .cinema-frame{display:none}
  body[data-view='apps'] #showcase .phone-frame{display:block;width:210px;aspect-ratio:auto;padding:5px 5px 52px;border-width:1px;border-radius:14px;background:#06151f}
  body[data-view='apps'] #showcase .phone-screen{aspect-ratio:9/16;height:auto;border-radius:9px;overflow:hidden}
  body[data-view='apps'] #showcase .phone-screen video{display:block;object-fit:contain}
  body[data-view='apps'] #showcase .phone-camera{display:none}
}
@media(prefers-reduced-motion:reduce){body[data-view='apps'] #showcase .spot-img,body[data-view='apps'] #showcase .roster-view{animation:none!important}body[data-view='apps'] #showcase .spot-thumb{transition:none}}

/* Both supplied trailers are portrait: preserve the entire source frame. */
body[data-view='apps'] #showcase::before{opacity:.08}
body[data-view='apps'] #showcase .showcase-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);max-width:940px;margin-inline:auto}
body[data-view='apps'] #showcase .cinema-frame{width:246px;max-width:100%}
body[data-view='apps'] #showcase .cinema-screen{aspect-ratio:600/1066}
body[data-view='apps'] #showcase .spot-img{height:330px}
@media(max-width:760px){
  body[data-view='apps'] #showcase .showcase-grid{grid-template-columns:minmax(0,1fr)}
  body[data-view='apps'] #showcase .cinema-frame{width:224px}
  body[data-view='apps'] #showcase .spot-img{height:285px}
}

/* Original character art is the feature until a trailer is approved. */
body[data-view='apps'] #showcase{
  padding-block:44px;
  background:radial-gradient(ellipse at 75% 45%,#23465380,transparent 56%),linear-gradient(125deg,#071924f7,#091c2ce8);
}
body[data-view='apps'] #showcase .wrap{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(32px,6vw,90px);align-items:center}
body[data-view='apps'] #showcase .sec-head{margin:0;position:relative;z-index:1}
body[data-view='apps'] #showcase .sec-title{font-size:clamp(44px,5.2vw,68px);line-height:.98;max-width:9ch;text-wrap:balance}
body[data-view='apps'] #showcase .sec-lede{max-width:360px;margin-top:22px;color:#b9cbd0;font-size:16px;line-height:1.75}
body[data-view='apps'] #showcase .summon-launch{margin-top:26px;min-height:48px;padding:12px 22px;border-color:#dfc08778;color:#f0ddb4;background:#dcc0820c}
body[data-view='apps'] #showcase .summon-launch:hover{background:#dcc0821f;border-color:#efd598}
body[data-view='apps'] #showcase .showcase-grid{display:block;width:100%;max-width:none;margin:0}
body[data-view='apps'] #showcase .showcase-roster{width:100%;max-width:none;gap:24px}
body[data-view='apps'] #showcase .roster-tabs{max-width:400px;width:100%;margin-inline:auto}
body[data-view='apps'] #showcase .spotlight{gap:22px}
body[data-view='apps'] #showcase .spot-stage{isolation:isolate;gap:20px}
body[data-view='apps'] #showcase .spot-img{height:clamp(280px,40vh,360px);max-width:100%;filter:drop-shadow(0 18px 26px #0009)}
body[data-view='apps'] #showcase .spot-glow{
  inset:8px 0 100px;max-width:380px;margin-inline:auto;border:1px solid #d9bd781c;border-radius:50%;
  background:radial-gradient(ellipse,#ceb97124,transparent 67%);box-shadow:0 0 0 24px #cbb27104,0 0 0 25px #cbb27108;
}
body[data-view='apps'] #showcase .spot-name{font-size:clamp(30px,3.2vw,42px)}
body[data-view='apps'] #showcase .spot-role{font-size:12px}
body[data-view='apps'] #showcase .spot-thumb{width:64px;height:68px;flex-basis:64px;background:#15313d;border-radius:5px}
body[data-view='apps'] #showcase .roster-tab:focus-visible,
body[data-view='apps'] #showcase .spot-thumb:focus-visible,
body[data-view='apps'] #showcase .summon-launch:focus-visible{outline:2px solid #f5dc9a;outline-offset:5px}
@media(max-width:760px){
  body[data-view='apps'] #showcase{padding-block:44px}
  body[data-view='apps'] #showcase .wrap{grid-template-columns:minmax(0,1fr);gap:30px}
  body[data-view='apps'] #showcase .sec-head{text-align:center}
  body[data-view='apps'] #showcase .sec-title{max-width:15ch;font-size:clamp(36px,8vw,48px);margin-inline:auto;line-height:1.05}
  body[data-view='apps'] #showcase .sec-lede{max-width:420px;font-size:14px;margin:15px auto 0}
  body[data-view='apps'] #showcase .summon-launch{margin-top:18px}
  body[data-view='apps'] #showcase .showcase-roster{max-width:480px;margin-inline:auto}
  body[data-view='apps'] #showcase .spot-img{height:300px}
  body[data-view='apps'] #showcase .spot-glow{inset-inline:22px}
  body[data-view='apps'] #showcase .spot-thumb{height:62px;flex-basis:58px}
}
@media(max-width:380px){body[data-view='apps'] #showcase .spot-img{height:270px}body[data-view='apps'] #showcase .spot-thumb{flex-basis:52px;height:56px}}
body:has(#splash-screen[data-motion='off']) #showcase .roster-view,
body:has(#splash-screen[data-motion='off']) #showcase .spot-img{animation:none!important}
@media(prefers-reduced-motion:reduce){body[data-view='apps'] #showcase .spot-img,body[data-view='apps'] #showcase .roster-view{animation:none!important}}



/* BavaQuest key art: the illustration owns the atmosphere and the logo. */
body[data-view='apps'] #top .hero-poster{opacity:1;filter:none;object-position:75% 45%}
body[data-view='apps'] #top .hero-scrim{background:linear-gradient(180deg,#081b37dc,#081b3794 43%,#071c3520 72%,#08192290)}
body[data-view='apps'] #top .studio-lockup{display:none}
body[data-view='apps'] #top .hero-kicker{margin-bottom:8px;background:#0a273987;border-color:#c1dacc38}
body[data-view='apps'] #top .hero-art-title{
  position:relative;display:grid;place-items:center;width:min(100%,440px);height:clamp(180px,30svh,250px);margin-inline:auto;
  line-height:1;filter:none;text-align:center;
}
body[data-view='apps'] #top .bavaquest-hero-logo,
body[data-view='apps'] #top .bavaquest-title-fallback{grid-area:1/1}
body[data-view='apps'] #top .bavaquest-hero-logo{position:absolute;top:50%;inset-inline:0;display:block;width:100%;height:auto;transform:translateY(-50%);opacity:0;filter:drop-shadow(0 5px 13px #02081480)}
body[data-view='apps'] #top .hero-art-title[data-ready='true'] .bavaquest-hero-logo{opacity:1}
body[data-view='apps'] #top .hero-art-title[data-ready='true'] .bavaquest-title-fallback{opacity:0}
body[data-view='apps'] #top .hero-sub{margin-top:18px}
body[data-view='apps'] #top .hero-cta-row{margin-top:24px}
body[data-view='apps'] #top .hero-proof{margin-top:14px}
body[data-view='apps'] #top .hero-figure{filter:drop-shadow(0 12px 20px #01081580)}
body[data-view='apps'] #top #rift-fx{display:none}
@media(min-width:600px) and (min-aspect-ratio:1/1), (min-width:980px){
  body[data-view='apps'] #top.hero{padding-block:34px}
  body[data-view='apps'] #top .hero-art-title{margin-inline:0}
  body[data-view='apps'] #top .hero-poster{object-position:70% 46%}
  body[data-view='apps'] #top .hero-scrim{background:linear-gradient(var(--games-scrim-angle,90deg),#06152ccc,#071c3266 33%,transparent 67%),linear-gradient(0deg,#081922c7,transparent 27%)}
  html[dir='rtl'] body[data-view='apps'] #top .hero-poster{transform:scaleX(-1)!important;transform-origin:50% 50%}
}
@media(max-width:599px){
  body[data-view='apps'] #top.hero{padding-top:24px}
  body[data-view='apps'] #top .hero-art-title{width:min(100%,340px);height:195px}
  body[data-view='apps'] #top .hero-sub{margin-top:12px;font-size:14px}
  body[data-view='apps'] #top .hero-cta-row{margin-top:18px}
  body[data-view='apps'] #top .hero-proof{margin-top:12px}
  body[data-view='apps'] #top .hero-poster{object-position:73% 50%}
}
@media(min-width:600px) and (max-width:820px) and (min-aspect-ratio:1/1){
  body[data-view='apps'] #top .hero-art-title{height:180px}
  body[data-view='apps'] #top .hero-sub{margin-top:12px}
}
@media(min-width:600px) and (max-height:500px) and (min-aspect-ratio:1/1){
  body[data-view='apps'] #top.hero{padding-block:20px}
  body[data-view='apps'] #top .hero-art-title{height:150px}
  body[data-view='apps'] #top .hero-kicker{margin-bottom:4px}
  body[data-view='apps'] #top .hero-sub{margin-top:8px}
  body[data-view='apps'] #top .hero-cta-row{margin-top:12px}
}


/* Keep all existing navigation destinations accessible on a phone. */
@media(max-width:599px){
  body[data-view='apps'] #nav{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:44px 44px;
    gap:4px 8px;min-height:108px;padding:8px 12px;
  }
  body[data-view='apps'] main{padding-top:108px}
  body[data-view='apps'] #nav .nav-links{display:contents}
  body[data-view='apps'] #nav .nav-mark{grid-area:1/1;min-width:0;width:100%;min-height:44px;justify-self:start}
  body[data-view='apps'] #nav .nav-links .cta{grid-area:1/2;width:100%;max-width:none;justify-content:center;padding:8px 5px}
  body[data-view='apps'] #nav #lang-bar{grid-area:1/3;width:100%;min-width:0}
  body[data-view='apps'] #nav #lang-select{width:100%;max-width:none;padding-inline:8px 23px}
  body[data-view='apps'] #nav .nav-links .nav-hide{
    display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:0;
    padding:4px;font-size:12px;line-height:1.2;text-align:center;white-space:normal;
  }
  body[data-view='apps'] #nav .world-nav-link{grid-area:2/1}
  body[data-view='apps'] #nav a[href='#leaderboard']{grid-area:2/2}
  body[data-view='apps'] #nav a[href='#studio']{grid-area:2/3}
  body[data-view='apps'] main :is(#showcase,#leaderboard,#studio){scroll-margin-top:120px}
}
