:root{
  color-scheme: light;
  --bg: #f9fbff;
  --bg-soft: #eef4f5;
  --surface: #ffffff;
  --surface-strong: #f4f8fb;
  --text: #111a18;
  --muted: rgba(17,26,24,0.68);
  --border: rgba(17,26,24,0.12);
  --border-strong: rgba(17,26,24,0.24);
  --green: #237657;
  --green-dark: #144a37;
  --blue: #2d72d9;
  --yellow: #f0bd2b;
  --coral: #de5e48;
  --link: #1f55b8;
  --shadow: 0 24px 70px rgba(22,42,55,0.14);
  --shadow-soft: 0 12px 28px rgba(22,42,55,0.10);
  --nav-bg: rgba(249,251,255,0.88);
  --menu-bg: rgba(249,251,255,0.98);
  --hero-bg:
    linear-gradient(135deg, rgba(35,118,87,0.12), rgba(45,114,217,0.08) 48%, rgba(240,189,43,0.16)),
    linear-gradient(180deg, #ffffff, #f4f8fb);
  --grid-line: rgba(255,255,255,0.64);
  --radius: 8px;
  --container: 1160px;
}

:root[data-theme="dark"]{
  color-scheme: dark;
  --bg: #101513;
  --bg-soft: #141b18;
  --surface: #19201e;
  --surface-strong: #172821;
  --text: #eef7f2;
  --muted: rgba(238,247,242,0.72);
  --border: rgba(238,247,242,0.14);
  --border-strong: rgba(238,247,242,0.26);
  --green: #66c19d;
  --green-dark: #95dfc1;
  --blue: #8fb3ee;
  --yellow: #f3be68;
  --coral: #ff8270;
  --link: #9abfff;
  --shadow: 0 24px 70px rgba(0,0,0,0.42);
  --shadow-soft: 0 12px 28px rgba(0,0,0,0.30);
  --nav-bg: rgba(16,21,19,0.88);
  --menu-bg: rgba(16,21,19,0.98);
  --hero-bg:
    linear-gradient(135deg, rgba(88,196,157,0.13), rgba(141,181,255,0.10) 48%, rgba(243,190,104,0.12)),
    linear-gradient(180deg, #141b18, #101513);
  --grid-line: rgba(238,247,242,0.06);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open{ overflow: hidden; }
a{ color: inherit; }
img{ display: block; max-width: 100%; }
button{ font: inherit; }
svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container{
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.skiplink{
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 300;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #000000;
}
.skiplink:focus{ left: 12px; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
}

.topbar-inner{
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 7px 9px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #101513;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17,26,24,0.10);
}

.brand img{
  width: 150px;
  height: auto;
}

.brand span{
  padding: 2px 8px 3px;
  border-left: 1px solid rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 800;
}

.nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.nav-menu summary{
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover,
.nav-menu summary:hover{
  color: var(--text);
  background: rgba(35,118,87,0.10);
}

.nav-menu{
  position: relative;
}

.nav-menu summary{
  list-style: none;
}

.nav-menu summary::-webkit-details-marker{
  display: none;
}

.nav-panel{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.nav-panel a{
  width: 100%;
  justify-content: flex-start;
}

.topbar-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover{
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.theme-moon{ opacity: 0; }
:root[data-theme="dark"] .theme-sun{ opacity: 0; }
:root[data-theme="dark"] .theme-moon{ opacity: 1; }

.nav-toggle{ display: none; }
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.nav-toggle-lines::before{ transform: translateY(-7px); }
.nav-toggle-lines::after{ transform: translateY(5px); }

.mobile-menu{
  border-top: 1px solid var(--border);
  background: var(--menu-bg);
}

.mobile-menu-inner{
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 14px 0 20px;
  display: grid;
  gap: 8px;
}

.mobile-menu a{
  min-height: 42px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu a:hover{
  background: rgba(35,118,87,0.10);
}

.mobile-lang{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.mobile-lang a{
  border: 1px solid var(--border);
  padding: 0 10px;
  justify-content: center;
}

.hero{
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 36px 0 28px;
  background: var(--hero-bg);
}

.hero::before{
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0 48%, var(--grid-line) 48% 49%, rgba(255,255,255,0) 49%),
    linear-gradient(0deg, rgba(255,255,255,0) 0 42%, var(--grid-line) 42% 43%, rgba(255,255,255,0) 43%);
  background-size: 96px 96px;
  opacity: 0.42;
  pointer-events: none;
}

.hero-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 52px;
  align-items: center;
}

.hero-copy h1{
  max-width: 720px;
  margin: 0;
  font-size: 78px;
  line-height: 0.96;
  font-weight: 900;
}

.hero-copy p{
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.38;
  font-weight: 650;
}

.hero-actions{
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn{
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn-primary{
  color: #ffffff;
  background: #144a37;
  box-shadow: 0 12px 24px rgba(20,74,55,0.18);
}

:root[data-theme="dark"] .btn-primary{
  color: #102017;
  background: #95dfc1;
  box-shadow: 0 12px 24px rgba(0,0,0,0.24);
}

.btn-primary:hover{
  filter: brightness(0.96);
  box-shadow: 0 16px 30px rgba(20,74,55,0.22);
}

.btn-secondary{
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-color: var(--border);
}

.btn-secondary:hover{
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.hero-visual{
  position: relative;
  min-height: 400px;
}

.hero-phone,
.hero-tile{
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-phone{
  width: 154px;
  aspect-ratio: 420 / 912;
  padding: 7px;
}

.hero-phone img{
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.hero-phone-main{
  left: 8%;
  top: 12px;
  transform: rotate(-4deg);
}

.hero-phone-fly{
  right: 10%;
  bottom: 18px;
  transform: rotate(5deg);
}

.hero-tile{
  width: 226px;
  aspect-ratio: 4 / 3;
  padding: 8px;
}

.hero-tile img{
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.hero-tile-animals{
  right: 0;
  top: 54px;
  transform: rotate(2deg);
}

.hero-tile-monsters{
  left: 19%;
  bottom: 28px;
  width: 184px;
  aspect-ratio: 1 / 1;
  transform: rotate(-2deg);
}

.section{
  padding: 82px 0;
}

.section-head{
  max-width: 760px;
  margin: 0 0 30px;
}

.section-head h2{
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
}

.section-head p{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.48;
}

.games-section{
  padding-top: 44px;
  background: var(--bg);
}

.games-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card{
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.game-card-wide{
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.82fr);
  min-height: 520px;
}

.game-media{
  position: relative;
  min-height: 318px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35,118,87,0.10), rgba(45,114,217,0.09)),
    var(--surface-strong);
}

.manhole-media{
  min-height: 520px;
}

.phone{
  position: absolute;
  width: 176px;
  height: auto;
  border: 7px solid var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(17,26,24,0.18);
}

:root[data-theme="dark"] .phone{
  box-shadow: 0 20px 44px rgba(0,0,0,0.35);
}

.phone-a{
  left: 12%;
  top: 48px;
  transform: rotate(-5deg);
}

.phone-b{
  left: 38%;
  top: 20px;
  transform: rotate(2deg);
}

.phone-c{
  right: 11%;
  top: 64px;
  transform: rotate(6deg);
}

.phone-media,
.wide-media,
.tall-media{
  display: grid;
  place-items: center;
  padding: 28px;
}

.single-phone{
  width: 168px;
  max-height: 300px;
  border: 7px solid var(--surface);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(17,26,24,0.16);
}

.wide-media img,
.tall-media img{
  width: 100%;
  height: 258px;
  border: 7px solid var(--surface);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(17,26,24,0.14);
}

:root[data-theme="dark"] .single-phone,
:root[data-theme="dark"] .wide-media img,
:root[data-theme="dark"] .tall-media img{
  box-shadow: 0 18px 38px rgba(0,0,0,0.34);
}

.tall-media img{
  object-position: center 14%;
}

.game-card-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.game-card-wide .game-card-body{
  justify-content: center;
  padding: 34px;
}

.game-title-row{
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.game-icon{
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(17,26,24,0.13);
}

.game-title-row h3{
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
}

.platform{
  margin: 4px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.game-card-body > p:not(.platform){
  margin: 18px 0 22px;
  color: var(--muted);
}

.game-actions{
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.game-actions .btn{
  min-height: 40px;
}

.app-store-link{
  display: inline-flex;
  width: 136px;
  min-height: 40px;
  align-items: center;
}

.app-store-link img{
  width: 136px;
  height: auto;
}

.studio-band{
  padding: 56px 0;
  background:
    linear-gradient(90deg, rgba(35,118,87,0.10), rgba(45,114,217,0.08), rgba(222,94,72,0.10)),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.studio-band-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.studio-band h2{
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
}

.studio-band p{
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer{
  padding: 32px 0;
  background: #101513;
  color: rgba(255,255,255,0.70);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-meta{
  font-size: 14px;
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer a,
.footer-consent-link{
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.footer-consent-link{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer a:hover,
.footer-consent-link:hover{
  color: #ffffff;
}

.consent-banner{
  position: fixed;
  inset: auto 18px 18px;
  z-index: 400;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.consent-panel{
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.consent-copy h2{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.consent-copy p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.consent-copy a{
  color: var(--link);
  font-weight: 800;
}

.consent-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-actions .btn{
  min-height: 40px;
}

@media (max-width: 1080px){
  .hero-grid{
    grid-template-columns: 1fr;
  }

  .hero-copy h1{
    font-size: 64px;
  }

  .hero-visual{
    min-height: 340px;
  }

  .hero-phone{
    width: 132px;
  }

  .hero-tile{
    width: 204px;
  }

  .games-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card-wide{
    grid-column: span 2;
  }
}

@media (max-width: 860px){
  .nav{
    display: none;
  }

  .nav-toggle{
    display: inline-flex;
  }
}

@media (max-width: 820px){
  .hero{
    padding-top: 40px;
  }

  .hero-copy h1{
    font-size: 54px;
  }

  .hero-copy p{
    font-size: 20px;
  }

  .hero-visual{
    min-height: 320px;
  }

  .hero-phone-main{
    left: 2%;
  }

  .hero-tile-animals{
    right: 1%;
  }

  .hero-tile-monsters{
    left: 11%;
  }

  .game-card-wide{
    display: flex;
    min-height: 0;
  }

  .manhole-media{
    min-height: 360px;
  }

  .phone{
    width: 136px;
  }

  .phone-a{
    left: 6%;
  }

  .phone-b{
    left: 35%;
  }

  .phone-c{
    right: 5%;
  }

  .studio-band-inner{
    grid-template-columns: 1fr;
  }

  .consent-panel{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .container,
  .mobile-menu-inner{
    width: min(100% - 28px, var(--container));
  }

  .topbar-inner{
    min-height: 68px;
  }

  .brand img{
    width: 124px;
  }

  .brand span{
    font-size: 12px;
  }

  .hero{
    padding: 32px 0 34px;
  }

  .hero-grid{
    gap: 34px;
  }

  .hero-copy h1{
    font-size: 46px;
  }

  .hero-copy p{
    font-size: 18px;
  }

  .hero-actions,
  .game-actions,
  .consent-actions{
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .game-actions .btn,
  .app-store-link,
  .app-store-link img,
  .consent-actions .btn{
    width: 100%;
  }

  .app-store-link{
    justify-content: flex-start;
  }

  .app-store-link img{
    max-width: 168px;
  }

  .hero-visual{
    min-height: 270px;
  }

  .hero-phone{
    width: 100px;
    padding: 5px;
  }

  .hero-tile{
    width: 144px;
    padding: 5px;
  }

  .hero-tile-monsters{
    width: 118px;
    left: 10%;
    bottom: 8px;
  }

  .hero-phone-fly{
    right: 2%;
  }

  .section{
    padding: 58px 0;
  }

  .games-section{
    padding-top: 28px;
  }

  .section-head h2{
    font-size: 34px;
  }

  .section-head p{
    font-size: 17px;
  }

  .games-grid{
    grid-template-columns: 1fr;
  }

  .game-card-wide{
    grid-column: span 1;
  }

  .game-card-body,
  .game-card-wide .game-card-body{
    padding: 20px;
  }

  .game-title-row h3{
    font-size: 22px;
  }

  .manhole-media{
    min-height: 300px;
  }

  .phone{
    width: 108px;
    border-width: 5px;
  }

  .phone-b{
    top: 26px;
  }

  .phone-c{
    top: 58px;
  }

  .single-phone{
    width: 146px;
    max-height: 260px;
  }

  .wide-media img,
  .tall-media img{
    height: 220px;
  }

  .studio-band h2{
    font-size: 28px;
  }

  .consent-banner{
    inset: auto 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }

  .btn{
    transition: none;
  }

  .btn:hover{
    transform: none;
  }
}
