@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,800&family=Outfit:wght@300;400;500;600;700;800;900&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=Caveat:wght@600;700&display=swap');

:root {
  --font-thai: 'Prompt', 'Kanit', sans-serif;
  --font-display: 'Kanit', sans-serif;
  --font-en: 'Outfit', 'Kanit', sans-serif;
  --font-hand: 'Prompt', 'Kanit', sans-serif;
  
  --color-bg-deep: #020512;
  --color-bg-navy: #050b1e;
  --color-bg-card: rgba(8, 18, 44, 0.85);
  
  --neon-cyan: #00f0ff;
  --neon-blue: #00d2ff;
  --neon-pink: #ff2a85;
  --neon-purple: #b537f2;
  --neon-amber: #fbbf24;
  --neon-yellow: #facc15;
  --neon-green: #10b981;
  --neon-orange: #f97316;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-thai);
  background-color: var(--color-bg-deep);
  color: #f1f5f9;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #0a1e4a 0%, #03081a 55%, #01040e 100%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #020512;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f0ff, #0052cc);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff2a85;
}

::selection {
  background: rgba(0, 240, 255, 0.35);
  color: #ffffff;
}

/* ---------------------------------------------------- */
/* ZZZ-Inspired Signature Frame & Gaming Bezel */
/* ---------------------------------------------------- */
.zzz-outer-frame {
  position: relative;
  border-radius: 1.75rem;
  background: rgba(4, 10, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.18), inset 0 0 30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.zzz-hazard-stripe {
  background: repeating-linear-gradient(
    -45deg,
    rgba(250, 204, 21, 0.9),
    rgba(250, 204, 21, 0.9) 10px,
    #020512 10px,
    #020512 20px
  );
}

.zzz-rail-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* ---------------------------------------------------- */
/* Custom Bold Logo (ZZZ x Klin Thale Style) */
/* ---------------------------------------------------- */
.brand-logo-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.brand-monogram {
  position: relative;
  min-width: 58px;
  height: 42px;
  padding: 0 8px;
  background: #02081d;
  border: 2px solid #00f0ff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.25);
  transform: skewX(-8deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-monogram::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  background: #ff2a85;
  box-shadow: 0 0 8px #ff2a85;
  border-radius: 2px;
}

.brand-logo-badge:hover .brand-monogram {
  transform: skewX(-8deg) scale(1.08);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.9), inset 0 0 15px rgba(255, 42, 133, 0.5);
  border-color: #ffffff;
  color: #ffffff;
}

/* ---------------------------------------------------- */
/* Neon & Glow Utilities */
/* ---------------------------------------------------- */
.text-neon-cyan {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7), 0 0 25px rgba(0, 240, 255, 0.35);
}

.text-neon-pink {
  color: #ff2a85;
  text-shadow: 0 0 10px rgba(255, 42, 133, 0.7), 0 0 25px rgba(255, 42, 133, 0.35);
}

.text-neon-amber {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.7), 0 0 25px rgba(251, 191, 36, 0.35);
}

.box-neon-cyan {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.22), inset 0 0 15px rgba(0, 240, 255, 0.08);
}

.box-neon-pink {
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.22), inset 0 0 15px rgba(255, 42, 133, 0.08);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(6, 16, 40, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 1rem;
}

.glass-panel-subtle {
  background: rgba(4, 10, 26, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(2, 5, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
}

/* Gradient Text */
.text-gradient-sea {
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 35%, #00f0ff 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 30%, #e879f9 70%, #ff2a85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cyber Box Brackets */
.cyber-box {
  position: relative;
}
.cyber-box::before, .cyber-box::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: #00f0ff;
  pointer-events: none;
}
.cyber-box::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #00f0ff;
  border-left: 2px solid #00f0ff;
}
.cyber-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #00f0ff;
  border-right: 2px solid #00f0ff;
}

/* ---------------------------------------------------- */
/* Laser Light Beams & Spotlight Sweeps */
/* ---------------------------------------------------- */
.laser-beam-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.laser-beam {
  position: absolute;
  top: -20%;
  width: 3px;
  height: 140vh;
  transform-origin: top center;
  opacity: 0.35;
  filter: blur(1.5px);
}

