:root {
  --hangar-navy: #1c2e45;
  --sky-cyan: #4aa8d8;
  --flare-orange: #ff6b3d;
  --wing-gold: #f5c542;
  --cloud-wash: #eef4f8;
  --altitude-ink: #243447;
  --soft-muted: #5a6b7d;
  --header-height: 72px;
  --font-heading: "Space Mono", monospace;
  --font-body: "IBM Plex Sans", sans-serif;
  --neon-glow: 0 0 0 2px var(--sky-cyan), 0 0 14px rgba(74, 168, 216, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden !important;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--altitude-ink);
  min-height: 100vh;
  background-color: var(--cloud-wash);
}

.ak-theme {
  background-color: var(--cloud-wash);
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 18px,
      rgba(74, 168, 216, 0.07) 18px,
      rgba(74, 168, 216, 0.07) 19px
    ),
    linear-gradient(165deg, #dceaf4 0%, var(--cloud-wash) 42%, #e4edf5 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky-cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--flare-orange);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--hangar-navy);
}

.l-wrap {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.l-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.l-page__main {
  flex: 1;
  padding-bottom: 3rem;
}

.l-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 244, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 46, 69, 0.1);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.m-brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--hangar-navy);
  letter-spacing: -0.02em;
}

.m-brand span {
  color: var(--flare-orange);
}

.m-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.55rem;
  border: 2px solid var(--hangar-navy);
  border-radius: 0.4rem;
  background: transparent;
  cursor: pointer;
}

.m-burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--hangar-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.m-nav__list {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-nav__link {
  text-decoration: none;
  color: var(--soft-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.m-nav__link:hover,
.m-nav__link.is-active {
  color: var(--hangar-navy);
}

.m-hero {
  padding: 3.25rem 0 2rem;
}

.m-hero__tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sky-cyan);
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.m-hero__title {
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.m-hero__lead {
  margin: 0;
  max-width: 60ch;
  color: var(--soft-muted);
}

.m-section {
  padding: 2rem 0;
}

.m-section__title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.m-section__sub {
  margin: 0 0 1.75rem;
  color: var(--soft-muted);
  max-width: 58ch;
}

.m-section__title--center {
  text-align: center;
}

.m-section__title--spaced {
  margin-bottom: 1.75rem;
}

.m-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.m-game {
  border: 2px solid rgba(28, 46, 69, 0.12);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.m-game:hover {
  transform: translateY(-4px);
  border-color: var(--sky-cyan);
  box-shadow: var(--neon-glow);
}

.m-game__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d5e4ef;
}

.m-game__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-game__body {
  padding: 1rem 1.1rem 1.25rem;
}

.m-game__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.m-game__hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--soft-muted);
}

.m-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.m-feature {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(28, 46, 69, 0.1);
  border-radius: 0.85rem;
}

.m-feature__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.m-feature__text {
  margin: 0;
  color: var(--soft-muted);
}

.m-faq {
  max-width: 720px;
  margin-inline: auto;
}

.m-faq__item {
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(28, 46, 69, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
}

.m-faq__question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  background: none;
  border: none;
  color: var(--hangar-navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.m-faq__answer {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--soft-muted);
}

.m-faq__item.is-open .m-faq__answer {
  display: block;
}

.m-cta {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(28, 46, 69, 0.1);
  border-radius: 0.9rem;
}

.m-cta h2 {
  margin-top: 0;
  font-size: 1.75rem;
}

.m-cta p {
  color: var(--soft-muted);
}

.m-btn {
  display: inline-block;
  padding: 0.7rem 1.45rem;
  border-radius: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.m-btn--neon {
  background: transparent;
  color: var(--hangar-navy);
  border: 2px solid var(--sky-cyan);
  box-shadow: 0 0 0 0 rgba(74, 168, 216, 0);
}

.m-btn--neon:hover {
  color: var(--hangar-navy);
  background: rgba(74, 168, 216, 0.12);
  box-shadow: var(--neon-glow);
}

.m-btn--fill {
  background: var(--flare-orange);
  color: #fff;
  border: 2px solid var(--flare-orange);
}

.m-btn--fill:hover {
  background: #e85a2c;
  color: #fff;
  border-color: #e85a2c;
}

.l-footer {
  margin-top: auto;
  padding: 2.5rem 0 1.5rem;
  background: var(--hangar-navy);
  color: #c5d3e0;
}

.l-footer a {
  color: #e8f1f8;
}

.l-footer a:hover {
  color: var(--wing-gold);
}

.l-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.l-footer__heading {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.l-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-footer__links a {
  text-decoration: none;
}

.l-footer__links li {
  margin-bottom: 0.35rem;
}

.l-footer__bottom {
  font-size: 0.9rem;
  color: #8fa3b8;
}

.m-cookie {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  max-width: min(420px, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  background: #fff;
  border: 2px solid var(--sky-cyan);
  border-radius: 0.75rem;
  box-shadow: var(--neon-glow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.m-cookie p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--soft-muted);
}

.m-page-head {
  padding: 2.5rem 0 1rem;
}

.m-page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
}

.m-page-head__lead {
  margin: 0;
  color: var(--soft-muted);
  max-width: 58ch;
}

.m-prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.m-prose p,
.m-prose li {
  color: var(--soft-muted);
}

.m-prose ul {
  padding-left: 1.2rem;
}

.m-form {
  max-width: 520px;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(28, 46, 69, 0.1);
  border-radius: 0.85rem;
}

.m-form__group {
  margin-bottom: 1rem;
}

.m-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.m-form__input,
.m-form__textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid rgba(28, 46, 69, 0.15);
  border-radius: 0.5rem;
  background: var(--cloud-wash);
  color: var(--altitude-ink);
  font: inherit;
}

.m-form__input:focus,
.m-form__textarea:focus {
  outline: none;
  border-color: var(--sky-cyan);
  box-shadow: var(--neon-glow);
}

.m-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.m-form__status {
  margin-top: 0.75rem;
  color: var(--sky-cyan);
  font-weight: 700;
}

.m-blog {
  display: grid;
  gap: 1.5rem;
}

.m-blog-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(28, 46, 69, 0.1);
  border-radius: 0.85rem;
  overflow: hidden;
}

.m-blog-card__thumb img {
  height: 100%;
  min-height: 160px;
  width: 100%;
  object-fit: cover;
}

.m-blog-card__content {
  padding: 1.1rem 1.2rem 1.25rem 0;
}

.m-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--soft-muted);
  margin: 0.75rem 0 1rem;
}

