/**
* Aevorynth static site styles.
* Derived from the uploaded archive structure: shared header, navmenu, footer,
* section spacing, Bootstrap grid usage, card components and animation hooks.
*/

:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading-font: "Nunito", "Inter", system-ui, sans-serif;
  --nav-font: "Inter", system-ui, sans-serif;
  --background-color: #fff9ec;
  --default-color: #34364a;
  --heading-color: #181a35;
  --accent-color: #335cff;
  --accent-color-2: #6d3df5;
  --coral-color: #ff6b4a;
  --mint-color: #28d6a3;
  --yellow-color: #ffd447;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --line-color: rgba(24, 26, 53, 0.12);
  --shadow-soft: 0 18px 45px rgba(36, 39, 78, 0.14);
  --nav-color: rgba(255, 255, 255, 0.82);
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-color: #34364a;
  --nav-dropdown-hover-color: #335cff;
  scroll-behavior: smooth;
}

.light-background {
  --background-color: #f2fff9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #171936;
  --default-color: #eef2ff;
  --heading-color: #ffffff;
  --surface-color: #24264e;
  --contrast-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--default-color);
  background: var(--background-color);
  font-family: var(--default-font);
  margin: 0;
}

body.game-open {
  overflow: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

a:hover {
  color: var(--accent-color-2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--yellow-color);
  outline-offset: 3px;
}

.main {
  overflow: hidden;
}

.section {
  color: var(--default-color);
  background: var(--background-color);
  padding: 72px 0;
  scroll-margin-top: 84px;
}

.section-title {
  text-align: center;
  padding-bottom: 44px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 12px;
}

.section-title p {
  max-width: 680px;
  margin: 0 auto;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
}

.eyebrow,
.jg-game-kicker,
.game-category,
.preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color-2);
  background: color-mix(in srgb, var(--accent-color-2), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--accent-color-2), transparent 78%);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.btn-primary-jg,
.btn-secondary-jg,
.cta-btn,
.contact .php-email-form button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 8px;
  border: 0;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.1;
}

.btn-primary-jg,
.contact .php-email-form button[type=submit] {
  color: #ffffff;
  background: var(--accent-color);
  box-shadow: 0 10px 25px rgba(51, 92, 255, 0.28);
}

.btn-primary-jg:hover,
.contact .php-email-form button[type=submit]:hover {
  color: #ffffff;
  background: #2648d8;
}

.btn-secondary-jg {
  color: var(--heading-color);
  background: #ffffff;
  border: 1px solid var(--line-color);
}

.btn-secondary-jg:hover {
  color: var(--accent-color);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
}

.header {
  --background-color: #3154f3;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background: linear-gradient(90deg, #2445d8, #6b3df4 55%, #ff6b4a);
  padding: 14px 0;
  transition: box-shadow 0.35s ease, padding 0.35s ease;
  z-index: 997;
}

.scrolled .header {
  box-shadow: 0 8px 30px rgba(23, 25, 54, 0.22);
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #171936;
  background: var(--yellow-color);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: inset -4px -4px 0 rgba(255, 107, 74, 0.35);
}

.header .logo h1,
.footer-brand {
  font-size: 28px;
  margin: 0;
  font-weight: 900;
  color: #ffffff;
}

.quick-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #171936;
  background: var(--yellow-color);
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(24, 26, 53, 0.18);
}

.quick-play-btn:hover {
  background: #ffe173;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .quick-play-btn {
    order: 2;
    padding: 10px 12px;
  }

  .header .navmenu {
    order: 3;
  }
}

@media (max-width: 460px) {
  .quick-play-btn span {
    display: none;
  }
}

@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 13px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 1;
    margin-right: 8px;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 64px 18px 20px 18px;
    padding: 10px 0;
    margin: 0;
    border-radius: 8px;
    background: var(--nav-mobile-background-color);
    overflow-y: auto;
    z-index: 9998;
    box-shadow: var(--shadow-soft);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 12px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(23, 25, 54, 0.82);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 134px 0 76px;
  background:
    linear-gradient(rgba(51, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 92, 255, 0.08) 1px, transparent 1px),
    #fff8e8;
  background-size: 34px 34px;
}

.hero h2 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.94;
  font-weight: 900;
  margin: 18px 0;
}

.hero p {
  font-size: 19px;
  max-width: 620px;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tile-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  min-height: 460px;
  padding: 18px;
}

.wall-tile {
  border: 0;
  border-radius: 8px;
  min-height: 104px;
  padding: 16px;
  color: #ffffff;
  text-align: left;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wall-tile:hover,
.wall-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(36, 39, 78, 0.2);
}

.tile-feature {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 230px;
  background: linear-gradient(135deg, #3154f3, #6d3df5);
}

.tile-feature strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin: 24px 0 10px;
}

.tile-coral {
  grid-column: span 2;
  background: var(--coral-color);
}