.laser-1 {
  left: 15%;
  background: linear-gradient(180deg, #00f0ff 0%, rgba(0, 240, 255, 0.6) 50%, transparent 100%);
  animation: laserSweep1 12s ease-in-out infinite alternate;
  box-shadow: 0 0 20px #00f0ff;
}

.laser-2 {
  right: 20%;
  background: linear-gradient(180deg, #ff2a85 0%, rgba(255, 42, 133, 0.6) 50%, transparent 100%);
  animation: laserSweep2 15s ease-in-out infinite alternate;
  box-shadow: 0 0 20px #ff2a85;
}

.laser-3 {
  left: 45%;
  background: linear-gradient(180deg, #fbbf24 0%, rgba(251, 191, 36, 0.5) 50%, transparent 100%);
  animation: laserSweep3 18s ease-in-out infinite alternate;
  box-shadow: 0 0 15px #fbbf24;
}

@keyframes laserSweep1 {
  0% { transform: rotate(-35deg); opacity: 0.2; }
  50% { opacity: 0.45; }
  100% { transform: rotate(20deg); opacity: 0.25; }
}

@keyframes laserSweep2 {
  0% { transform: rotate(30deg); opacity: 0.25; }
  50% { opacity: 0.5; }
  100% { transform: rotate(-25deg); opacity: 0.2; }
}

@keyframes laserSweep3 {
  0% { transform: rotate(-15deg); opacity: 0.15; }
  100% { transform: rotate(25deg); opacity: 0.35; }
}

/* ---------------------------------------------------- */
/* Animated Sound Equalizer */
/* ---------------------------------------------------- */
.equalizer-bar {
  display: inline-block;
  width: 3px;
  background: #00f0ff;
  border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}
.equalizer-bar:nth-child(2) { animation-delay: 0.2s; height: 14px; background: #ff2a85; }
.equalizer-bar:nth-child(3) { animation-delay: 0.4s; height: 18px; background: #00d2ff; }
.equalizer-bar:nth-child(4) { animation-delay: 0.1s; height: 10px; background: #fbbf24; }

@keyframes eqBounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.2); }
}

/* ---------------------------------------------------- */
/* Live Announcement Ticker (100% Seamless Infinite Loop) */
/* ---------------------------------------------------- */
.ticker-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.ticker-content {
  display: flex;
  flex-shrink: 0;
  animation: smoothTicker 40s linear infinite;
  will-change: transform;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-wrapper:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes smoothTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------- */
/* 3D Interactive Isometric Island Canvas & HUD */
/* ---------------------------------------------------- */
#three-island-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  background: radial-gradient(circle at 50% 50%, #081738 0%, #030818 70%, #01040e 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.18), inset 0 0 40px rgba(0, 0, 0, 0.7);
}

@media (max-width: 640px) {
  #three-island-viewport {
    height: 380px;
  }
}

#three-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#three-canvas:active {
  cursor: grabbing;
}

.hud-tab-btn {
  transition: all 0.2s ease;
  white-space: nowrap;
}
.hud-tab-btn.active {
  background: rgba(0, 240, 255, 0.22);
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

/* ---------------------------------------------------- */
/* Interactive Post-it / Sticky Note Board */
/* ---------------------------------------------------- */
.corkboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.sticky-note {
  position: relative;
  padding: 1.25rem 1rem 1rem 1rem;
  min-height: 190px;
  border-radius: 4px;
  box-shadow: 3px 5px 15px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.25s ease;
  cursor: pointer;
}

.sticky-note:hover {
  transform: scale(1.06) rotate(0deg) !important;
  box-shadow: 5px 12px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.35);
  z-index: 10;
}

.sticky-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.6);
}

