/* ==================================================
   📱 G FUN 匿名聊天室｜Mobile 專用樣式
   ================================================== */

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  background: #000;
  color: gold;
}

.gold-box {
  width: 90%;
  background: #111;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
  border: 2px solid gold;
  margin: 12px auto;
  box-sizing: border-box;
}

.title-box h1 {
  font-size: 2rem;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-weight: bold;
  color: gold;
  text-align: center;
}

.title-box {
  margin: 40px 0 12px;
  padding: 10px 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: gold;
  border-radius: 15px;
  border: 2px solid gold;
  box-shadow: 0 0 15px gold;
  background-color: #111;
}

.login-box {
  margin: 12px 0;
  background: #111;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
  border: 2px solid gold;
  box-sizing: border-box;
  overflow: hidden;
}

.login-title {
  text-align: center;
  color: gold;
  margin: 5px 0 20px;
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1.4;
}

.login-subtitle {
  text-align: center;
  color: gold;
  margin: 0 0 25px;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
}

.form-area {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.form-area input,
.form-area select {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  background: #222;
  color: gold;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.btn-yellow {
  background-color: gold;
  color: black;
}

.btn-purple {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #9933cc;
  color: #fff;
  font-size: 1rem;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  margin-top: 12px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-purple:hover {
  background-color: #aa44dd;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.tg-tip-box {
  margin-top: 12px;
  background: #3b1a4c;
  color: #f8e8ff;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.footer-box {
  margin: 12px 0;
}

.footer-box p {
  font-size: 0.85em;
  color: #aaa;
  margin-top: 20px;
}

.footer-box a {
  color: #ffe680;
  text-decoration: underline;
  cursor: pointer;
}

.modal-18 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 0 20px;
  box-sizing: border-box;
}

.modal-18.active {
  display: flex;
}

.popup-circle {
  width: 90vw;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, #111 65%, #000);
  border: 4px solid gold;
  box-shadow: 0 0 40px 10px gold;
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  color: gold;
  box-sizing: border-box;
  position: relative;
}

.popup-circle h2 {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0 0.2rem;
}

.popup-subtitle {
  color: #00ffff;
  font-weight: bold;
  font-size: 2.5rem;
  margin: 0 0 0.6rem;
}

.popup-warning {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.6rem;
}

.popup-buttons button {
  flex: 2;
  max-width: 38%;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: bold;
  background: gold;
  color: black;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 8px gold;
}

.alert-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}

.alert-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 20px 30px;
  font-size: 18px;
  box-shadow: 0 0 15px #000;
  max-width: 90%;
  text-align: center;
}

.alert-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.confirm-age-check {
  text-align: center;
  color: #ccc;
  font-size: 14px;
  margin: 6px 0 16px;
  font-weight: normal;
  letter-spacing: 0.5px;
}



/* =============================================
   🔧 修正：18禁彈窗｜中大尺寸手機（401px ~ 480px）
   ============================================= */
@media (min-width: 401px) and (max-width: 480px) {
  .popup-circle {
    width: 90vw;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 1.4rem 1.4rem 1.6rem;
    box-shadow: 0 0 32px 6px gold;
    background: radial-gradient(circle at center, #111 70%, #000);
    box-sizing: border-box;
  }

  .popup-buttons {
    justify-content: center;
    gap: 1rem;
  }

  .popup-buttons button {
    max-width: 42%;
    font-size: 1.05rem;
    padding: 0.7rem 0;
    box-shadow: 0 0 6px gold;
  }
}



/* =============================================
   🔧 修正：手機畫面左右偏移，強制置中 
   ============================================= */
@media (max-width: 480px) {
  .gold-box {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .login-box,
  .title-box,
  .footer-box {
    width: 90%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden; /* 防止橫向滑動 */
  }
}




/* =============================================
   🔧 修正：聊天室分類彈窗理想寬度（紅框內精準對齊）
   ============================================= */
@media (max-width: 480px) {
  .confirm-popup-wrapper {
    justify-content: center;
    align-items: center;
    padding: 0 4vw;
    box-sizing: border-box;
  }

  .confirm-popup-box {
    width: 92vw;
    max-width: 360px;
    margin: 0 auto;
    padding: 24px 18px;
    background-color: #111;
    border: 2px solid gold;
    border-radius: 18px;
    box-shadow: 0 0 25px gold;
    color: gold;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.6;
  }
}






/* =============================================
   🔧 修正：18禁彈窗小螢幕｜維持圓形設計 (max-width: 400px)
   ============================================= */
@media (max-width: 400px) {
  .popup-circle {
    width: 92vw;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 1.2rem 1rem 1.5rem;
    box-shadow: 0 0 30px 8px gold;
    background: radial-gradient(circle at center, #111 70%, #000);
    box-sizing: border-box;
  }

  .popup-circle h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0 0.3rem;
  }

  .popup-subtitle {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 0 0.5rem;
    color: #00ffff;
  }

  .popup-warning {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: gold;
  }

  .popup-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }

  .popup-buttons button {
    flex: 1;
    max-width: 42%;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.6rem 0;
    border-radius: 10px;
    background: gold;
    color: black;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 6px gold;
  }
}



/* =============================================
   🔧 修正：iPhone SE 與小螢幕表單排版優化
   ============================================= */
@media (max-width: 380px) {
  .form-area {
    padding: 0 6px;
  }

  .form-area input,
  .form-area select {
    font-size: 0.95rem;
    padding: 8px 10px;
    margin-bottom: 12px;
  }

  .login-box {
    padding: 25px 18px;
  }

  .login-button-gold {
    margin-top: 15px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    background: linear-gradient(to bottom, #ffcc33, gold);
    color: #000;
    border: 2px solid gold;
    box-shadow: 0 0 10px gold;
  }

  .footer-box {
    margin-top: 18px;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .footer-box p {
    margin-top: 14px;
    line-height: 1.4;
  }
}





