/* Responsive wall — load last.
   Breakpoints (sync with js/site-config.js):
   1639 header nav→hamburger (absolute menu/SNS overlap),
   1439 tablet, 767 mobile, 330 nested games, 325 setMainSize tiny height.
   Do not use var() in max-width. */

@media screen and (min-width: 1440px) {
  /* setMainSize() desktop: #about height is synced to #portfolio in js/layout.js */
  #mobile-main {
    height: 100%;
  }
  #portfolio .feature-card-container {
    margin-bottom: 100px;
  }
}

/* Desktop chrome stays; only swap PC nav/SNS → hamburger when they would overlap. */
@media screen and (max-width: 1639px) {
  .pc-menu {
    display: none;
  }
  #header .hamburger {
    display: block !important;
  }
  #navDemo {
    display: block;
  }
  #navDemo .tablet-menu-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #navDemo .text-container {
    text-align: left;
  }
}

@media screen and (max-width: 1439px) {
  #play-btn-web {
    display: none;
  }

  #home {
    margin-top: 0px;
  }
  #header {
    height: 76px;
  }
  #wrapper {
    padding-top: 76px;
  }
  #header .hamburger {
    right: 60px;
  }
  #navDemo.on {
    /* display: block; */
    /* right: 0; */
    width: 300px;
    transition: all 0.3s;
  }
  #myNavbar {
    padding: 24px 60px;
  }

  #myNavbar .header-logo {
    height: 27.45098114013672px;
    width: 350px;
    left: 60px;
    top: 24.2744140625px;
  }

  #home .home-phrases {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24.27px 60px 0px 20px;
  }

  #home .home-phrases span {
    font-size: 35px;
    font-weight: 700;
    line-height: 54px;
    letter-spacing: -0.01em; /* keeps one line down to 768px at weight 700 */
  }

  #home .rngBadge {
    width: 99.96px;
    height: 37px;
  }

  #home .rngBadge img {
    width: 100%;
    height: 100%;
  }

  #home .home-app-icons {
    top: 200px;
    left: 50px;
    width: 445px;
    height: 233px;
    background-image: url("../images/store-icon-container-tablet.png");
  }
  #home .home-app-icons .dac-app-icon {
    position: absolute;
    width: 146px;
    left: 145px;
    top: 20px;
  }

  #home .home-app-icons .qr-code {
    position: absolute;
    width: 115px;
    left: 27px;
    top: 35px;
  }

  #home .home-app-icons .app-icons {
    display: none;
  }
  #home .home-app-icons #pc-olivia {
    display: none;
  }
  #home .home-app-icons #tablet-olivia {
    display: block;
  }
  #home .home-app-icons .character-box {
    width: 251px;
    height: 334px;
    right: -3.5px;
  }

  #home .home-app-icons .play-btn {
    display: block;
    position: absolute;
    height: 63.86029815673828px;
    width: 283.2353210449219px;
    left: 70.7352294921875px;
    bottom: 10px;
    border-radius: 0px;
  }

  #about .line {
    display: flex;
  }

  #about .about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  #about .game-card-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0px;
  }

  #about .line {
    margin-bottom: 34.5px;
    gap: 0px;
  }
  #about .line .baccaratCard {
    margin-right: 30px;
  }
  #about .line .slotsCard {
    margin-right: 30px;
  }
  #about .line .game-card-contents {
    width: 270px;
    height: 405px;
    position: relative;
    overflow: hidden;
    font-weight: 400;
  }

  #about .line .game-card-contents:hover {
    animation: none;
  }

  #about .line .game-card-contents .card-contents-discription {
    width: 96%;
    right: 5.5px;
  }

  #about .line .game-card-contents:hover .card-contents-discription {
    animation: none;
  }

  #about .games-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 58px;
  }

  /* WEB SHOP - Tablet */
  #webshop {
    padding: 80px 20px 70px 20px;
  }
  .webshop-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 58px;
  }
  .webshop-promo-banner {
    max-width: 750px;
  }
  .webshop-promo-banner img {
    height: auto;
  }
  .webshop-qr-overlay {
    width: 120px;
    height: 120px;
    bottom: -20px;
    right: -15px;
  }
  .webshop-container {
    max-width: 600px;
  }
  .webshop-button-overlay img {
    width: 325px;
  }

  #portfolio {
    padding-top: 80px;
    padding-bottom: 70px;
  }

  #portfolio .feature-card-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 0px;
  }

  #portfolio .feature-card-contents {
    width: 450px;
    height: 339.38px;
    position: relative;
    margin-bottom: 50px;
  }

  .last-feature-card {
    margin-bottom: 50px;
  }

  #portfolio .features-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 58px;
  }

  #portfolio .feature-card-contents:hover .card-contents-discription {
    animation: none;
  }
  #portfolio .feature-card-contents:hover {
    animation: none;
  }

  .card-contents-discription {
    opacity: 1;
  }

  #product #service-reviews {
    z-index: 0 !important;
    padding-top: 80px !important;
  }

  .reviews-title {
    font-weight: 600 !important;
    font-size: 40px !important;
    line-height: 58px !important;
  }

  .service-grade {
    height: 101px !important;
    width: 624px !important;
  }

  .service-grade .service-grade-box {
    height: 100%;
    padding-top: 10px !important;
  }

  #product #service-reviews .service-grade .service-grade-box > div p {
    font-size: 26px;
  }

  #product #service-reviews .service-reviews .review-slide {
    min-height: 320px;
    padding: 24px 16px;
  }

  #product #service-reviews .service-reviews .review-avatar {
    width: 26%;
    max-width: 96px;
    min-width: 72px;
    margin-bottom: 10px;
  }

  #product #service-reviews .service-reviews .review-stars {
    font-size: 22px;
    margin-bottom: 0;
  }

  #product #service-reviews .service-reviews .review-body {
    font-size: 17px;
    margin-top: 12px;
  }

  #customer {
    background-size: 160px 257.14px;
    background-position: left 0px top 97.21px;
    height: 451px;
  }

  #customer .customer-button:after {
    content: none;
  }
  #customer .customer-button:hover:after {
    width: none;
  }

  #customer .customer-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 54.48px;
  }

  .footer-desc-flex-box {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  /* setMainSize() — tablet (max-width: 1439). Sync with js/site-config.js */
  #mobile-main {
    height: 100%;
  }
  #about {
    height: 1154px;
  }
  #navDemo {
    top: var(--dac-header-height-tablet);
  }

}