.note-yellow { background: #fef08a; color: #1e293b; }
.note-yellow .sticky-pin { background: #ef4444; }

.note-pink { background: #fbcfe8; color: #831843; }
.note-pink .sticky-pin { background: #06b6d4; }

.note-cyan { background: #bae6fd; color: #0c4a6e; }
.note-cyan .sticky-pin { background: #f59e0b; }

.note-green { background: #bbf7d0; color: #14532d; }
.note-green .sticky-pin { background: #ec4899; }

.note-purple { background: #e9d5ff; color: #581c87; }
.note-purple .sticky-pin { background: #10b981; }

.sticky-body {
  font-family: var(--font-thai);
  font-size: 0.925rem;
  line-height: 1.45;
  font-weight: 500;
  word-break: break-word;
}

.sticky-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.85;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------- */
/* Continuous Sliding Marquee Gallery */
/* ---------------------------------------------------- */
.gallery-marquee-stream {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.stream-left { animation: slideLeft 115s linear infinite; }
.stream-right { animation: slideRight 115s linear infinite; }

.gallery-marquee-stream:hover { animation-play-state: paused; }

@keyframes slideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-card {
  flex-shrink: 0;
  width: 360px;
  height: 225px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: #060e22;
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.4, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.marquee-card:hover {
  transform: scale(1.06) translateY(-6px);
  border-color: #00f0ff;
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.5);
  z-index: 10;
}

@media (min-width: 768px) {
  .marquee-card {
    width: 460px;
    height: 290px;
  }
}

/* ---------------------------------------------------- */
/* Fullscreen Lightbox */
/* ---------------------------------------------------- */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 6, 20, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------- */
/* Loading Screen Animation */
/* ---------------------------------------------------- */
#loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #020617;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

#loader-overlay.hidden-loader {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(10px);
  pointer-events: none;
}

#ocean-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Radar Outer Ring and Sweep Animation */
.radar-outer-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(2, 6, 23, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.radar-outer-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.radar-sweep-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55px;
  height: 55px;
  transform-origin: 0 0;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.45) 0deg, rgba(0, 240, 255, 0) 65deg);
  animation: radarSweep 3s linear infinite;
  pointer-events: none;
  border-radius: 50% 0 0 0;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-crosshair-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(0, 240, 255, 0.2);
}

.radar-crosshair-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(0, 240, 255, 0.2);
}

.radar-blip-target {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 6px;
  height: 6px;
  background: #ff2a85;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff2a85, 0 0 16px #ff2a85;
  animation: blipPulse 1.4s ease-in-out infinite;
}

@keyframes blipPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.35; }
}

/* Climax Arrival Lens Flare */
.loader-lens-flare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 65%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 240, 255, 0.85) 30%, rgba(255, 42, 133, 0.45) 60%, rgba(2, 6, 23, 0) 85%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 15;
}

.loader-lens-flare.active {
  opacity: 1;
  transform: scale(1.6);
}

.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.6) 0%, rgba(0, 240, 255, 0) 70%);
  pointer-events: none;
  transform: scale(0);
  animation: rippleAnimation 0.65s ease-out;
  z-index: 9999;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------------------------------------------------- */
/* Rich Ocean & Sea Ambient Effects */
/* ---------------------------------------------------- */
.ocean-bubbles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ocean-bubble {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.75), rgba(0, 150, 255, 0.25) 50%, rgba(255, 42, 133, 0.3) 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  animation: floatUpAndWobble linear infinite;
}

@keyframes floatUpAndWobble {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-115vh) translateX(50px) scale(1.2);
    opacity: 0;
  }
}

/* Section Multi-layered Wave Dividers */
.ocean-wave-divider {
  position: relative;
  width: 100%;
  height: 65px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.ocean-wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 65px;
}

.ocean-wave-divider .parallax-waves > use {
  animation: moveWaves 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.ocean-wave-divider .parallax-waves > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 8s;
  fill: rgba(0, 240, 255, 0.08);
}
.ocean-wave-divider .parallax-waves > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 12s;
  fill: rgba(0, 150, 255, 0.15);
}
.ocean-wave-divider .parallax-waves > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 16s;
  fill: rgba(5, 15, 45, 0.5);
}
.ocean-wave-divider .parallax-waves > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 22s;
  fill: #020512;
}

