/* ========================================
   Deep Game HK - Redesigned Stylesheet
   Mobile-First · Clean · Fast
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --surface-3: #222;
  --text: #e8e8e8;
  --text-dim: #999;
  --accent: #ff0055;
  --green: #25d366;
  --radius: 12px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Noto Sans TC', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}

.navbar.scrolled {
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
  padding: 8px 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img { height: 40px; width: auto; }

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  z-index: 2000;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  line-height: 1;
  color: var(--text-dim);
}

.mobile-nav { margin-top: 48px; flex: 1; }

.mobile-nav li a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--surface-2);
  transition: color .2s;
}

.mobile-nav li a:hover { color: var(--accent); }

.menu-cta {
  display: inline-block !important;
  margin-top: 12px;
  padding: 10px 20px !important;
  background: var(--green) !important;
  color: #000 !important;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.menu-social {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-2);
}

.menu-social a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .2s;
}

.menu-social a:hover { color: #fff; }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,0,85,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,255,200,.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 16px;
}

.hero-logo {
  max-width: 320px;
  width: 80%;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 30px rgba(255,0,85,.3));
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
  opacity: .7;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-align: center;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(255,0,85,.4);
  transform: translateY(-1px);
}

.btn-game {
  background: var(--accent, var(--surface-3));
  color: #fff;
  width: 100%;
  margin-top: 16px;
}

.btn-game:hover {
  box-shadow: 0 4px 20px rgba(255,0,85,.3);
}

.btn-outline {
  border: 1px solid var(--text-dim);
  color: var(--text);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.05);
}

.btn-cta {
  background: var(--green);
  color: #000;
  font-size: 17px;
  padding: 16px 36px;
}

.btn-cta:hover {
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transform: translateY(-1px);
}

.btn-cta-icon { font-size: 20px; }

.hero-btn {
  margin-top: 8px;
  padding: 16px 40px;
  font-size: 16px;
}

/* === Section Styles === */
.section-title {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 15px;
}

.games-section { padding: 60px 0 40px; }

/* === Games Grid === */
.games-grid {
  display: grid;
  gap: 24px;
}

/* === Game Card === */
.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--surface-2);
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  border-color: var(--surface-3);
}

.card-gallery { position: relative; }

.card-body { padding: 20px; }

.card-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.card-tagline {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.card-meta span {
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.card-tags {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}

.card-toggle {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  transition: color .2s;
}

.card-toggle:hover { color: #fff; }

.card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}

.card-expand.open {
  max-height: 2000px;
}

.expand-content { padding-top: 16px; }

.expand-story {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.expand-features {
  margin-bottom: 16px;
}

.expand-features li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--text);
}

.expand-features li::before {
  content: '\2713 ';
  color: var(--green);
  font-weight: 700;
}

/* === Expand Gallery === */
.expand-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.expand-gallery img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform .3s;
}

.expand-gallery img:hover { transform: scale(1.02); }

/* === Carousel === */
.carousel { position: relative; overflow: hidden; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface-2);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .3s, transform .3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* === CTA Section === */
.cta-section {
  padding: 60px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,0,85,.1) 0%, transparent 60%),
    var(--bg);
}

.cta-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-sub {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

/* === YouTube Section === */
.banner_No {
  background: rgba(0, 0, 0, 0.9);
  padding: 40px 0;
}

/* === Location Section === */
.location-section {
  padding: 60px 0;
}

.location-grid {
  display: grid;
  gap: 24px;
}

.location-info {
  text-align: center;
  padding: 24px 0;
}

.location-icon { font-size: 48px; margin-bottom: 12px; }

.location-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.location-info p {
  color: var(--text-dim);
  font-size: 15px;
}

.location-hint {
  color: var(--accent) !important;
  font-weight: 600;
  margin: 8px 0 16px !important;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 400px;
  display: block;
}

/* === Instagram Section === */
.instagram-section {
  padding: 60px 0 0;
}

.instagram-section iframe {
  display: block;
}

.ig-fallback {
  text-align: center;
  padding: 40px 16px;
}

/* IG Feed Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.ig-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
}

.ig-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-2);
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.ig-item:hover img {
  transform: scale(1.05);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity .3s;
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

.ig-likes,
.ig-comments {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* === Footer === */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--surface-2);
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  padding: 6px 14px;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
  transition: background .2s, color .2s;
}

.social-links a:hover {
  background: var(--surface-3);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--surface-2);
  color: var(--text-dim);
  font-size: 13px;
}

/* === WhatsApp Float === */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #000;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
}

.whatsapp-label { white-space: nowrap; }

/* ========================================
   Responsive: Tablet (>=600px)
   ======================================== */
@media (min-width: 600px) {
  .section-title { font-size: 32px; }
  .hero-tagline { font-size: 20px; }
  .hero-sub { font-size: 16px; }
  .cta-title { font-size: 30px; }
  .location-map iframe { height: 500px; }
  .expand-gallery { grid-template-columns: repeat(3, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   Responsive: Desktop (>=900px)
   ======================================== */
@media (min-width: 900px) {
  .section-title { font-size: 36px; }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .location-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
  }

  .location-info { text-align: left; }
  .location-map iframe { height: 400px; }
  .expand-gallery { grid-template-columns: repeat(4, 1fr); }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   Responsive: Large Desktop (>=1200px)
   ======================================== */
@media (min-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-card {
  animation: fadeInUp .6s ease both;
}

.game-card:nth-child(2) { animation-delay: .08s; }
.game-card:nth-child(3) { animation-delay: .12s; }
.game-card:nth-child(4) { animation-delay: .16s; }
.game-card:nth-child(5) { animation-delay: .2s; }
.game-card:nth-child(6) { animation-delay: .24s; }
.game-card:nth-child(7) { animation-delay: .28s; }