/* Kernel Games multipage layout */
:root {
  --kg-blue: #247fbd;
  --kg-ink: #19384c;
  --kg-yellow: #f7cc43;
  --kg-pale: #eff8fe;
  --kg-line: #c9dfed;
}
* {
  box-sizing: border-box;
}
.kg-page {
  margin: 0;
  background: #fff;
  color: var(--kg-ink);
  font-family: Nunito, Arial, sans-serif;
  line-height: 1.7;
}
.kg-page h1,
.kg-page h2,
.kg-page h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 22px;
}
.kg-page h1 {
  font-size: clamp(42px, 6vw, 78px);
}
.kg-page h2 {
  font-size: clamp(30px, 4vw, 48px);
}
.kg-page h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
.kg-page p {
  margin: 0 0 22px;
}
.kg-wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
.kg-section {
  padding: 86px 0;
}
.kg-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fffefa;
  border-bottom: 1px solid var(--kg-line);
  font-family: Nunito, Arial, sans-serif;
  color: var(--kg-ink);
}
.kg-nav {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.kg-brand img {
  display: block;
  width: 170px;
  height: 35px;
  object-fit: contain;
}
.kg-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.kg-header a {
  text-decoration: none;
  color: inherit;
}
.kg-nav-links a {
  font-size: 15px;
  font-weight: 800;
  padding: 12px 0;
}
.kg-nav-links a:hover,
.kg-nav-links a[aria-current="page"] {
  color: #19699f;
  box-shadow: inset 0 -3px #f7cc43;
}
.kg-menu {
  display: none;
}
.kg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--kg-blue);
  color: white !important;
  font:
    800 15px/1.5 Nunito,
    Arial,
    sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.kg-button:hover {
  background: #195f90;
}
.kg-button-yellow {
  background: var(--kg-yellow);
  color: #19384c !important;
}
.kg-button-yellow:hover {
  background: #ffdf70;
}
.kg-button-light {
  background: white;
  color: #19699f !important;
  border: 1px solid #b7d5e8;
}
.kg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.kg-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #246489;
  margin-bottom: 22px;
}
.kg-lead {
  font-size: 20px;
  line-height: 1.7;
  color: #4d7186;
  max-width: 640px;
}
.kg-blue {
  background: linear-gradient(125deg, #2589ca, #236dac);
  color: white;
}
.kg-blue .kg-label {
  color: #fff0aa;
}
.kg-blue .kg-lead {
  color: #e4f4ff;
}
.kg-pale {
  background: var(--kg-pale);
}
.kg-hero {
  padding: 80px 0 72px;
  overflow: hidden;
}
.kg-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}
.kg-hero h1 {
  max-width: 650px;
}
.kg-hero h1 span {
  color: #ffdf62;
}
.kg-hero-art {
  position: relative;
  isolation: isolate;
}
.kg-hero-art:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ffffff18;
  transform: scale(1.12);
  z-index: -1;
}
.kg-hero-art img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}
.kg-chip {
  display: inline-block;
  background: #ffdd62;
  color: #19384c;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-4deg);
  position: absolute;
  right: -6px;
  bottom: 4px;
}
.kg-ticker {
  background: #ffdf62;
  padding: 20px 0;
}
.kg-ticker .kg-wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  color: #4d431a;
}
.kg-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 65px;
  align-items: center;
}
.kg-feature-shot {
  border-radius: 24px;
  padding: 28px;
  min-width: 0;
}
.kg-feature-shot img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: contain;
}
.kg-side-note {
  border-left: 4px solid var(--kg-yellow);
  padding-left: 25px;
  color: #567589;
  margin: 28px 0;
}
.kg-studio-strip {
  border-top: 1px solid var(--kg-line);
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 0.7fr;
  gap: 40px;
  align-items: start;
  padding-top: 35px;
}
.kg-studio-strip h2 {
  font-size: 38px;
}
.kg-studio-strip .kg-button {
  align-self: center;
}
.kg-page a:not(.kg-button) {
  color: #226f9f;
  text-underline-offset: 4px;
}
.kg-page a:focus-visible,
.kg-header a:focus-visible,
.kg-header summary:focus-visible,
.kg-page button:focus-visible,
.kg-page input:focus-visible,
.kg-page textarea:focus-visible,
.kg-page select:focus-visible {
  outline: 3px solid #d39b00;
  outline-offset: 4px;
}
.kg-game-intro {
  padding: 52px 0;
  background: #eaf6ff;
  color: #19384c;
  font-family: Nunito, Arial, sans-serif;
}
.kg-game-intro h1 {
  font-size: clamp(36px, 4vw, 55px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.kg-game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.kg-game-heading p {
  color: #516f85;
}
.kg-subnav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-weight: 800;
  font-size: 14px;
}
.kg-subnav a {
  color: #216b9e;
  text-decoration: none;
}
.kg-game-page section[id] {
  scroll-margin-top: 85px;
}
.kg-game-page #screenshots .screenshot {
  border: 0;
  background: white;
  cursor: zoom-in;
  text-align: inherit;
}
.kg-game-page .faq-question:focus-visible,
.kg-game-page .screenshot:focus-visible {
  outline: 3px solid #d39b00;
  outline-offset: 5px;
}
.kg-lightbox {
  border: 0;
  border-radius: 16px;
  padding: 48px 15px 15px;
  background: #14374b;
  max-width: 95vw;
  max-height: 95vh;
}
.kg-lightbox::backdrop {
  background: #0a1d30dd;
}
.kg-lightbox img {
  display: block;
  max-height: 78vh;
  max-width: 85vw;
  object-fit: contain;
}
.kg-lightbox button {
  position: absolute;
  right: 12px;
  top: 8px;
  color: white;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.kg-about-title {
  padding: 72px 0 50px;
  background: #fff7d9;
}
.kg-about-title h2 {
  max-width: 850px;
}
.kg-about-title .kg-lead {
  max-width: 760px;
}
.kg-editorial {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 70px;
  align-items: start;
}
.kg-margin-note {
  background: #ffdf62;
  padding: 32px;
  transform: rotate(-3deg);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 9px 9px 0 #eff6fa;
}
.kg-margin-note span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.13em;
  margin-bottom: 25px;
}
.kg-editorial h2 {
  max-width: 650px;
}
.kg-ability {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--kg-line);
  margin-top: 38px;
}
.kg-ability article {
  padding: 30px;
  border-right: 1px solid var(--kg-line);
}
.kg-ability article:last-child {
  border: 0;
}
.kg-ability b {
  font-size: 12px;
  color: #2873a6;
  display: block;
  margin-bottom: 28px;
}
.kg-ability h3 {
  font-size: 22px;
}
.kg-ability p {
  font-size: 15px;
  color: #4d7186;
  margin: 0;
}
.kg-team-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.kg-team-notes blockquote {
  margin: 0;
  padding-top: 22px;
  border-top: 3px solid #f7cc43;
  font-size: 17px;
}
.kg-team-notes footer {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 28px;
}
.kg-team-notes img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}
.kg-team-notes p {
  color: #4d7186;
}
.kg-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
  padding: 75px 0;
}
.kg-contact-grid h1 {
  font-size: clamp(42px, 5vw, 64px);
}
.kg-contact-info {
  margin-top: 40px;
}
.kg-contact-info dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #52788e;
  margin-top: 24px;
}
.kg-contact-info dd {
  margin: 6px 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.kg-form {
  padding: 36px;
  background: #fff;
  border: 1px solid #bfd7e6;
  border-top: 6px solid #f7cc43;
  border-radius: 10px;
  box-shadow: 12px 12px 0 #dcebf5;
}
.kg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.kg-form label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 7px;
}
.kg-form input,
.kg-form select,
.kg-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid #aecbdf;
  border-radius: 6px;
  background: #fafdff;
  color: #19384c;
}
.kg-form textarea {
  resize: vertical;
  min-height: 155px;
}
.kg-field {
  margin-bottom: 22px;
}
.kg-form-note {
  font-size: 13px;
  color: #55778e;
}
.kg-form-status {
  margin: 20px 0 0 !important;
  font-size: 14px;
  color: #195f90;
}
.kg-contact-tips {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  border-top: 1px solid #bbd7e8;
  padding: 40px 0 65px;
}
.kg-contact-tips ul {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 40px;
}
.kg-contact-tips li {
  margin-bottom: 13px;
  break-inside: avoid;
  color: #4d7186;
}
.kg-join-title {
  padding: 70px 0 50px;
}
.kg-join-title h1 {
  max-width: 880px;
}
.kg-role-menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.kg-role-menu a {
  border: 1px solid #bbd4e4;
  padding: 10px 17px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.kg-position {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 35px;
  align-items: start;
  border-top: 1px solid #bdd7e8;
  padding: 45px 0;
  scroll-margin-top: 90px;
}
.kg-position:last-child {
  border-bottom: 1px solid #bdd7e8;
}
.kg-position-number {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  color: #80b5d5;
}
.kg-position small {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: #2573a6;
}
.kg-position h2 {
  font-size: 32px;
  margin-top: 10px;
}
.kg-position h3 {
  font-size: 17px;
  margin: 28px 0 12px;
  letter-spacing: 0;
}
.kg-position-body {
  min-width: 0;
  max-width: 920px;
}
.kg-position .kg-position-summary {
  font-size: 17px;
}
.kg-position h2 {
  letter-spacing: 0;
}
.kg-position .kg-button {
  margin-top: 6px;
}
.kg-position p,
.kg-position li {
  font-size: 15px;
  color: #4d7186;
}
.kg-position ul {
  padding-left: 20px;
  margin-bottom: 25px;
}
.kg-position li {
  margin: 8px 0;
}
.kg-join-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 35px;
  background: #ffdf62;
  border-radius: 12px;
  margin-bottom: 70px;
}
.kg-join-end p {
  margin: 0;
  max-width: 650px;
}
.kg-footer {
  background: #162f42;
  color: #bcd4e4;
  padding: 45px 0;
  font:
    14px/1.7 Nunito,
    Arial,
    sans-serif;
}
.kg-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.kg-footer-brand {
  color: white;
  font-weight: 800;
  font-size: 20px;
}
.kg-footer p {
  margin: 4px 0;
}
.kg-footer nav {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
  align-items: center;
}
.kg-footer a {
  color: inherit !important;
  text-decoration: none;
}
.kg-footer a:hover {
  text-decoration: underline;
}
.kg-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  border-top: 1px solid #3b5466;
  padding-top: 24px;
  font-size: 12px;
}
.kg-footer-bottom div {
  display: flex;
  gap: 22px;
}
/* Home: studio content and section anchors. */
.kg-page section[id] {
  scroll-margin-top: 96px;
}
.kg-about-title h2 {
  font-size: 48px;
  letter-spacing: 0;
}
@media (max-width: 850px) {
  .kg-nav-links {
    display: none;
  }
  .kg-menu {
    display: block;
  }
  .kg-menu summary {
    cursor: pointer;
    font-weight: 800;
    border: 1px solid #bad6e7;
    padding: 8px 16px;
    border-radius: 8px;
  }
  .kg-menu nav {
    position: absolute;
    right: 24px;
    top: 68px;
    width: min(290px, calc(100vw - 48px));
    background: white;
    border: 1px solid #bcd7e7;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 35px #19384c22;
  }
  .kg-menu a {
    display: block;
    padding: 12px;
    font-weight: 800;
  }
  .kg-hero-grid,
  .kg-feature,
  .kg-editorial,
  .kg-contact-grid,
  .kg-contact-tips {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .kg-hero-art {
    width: min(390px, 85%);
    margin: auto;
  }
  .kg-section {
    padding: 60px 0;
  }
  .kg-studio-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .kg-ability {
    grid-template-columns: 1fr 1fr;
  }
  .kg-ability article:nth-child(2) {
    border-right: 0;
  }
  .kg-ability article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--kg-line);
  }
  .kg-team-notes {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .kg-margin-note {
    transform: none;
    font-size: 26px;
  }
  .kg-position {
    grid-template-columns: 45px 1fr;
    gap: 20px;
  }
  .kg-position > div:last-child {
    grid-column: 2;
  }
  .kg-position-number {
    font-size: 32px;
  }
  .kg-join-end {
    flex-direction: column;
    align-items: start;
  }
  .kg-contact-grid {
    padding: 50px 0;
  }
  .kg-game-heading {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .kg-about-title h2 {
    font-size: 34px;
  }
  .kg-wrap,
  .kg-nav {
    width: calc(100% - 36px);
  }
  .kg-hero {
    padding: 45px 0;
  }
  .kg-ticker .kg-wrap {
    gap: 12px;
    font-size: 12px;
  }
  .kg-feature-shot {
    padding: 18px;
  }
  .kg-feature-shot img {
    height: 280px;
  }
  .kg-ability {
    grid-template-columns: 1fr;
  }
  .kg-ability article {
    border-right: 0;
    border-bottom: 1px solid var(--kg-line);
  }
  .kg-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .kg-form {
    padding: 24px;
    box-shadow: 6px 6px 0 #dcebf5;
  }
  .kg-contact-tips ul {
    columns: 1;
  }
  .kg-position {
    grid-template-columns: 1fr;
  }
  .kg-position > div:last-child {
    grid-column: auto;
  }
  .kg-about-title,
  .kg-join-title {
    padding: 45px 0;
  }
  .kg-subnav {
    gap: 18px;
  }
  .kg-team-notes blockquote {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .float-animation,
  .float-animation-delay-1,
  .float-animation-delay-2 {
    animation: none !important;
  }
}
