/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* DESKTOP CSS */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.menu-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 2vh 2vw;
  padding-bottom: 20px;
}

.desktop {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: url("../image/bg-pc.png") no-repeat center center;
  background-size: cover;
  background-color: #161920;
  position: absolute;
  overflow: hidden;
}

.title-group {
  width: 100%;
  text-align: center;
  margin-top: 2vh;
  margin-bottom: -72px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0vh;
}

.title-img {
  width: 25%;
  height: auto;
  margin-bottom: 1vh;
}

.subtitle-img {
  width: 30%;
  height: auto;
  margin-top: 20px;
}

.linkbox-section {
  position: absolute;
  z-index: 1;
  width: 980px;
  max-width: 98vw;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  top: 204px;
  left: 50%;
  transform: translateX(-50%);
}

.linkbox-image {
  width: 100%;
  border-radius: 18px;
  height: 703px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  top: 239px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex: 0 1 auto;
}

.gauge-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

.gauge {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2d2d2d;
  border: 1px solid #feba3d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.gauge-center {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-text {
  text-align: center;
  z-index: 10;
}

.gauge-text .value {
  font-size: 40px;
  font-weight: bold;
  color: #22c55e;
  line-height: 1;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.gauge-text .unit {
  font-weight: 700;
  font-size: 30px;
  color: #22c55e;
  margin-top: 3px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.ticks-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.tick {
  position: absolute;
  width: 4px;
  height: 20px;
  background-color: #666;
  border-radius: 2px;
  left: 50%;
  top: 10px;
  transform-origin: 50% 90px;
  margin-left: -2px;
  transition: background-color 0.3s ease;
}

.tick.active {
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.tick {
  animation: moveClockwise 4s ease-in-out infinite;
}

@keyframes moveClockwise {
  0% {
    background-color: #666;
    opacity: 0.3;
  }
  50% {
    background-color: #22c55e;
    opacity: 1;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  }
  100% {
    background-color: #666;
    opacity: 0.3;
  }
}

.tick.active {
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.ticks-container.warning .tick {
  animation: moveClockwiseWarning 4s ease-in-out infinite;
}

@keyframes moveClockwiseWarning {
  0% {
    background-color: #666;
    opacity: 0.3;
  }
  50% {
    background-color: #eab308;
    opacity: 1;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.8);
  }
  100% {
    background-color: #666;
    opacity: 0.3;
  }
}

.ticks-container.warning .tick.active {
  background-color: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.8);
}

.link-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  background: linear-gradient(to right, #fffef8 0%, #ffef7b 90%);
  border: 1px solid #ffb661;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 25px;
  font-weight: bold;
  color: #8b2e2e;
  text-decoration: none;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.link-button:hover {
  background: #fde68a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.link-icon {
  width: 24px;
  height: 24px;
  background: #8b2e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon img {
  width: auto;
  height: 38px;
}

.gauge-text.warning .value {
  color: #eab308;
}

.gauge-text.warning .unit {
  color: #eab308;
}

.ticks-container.warning .tick.active {
  background-color: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.8);
}

.footer-section {
  position: absolute;
  z-index: 1;
  width: 980px;
  max-width: 98vw;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.footer-frame-image {
  width: 100%;
}

.footer-items {
  position: absolute;
}

.footer-item-1 {
  position: absolute;
  width: 360px;
  top: -90px;
  left: 32px;
}

.footer-item-2 {
  position: absolute;
  width: 120px;
  top: -70px;
  left: 427px;
}

.footer-item-3 {
  position: absolute;
  width: 120px;
  top: -70px;
  left: 557px;
}

.footer-item-4 {
  position: absolute;
  width: 200px;
  top: -117px;
  left: 737px;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3vw;
  margin: 0 auto;
  padding: 0 2vw;
}

.image-section {
  display: flex;
  gap: 2vw;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin-top: -80px;
}

.image-container {
  flex: 1;
  max-width: 500px;
  position: relative;
  margin-right: 80px;
}

.social-icons {
  position: fixed;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: -3.5vh;
  z-index: 100;
}

.social-icon {
  width: clamp(50px, 4vw, 70px);
  height: clamp(50px, 4vw, 70px);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* RESPONSIVE - iPad Landscape */
@media (max-width: 1024px) and (orientation: landscape) {
  .linkbox-section {
    width: 70vw;
    top: 219px;
  }

  .tick {
    position: absolute;
    width: 4px;
    height: 20px;
    background-color: #666;
    border-radius: 2px;
    left: 50%;
    top: 5px;
    transform-origin: 50% 70px;
    margin-left: -2px;
    transition: background-color 0.3s ease;
  }

  .linkbox-image {
    height: 600px;
    max-height: 700px;
  }

  .container {
    top: 215px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .gauge-wrapper {
    width: 150px;
    height: 150px;
  }

  .gauge-text .value {
    font-size: 32px;
  }

  .gauge-text .unit {
    font-size: 24px;
  }

  .link-button {
    font-size: 18px;
    padding: 8px 18px;
  }

  .footer-section {
    bottom: 10px;
    width: 70vw;
  }

  .footer-item-1 {
    width: 280px;
    top: -70px;
  }

  .footer-item-2 {
    top: -58px;
    left: 320px;
    width: 90px;
  }
  .footer-item-3 {
    top: -58px;
    left: 410px;
    width: 90px;
  }

  .footer-item-4 {
    width: 150px;
    top: -91px;
    left: 546px;
  }
}

@media (max-width: 1280px) and (orientation: landscape) {
  .linkbox-section {
    width: 70vw;
    top: 84px;
  }

  .tick {
    position: absolute;
    width: 4px;
    height: 20px;
    background-color: #666;
    border-radius: 2px;
    left: 50%;
    top: 5px;
    transform-origin: 50% 70px;
    margin-left: -2px;
    transition: background-color 0.3s ease;
  }

  .linkbox-image {
    height: 600px;
    max-height: 700px;
  }

  .container {
    top: 215px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .gauge-wrapper {
    width: 150px;
    height: 150px;
  }

  .gauge-text .value {
    font-size: 32px;
  }

  .gauge-text .unit {
    font-size: 24px;
  }

  .link-button {
    font-size: 18px;
    padding: 8px 18px;
  }

  .footer-section {
    bottom: 10px;
    width: 70vw;
  }

  .footer-item-1 {
    width: 280px;
    top: -70px;
  }

  .footer-item-2 {
    top: -58px;
    left: 320px;
    width: 90px;
  }
  .footer-item-3 {
    top: -58px;
    left: 410px;
    width: 90px;
  }

  .footer-item-4 {
    width: 150px;
    top: -91px;
    left: 546px;
  }
}

/* RESPONSIVE - iPad Portrait */
@media (max-width: 1024px) and (orientation: portrait) {
  .title-img {
    width: 60%;
    height: auto;
    margin-bottom: 1vh;
  }

  .subtitle-img {
    width: 50%;
    height: auto;
    margin-top: 20px;
  }

  .social-icons {
    position: fixed;
    right: 2vw;
    top: 20%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: -3.5vh;
    z-index: 100;
  }

  .linkbox-section {
    width: 95vw;
    top: 180px;
  }

  .tick {
    position: absolute;
    width: 4px;
    height: 20px;
    background-color: #666;
    border-radius: 2px;
    left: 50%;
    top: 5px;
    transform-origin: 50% 75px;
    margin-left: -2px;
    transition: background-color 0.3s ease;
  }

  .container {
    top: 250px;
    gap: 25px;
  }

  .gauge-wrapper {
    width: 160px;
    height: 160px;
  }

  .gauge-text .value {
    font-size: 36px;
  }

  .gauge-text .unit {
    font-size: 26px;
  }

  .link-button {
    font-size: 20px;
  }

  .footer-section {
    top: 792px;
    width: 95vw;
  }

  .footer-item-1 {
    width: 280px;
    top: -70px;
  }

  .footer-item-2 {
    top: -58px;
    left: 320px;
    width: 90px;
  }
  .footer-item-3 {
    top: -58px;
    left: 410px;
    width: 90px;
  }

  .footer-item-4 {
    width: 150px;
    top: -91px;
    left: 606px;
  }
}

/* END DESKTOP CSS */

/* MOBILE CSS */
.mobile {
  display: none;
}

/* Show mobile on small screens */
@media (max-width: 768px) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: block;
    width: 100%;
    position: relative;
    background: url("../image/bg-mobile.png") no-repeat center center;
    background-size: cover;
    overflow: hidden;
    background-attachment: fixed;
    min-height: 100vh;
  }
}

/* Mobile Container - Updated to use flexbox */
.mobile-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 12px;
  position: relative;
  box-sizing: border-box;
  /* min-height: 100vh; */
}

/* Mobile Sections - Updated to use relative positioning */
.mobile-section-1 {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  /* margin-top: 20px; */
}

.mobile-title-img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.mobile-section-2 {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.mobile-subtitle-img {
  width: 85%;
  max-width: 350px;
  height: auto;
}

.mobile-section-3 {
  width: 100%;
  text-align: center;
  margin-bottom: -40px;
  z-index: 1;
}

.mobile-game-banner {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-top: -88px;
  padding-bottom: 22px;
}

.mobile-section-4 {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 34px;
}

.link-access-frame-mobile {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.container-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 19px;
  width: 100%;
  padding: 0 19px;
  margin-top: -305px;
  margin-left: 9px;
  box-sizing: border-box;
}

.gauge-item-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  justify-content: center;
}

.gauge-wrapper-mobile {
  position: relative;
  width: 160px;
  height: 160px;
}

.gauge-mobile {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #1f1f1f;
  border: 1px solid #feba3d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.9),
    0 0 0 8px rgba(255, 200, 0, 0.1);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.gauge-center-mobile {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.gauge-text-mobile {
  text-align: center;
}

.gauge-text-mobile .value {
  font-size: 24px;
  font-weight: bold;
  color: #22c55e;
  line-height: 1;
}

.gauge-text-mobile .unit {
  font-size: 20px;
  font-weight: 700;
  color: #22c55e;
  margin-top: 5px;
}

.ticks-container-mobile {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 0;
  left: 0;
}

.tick-mobile {
  position: absolute;
  width: 2px;
  height: 14px;
  background-color: #666;
  border-radius: 2px;
  left: 30%;
  top: -1px;
  transform-origin: 50% 50px;
  /* margin-left: -2.5px; */
  animation: moveClockwise-mobile 4s ease-in-out infinite;
}

@keyframes moveClockwise-mobile {
  0% {
    background-color: #666;
    opacity: 0.3;
  }
  50% {
    background-color: #22c55e;
    opacity: 1;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  }
  100% {
    background-color: #666;
    opacity: 0.3;
  }
}

.tick-mobile.active {
  background-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.ticks-container-mobile.warning .tick-mobile {
  animation: moveClockwiseWarning-mobile 4s ease-in-out infinite;
}

@keyframes moveClockwiseWarning-mobile {
  0% {
    background-color: #666;
    opacity: 0.3;
  }
  50% {
    background-color: #fbbf24;
    opacity: 1;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.9);
  }
  100% {
    background-color: #666;
    opacity: 0.3;
  }
}

.link-button-mobile {
  margin-left: -60px;
  margin-top: -54px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 13px;
  background: linear-gradient(to right, #fffef8 0%, #ffef7b 90%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: bold;
  color: #6b3d2e;
  text-decoration: none;
  width: 100%;
  max-width: 108px;
  height: 20px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.link-button-mobile:hover {
  background: #fde68a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.link-button-mobile:active {
  transform: translateY(-1px);
}

.link-icon-mobile {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon-mobile img {
  width: 20px;
  height: 20px;
}

/* Responsive cho iPhone nhỏ */
@media (max-width: 380px) {
  .container-mobile {
    gap: 20px 15px;
    padding: 0 5px;
  }

  .gauge-wrapper-mobile {
    width: 100px;
    height: 100px;
  }

  .gauge-mobile {
    width: 100px;
    height: 100px;
  }

  .gauge-text-mobile .value {
    font-size: 24px;
  }

  .gauge-text-mobile .unit {
    font-size: 16px;
  }

  .tick-mobile {
    width: 2px;
    height: 15px;
    top: 3px;
    transform-origin: 50% 46px;
    margin-left: 7px;
  }

  .ticks-container-mobile {
    width: 140px;
    height: 140px;
  }

  .link-button-mobile {
    padding: 10px 24px;
    font-size: 13px;
    gap: 10px;
    min-width: 120px;

    pointer-events: auto !important;
    z-index: 999 !important;
  }

  .link-icon-mobile {
    width: 22px;
    height: 22px;
  }

  .link-icon-mobile img {
    width: 12px;
    height: 12px;
  }
}

.mobile-character-img {
  margin-top: -88px;
  width: 100%;
  max-width: 400px;
  height: 350px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

/* Mobile Link Buttons - Responsive Grid */
.link-buttons-container-mobile {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 80%;
  max-width: 320px;
  z-index: 10;
}

.mobile-section-5 {
  max-width: 400px;
  position: relative;
}

.frame-download {
  width: 100%;
  height: auto;
}

.frame-item {
  position: absolute;
}

.item-1 {
  position: absolute;
  width: 100px;
  height: auto;
  top: -48px;
  left: 18px;
}

.item-2 {
  position: absolute;
  width: 100px;
  top: -48px;
  left: 120px;
}

/* Mobile Section 6 - Social Buttons */
.mobile-section-6 {
  width: 100%;
  padding: 0 20px;
  margin-bottom: 20px;
}

.mobile-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.mobile-social-btn {
  display: block;
  transition: transform 0.3s ease;
}

.mobile-social-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-social-btn:hover {
  transform: scale(1.05);
}

.mobile-social-btn:active {
  transform: scale(0.95);
}

/* ============================= */
/* RESPONSIVE MEDIA QUERIES */
/* ============================= */

/* iPhone 12 Pro (390x844) */
@media (max-width: 390px) {
  .mobile-container {
    padding: 0px 32px;
  }

  .mobile-title-img {
    width: 100%;
  }

  .mobile-subtitle-img {
    width: 80%;
  }

  .mobile-game-banner {
    width: 100%;
  }

  .link-buttons-container-mobile {
    width: 85%;
    gap: 8px;
  }

  .link-button-mobile {
    min-height: 30px;

    pointer-events: auto !important;
    z-index: 999 !important;
  }

  .link-header-mobile .link-text {
    font-size: 13px;
  }

  .signal-strength-mobile {
    font-size: 14px;
  }

  .mobile-social-grid {
    gap: 10px;
  }

  .ios-button,
  .android-button {
    width: 100px;
    height: fit-content;
  }

  .frame-download {
    width: 100%;
    height: auto;
  }
}

/* iPhone 14 Pro Max (430x932) and larger phones */
/* @media (min-width: 430px) and (max-width: 768px) {
  .mobile-container {
    padding: 25px 20px;
  }

  .mobile-title-img {
    width: 100%;
    max-width: 300px;
  }

  .mobile-subtitle-img {
    width: 75%;
    max-width: 380px;
  }

  .mobile-game-banner {
    width: 70%;
    max-width: 350px;
  }

  .mobile-section-3 {
    margin-bottom: -50px;
  }

  .link-buttons-container-mobile {
    width: 75%;
    max-width: 340px;
    gap: 12px;
  }

  .link-button-mobile {
    min-height: 30px;
  }

  .link-header-mobile .link-text {
    font-size: 15px;
  }

  .mobile-social-grid {
    max-width: 360px;
    gap: 15px;
  }

  .ios-button,
  .android-button {
    width: 130px;
  }
} */

/* Very small phones */
@media (max-width: 360px) {
  .mobile-container {
    padding: 25px 20px;
  }
  .mobile-title-img {
    width: 100%;
  }

  .mobile-subtitle-img {
    width: 75%;
  }

  .link-buttons-container-mobile {
    width: 90%;
  }

  .link-button-mobile {
    padding: 0 4px;
    min-height: 30px;
    margin-top: 4px;
    margin-left: 2px;

    pointer-events: auto !important;
    z-index: 999 !important;
  }

  .link-button-mobile img {
    height: auto;
    width: 20px;
  }

  .link-header-mobile .link-text {
    font-size: 12px;
  }

  .container-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 18px 19px; */
    width: 100%;
    padding: 0 19px;
    margin-top: -305px;
    margin-left: -9px;
  }
}

@media (min-width: 390px) {
  .container-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 18px 19px; */
    width: 100%;
    padding: 0 19px;
    margin-top: -305px;
    /* margin-left: -8px; */
  }
}

@media (max-width: 430px) {
  .item-1 {
    position: absolute;
    width: 80px;
    height: auto;
    top: -40px;
    left: 30px;
  }
  .item-2 {
    position: absolute;
    width: 80px;
    height: auto;
    top: -40px;
    left: 110px;
  }
  .container-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 15px 59px; */
    width: 100%;
    padding: 0 19px;
    margin-top: -305px;
    margin-left: 0px;
  }
}

@media (min-width: 412px) {
  .container-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 15px 59px; */
    width: 100%;
    padding: 0 19px;
    margin-top: -305px;
    margin-left: 30px;
  }

  .link-button-mobile {
    pointer-events: auto !important;
    z-index: 999 !important;
  }

  .item-1 {
    position: absolute;
    width: 100px;
    height: auto;
    top: -50px;
    left: 30px;
  }
  .item-2 {
    position: absolute;
    width: 100px;
    height: auto;
    top: -50px;
    left: 130px;
  }
}

@media (min-width: 375px) and (max-width: 380px) and (orientation: portrait) {
  .container-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 0 19px;
    margin-top: -305px;
    margin-left: 0px;
  }

  .link-button-mobile {
    pointer-events: auto !important;
    z-index: 999 !important;

    padding: 0 4px;
    min-height: 30px;
    margin-top: 4px;
    margin-left: 2px;
  }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
  .mobile-container {
    padding: 10px 15px;
  }

  .mobile-section-1 {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .mobile-title-img {
    width: 100%;
  }

  .mobile-subtitle-img {
    width: 50%;
  }

  .mobile-game-banner {
    width: 50%;
  }

  .mobile-character-img {
    width: 100%;
  }

  .mobile-section-3 {
    margin-bottom: -20px;
  }
}

/* IPAD MINI RESPONSIVE - CHỈ CONFIG CHO IPAD MINI */

/* iPad Mini Portrait (768px width, 1024px height) */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) and (aspect-ratio: 3/4) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: block !important;
    width: 100%;
    position: relative;
    background: url("../image/ipadmini-bg.png") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .mobile-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    position: relative;
    min-height: 100vh;
  }

  .mobile-section-1 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .mobile-title-img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .mobile-section-2 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .mobile-subtitle-img {
    width: 85%;
    max-width: 400px;
    height: auto;
  }

  .mobile-section-3 {
    width: 100%;
    text-align: center;
    margin-bottom: -60px;
    z-index: 1;
  }

  .mobile-game-banner {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-top: -88px;
    padding-bottom: 22px;
  }

  .mobile-section-4 {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 34px;
  }

  .container-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px 32px;
    width: 100%;
    padding: 0 124px;
    margin-top: -409px;
    margin-left: 0;
    box-sizing: border-box;
  }

  .gauge-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    justify-content: center;
  }

  .gauge-wrapper-mobile {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gauge-mobile {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1f1f1f;
    border: 1px solid #feba3d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
      inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 0 8px rgba(255, 200, 0, 0.1);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }

  .gauge-center-mobile {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .gauge-text-mobile {
    text-align: center;
  }

  .gauge-text-mobile .value {
    font-size: 28px;
    font-weight: bold;
    color: #22c55e;
    line-height: 1;
  }

  .gauge-text-mobile .unit {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
    margin-top: 5px;
  }

  .ticks-container-mobile {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 0;
    left: 0;
  }

  .tick-mobile {
    position: absolute;
    width: 2px;
    height: 8px;
    background-color: #666;
    border-radius: 2px;
    left: 32%;
    top: 5px;
    transform-origin: 50% 54px;
    animation: moveClockwise-mobile 4s ease-in-out infinite;
  }

  .link-button-mobile {
    margin-left: -2px;
    margin-top: -22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    background: linear-gradient(to right, #fffef8 0%, #ffef7b 90%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 999 !important;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    color: #6b3d2e;
    text-decoration: none;
    width: 100%;
    max-width: 140px;
    height: 25px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }

  .link-button-mobile:hover {
    background: #fde68a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .link-icon-mobile {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .link-icon-mobile img {
    width: 20px;
    height: 20px;
  }

  .mobile-character-img {
    margin-top: -123px;
    width: 100%;
    max-width: 500px;
    height: 450px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  }

  .mobile-section-5 {
    max-width: 500px;
    position: relative;
    width: 100%;
  }

  .frame-download {
    width: 100%;
    height: auto;
  }

  .frame-item {
    position: absolute;
  }

  .item-1 {
    position: absolute;
    width: 120px;
    height: auto;
    top: -55px;
    left: 50px;
  }

  .item-2 {
    position: absolute;
    width: 120px;
    height: auto;
    top: -55px;
    left: 170px;
  }

  .mobile-section-6 {
    width: 100%;
    padding: 0 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .mobile-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
  }

  .mobile-social-btn {
    display: block;
    transition: transform 0.3s ease;
  }

  .mobile-social-btn img {
    width: 100%;
    height: auto;
    display: block;
  }

  .mobile-social-btn:hover {
    transform: scale(1.05);
  }

  .mobile-social-btn:active {
    transform: scale(0.95);
  }
}

/* iPad Mini Landscape (834px width, 1112px height rotated) */
@media (min-width: 834px) and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: block !important;
    width: 100%;
    position: relative;
    background: url("../image/bg-mobile.png") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .mobile-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 50px;
    position: relative;
    min-height: 100vh;
  }

  .mobile-section-1 {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 5px;
  }

  .mobile-title-img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .mobile-section-2 {
    display: none;
  }

  .mobile-section-3 {
    width: 100%;
    text-align: center;
    margin-bottom: -40px;
    z-index: 1;
  }

  .mobile-game-banner {
    width: 40%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-top: -40px;
    padding-bottom: 10px;
  }

  .mobile-section-4 {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
  }

  .container-mobile {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 15px;
    width: 100%;
    padding: 0 20px;
    margin-top: -280px;
    margin-left: 0;
    box-sizing: border-box;
  }

  .gauge-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    justify-content: center;
  }

  .gauge-wrapper-mobile {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gauge-mobile {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1f1f1f;
    border: 1px solid #feba3d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
      inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 0 8px rgba(255, 200, 0, 0.1);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }

  .gauge-center-mobile {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .gauge-text-mobile {
    text-align: center;
  }

  .gauge-text-mobile .value {
    font-size: 26px;
    font-weight: bold;
    color: #22c55e;
    line-height: 1;
  }

  .gauge-text-mobile .unit {
    font-size: 22px;
    font-weight: 700;
    color: #22c55e;
    margin-top: 5px;
  }

  .ticks-container-mobile {
    position: absolute;
    width: 140px;
    height: 140px;
    top: 0;
    left: 0;
  }

  .tick-mobile {
    position: absolute;
    width: 2px;
    height: 14px;
    background-color: #666;
    border-radius: 2px;
    left: 30%;
    top: -1px;
    transform-origin: 50% 50px;
    animation: moveClockwise-mobile 4s ease-in-out infinite;
  }

  .link-button-mobile {
    pointer-events: auto !important;
    z-index: 999 !important;

    margin-left: -65px;
    margin-top: -50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    background: linear-gradient(to right, #fffef8 0%, #ffef7b 90%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    color: #6b3d2e;
    text-decoration: none;
    width: 100%;
    max-width: 110px;
    height: 22px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }

  .link-button-mobile:hover {
    background: #fde68a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .link-icon-mobile {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .link-icon-mobile img {
    width: 20px;
    height: 20px;
  }

  .mobile-character-img {
    display: none;
  }

  .mobile-section-5 {
    width: 100%;
    margin-top: 15px;
    max-width: 600px;
    position: relative;
  }

  .frame-download {
    width: 100%;
    height: auto;
  }

  .frame-item {
    position: absolute;
  }

  .item-1 {
    position: absolute;
    width: 100px;
    height: auto;
    top: -45px;
    left: 80px;
  }

  .item-2 {
    position: absolute;
    width: 100px;
    height: auto;
    top: -45px;
    left: 200px;
  }

  .mobile-section-6 {
    width: 100%;
    padding: 0 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .mobile-social-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
  }

  .mobile-social-btn {
    display: block;
    transition: transform 0.3s ease;
  }

  .mobile-social-btn img {
    width: 100%;
    height: auto;
    display: block;
  }

  .mobile-social-btn:hover {
    transform: scale(1.05);
  }

  .mobile-social-btn:active {
    transform: scale(0.95);
  }
}

/* Animation keyframes */
@keyframes moveClockwise-mobile {
  0% {
    background-color: #666;
    opacity: 0.3;
  }
  50% {
    background-color: #22c55e;
    opacity: 1;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  }
  100% {
    background-color: #666;
    opacity: 0.3;
  }
}

@keyframes moveClockwiseWarning-mobile {
  0% {
    background-color: #666;
    opacity: 0.3;
  }
  50% {
    background-color: #fbbf24;
    opacity: 1;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.9);
  }
  100% {
    background-color: #666;
    opacity: 0.3;
  }
}

.tick-mobile.active {
  background-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.ticks-container-mobile.warning .tick-mobile {
  animation: moveClockwiseWarning-mobile 4s ease-in-out infinite;
}

.ticks-container-mobile.warning .tick-mobile.active {
  background-color: #fbbf24;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.8);
}

/* ============================================ */
/* NEST HUB RESPONSIVE CONFIGURATION */
/* Screen: 1024px × 600px - Hiển thị Desktop */
/* ============================================ */

@media (min-width: 1024px) and (max-width: 1024px) and (max-height: 600px) {
  /* === SHOW DESKTOP - HIDE MOBILE === */

  .desktop {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: url("../image/bg-pc.png") no-repeat center center;
    background-size: cover;
    background-color: #161920;
    position: absolute;
    overflow: hidden;
  }

  .mobile {
    display: none !important;
  }

  /* === MENU CONTAINER === */
  .menu-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 1.5vh 2vw;
    padding-bottom: 15px;
  }

  /* === TITLE GROUP === */
  .title-group {
    width: 100%;
    text-align: center;
    margin-top: 1vh;
    margin-bottom: -50px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0vh;
  }

  .title-img {
    width: 30%;
    height: auto;
    margin-bottom: 0.5vh;
  }

  .subtitle-img {
    width: 36%;
    height: auto;
    margin-top: 15px;
  }

  /* === LINKBOX SECTION === */
  .linkbox-section {
    position: absolute;
    z-index: 1;
    width: 70%;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    top: 124px;
    left: 50%;
    transform: translateX(-50%);
  }

  .linkbox-image {
    width: 100%;
    border-radius: 18px;
    height: auto;
    max-height: 500px;
  }

  /* === CONTAINER (GAUGE GRID) === */
  .container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: center;
    align-items: flex-start;
    position: absolute;
    top: 152px;
    left: 56%;
    transform: translateX(-50%);
    width: 120%;
    max-width: 950px;
  }

  /* === GAUGE ITEM === */
  .gauge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* === GAUGE WRAPPER === */
  .gauge-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
  }

  /* === GAUGE CIRCLE === */
  .gauge {
    position: relative;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: #2d2d2d;
    border: 1px solid #feba3d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
      inset 0 0 20px rgba(0, 0, 0, 0.8);
  }

  /* === GAUGE CENTER === */
  .gauge-center {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gauge-text {
    text-align: center;
    z-index: 10;
  }

  .gauge-text .value {
    font-size: 30px;
    font-weight: bold;
    color: #22c55e;
    line-height: 1;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }

  .gauge-text .unit {
    font-weight: 700;
    font-size: 28px;
    color: #22c55e;
    margin-top: 3px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }

  /* === TICKS CONTAINER === */
  .ticks-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .tick {
    position: absolute;
    width: 2px;
    height: 11px;
    background-color: #666;
    border-radius: 2px;
    left: 50%;
    top: 3px;
    transform-origin: 50% 50px;
    margin-left: -1px;
    transition: background-color 0.3s ease;
  }

  .tick.active {
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
  }

  .tick {
    animation: moveClockwise 4s ease-in-out infinite;
  }

  @keyframes moveClockwise {
    0% {
      background-color: #666;
      opacity: 0.3;
    }
    50% {
      background-color: #22c55e;
      opacity: 1;
      box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    }
    100% {
      background-color: #666;
      opacity: 0.3;
    }
  }

  .ticks-container.warning .tick {
    animation: moveClockwiseWarning 4s ease-in-out infinite;
  }

  @keyframes moveClockwiseWarning {
    0% {
      background-color: #666;
      opacity: 0.3;
    }
    50% {
      background-color: #eab308;
      opacity: 1;
      box-shadow: 0 0 8px rgba(234, 179, 8, 0.8);
    }
    100% {
      background-color: #666;
      opacity: 0.3;
    }
  }

  .ticks-container.warning .tick.active {
    background-color: #eab308;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.8);
  }

  /* === LINK BUTTON === */
  .link-button {
    pointer-events: auto !important;
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(to right, #fffef8 0%, #ffef7b 90%);
    border: 1px solid #ffb661;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    color: #8b2e2e;
    text-decoration: none;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    margin-top: -69px;
    width: 149px;
    height: 38px;
    margin-left: -75px;
  }

  .link-button:hover {
    background: #fde68a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .link-icon {
    width: 24px;
    height: 24px;
    background: #8b2e2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .link-icon img {
    width: auto;
    height: 30px;
  }

  .gauge-text.warning .value {
    color: #eab308;
  }

  .gauge-text.warning .unit {
    color: #eab308;
  }

  /* === FOOTER SECTION === */
  .footer-section {
    position: absolute;
    z-index: 1;
    width: 70%;
    max-width: 950px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-frame-image {
    width: 100%;
    height: auto;
  }

  .footer-items {
    position: absolute;
  }

  .footer-item-1 {
    position: absolute;
    width: 282px;
    top: -68px;
    left: 11px;
  }

  .footer-item-2 {
    position: absolute;
    width: 90px;
    top: -59px;
    left: 300px;
  }

  .footer-item-3 {
    position: absolute;
    width: 90px;
    top: -59px;
    left: 395px;
  }

  .footer-item-4 {
    position: absolute;
    width: 157px;
    top: -93px;
    left: 540px;
  }

  /* === SOCIAL ICONS === */
  .social-icons {
    position: fixed;
    right: 2vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: -3.5vh;
    z-index: 100;
  }

  .social-icon {
    width: clamp(50px, 4vw, 65px);
    height: clamp(50px, 4vw, 65px);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .social-icon:hover {
    transform: scale(1.1);
  }

  .social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* === MAIN CONTENT === */
  .main-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    margin: 0 auto;
    padding: 0 2vw;
  }

  .image-section {
    display: flex;
    gap: 2vw;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin-top: -80px;
  }

  .image-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin-right: 80px;
  }
}

/* END Nest Hub Configuration */