/** Mobile */
@media screen and (max-width: 767px) {
  #home .rngBadge {
    display: none;
  }
  #play-btn-web {
    display: none;
  }
  #header {
    height: 50px;
  }
  #wrapper {
    padding-top: 50px;
  }
  #myNavbar .header-logo {
    width: 408px;
    height: 32px;
    margin-bottom: 40px;
  }
  #mobile-main {
    display: flex !important;
    flex-direction: column !important;
  }
  #home {
    height: 50%;
  }

  .menu-trigger {
    width: 20px;
    height: 20px;
  }
  .menu-trigger span {
    height: 2px;
  }

  .menu-trigger span:nth-of-type(1) {
    top: 0;
  }

  .menu-trigger span:nth-of-type(2) {
    top: 9px;
  }

  .menu-trigger span:nth-of-type(3) {
    bottom: 0;
  }

  .menu-trigger.active-1 span:nth-of-type(1) {
    -webkit-transform: translateY (10px) rotate (-45deg);
    transform: translateY(10px) rotate(-45deg);
  }

  .menu-trigger.active-1 span:nth-of-type(2) {
    opacity: 0;
  }

  .menu-trigger.active-1 span:nth-of-type(3) {
    -webkit-transform: translateY(-8px) rotate(45deg);
    transform: translateY(-8px) rotate(45deg);
  }

  .title {
    margin-bottom: 30px;
    margin-top: 60px;
  }
  #header .hamburger {
    right: 20px;
  }

  #header .hamburger img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
  }

  #home {
    height: 300px;
  }
  #home .home-phrases {
    height: 25px;

    margin-top: 20px;
  }
  #home .home-phrases span {
    font-size: 24px;
    width: 220px;
    font-weight: 700;
    line-height: 25px;
    letter-spacing: 0em;
    margin-left: 0px;
  }

  #home .home-app-icons {
    display: none !important;
  }
  #myNavbar {
    padding: 20.59px 20px;
  }

  #myNavbar .header-logo {
    height: 20px;
    width: 235px;
    left: 20px;
    top: 20.588134765625px;
  }

  /* #myVideo { width: 100%; object-fit: cover; } */

  #navDemo .menu-list .tablet-menu-logo {
    display: none;
  }

  .mobile-menu-logos {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
  #navDemo {
    top: 40px !important;
    width: 0;
    transition: all 0.3;
  }

  #navDemo.on {
    width: 240px;
    transition: all 0.3;
  }

  #navDemo .icon-container {
    width: 151px;
  }

  #mobileIcon {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    justify-content: center;
  }

  #mobileIcon .mobile-icons {
    display: block !important;
    position: relative;
    height: 190px;
    width: 210px;
  }
  #mobileIcon .olivia_mobile {
    height: 133.98516845703125px;
    width: 131.39259338378906px;
    position: absolute;
    z-index: -1;
    top: 0px;
    right: 0px;
  }
  #mobileIcon .mobile-icons .app-icon-mobile {
    width: 119px;
    position: absolute;
    top: 10px;
  }

  #mobileIcon .mobile-icons .play-btn {
    display: block;
    height: 53.86029815673828px;
    width: 223.2353210449219px;
    position: absolute;
    bottom: 10px;
    left: 0px;
  }

  #about .games-title {
    margin-top: 10px;
    font-size: 30px;
    line-height: 41px;
  }

  #about {
    padding-top: 20px;
  }

  #about .line .game-card-contents {
    width: 150px;
    height: 225px;
    font-weight: 400;
  }
  #about .line:nth-child(2) {
    margin-bottom: 0px;
  }
  #about .line .game-card-contents .card-contents-discription {
    height: 58px;
    width: 95% !important;
    bottom: 2px;
    right: 3.5px;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #about .line .game-card-contents .card-contents-discription span {
    display: none;
  }

  #about .line .baccaratCard {
    margin-right: 15px;
    margin-left: 5px;
  }

  #about .line .slotsCard {
    margin-right: 15px;
    margin-left: 5px;
  }

  #about .line .game-card-contents .card-contents-discription p {
    font-family: "NotoSansKR";
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0em;
    text-align: left;
    margin-bottom: 25px;
  }

  /* WEB SHOP - Mobile */
  #webshop {
    padding: 40px 15px 50px 15px;
  }
  .webshop-title {
    font-size: 30px;
    line-height: 41px;
    margin-top: 10px;
  }
  .webshop-promo-banner {
    max-width: 100%;
    padding: 0 10px;
    border-radius: 12px;
  }
  .webshop-promo-banner > img {
    border-radius: 12px;
  }
  .webshop-promo-banner img {
    height: auto;
  }
  .webshop-qr-overlay {
    display: none;
  }
  .webshop-container {
    max-width: 100%;
    padding: 0 10px;
  }
  .webshop-button-overlay img {
    width: 250px;
  }
  #webshop::before,
  #webshop::after {
    height: 100px;
  }

  #portfolio {
    height: 1537.08px;
    padding-top: 20px;
  }
  #portfolio .feature-card-container {
    gap: 0px;
    margin-bottom: 0px;
  }
  #portfolio .features-title {
    font-size: 30px;
    line-height: 40.86px;
  }

  #portfolio .feature-card-contents {
    width: 260px;
    height: 196.08px;
    margin-bottom: 30px;
  }

  #portfolio .feature-card-contents .card-contents-discription {
    height: 70px;
    text-align: center;
    padding-top: 0px;
  }

  #portfolio .feature-card-contents .card-contents-discription span {
    font-family: "NotoSansKR";
    font-size: 15px;
    font-weight: 200;
    line-height: 22px;
    letter-spacing: 0em;
  }

  #portfolio .feature-card-contents .card-contents-discription p {
    font-family: "NotoSansRegular";
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0em;
    margin-bottom: 10px;
  }

  .service-grade {
    width: 272px !important;
    height: 220px !important;
  }

  .service-grade .service-grade-box {
    flex-wrap: wrap !important;
    height: 100%;
    padding-top: 30px !important;
  }

  #product #service-reviews {
    padding-top: 20px !important;
  }

  #product #service-reviews .service-reviews .review-slide {
    min-height: 300px;
    padding: 20px 14px;
  }

  #product #service-reviews .service-reviews .review-avatar {
    width: 28%;
    max-width: 88px;
    min-width: 68px;
    margin-bottom: 8px;
  }

  #product #service-reviews .service-reviews .review-stars {
    font-size: 20px;
  }

  #product #service-reviews .service-reviews .review-body {
    font-size: 16px;
    margin-top: 10px;
  }

  #product #service-reviews .service-grade .service-grade-box > div {
    width: 50%;
  }

  .reviews-title {
    font-size: 30px !important;
  }
  .reviews-description {
    font-size: 18px !important;
    line-height: 18px;
  }

  #customer {
    background-image: none;
    height: 287px;
  }

  #customer .customer-title {
    font-size: 30px;
    line-height: 41px;
    letter-spacing: 0em;
    margin-bottom: 40px;
  }
  #customer .customer-contents-container {
    margin-top: 0px;
  }
  #customer .customer-discription {
    font-size: 16px;
    line-height: 22px;
  }

  #customer .customer-button {
    height: 40px;
    width: 140px;
    border-radius: 40px;
    font-weight: 500;
  }

  #customer .customer-button-contents {
    font-size: 20px;
    line-height: 27px;
  }

  #customer .customer-button-contents img {
    height: 14px;
    width: 8.40000057220459px;
  }

  footer .footer-logo-container {
    width: 240px;
    height: 18.82px;
    margin-top: 40px;
  }

  footer .mobile-footer-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 0px;
  }

  footer .mobile-footer-nav > li:empty {
    display: none;
  }

  footer .mobile-footer-nav li a {
    margin-bottom: 19px;
  }

  footer .mobile-footer-nav li:last-child a {
    margin-bottom: 0px;
  }
  footer .footer-desc {
    display: none;
  }

  footer .mobile-footer-desc {
    display: block;
    font-family: "NotoSansRegular";
    width: 270px;
    height: 56px;
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 0.01em;
    color: #ffffffb2;
    text-align: center;
  }

  footer .footer-gs-logo-container span {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0em;
    margin-left: 5px;
    margin-right: 10px;
  }

  footer .footer-gs-logo-container img {
    width: 144px;
    height: 30px;
  }

  footer .footer-gs-logo-container {
    gap: 0px;
  }

  footer .footer-nav {
    margin-bottom: 24px;
  }

  footer .copyright {
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 0.01em;
    text-align: center;
  }

  #myVideo {
    height: 300px;
    width: 100%;
  }
  footer .align-container {
    transform: translateY(-60px);
  }

  footer #top-btn {
    width: 40px;
  }

  footer .mobile-qr-code {
    display: block;
  }

  #about .line .game-card-contents:hover {
    animation: none;
  }

  #about .line .game-card-contents:hover .card-contents-discription {
    animation: none;
  }

  #portfolio .feature-card-contents:hover .card-contents-discription {
    animation: none;
  }
  #portfolio .feature-card-contents:hover {
    animation: none;
  }


  /* setMainSize() — mobile (max-width: 767) */
  #bj-text {
    display: none;
  }
  #mobile-bj-text {
    display: block;
  }
  #about {
    height: 681px;
  }
  #customer-target.scroll-anchor {
    top: -250px;
  }


  /* setMainSize() — mobile and short viewport */
  @media screen and (max-height: 599px) {
    #mobile-main {
      height: 100%;
    }
    #mobileIcon {
      height: 280px;
      justify-content: center;
    }
  }

  @media screen and (min-height: 600px) {
    #mobile-main {
      height: 50vh;
    }
    #mobileIcon {
      height: 50vh;
    }
  }

  @media screen and (max-width: 330px) {
    #about .game-card-container {
      justify-self: center;
      gap: 0;
    }

    #about .line {
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
    }

    #about .line .slotsCard {
      margin-left: 0px;
      margin-right: 0px;
      margin-bottom: 20px;
    }

    #about .line .baccaratCard {
      margin-left: 0px;
      margin-right: 0px;
      margin-bottom: 20px;
    }
  }

  /* setMainSize() used 325px; keep that number for #about height */
  @media screen and (max-width: 325px) {
    #home .home-phrases {
      margin-top: 20px;
    }
    #about {
      height: 1170px;
    }
  }
}