.tile-mint {
  grid-column: span 2;
  background: var(--mint-color);
  color: #10251f;
}

.tile-yellow {
  grid-column: span 3;
  background: var(--yellow-color);
  color: #2f2500;
}

.tile-violet {
  grid-column: span 3;
  background: var(--accent-color-2);
}

.tile-blue {
  grid-column: span 2;
  background: var(--accent-color);
}

.tile-ink {
  grid-column: span 4;
  background: #171936;
}

.featured-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.featured-panel .featured-copy {
  padding: clamp(28px, 5vw, 58px);
}

.featured-panel h3 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 0.98;
  margin: 16px 0;
}

.featured-panel p {
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.featured-media {
  min-height: 360px;
  background: #171936;
}

.featured-media img,
.jg-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-actions,
.card-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.joygrid-mix {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.joygrid-mix .mix-main {
  min-height: 100%;
}

.joygrid-mix .mix-side {
  display: grid;
  gap: 18px;
}

.game-grid {
  min-height: 220px;
}

.jg-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(36, 39, 78, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jg-game-card[role="button"] {
  cursor: pointer;
}

.jg-game-card:hover,
.jg-game-card:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
  box-shadow: 0 22px 48px rgba(36, 39, 78, 0.17);
}

.jg-game-card.compact {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 144px;
}

.jg-game-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(51, 92, 255, 0.9), rgba(109, 61, 245, 0.9)),
    #3154f3;
  overflow: hidden;
}

.jg-game-card.compact .jg-game-thumb {
  aspect-ratio: auto;
  min-height: 100%;
}

.jg-thumb-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 44px;
  font-weight: 900;
}

.jg-game-thumb.is-fallback .jg-thumb-fallback {
  display: flex;
}

.jg-game-card-body {
  padding: 18px;
}

.jg-game-card h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 10px 0 8px;
}

.jg-game-card p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.play-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 900;
  margin-top: 14px;
}

.jg-favorite-btn,
#game-favorite-toggle,
#game-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line-color);
  background: #ffffff;
  color: var(--heading-color);
}

.jg-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  box-shadow: 0 10px 20px rgba(24, 26, 53, 0.12);
}

.jg-favorite-btn[aria-pressed="true"],
#game-favorite-toggle[aria-pressed="true"] {
  color: #ffffff;
  background: var(--coral-color);
  border-color: var(--coral-color);
}

.features-item,
.service-item,
.info-item,
.empty-state,
.legal-copy,
.preview-panel,
.about-visual,
.faq-item,
.games-toolbar,
.explore-lane {
  background: #ffffff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(36, 39, 78, 0.08);
}

.features-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  min-height: 104px;
  color: var(--heading-color);
}

.features-item i {
  color: var(--accent-color);
  font-size: 28px;
}

.features-item h3 {
  font-size: 19px;
  font-weight: 900;
  margin: 0;
}

.jg-category-card {
  flex-direction: column;
  align-items: flex-start;
}

.jg-category-card span {
  color: color-mix(in srgb, var(--default-color), transparent 28%);
  font-weight: 700;
}

.services .service-item {
  padding: 24px;
}

.services .service-item .icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 900;
}

.services .service-item .title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px;
}

.services .service-item .description {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 24%);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.mood-grid button {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #ffffff;
  color: var(--heading-color);
  font-weight: 900;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.mood-grid i {
  color: var(--coral-color);
  font-size: 26px;
}

.call-to-action {
  background:
    linear-gradient(135deg, rgba(49, 84, 243, 0.92), rgba(109, 61, 245, 0.92)),
    #171936;
}

.call-to-action h3 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
}

.call-to-action p {
  max-width: 700px;
  margin: 0 auto 24px;
}

.cta-btn {
  color: #171936;
  background: var(--yellow-color);
}

.cta-btn:hover {
  color: #171936;
  background: #ffe173;
}

.page-title {
  padding-top: 80px;
  background:
    linear-gradient(rgba(51, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 92, 255, 0.08) 1px, transparent 1px),
    var(--background-color);
  background-size: 34px 34px;
}

.page-title .heading {
  padding: 92px 0 64px;
}

.page-title h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
}

.games-toolbar {
  padding: 18px;
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff9ec;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 10px 14px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading-color);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #ffffff;
  color: var(--heading-color);
  padding: 10px 13px;
  font-weight: 800;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #ffffff;
  border-color: var(--accent-color);
  background: var(--accent-color);
}

.game-count {
  margin: 0;
  font-weight: 900;
  color: var(--accent-color-2);
}

.empty-state {
  text-align: center;
  padding: 46px 24px;
}

.empty-state h2 {
  font-weight: 900;
}

.preview-panel {
  padding: 22px;
}

.preview-panel h3 {
  font-weight: 900;
  margin: 0 0 16px;
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #fff9ec;
}

