:root {
  --bg:     #07090f;
  --bg2:    #0c1019;
  --border: #161f2e;
  --accent: #f5c518;
  --c:      var(--accent);
  --text:   #c8d8ec;
  --muted:  #5a7088;
  --mono:   'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: 80px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(7,9,15,.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo img { height: 22px; width: auto; display: block; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  color: #0a0c10;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: filter .15s;
}
.nav-links .nav-cta:hover { color: #0a0c10; filter: brightness(1.12); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 38px; height: 38px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 14px 4px; font-size: .74rem; }
  .nav-links li + li { border-top: 1px solid var(--border); }
  .nav-links .nav-cta { text-align: center; margin-top: 10px; }
}

/* ── HERO ── */
.hero {
  position: relative;
  text-align: center;
  padding: 150px 20px 70px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 140%;
  background: radial-gradient(ellipse at 50% 30%, rgba(245,197,24,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.logo { position: relative; line-height: 0; }
.logo img {
  width: min(520px, 100%);
  height: auto;
}
.contact {
  position: relative;
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: #fff;
  opacity: .5;
  transition: opacity .15s;
}
.contact:hover { opacity: 1; }

/* ── GAME SOCIAL ── */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  min-width: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.social a:hover {
  color: #fff;
  border-color: #2a3a52;
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
}
.social svg { width: 15px; height: 15px; fill: currentColor; }
.social .wide {
  padding: 0 14px;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── GAMES ── */
.games {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
}
.game {
  --c: var(--accent);
  position: relative;
  background: linear-gradient(180deg, #0e1320 0%, #0a0d16 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.game--horn { --c: #ff6a3d; }
.game::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--c);
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
}
.game:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 35%, var(--border));
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--c) 30%, transparent),
              0 10px 30px -10px rgba(0,0,0,.6);
}
.game:hover::after { opacity: 1; }

.game-media {
  position: relative;
  display: block;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  background: #000;
}
.game-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s, transform .8s cubic-bezier(.2,.8,.2,1);
}
.game-media .shot { opacity: 0; }
.game:hover .game-media .cover { opacity: 0; transform: scale(1.06); }
.game:hover .game-media .shot { opacity: 1; transform: scale(1.04); }
.game-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, #0e1320 0%, transparent 100%);
  pointer-events: none;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7,9,15,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 10px;
  border-radius: 999px;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.game-body {
  position: relative;
  padding: 8px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.game-genre {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c);
}
.game-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 1px;
  color: #fff;
  line-height: .95;
}
.game-desc { color: var(--text); opacity: .78; flex: 1; }
.platforms {
  display: flex;
  align-items: center;
  gap: 14px;
}
.platforms-label {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
}
.platforms svg {
  width: 17px;
  height: 17px;
  fill: var(--muted);
  transition: fill .2s;
}
.game:hover .platforms svg { fill: var(--text); }
.game-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 6px;
  transition: filter .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--c); color: #0a0c10; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border: 1px solid var(--border); color: var(--muted); }
.btn-ghost:hover { color: #fff; border-color: #2a3a52; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

@media (hover: none) {
  .game:hover { transform: none; }
  .game:hover .game-media .cover { opacity: 1; transform: none; }
  .game:hover .game-media .shot { opacity: 0; }
}

/* ── SECTIONS ── */
.section {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 90px 20px;
  border-top: 1px solid var(--border);
}
.section-head { margin-bottom: 40px; max-width: 640px; }
.eyebrow {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin-top: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 1px;
  line-height: .95;
  color: #fff;
}
.section-lead { margin-top: 16px; font-size: 1.05rem; opacity: .8; }
.games-head {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.about-text { max-width: 640px; font-size: 1.05rem; }
.about-text p + p { margin-top: 14px; }
.about-text p { opacity: .82; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.service {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: linear-gradient(180deg, #0e1320 0%, #0a0d16 100%);
  transition: border-color .2s, transform .2s;
}
.service:hover { border-color: #2a3a52; transform: translateY(-3px); }
.service-icon {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: .5px;
  color: #fff;
  line-height: 1.1;
}
.service p { margin-top: 8px; font-size: .92rem; opacity: .75; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--muted); }

.careers-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  background: radial-gradient(ellipse at 0% 0%, rgba(245,197,24,.06) 0%, transparent 60%), #0b0f19;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.careers-box p { max-width: 560px; opacity: .82; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.role {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 4px;
}

.jobs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.jobs-head h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: .5px;
  color: #fff;
}
.jobs-count {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.jobs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.job {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0e1320 0%, #0a0d16 100%);
  transition: border-color .2s;
}
.job:hover, .job[open] { border-color: #2a3a52; }
.job summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}
.job summary::-webkit-details-marker { display: none; }
.job-main { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.job-dept {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.job-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: .5px;
  line-height: 1;
  color: #fff;
}
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.job-meta span {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 4px;
}
.job-chevron {
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
  flex-shrink: 0;
}
.job[open] .job-chevron { transform: rotate(-135deg) translateY(-3px); }
.job-body {
  padding: 4px 24px 26px;
  border-top: 1px solid var(--border);
  margin: 0 24px;
  padding-left: 0; padding-right: 0;
}
.job-body p { margin-top: 18px; opacity: .85; }
.job-body h4 {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.job-body ul { margin: 10px 0 0 18px; opacity: .8; }
.job-body li + li { margin-top: 4px; }
.job-body li::marker { color: var(--accent); }
.job-body .btn { margin-top: 24px; }
.careers-box-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
}

button.btn { border: 0; cursor: pointer; }
button.btn-ghost { border: 1px solid var(--border); background: transparent; }
button.btn:disabled { opacity: .5; cursor: wait; }

/* ── APPLY DIALOG ── */
.apply-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #22304a;
  border-radius: 16px;
  background: #0b0f19;
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.apply-dialog::backdrop { background: rgba(3,4,8,.75); backdrop-filter: blur(4px); }
.apply-form, .apply-done { padding: 28px; }
.apply-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.apply-title {
  margin-top: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1;
  color: #fff;
}
.apply-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.apply-close:hover { color: #fff; border-color: #2a3a52; }
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field small { text-transform: none; letter-spacing: .02em; opacity: .7; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: #fff;
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #3c4c62; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,197,24,.15);
}
.field input[type="file"] { padding: 8px; color: var(--muted); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0a0c10;
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-status {
  min-height: 1.4em;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.apply-status.is-error { color: #ff6b6b; }
.apply-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.apply-done { text-align: center; padding: 48px 28px; }
.apply-done p { margin: 12px 0 24px; opacity: .8; }

@media (max-width: 560px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-form, .apply-done { padding: 22px 18px; }
}

@media (max-width: 760px) {
  .job summary { flex-wrap: wrap; padding: 18px; gap: 12px; }
  .job-main { flex-basis: calc(100% - 40px); }
  .job-chevron { order: 2; }
  .job-meta { order: 3; justify-content: flex-start; flex-basis: 100%; }
  .job-body { margin: 0 18px; }
}

@media (max-width: 760px) {
  .section { padding: 70px 16px; }
  .careers-box { padding: 26px; }
}

/* ── SUBPAGES ── */
.page .section:first-child { border-top: 0; padding-top: 0; }
.nav-links a.active { color: #fff; }

/* ── FOOTER ── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--muted);
}
footer a { color: #fff; opacity: .6; transition: opacity .15s; }
footer a:hover { opacity: 1; }
footer .copy { margin-top: 8px; opacity: .6; }

@media (max-width: 480px) {
  .hero { padding: 116px 16px 50px; }
  .games-head { padding: 0 16px; }
  .games { padding: 0 16px 60px; }
}