@keyframes moveWaves {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* ---------------------------------------------------- */
/* Fullscreen Undersea Ambient Canvas (Fish, Bottles, Bubbles) */
/* ---------------------------------------------------- */
#ocean-ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

/* ---------------------------------------------------- */
/* Framer Motion Style Glass Cards & Micro-Interactions (Dashboard V26) */
/* ---------------------------------------------------- */
.glass-card {
  position: relative;
  background: rgba(6, 16, 40, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s ease;
  will-change: transform, box-shadow;
}

.glass-card:hover, .motion-hover-lift:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(0, 240, 255, 0.55) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 240, 255, 0.3), 
              0 0 25px rgba(0, 210, 255, 0.18) !important;
}

.glass-card:active, .motion-hover-lift:active {
  transform: translateY(-2px) scale(0.99) !important;
}

/* Framer Motion whileHover={{ y: -5 }} Utility */
.motion-card {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease;
  will-change: transform, box-shadow;
}

.motion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px -10px rgba(0, 240, 255, 0.35);
  border-color: #00f0ff;
}

.motion-card:active {
  transform: translateY(-2px) scale(0.985);
}

/* Smooth Interactive Elevate for Countdown Cells */
.count-cell {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.25s ease, 
              border-color 0.25s ease;
}
.count-cell:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(0, 240, 255, 0.5);
  background-color: rgba(15, 23, 42, 0.95);
}

/* Hero Action Buttons Fluid Spring */
.hero-action-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.2s ease !important;
}
.hero-action-btn:hover {
  transform: translateY(-3px) scale(1.03) !important;
}
.hero-action-btn:active {
  transform: translateY(-1px) scale(0.97) !important;
}

/* ZZZ Bezel Outer Frame Smooth Subtle Floating Hover */
.zzz-outer-frame {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}
.zzz-outer-frame:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 55px rgba(0, 240, 255, 0.25), inset 0 0 35px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------------------------- */
/* LAYER 03: DEEP OCEAN SEABED FLOOR (ก้นทะเล ทรายสีทึบ สาหร่าย ปู เปลือกหอย) */
/* ---------------------------------------------------- */
.seabed-section {
  background: linear-gradient(180deg, rgba(2, 5, 18, 0) 0%, rgba(2, 5, 18, 0.7) 15%, #030718 45%, #020512 100%);
  position: relative;
  /* border removed for seamless transition */
}

/* Seabed Sand Texture Overlay */
.seabed-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px);
  background-size: 32px 32px, 48px 48px;
  background-position: 0 0, 16px 16px;
  opacity: 0.6;
  pointer-events: none;
}

/* Swaying Seaweeds (สาหร่ายทะเลสีมรกตเรืองแสง) */
.seaweed-clump {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  z-index: 5;
  opacity: 0.85;
}
.left-seaweed { left: 2%; }
.right-seaweed { right: 2%; }