.preview-card img {
  width: 88px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.preview-card strong {
  color: var(--heading-color);
}

.preview-card span {
  display: block;
  color: color-mix(in srgb, var(--default-color), transparent 28%);
  font-size: 13px;
  font-weight: 800;
}

.explore-lane {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 20px;
  margin-bottom: 18px;
}

.explore-lane-copy span {
  color: var(--coral-color);
  font-weight: 900;
}

.explore-lane-copy h2 {
  font-size: 30px;
  font-weight: 900;
}

.explore-lane-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.about-visual {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(51, 92, 255, 0.9), rgba(255, 107, 74, 0.86)),
    #3154f3;
  text-align: center;
}

.about-visual span {
  width: 110px;
  height: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171936;
  background: var(--yellow-color);
  border-radius: 8px;
  font-size: 42px;
  font-weight: 900;
}

.about-visual strong {
  max-width: 260px;
  font-family: var(--heading-font);
  font-size: 30px;
  line-height: 1;
}

.about .content h3 {
  font-size: 34px;
  font-weight: 900;
}

.about .content ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.about .content li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.about .content i {
  color: var(--mint-color);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: var(--heading-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 900;
}

.faq-panel {
  padding: 0 20px 18px;
}

.faq-panel p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.contact .info-item {
  min-height: 190px;
  padding: 26px;
  text-align: center;
}

.contact .info-item i {
  font-size: 34px;
  color: var(--accent-color);
}

.contact .php-email-form {
  margin-top: 28px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.contact label {
  display: block;
  font-weight: 900;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.contact .php-email-form input,
.contact .php-email-form select,
.contact .php-email-form textarea {
  border-radius: 8px;
  box-shadow: none;
  font-size: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line-color);
}

.contact .php-email-form input:focus,
.contact .php-email-form select:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.contact-status {
  min-height: 24px;
  font-weight: 800;
}

.contact-status.error {
  color: #b42318;
}

.contact-status.ready {
  color: #087443;
}

.contact-mailto {
  margin-right: 10px;
}

.legal-copy {
  padding: clamp(24px, 4vw, 42px);
}

.legal-copy h2 {
  font-size: 30px;
  font-weight: 900;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.footer {
  color: var(--default-color);
  background: var(--background-color);
  font-size: 15px;
  padding: 52px 0 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
}

.footer p {
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.footer-domain {
  font-weight: 900;
  color: var(--yellow-color) !important;
}

.footer h4 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer .copyright {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .copyright p {
  margin: 0;
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 999;
  background: var(--accent-color);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.scroll-top i {
  font-size: 24px;
  color: #ffffff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.4s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 28px);
  left: calc(50% - 28px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--coral-color) transparent;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  to {
    transform: rotate(360deg);
  }
}

.jg-game-player[hidden],
.cookie-banner[hidden] {
  display: none;
}

.jg-game-player {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.jg-game-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 32, 0.78);
}

.jg-game-window {
  position: relative;
  width: min(1180px, 100%);
  height: min(780px, calc(100dvh - 44px));
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.jg-game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff9ec;
  border-bottom: 1px solid var(--line-color);
}

.jg-game-heading h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  margin: 6px 0 0;
}

.jg-game-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.jg-game-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #11132b;
}

.jg-game-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(51, 92, 255, 0.35), rgba(17, 19, 43, 0.98));
  font-weight: 900;
  z-index: 2;
}

.jg-game-loading[hidden] {
  display: none;
}

#game-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #11132b;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  color: var(--heading-color);
  background: #ffffff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.cookie-banner p {
  margin: 4px 0 0;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cookie-actions button {
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #ffffff;
  color: var(--heading-color);
  padding: 10px 12px;
  font-weight: 900;
}

.cookie-actions button[data-cookie-choice="accept"] {
  color: #ffffff;
  background: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 991px) {
  .hero {
    min-height: auto;
  }

  .tile-wall {
    min-height: 360px;
  }

  .featured-panel,
  .joygrid-mix,
  .explore-lane {
    grid-template-columns: 1fr;
  }

  .mood-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }

  .section-title h2 {
    font-size: 29px;
  }

  .tile-wall {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .wall-tile,
  .tile-feature,
  .tile-coral,
  .tile-mint,
  .tile-yellow,
  .tile-violet,
  .tile-blue,
  .tile-ink {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 112px;
  }

  .tile-feature strong {
    font-size: 23px;
    margin: 10px 0;
  }

  .featured-media {
    min-height: 240px;
  }

  .jg-game-card.compact {
    grid-template-columns: 1fr;
  }

  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-card {
    grid-template-columns: 72px 1fr;
  }

  .preview-card .btn-secondary-jg {
    grid-column: 1 / -1;
  }

  .jg-game-player {
    padding: 8px;
  }

  .jg-game-window {
    height: calc(100dvh - 16px);
  }

  .jg-game-topbar {
    padding: 10px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .hero h2 {
    font-size: 40px;
  }

  .mood-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons button {
    flex: 1 1 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