.m-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.3rem;
  background: var(--hangar-navy);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
}

.m-article {
  padding: 2rem 0 3rem;
}

.m-article__header h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.m-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--soft-muted);
  font-size: 0.9rem;
}

.m-article__content section {
  margin-bottom: 2rem;
}

.m-article__content p {
  color: var(--soft-muted);
}

.m-article__content h2 {
  font-size: 1.4rem;
}

.m-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(28, 46, 69, 0.78);
}

.m-modal.is-open {
  display: flex;
}

.m-modal__panel {
  width: min(960px, 100%);
  height: min(85vh, 720px);
  background: #fff;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid var(--sky-cyan);
  box-shadow: var(--neon-glow);
  display: flex;
  flex-direction: column;
}

.m-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--hangar-navy);
}

.m-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: #fff;
}

.m-modal__close {
  border: 2px solid var(--flare-orange);
  background: transparent;
  color: var(--flare-orange);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
}

.m-modal__close:hover {
  background: rgba(255, 107, 61, 0.15);
  box-shadow: 0 0 12px rgba(255, 107, 61, 0.4);
}

.m-modal__frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #111;
}

@media (max-width: 900px) {
  .m-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .m-burger {
    display: flex;
  }

  .m-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: #fff;
    padding: 1rem;
    border-bottom: 2px solid rgba(28, 46, 69, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .m-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .m-nav__list {
    flex-direction: column;
  }

  .m-burger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .m-burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .m-burger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .m-blog-card {
    grid-template-columns: 1fr;
  }

  .m-blog-card__content {
    padding: 0 1rem 1.25rem;
  }

  .m-cookie {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
