@media (max-width: 1320px) and (orientation: portrait) {
  /* ====================
  GRID
  ==================== */
  .page-container {
    width: 100%;
  }
  .four-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  /* ====================
  SECTIONS
  ==================== */

  /*REQUIREMENDS*/
  #requirements .flex .flex-col:nth-child(1) {
    flex: 0 1 auto;
    text-align: center;
  }
  #requirements .flex .flex-col:nth-child(2), #requirements .flex .flex-col:nth-child(3) {
    flex: 1 1 calc(49% - 1%);
  }
  /* ====================
  FOOTER
  ==================== */
  footer .four-columns {
    grid-template-columns: repeat(3, 1fr);
  }
  footer .four-columns div:nth-child(1) {
    grid-column: 1 / -1;
  }
  footer .four-columns div.align-left:nth-child(1) {
    text-align: center;
  }
  .footer-logo {
    text-align: center;
    margin: auto;
  }
}

@media (max-width: 1380px) and (orientation: landscape) {
  body {
    font-size: 11pt;
  }
  /* ====================
  GRID
  ==================== */
  .four-columns {
    grid-template-columns: repeat(4, 1fr);
  }
  /* ====================
  SECTIONS
  ==================== */

  /*HERO*/
  .hero {
    height: auto;
  }
  .hero-image {
    max-width: 800px;
    left: auto;
    right: 0;
  }
  /*INSTALLATION STEPS*/
  .step {
    position: relative;
    top: 0;
  }
  .step:nth-child(2), .step:nth-child(3) {
    top: 0;
  }
  /* ====================
  FOOTER
  ==================== */
  footer {
    margin-bottom: 100px;
  }
  footer .page-container .four-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) and (orientation: landscape) {

  /* ====================
  SECTIONS
  ==================== */

  /*GAME-MODES-B*/

  #game-modes-b .page-container .four-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  /*STEPS*/

  .step .two-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1099px) and (orientation: landscape) {
  body {
    font-size: 10pt;
  }
  /* ====================
  MENU
  ==================== */
  .desktop-nav, .action-buttons {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .menu-toggle-btn {
    display: inline-flex;
  }
  /* ====================
  GRID
  ==================== */
  .page-container {
    width: 100%;
  }
  .four-columns {
      grid-template-columns: repeat(2, 1fr);
  }
  /* ====================
  SECTIONS
  ==================== */

  /*HERO*/
  .hero-image {
    max-width: 700px;
    left: inherit;
  }
  .hero-content.short-content-m {
    width: 350px;
  }

  /* ====================
  TEXT
  ==================== */
  .title-large {
    font-size: 40pt;
  }
  .title-medium {
    width: 100%;
    font-size: 35pt;
    line-height: normal;
  }
  .title-small {
    width: 100%;
    font-size: 20pt;
    line-height: normal;
  }
  /* ====================
  FOOTER
  ==================== */
  footer {
    padding-bottom: 100px;
  }
}
@media (min-width: 1100px) {
  .menu-toggle-btn {
    display: none;
  }
}
@media (max-width: 1099px) and (orientation: portrait) {
  /* ====================
  MENU
  ==================== */
  .desktop-nav, .action-buttons {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .menu-toggle-btn {
    display: inline-flex;
  }
  /* ====================
  GRID
  ==================== */
  .four-columns {
      grid-template-columns: repeat(2, 1fr);
  }
  .flex-col {
    flex: 1 1 calc(49% - 1%);
    max-width: calc(50% - 0.5rem);
  }
  .flex-col:last-child:nth-child(odd) {
    flex: 0 1 auto;
    margin-inline: auto;
}
  /* ====================
  SECTIONS
  ==================== */

  /*HERO*/
  .hero-image {
    max-width: 800px;
  }
  .hero-image {
    display: none;
  }
  .hero-content {
    justify-content: center;
  }
  .hero-content.short-content-m {
    width: 70%;
    max-width: none;
    margin: auto;
  }
  .hero-content.align-left {
    text-align: center;
  }
  .hero-logo {
    margin: auto;
  }
  .hero-content, .hero-content .row-icons {
    justify-content: center;
  }

  /*GAME MODES*/
  .square, .rectangle {
    width: 50%;
  }

  /*INSTALLATION STEPS*/
  .step {
    position: relative;
    top: 0;
  }
  .step:nth-child(2), .step:nth-child(3) {
    top: 0;
  }
  .step .two-columns {
    grid-template-columns: 1fr 1fr;
  }

  #requirements .flex .flex-col:nth-child(1) {
    flex: 0 1 auto;
    text-align: center;
    max-width: none;
  }
  #requirements .flex .flex-col:nth-child(2), #requirements .flex .flex-col:nth-child(3) {
    flex: 1 1 calc(49% - 1%);
  }
  #requirements .icon-square {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
  }
  #requirements h3 {
    text-align: center;
  }
  .pc-gameplay video {
    width: 150%;
  }
  /*OUR PARTNERS*/
  .logo-item {
    margin: 0 50px;
  }

  /*FAQ*/
  #faq .short-large-columns {
    grid-template-columns: 1fr;
  }
  #faq h2, #faq p {
    text-align: center;
  }
  /*CONTACT*/
  #contact .two-columns {
    grid-template-columns: 1fr;
  }
  .contact-banner {
    display: none;
  }
  /* ====================
  FOOTER
  ==================== */
  footer {
    padding-bottom: 100px;
  }
  footer .two-columns {
    grid-template-columns: 1fr;
  }
  footer .two-columns .align-left, footer .two-columns .align-right {
    margin: auto;
  }
}