.seaweed-strand {
  width: 14px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(to top, #064e3b 0%, #059669 50%, #34d399 90%, #6ee7b7 100%);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  transform-origin: bottom center;
}
.strand-1 { height: 160px; animation: swayKelp 4.2s ease-in-out infinite alternate; }
.strand-2 { height: 210px; animation: swayKelp 5.5s ease-in-out infinite alternate -1.5s; width: 16px; }
.strand-3 { height: 130px; animation: swayKelp 3.8s ease-in-out infinite alternate -0.8s; }
.strand-4 { height: 180px; animation: swayKelp 4.8s ease-in-out infinite alternate -2.0s; width: 15px; }
.strand-5 { height: 220px; animation: swayKelp 5.8s ease-in-out infinite alternate -0.5s; }
.strand-6 { height: 140px; animation: swayKelp 3.9s ease-in-out infinite alternate -1.2s; }

@keyframes swayKelp {
  0% { transform: rotate(-8deg) skewX(-4deg); }
  50% { transform: rotate(4deg) skewX(2deg); }
  100% { transform: rotate(10deg) skewX(5deg); }
}

/* Animated Scuttling Crabs on Seabed (ปูทะเลก้นอ่าว) */
.scuttling-crab {
  position: absolute;
  bottom: 15px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.crab-1 {
  left: 15%;
  animation: crabWalk1 24s ease-in-out infinite alternate;
}
.crab-2 {
  right: 18%;
  animation: crabWalk2 28s ease-in-out infinite alternate;
}

.crab-body {
  position: relative;
  width: 32px;
  height: 20px;
  background: radial-gradient(circle, #f97316 0%, #ea580c 70%, #c2410c 100%);
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}
.crab-eye {
  position: absolute;
  top: -4px;
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 3px #000;
}
.crab-eye::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #020617;
  border-radius: 50%;
}
.left-eye { left: 7px; }
.right-eye { right: 7px; }

.crab-claw {
  position: absolute;
  top: -6px;
  width: 10px;
  height: 12px;
  background: #f97316;
  border-radius: 6px 6px 2px 2px;
}
.left-claw {
  left: -8px;
  transform: rotate(-30deg);
  animation: pinchClaw 2s ease-in-out infinite alternate;
}
.right-claw {
  right: -8px;
  transform: rotate(30deg);
  animation: pinchClaw 2s ease-in-out infinite alternate -1s;
}

@keyframes pinchClaw {
  0% { transform: rotate(-20deg) scale(0.95); }
  100% { transform: rotate(-45deg) scale(1.08); }
}

@keyframes crabWalk1 {
  0% { transform: translateX(0) scaleX(1); }
  45% { transform: translateX(180px) scaleX(1); }
  50% { transform: translateX(180px) scaleX(-1); }
  95% { transform: translateX(20px) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes crabWalk2 {
  0% { transform: translateX(0) scaleX(-1); }
  45% { transform: translateX(-160px) scaleX(-1); }
  50% { transform: translateX(-160px) scaleX(1); }
  95% { transform: translateX(-10px) scaleX(1); }
  100% { transform: translateX(0) scaleX(-1); }
}

/* Scattered Seashells & Starfish on Seabed */
.seabed-shell, .seabed-starfish {
  position: absolute;
  bottom: 8px;
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  z-index: 6;
  opacity: 0.85;
  transition: transform 0.3s ease;
}
.shell-1 { left: 8%; transform: rotate(-15deg); }
.shell-2 { right: 12%; transform: rotate(25deg); }
.starfish-1 { left: 28%; font-size: 16px; filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.7)); }
.starfish-2 { right: 32%; font-size: 20px; filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.7)); }

/* ---------------------------------------------------- */
/* Rich Click Explosion & Water Bubble Shockwave */
/* ---------------------------------------------------- */
.click-shockwave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  border: 2px solid rgba(0, 240, 255, 0.85);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), inset 0 0 15px rgba(0, 240, 255, 0.3);
  animation: shockwaveExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 999999;
}
.click-shockwave-secondary {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  border: 1.5px solid rgba(255, 42, 133, 0.75);
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.5);
  animation: shockwaveExpand 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.06s forwards;
  z-index: 999998;
}

@keyframes shockwaveExpand {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

.click-bubble-spark {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  will-change: transform, opacity;
}

/* ---------------------------------------------------- */
/* Dynamic Interactive Card Spotlight (Continuous Mouse Response) */
/* ---------------------------------------------------- */
.glass-card::before, .glass-panel::before, .zzz-outer-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-card:hover::before, .glass-panel:hover::before, .zzz-outer-frame:hover::before {
  opacity: 1;
}

/* ---------------------------------------------------- */
/* LAYER 01: NIGHT BEACH ATMOSPHERE (หาดราตรียามค่ำคืน) */
/* ---------------------------------------------------- */
.night-beach-section {
  position: relative;
  background: radial-gradient(circle at 80% 15%, rgba(15, 23, 42, 0.95) 0%, #03081a 50%, #020512 100%);
  overflow: hidden;
}

/* Glowing Full Moon */
.night-moon {
  position: absolute;
  top: 35px;
  right: 5%;
  width: 90px;
  height: 90px;
  z-index: 2;
  filter: drop-shadow(0 0 35px rgba(224, 242, 254, 0.8));
  pointer-events: none;
}
.moon-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e0f2fe 50%, #93c5fd 85%, #60a5fa 100%);
  box-shadow: 0 0 30px rgba(186, 230, 253, 0.6), inset -6px -6px 16px rgba(30, 58, 138, 0.4);
}
.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.35);
  box-shadow: inset 1px 1px 2px rgba(30, 58, 138, 0.3);
}
.c1 { width: 18px; height: 18px; top: 22px; left: 24px; }
.c2 { width: 12px; height: 12px; top: 50px; left: 45px; }
.c3 { width: 8px; height: 8px; top: 32px; left: 56px; }

