:root {
  --ink: #191917;
  --paper: #f7f5ef;
  --line: #d8d5cc;
  --white: #fff;
  --yellow: #f7ca45;
  --coral: #f2644c;
  --green: #176d65;
  --display: "Fredoka", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  height: 76px;
  padding: 0 clamp(20px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, .92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 34px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  color: white; background: var(--coral);
  font: 700 22px/1 var(--display);
  transform: rotate(-8deg);
}
.desktop-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 600; }
.desktop-nav a { transition: opacity .2s; }
.desktop-nav a:hover { opacity: .5; }
.header-cta {
  padding: 10px 0;
  font-size: 14px; font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(560px, 1.15fr);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: clamp(70px, 10vh, 132px) clamp(24px, 5vw, 90px) 118px;
  display: flex; flex-direction: column; justify-content: center;
}
.eyebrow {
  margin: 0 0 28px;
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.eyebrow span { width: 18px; height: 5px; border-radius: 9px; background: var(--coral); }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: 0; }
h1 { max-width: 720px; font-size: clamp(64px, 7.6vw, 124px); line-height: .89; }
h1 em { color: var(--coral); font-style: normal; }
.hero-intro { max-width: 480px; margin: 34px 0; color: #5d5b55; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.button-dark { background: var(--ink); color: white; }
.button span { font-size: 20px; }
.hero-actions p { margin: 0; display: grid; gap: 3px; font-size: 12px; color: #77746c; }
.hero-actions p strong { color: var(--ink); font-size: 14px; }

.game-wall {
  min-height: 690px;
  padding: 32px 30px 92px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--yellow);
  transform: rotate(3deg) scale(1.08);
}
.wall-column { display: flex; flex-direction: column; gap: 16px; }
.wall-column-a { transform: translateY(-45px); }
.wall-column-b { transform: translateY(25px); }
.wall-column-c { transform: translateY(-70px); }
.shot { margin: 0; min-height: 220px; flex: 1; overflow: hidden; border: 5px solid rgba(255,255,255,.88); background: var(--soft, white); box-shadow: 8px 8px 0 rgba(82,82,78,.42); }
.shot-tall { min-height: 355px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot img:not([src]), .shot img[src=""] { background: var(--soft); }
.coral { --soft:#f5ad9b; }.teal{--soft:#8bcfc5}.lime{--soft:#cde872}.purple{--soft:#c2ace9}.yellow{--soft:#f8d458}.blue{--soft:#9bd3ef}
.hero-badge {
  aspect-ratio: 2.2; padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  border: 3px solid rgba(255,255,255,.88); background: white; box-shadow: 5px 5px 0 rgba(82,82,78,.42);
  font: 700 15px/1.1 var(--display);
}
.hero-badge span { font-size: 26px; color: var(--coral); }
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  overflow: hidden; background: var(--ink); color: white;
  font: 700 14px/48px var(--display); white-space: nowrap;
}
.ticker div { width: max-content; animation: ticker 24s linear infinite; }
.ticker span { margin: 0 20px; color: var(--yellow); }
@keyframes ticker { to { transform: translateX(-50%); } }

.games-section { padding: clamp(72px, 10vw, 150px) clamp(20px, 5vw, 84px); }
.section-heading {
  max-width: 1440px; margin: 0 auto clamp(46px, 6vw, 90px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end;
}
.section-heading h2 { font-size: clamp(46px, 6.2vw, 92px); line-height: .95; }
.section-heading > p { max-width: 440px; margin: 0 0 8px; color: #6b6860; line-height: 1.75; }

.game-grid {
  max-width: 1440px; margin: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.game-card { border: 1px solid var(--line); background: white; overflow: hidden; }
.game-card-featured {
  min-height: 650px; grid-column: 1 / -1;
  display: grid; grid-template-columns: .85fr 1.15fr;
  background: var(--soft);
}
.game-card-copy { padding: clamp(36px, 6vw, 92px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.game-number { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.game-card h3 { margin: 18px 0; font-size: clamp(40px, 5vw, 76px); line-height: .95; }
.game-card p { max-width: 480px; margin: 0 0 28px; color: #65625b; line-height: 1.65; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-row a {
  width: 156px; aspect-ratio: 1100 / 336;
  display: block;
  overflow: hidden;
  border-radius: 9px;
  transition: transform .2s, opacity .2s;
}
.store-row a:hover { transform: translateY(-3px); opacity: .82; }
.store-row img { width: 100%; height: 100%; object-fit: contain; }
.featured-visual {
  min-height: 600px; position: relative; overflow: hidden;
  display: grid; place-items: center; background: var(--accent);
}
.phone {
  width: min(45%, 320px); aspect-ratio: .52;
  padding: 9px; overflow: hidden; border: 4px solid var(--ink); border-radius: 38px;
  background: var(--ink); box-shadow: 18px 20px 0 rgba(25,25,23,.25);
  transform: rotate(7deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.app-icon {
  position: absolute; width: 112px; aspect-ratio: 1; right: 12%; top: 17%;
  border: 4px solid rgba(255,255,255,.9); border-radius: 24px; box-shadow: 8px 8px 0 rgba(82,82,78,.42);
}
.card-visual { height: 420px; position: relative; overflow: hidden; background: var(--soft); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s; }
.game-card:hover .card-visual img { transform: scale(1.035); }
.visual-label {
  position: absolute; left: 18px; top: 18px; z-index: 2;
  padding: 8px 11px; color: white; background: var(--accent);
  font: 700 11px var(--body); letter-spacing: .5px; text-transform: uppercase;
}
.card-body { padding: clamp(28px, 4vw, 54px); }
.card-body h3 { font-size: clamp(38px, 4vw, 62px); }
.game-title { margin: 18px 0; display: flex; align-items: center; gap: 15px; }
.game-title img { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 14px; box-shadow: 4px 4px 0 rgba(82,82,78,.42); }
.game-title h3 { margin: 0; }
.hex-visual { display: grid; place-items: center; background: var(--soft); }
.hex-board { width: 290px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; transform: rotate(-8deg); }
.hex-board i {
  width: 82px; aspect-ratio: 1; display: grid; place-items: center;
  color: white; background: var(--accent); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%);
  font: 700 31px var(--display); font-style: normal;
}
.hex-board i:nth-child(2n) { background: white; color: var(--accent); }

.studio-section {
  padding: clamp(76px, 10vw, 150px) clamp(20px, 5vw, 84px);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 9vw;
  color: white; background: var(--green);
}
.eyebrow.light span { background: var(--yellow); }
.studio-statement h2 { max-width: 800px; font-size: clamp(50px, 6.5vw, 100px); line-height: .98; }
.studio-statement h2 em { color: var(--yellow); font-style: normal; }
.studio-notes { display: flex; flex-direction: column; justify-content: flex-end; }
.studio-notes > p { margin: 0 0 45px; color: #d0e7df; font-size: 17px; line-height: 1.75; }
.principles { border-top: 1px solid rgba(255,255,255,.35); }
.principles div { padding: 17px 0; display: flex; gap: 22px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 14px; }
.principles strong { color: var(--yellow); }

footer { padding: 0 clamp(20px, 5vw, 84px); background: var(--yellow); }
.footer-top { min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid rgba(25,25,23,.35); }
.footer-top h2 { font-size: clamp(64px, 10vw, 150px); line-height: .8; }
.footer-top a { padding: 13px 0; border-bottom: 2px solid var(--ink); font-weight: 700; }
.footer-bottom { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; font-weight: 600; }

@media (max-width: 1050px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 620px; padding-bottom: 90px; }
  .game-wall { min-height: 590px; transform: rotate(2deg) scale(1.06); }
  .shot-tall { min-height: 300px; }
  .section-heading, .studio-section { grid-template-columns: 1fr; gap: 40px; }
  .game-card-featured { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: 64px; }
  .desktop-nav, .header-cta { display: none; }
  .hero-copy { min-width: 0; min-height: 540px; padding: 70px 20px 90px; }
  h1 { font-size: clamp(52px, 15.5vw, 68px); line-height: .94; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .game-wall { width: 100vw; min-width: 0; min-height: 440px; padding: 20px 12px 70px; gap: 9px; }
  .wall-column { gap: 9px; }
  .shot { min-height: 150px; border-width: 3px; box-shadow: 4px 4px 0 rgba(82,82,78,.42); }
  .shot-tall { min-height: 230px; }
  .hero-badge { display: none; }
  .games-section { padding-left: 14px; padding-right: 14px; }
  .section-heading { gap: 24px; }
  .game-grid { grid-template-columns: 1fr; gap: 14px; }
  .game-card-featured { min-height: 0; grid-column: auto; grid-template-columns: 1fr; }
  .game-card-copy { padding: 34px 28px; }
  .featured-visual { min-height: 450px; }
  .phone { width: 48%; }
  .app-icon { width: 82px; border-radius: 18px; }
  .card-visual { height: 350px; }
  .studio-section { padding-left: 20px; padding-right: 20px; }
  .footer-top { min-height: 250px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .footer-bottom { padding: 25px 0; align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker div { animation: none; }
  * { transition: none !important; }
}
