:root {
  --ink: #102c50;
  --blue: #0663c5;
  --yellow: #ffd34e;
  --cream: #fff8e7;
  --green: #107624;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: #f8fbff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input {
  font: inherit;
}
button,
.button {
  border: 0;
  border-radius: 40px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  padding: 17px 28px;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  cursor: pointer;
  box-shadow: 0 4px 0 #ddb335;
}
button:hover,
.button:hover {
  filter: brightness(0.97);
  text-decoration: none;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #0563bf;
  outline-offset: 5px;
}
header {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  min-height: 104px;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img {
  object-fit: contain;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 700;
}
.compact {
  padding: 13px 22px;
  gap: 12px;
}
main {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  flex: 1 0 auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  letter-spacing: -3px;
  line-height: 1.02;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(30px, 3vw, 43px);
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 18px;
}
h3 {
  font-size: 21px;
}
p {
  font-size: 18px;
  line-height: 1.65;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.studio-hero {
  background:
    radial-gradient(ellipse at 80% 85%, #195caa, transparent 50%), #092952;
  border-radius: 28px;
  color: white;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  padding: 65px 65px 55px;
  min-height: 510px;
  overflow: hidden;
  position: relative;
}
.studio-hero .eyebrow {
  color: #aed7ff;
}
.studio-hero p {
  max-width: 460px;
  color: #e6effb;
}
.studio-hero em {
  font-style: normal;
  color: var(--yellow);
}
.hero-note {
  display: block;
  font-size: 13px;
  margin-top: 24px;
  color: #c7ddf8;
}
.fort-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 365px;
}
.fort-scene img {
  width: 80%;
  height: auto;
  filter: drop-shadow(0 18px 20px #061d3c);
  z-index: 1;
  transform: rotate(-5deg);
}
.orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px dashed #85b8f0;
  border-radius: 50%;
  transform: rotate(20deg);
}
.star {
  position: absolute;
  color: #ffde64;
  font-size: 60px;
}
.s1 {
  right: 4%;
  top: 0;
}
.s2 {
  left: 0;
  bottom: 20px;
}
.scene-caption {
  position: absolute;
  bottom: 0;
  font-size: 11px;
  letter-spacing: 4px;
  color: #d8e9fa;
}
.games-section {
  padding: 58px 32px 35px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 26px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 14px;
}
.section-heading a {
  font-weight: bold;
  color: #07529e;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.game-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 8px 25px #102c5010;
  border: 1px solid #dde6ef;
  transition: transform 0.2s;
}
.game-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
}
.game-art {
  height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  overflow: hidden;
}
.game-art img {
  max-width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
}
.zagivo .game-art {
  background: #91dfff url("/assets/zagivo-landscape.webp") center 67% / cover;
}


.built2spell .game-art {
  background:
    radial-gradient(ellipse at 10% 100%, white 0 15%, transparent 16%),
    radial-gradient(ellipse at 90% 0, white 0 15%, transparent 16%), #b7eaff;
}
.spell-logo {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #06479e;
  text-shadow: 2px 3px white;
}
.spell-logo span {
  color: #d59200;
}
.letter-tiles {
  display: flex;
  gap: 26px;
  margin-bottom: 23px;
}
.letter-tiles span {
  background: #fffdf0;
  border: 3px solid #ffcc58;
  border-radius: 12px;
  padding: 9px 15px;
  font-size: 28px;
  font-weight: 900;
  color: #0675be;
  transform: rotate(-12deg);
}
.letter-tiles span:nth-child(2) {
  transform: rotate(14deg);
}
.game-copy {
  padding: 25px;
}
.status {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #415977;
}
.game-copy h3 {
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
}
.game-copy p {
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.55;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream);
  border-radius: 22px;
  margin: 12px 32px 45px;
  padding: 30px;
}
.values > div {
  padding: 0 25px;
  border-right: 1px solid #dbcda9;
}
.values > div:last-child {
  border: 0;
}
.values span {
  font-size: 30px;
  color: #ae6500;
  float: left;
  margin-right: 18px;
}
.values h3 {
  margin-bottom: 8px;
}
.values p {
  font-size: 14px;
  margin: 0;
}
label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}
.small a {
  text-decoration: underline;
}
footer {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  background: #092952;
  border-radius: 24px 24px 0 0;
  padding: 30px 36px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
footer div {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
footer p {
  font-size: 12px;
  margin: 0;
  color: #bfd4eb;
}
.page-intro,
.prose {
  padding: 70px 65px;
}
.prose {
  max-width: 850px;
}
.prose p {
  margin-bottom: 30px;
}
.notice {
  padding: 20px;
  background: var(--cream);
  border-radius: 12px;
}
.page-grid {
  padding: 0 32px 70px;
}
.detail {
  padding: 70px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.detail .game-card {
  max-width: 450px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: white;
  padding: 15px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.zagivo {
  background: #effaff;
}
.zagivo header {
  background: #effaff;
}
.zagivo .button,
.zagivo button {
  background: linear-gradient(#18852b, #107624);
  color: white;
  box-shadow: 0 4px 0 #075019;
}
.zagivo-hero {
  text-align: center;
  min-height: 620px;
  border-radius: 28px;
  padding: 45px 30px 90px;
  background: #98e0ff url("/assets/zagivo-landscape.webp") center 42% / cover;
  position: relative;
  overflow: hidden;
}
.zagivo-logo {
  width: min(520px, 70%);
  height: auto;
  display: block;
  margin: 0 auto 15px;
}
.zagivo-hero h1 {
  font-size: 35px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.zagivo-hero p {
  font-size: 23px;
  line-height: 1.45;
  margin-bottom: 25px;
}
.hand-note {
  position: absolute;
  right: 55px;
  top: 90px;
  font-size: 23px;
  font-style: italic;
  transform: rotate(10deg);
}
.zagivo-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 65px;
  align-items: center;
}
.zagivo-story p {
  font-size: 17px;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-weight: bold;
  font-size: 15px;
  margin-top: 30px;
}
.puzzle-preview {
  min-width: 0;
  margin: 0;
  padding: 30px;
  border: 4px solid white;
  box-shadow: 0 8px 25px #07567e25;
  border-radius: 25px;
  background: #a7e1fa url("/assets/zagivo-landscape.webp") center 58% / cover;
  text-align: center;
  scroll-margin-top: 25px;
}
.puzzle-preview figcaption {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 22px;
}
.puzzle-preview small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}
.puzzle-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.puzzle-panels > div {
  border: 3px solid #e3cd99;
  background: #fff9e9;
  border-radius: 20px;
  padding: 20px 10px;
}
.puzzle-panels strong {
  display: block;
  font-size: 54px;
}
.puzzle-panels span {
  font-size: 14px;
  font-weight: bold;
}
.puzzle-cards {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 18px;
}
.puzzle-cards span {
  min-width: 0;
  padding: 13px;
  background: #fff9e9;
  border: 2px solid #e3cd99;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
}
.puzzle-preview p {
  background: #fff9e9e8;
  border-radius: 12px;
  padding: 10px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.4;
}
.zagivo footer {
  background: #e0f5e8;
  color: var(--ink);
}
.zagivo footer p {
  color: #254a45;
}
@media (max-width: 900px) {
  header {
    padding: 15px 24px;
  }
  nav {
    gap: 18px;
  }
  nav .compact {
    display: none;
  }
  .studio-hero {
    padding: 45px 35px;
    min-height: 440px;
  }
  .fort-scene img {
    width: 100%;
  }
  .orbit {
    width: 220px;
    height: 220px;
  }
  .game-grid {
    gap: 15px;
  }
  .game-art {
    height: 190px;
    padding: 18px;
  }
  .spell-logo {
    font-size: 27px;
  }
  .letter-tiles {
    gap: 12px;
  }
  .letter-tiles span {
    padding: 7px 10px;
  }
  .game-copy {
    padding: 20px;
  }
  .values {
    padding: 25px 5px;
  }
  .values > div {
    padding: 0 16px;
  }
  .values span {
    float: none;
    display: block;
    margin-bottom: 8px;
  }
.zagivo-story {
    padding: 45px 30px;
    gap: 25px;
  }
  .hand-note {
    right: 25px;
    font-size: 18px;
  }
  .detail {
    gap: 30px;
  }
}
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 20px;
  }
  header .brand img {
    height: 55px;
    width: 210px;
  }
  nav {
    font-size: 14px;
    gap: 35px;
  }
  .studio-hero {
    grid-template-columns: 1fr;
    border-radius: 0;
    padding: 40px 25px 30px;
  }
  .studio-hero h1 {
    font-size: 51px;
  }
  .studio-hero p {
    font-size: 17px;
  }
  .fort-scene {
    min-height: 240px;
    margin-top: 28px;
  }
  .fort-scene img {
    width: 225px;
  }
  .scene-caption {
    bottom: 0;
  }
  .s1 {
    right: 10%;
    font-size: 40px;
  }
  .s2 {
    left: 10%;
  }
  .games-section {
    padding: 38px 20px 25px;
  }
  .section-heading {
    display: block;
  }
  .section-heading a {
    display: inline-block;
    margin-top: 18px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .game-art {
    height: 250px;
  }
  .spell-logo {
    font-size: 39px;
  }
  .values {
    grid-template-columns: 1fr;
    margin: 0 20px 30px;
    padding: 25px;
  }
  .values > div {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid #dbcda9;
  }
  .values span {
    float: left;
  }
  footer {
    border-radius: 0;
    flex-direction: column;
    align-items: start;
    padding: 30px 25px;
  }
  footer div {
    gap: 20px;
  }
  .zagivo-hero {
    border-radius: 0;
    min-height: 520px;
    padding: 38px 20px 70px;
    background-position: center 42%;
  }
  .zagivo-logo {
    width: 95%;
    margin: 25px auto;
  }
  .zagivo-hero .eyebrow {
    font-size: 9px;
  }
  .zagivo-hero h1 {
    font-size: 30px;
  }
  .zagivo-hero p {
    font-size: 20px;
  }
  .hand-note {
    display: none;
  }
  .zagivo-story {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    gap: 35px;
  }
  .puzzle-preview {
    padding: 22px 15px;
  }
  .feature-list {
    gap: 18px;
    font-size: 14px;
  }
  .page-intro,
  .prose {
    padding: 45px 25px;
  }
  .page-grid {
    padding: 0 20px 45px;
  }
  .detail {
    padding: 45px 25px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  h1 {
    letter-spacing: -2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
.cross-site {
  margin-top: 25px;
  font-weight: bold;
  text-decoration: underline;
}