.moon-aura {
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.25) 0%, transparent 70%);
  animation: moonPulse 6s ease-in-out infinite alternate;
}
@keyframes moonPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.12); opacity: 1; }
}

@media (max-width: 640px) {
  .night-moon {
    width: 60px;
    height: 60px;
    top: 25px;
    right: 3%;
  }
}

/* Shooting Stars */
.shooting-star {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, rgba(0, 240, 255, 0.85), transparent);
  transform: rotate(-35deg);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.star-1 {
  top: 50px;
  left: 15%;
  animation: shootStar 10s linear infinite 2s;
}
.star-2 {
  top: 110px;
  left: 50%;
  animation: shootStar 14s linear infinite 7s;
}
@keyframes shootStar {
  0% { transform: rotate(-35deg) translateX(0); opacity: 0; }
  4% { opacity: 1; }
  12% { transform: rotate(-35deg) translateX(280px); opacity: 0; }
  100% { opacity: 0; }
}

/* Warm Beachfront Fairy Lights */
.beach-fairy-lights {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 4%;
  z-index: 3;
  pointer-events: none;
}
.fairy-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 10px #fde047, 0 0 20px rgba(250, 204, 21, 0.6);
  animation: fairyFlicker 3s ease-in-out infinite alternate;
}
.fl-1 { animation-delay: 0.1s; background: #fbbf24; }
.fl-2 { animation-delay: 0.5s; background: #f472b6; box-shadow: 0 0 10px #f472b6; }
.fl-3 { animation-delay: 0.8s; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.fl-4 { animation-delay: 1.2s; background: #fde047; }
.fl-5 { animation-delay: 0.3s; background: #34d399; box-shadow: 0 0 10px #34d399; }
.fl-6 { animation-delay: 0.9s; background: #fbbf24; }
.fl-7 { animation-delay: 0.4s; background: #f472b6; box-shadow: 0 0 10px #f472b6; }
.fl-8 { animation-delay: 1.1s; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.fl-9 { animation-delay: 0.6s; background: #fde047; }
.fl-10 { animation-delay: 1.4s; background: #34d399; box-shadow: 0 0 10px #34d399; }

@keyframes fairyFlicker {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Sandy Beach Shoreline & Gentle Foaming Waves */
.beach-sand-shore {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.sand-dune-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: linear-gradient(to top, rgba(217, 180, 130, 0.22) 0%, rgba(200, 160, 110, 0.08) 70%, transparent 100%);
  border-top: 1px dashed rgba(251, 191, 36, 0.25);
}
.beach-foam-wave {
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 24px;
  border-radius: 50% 50% 0 0;
}
.wave-back {
  background: rgba(0, 240, 255, 0.15);
  animation: beachWashBack 6s ease-in-out infinite alternate;
}
.wave-front {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 -2px 12px rgba(0, 240, 255, 0.25);
  animation: beachWashFront 5s ease-in-out infinite alternate 0.8s;
}
@keyframes beachWashBack {
  0% { transform: translateY(14px) scaleY(0.7); }
  100% { transform: translateY(0) scaleY(1.2); }
}
@keyframes beachWashFront {
  0% { transform: translateY(12px) scaleY(0.6); }
  100% { transform: translateY(-3px) scaleY(1.3); }
}