@media (max-width: 830px) and (orientation: portrait) {
  ul {
    list-style-position: inside;
  }
  /* ====================
  GRID
  ==================== */
  .two-columns, .four-columns, .short-large-columns, .large-short-columns {
    grid-template-columns: 1fr;
  }
  .flex-col {
    flex: 0 1 100%;
    max-width: 100%;
    text-align: center;
  }
  /* ====================
  SECTIONS
  ==================== */
  .icon-square {
    margin-left: auto;
    margin-right: auto;
  }
  /*HERO*/
  .hero {
    height: auto;
  }
  .hero-image {
    max-width: 800px;
  }
  .hero-image {
    display: none;
  }
  .hero-content, .hero-content .row-icons {
    justify-content: center;
  }
  .hero-content.short-content-m {
    width: 70%;
    max-width: none;
    margin: auto;
  }
  .hero-content.align-left {
    text-align: center;
  }
  .hero-logo {
    margin: auto;
  }

  /*INSTALLATION STEPS*/
  #instalation-steps .two-columns {
    grid-template-columns: 1fr;
  }
  .step {
    position: relative;
    top: 0;
  }
  .step:nth-child(2), .step:nth-child(3) {
    top: 0;
  }
  .step-container.p40 {
    padding: 20px;
  }
  /*REQUIREMENTS*/
  #requirements .flex-col {
    flex: 0 1 100%;
    max-width: 100%;
  }
  #requirements .flex .flex-col:nth-child(2), #requirements .flex .flex-col:nth-child(3) {
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* ====================
  FOOTER
  ==================== */
  footer .four-columns {
    grid-template-columns: repeat(1, 1fr);
  }
  footer .four-columns div.align-left {
    text-align: center;
    margin: auto;
  }
}
@media (max-width: 830px) and (orientation: landscape) {
  /* ====================
  GRID
  ==================== */
  .flex-col {
    flex: 0 1 100%;
    max-width: 100%;
  }
  /* ====================
  MENU
  ==================== */
  .desktop-nav, .action-buttons {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .menu-toggle-btn {
    display: inline-flex;
  }
  /* ====================
  ACCORDION
  ==================== */
  .accordion-header {
    font-size: 13pt;
  }
  .accordion-header-icon {
    width: 34px;
    height: 34px;
    font-size: 30pt;
  }
  /*GENERAL*/

  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  #goTopBtn {
    bottom: 70px;
    right: 15px;
  }
  #muteBtn {
    bottom: 20px;
    right: 15px;
  }

  /*HERO*/

  .hero {
    height: auto;
  }
  .hero-content.short-content-m {
    width: 100%;
    margin: auto;
    text-align: center;
    justify-content: center;
  }
  .hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: auto;
  }
  .hero-image {
    display: none;
  }
  .hero .row-icons {
    justify-content: center;
  }
  .title-large {
    font-size: 40pt;
  }
  .title-medium {
    font-size: 35pt;
  }
  .title-small {
    font-size: 20pt;
  }

  /*GAME-MODES-B*/

  #game-modes-b .page-container .four-columns {
    grid-template-columns: repeat(1, 1fr);
  }
  /*INSTALATION STEPS*/
  #instalation-steps .two-columns {
    grid-template-columns: 1fr;
  }
  /*REQUIREMENTS*/
  #requirements .flex-col {
    flex: 0 1 auto;
    max-width: 100%;
  }
  #requirements .flex .flex-col:nth-child(2), #requirements .flex .flex-col:nth-child(3) {
    flex: 0 1 calc(49% - 1%);
    max-width: 100%;
  }
  /*FAQ*/
  #faq .short-large-columns {
    grid-template-columns: 1fr;
  }
  /*CONTACT*/
  #contact .two-columns {
    grid-template-columns: 1fr;
  }
  .contact-banner {
    display: none;
  }

  /* ====================
  FOOTER
  ==================== */
  footer .page-container .four-columns {
    grid-template-columns: repeat(1, 1fr);
  }
  footer .page-container .four-columns .align-left {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  /* ====================
  GRID
  ==================== */
  body {
    font-size: 10pt;
  }
  .page-container {
    padding: 20px;
  }
  .short-content {
    padding: 0;
  }
  .two-columns, .four-columns, .short-large-columns, .large-short-columns {
    grid-template-columns: 1fr;
  }
  .irregular-boxes {
    gap: 0;
  }
  .irregular-boxes-row {
    display: block;
    gap: 0;
    margin: 0;
  }
  .square, .rectangle {
    width: 100%;
    margin-bottom: 20px;
  }


  /* ====================
  ACCORDION
  ==================== */
  .accordion-header {
    font-size: 13pt;
  }
  .accordion-header-icon {
    width: 34px;
    height: 34px;
    font-size: 30pt;
  }

  /*GENERAL*/

  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  #goTopBtn {
    bottom: 70px;
    right: 15px;
  }
  #muteBtn {
    bottom: 20px;
    right: 15px;
  }

  /*HERO*/
  .hero {
    height: auto;
  }
  .hero-content.short-content-m {
    width: 100%;
  }
  .hero-content .row-icons {
    justify-content: center;
  }
  .hero-logo {
    width: 100%;
    height: auto;
  }
  .hero-image {
    display: none;
  }
  .title-large {
    font-size: 40pt;
  }
  .title-medium {
    font-size: 35pt;
  }
  .title-small {
    font-size: 20pt;
  }

  /*STEPS*/
  .card.step {
    position: relative;
  }
  .card.step:nth-child(1), .card.step:nth-child(2), .card.step:nth-child(3) {
    top: 0;
  }
  .zombie-hand-corner, .zombie-hand-side {
    display: none;
  }

  /*REQUIREMENTS*/

  .pc-gameplay video {
    width: 150%;
  }

  /*PARTNERS*/
  .logo-item {
    margin: 0;
    padding: 20px 0;
    width: 100px;
  }
  .logo-item {
    margin: 0 20px;
  }
  .logo-item img {
    max-width: 60px;
    max-height: 30px;
  }
  .logo-item.horizontal img {
      max-width: 100px !important;
      max-height: 50px !important;
  }
  .logo-item.vertical img {
      max-width: 80px !important;
      max-height: 60px !important;
  }
  .logo-item.square img {
      max-width: 70px !important;
      max-height: 60px !important;
  }
  .logo-item.wider img {
      max-width: 130px !important;
      max-height: 50px !important;
  }

  /*CONTACT*/
  .contact-form {
    padding: 20px;
  }
  .contact-banner {
    display: none;
  }

  /*TABLE*/

  .table-container {
    padding: 1rem 0.5rem;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-sort {
    justify-content: space-between;
  }
  .pagination-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .pagination-controls {
    justify-content: center;
  }
  .pagination-container .info {
    text-align: center;
  }
  table {
    font-size: 0.85rem;
  }
  thead th,
  tbody td {
    padding: 0.6rem 0.5rem;
  }
  .player-cell img {
    width: 30px;
    height: 30px;
  }
  .rank-badge {
    min-width: 28px;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
  }

  /*FLOW MAP*/
  .flow-map {
    flex-direction: column; /* Switches map to vertical stack */
    gap: 3rem;              /* Increased spacing for vertical lines */
  }
  .flow-step {
    width: 100%;
  }
  /* Reposition lines to link vertically instead of horizontally */
  .flow-step:not(:last-child)::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: 3rem; /* Matches the updated vertical gap */
    transform: translateX(-50%);
  }

  /*FOOTER*/
  footer {
    text-align: center;
    font-size: 0.8rem;
  }
  footer ul li a {
    font-size: 12pt;
  }
  footer .align-left {
    text-align: center;
    margin: auto;
  }
  footer .align-left h4 {
    text-align: center;
  }
  .footer-logo {
    margin: auto;
  }
  footer .page-container .two-columns .align-left {
    order: 2;
  }
  footer .row-icons {
    flex-wrap: wrap;
    justify-content: center;
  }
  footer .row-icons p {
    margin-bottom: 10px;
  }
}
@media (max-width: 680px) and (orientation: landscape) {
  /* ====================
  GRID
  ==================== */
  body {
    font-size: 10pt;
  }
  .page-container {
    padding: 20px;
  }
  .short-content {
    padding: 0;
  }
  .two-columns, .four-columns, .short-large-columns, .large-short-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .flex-col {
    text-align: center;
  }
  .irregular-boxes {
    gap: 0;
  }
  .irregular-boxes-row {
    display: block;
    gap: 0;
    margin: 0;
  }
  .square, .rectangle {
    width: 70%;
    max-width: 400px;
    margin: 20px auto;
  }
  .icon-square {
    margin-left: auto;
    margin-right: auto;
  }
  .align-left, .align-right {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  ul {
    list-style-position: inside;
  }
  /*INSTALLATION STEPS*/
  .sticky-container {
    width: 80%;
    margin: auto;
  }
  /*REQUIREMENTS*/
  #requirements .page-container .flex .flex-col {
    flex: 100%;
  }
  #requirements .page-container .flex .flex-col:nth-child(1) {
    text-align: center;
  }
  #requirements .icon-square {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
  }
  #requirements h3 {
    text-align: center;
  }
  .pc-gameplay video {
    width: 150%;
  }
  /*COMMUNITY*/
  .tabs-header {
    justify-content: flex-start;
  }

  /*PARTNERS*/
  .logo-item {
    margin: 0;
    padding: 20px 0;
    width: 100px;
  }
  .logo-item {
    margin: 0 20px;
  }
  .logo-item img {
    max-width: 60px;
    max-height: 30px;
  }
  .logo-item.horizontal img {
      max-width: 100px !important;
      max-height: 50px !important;
  }
  .logo-item.vertical img {
      max-width: 80px !important;
      max-height: 60px !important;
  }
  .logo-item.square img {
      max-width: 70px !important;
      max-height: 60px !important;
  }
  .logo-item.wider img {
      max-width: 130px !important;
      max-height: 50px !important;
  }
  /*CONTACT*/
  .contact-form {
    padding: 20px;
  }
  .contact-banner {
    display: none;
  }
  /*TABLE*/
  .filter-sort select {
    padding: 0.4rem 1.8rem 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .pagination-controls button,
  .pagination-controls .page-number {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    min-width: 34px;
  }
  /*FLOW MAP*/
  .flow-map {
    flex-direction: column; /* Switches map to vertical stack */
    gap: 3rem;              /* Increased spacing for vertical lines */
  }
  .flow-step {
    width: 100%;
  }
  /* Reposition lines to link vertically instead of horizontally */
  .flow-step:not(:last-child)::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: 3rem; /* Matches the updated vertical gap */
    transform: translateX(-50%);
  }
  /*FOOTER*/
  footer {
    text-align: center;
    align-items: center;
    padding-bottom: 100px;
  }
  footer .page-container .four-columns {
    grid-template-columns: 1fr;
  }
  footer .align-left {
    text-align: justify;
    margin: auto;
  }
  footer .align-left h4 {
    text-align: center;
  }
  .footer-logo {
    margin: auto;
  }
  footer .page-container .two-columns .align-right {
    margin: auto;
  }
  footer .page-container .two-columns .align-left {
    order: 2;
  }
}

@media (max-width: 680px) and (orientation: portrait) {
  /* ====================
  SECTIONS
  ==================== */
  /*COMMUNITY*/
  .tabs-header {
    justify-content: flex-start;
  }
}
