/* 3D Aquarium — futuristic holographic deep-sea habitat */
:root {
  --aq-teal: #00e5c8;
  --aq-cyan: #3ba5f7;
  --aq-violet: #9d4edd;
  --aq-magenta: #ff4dd2;
  --aq-coral: #ff6b9d;
  --aq-gold: #f5c542;
  --aq-deep: #010812;
  --aq-mid: #021428;
}

.aq-page {
  background: var(--aq-deep);
  color: #fff;
  overflow: hidden;
}

body.aq-active {
  background: var(--aq-deep);
  overflow: hidden;
}

body.aq-active .header-top-news,
body.aq-active .rainbow-header,
body.aq-active .header-default,
body.aq-active .my_switcher,
body.aq-active .rainbow-footer,
body.aq-active .copyright-area,
body.aq-active .rbt-progress-parent,
body.aq-active .popup-mobile-menu {
  display: none !important;
}

body.aq-active .page-wrapper {
  background: var(--aq-deep);
  padding: 0;
  margin: 0;
}

.aq-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 229, 200, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(59, 165, 247, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(157, 78, 221, 0.12), transparent 50%),
    var(--aq-deep);
}

#aq-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: crosshair;
  touch-action: none;
}

.aq-caustics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      105deg,
      transparent,
      transparent 40px,
      rgba(0, 229, 200, 0.03) 40px,
      rgba(0, 229, 200, 0.03) 80px
    );
  mix-blend-mode: screen;
  animation: aq-caustic-drift 12s linear infinite;
}

@keyframes aq-caustic-drift {
  0% { transform: translateX(-5%) skewX(-2deg); }
  100% { transform: translateX(5%) skewX(2deg); }
}

.aq-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(1, 8, 18, 0.75) 100%);
}

.aq-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--aq-deep);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.aq-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.aq-loading .spinner {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(0, 229, 200, 0.15);
  border-top-color: var(--aq-teal);
  border-radius: 50%;
  animation: aq-spin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(0, 229, 200, 0.35);
}

@keyframes aq-spin {
  to { transform: rotate(360deg); }
}

.aq-loading .label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(0, 229, 200, 0.65);
}

.aq-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 8, 18, 0.65), transparent);
}

.aq-topbar > * {
  pointer-events: auto;
}

.aq-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 229, 200, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.aq-back:hover {
  background: rgba(0, 229, 200, 0.12);
  border-color: rgba(0, 229, 200, 0.45);
  color: var(--aq-teal);
}

.aq-brand {
  text-align: center;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.4em;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.aq-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.28em;
  background: linear-gradient(90deg, var(--aq-teal), var(--aq-cyan), var(--aq-violet), var(--aq-magenta));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aq-shimmer 6s linear infinite;
  font-weight: 800;
}

@keyframes aq-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.aq-counter {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(0, 229, 200, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 200, 0.06);
  border: 1px solid rgba(0, 229, 200, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 130px;
  text-align: center;
}

.aq-help {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 220px;
  transition: opacity 0.5s ease;
}

.aq-help.is-dim {
  opacity: 0.2;
}

.aq-help .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aq-help kbd {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 229, 200, 0.08);
  border: 1px solid rgba(0, 229, 200, 0.2);
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: rgba(0, 229, 200, 0.85);
  white-space: nowrap;
}

.aq-intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(2, 20, 40, 0.85), rgba(1, 8, 18, 0.95));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.aq-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.aq-intro-badge {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--aq-teal);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 229, 200, 0.35);
  border-radius: 999px;
  background: rgba(0, 229, 200, 0.08);
}

.aq-intro h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff 0%, var(--aq-teal) 40%, var(--aq-cyan) 70%, var(--aq-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.aq-intro p {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 28px;
}

.aq-intro-tip {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(0, 229, 200, 0.75);
  animation: aq-pulse-tip 2s ease-in-out infinite;
}

@keyframes aq-pulse-tip {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.aq-toolbar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(2, 20, 40, 0.6);
  border: 1px solid rgba(0, 229, 200, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 200, 0.08);
}

.aq-tool {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 76px;
  justify-content: center;
}

.aq-tool .ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
  background: rgba(0, 229, 200, 0.1);
}

.aq-tool:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.aq-tool.is-active {
  color: #fff;
  background: rgba(0, 229, 200, 0.14);
  border-color: rgba(0, 229, 200, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 200, 0.2);
}

.aq-tool.is-active .ico {
  background: rgba(0, 229, 200, 0.3);
  color: var(--aq-teal);
}

.aq-tool .shortcut {
  font-size: 10px;
  opacity: 0.45;
  font-family: 'Courier New', monospace;
}

.aq-toolbar .divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.aq-audio {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 200, 0.25);
  background: rgba(2, 20, 40, 0.55);
  color: var(--aq-teal);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.aq-audio:hover {
  background: rgba(0, 229, 200, 0.15);
  box-shadow: 0 0 20px rgba(0, 229, 200, 0.25);
}

.aq-audio:not(.is-on) {
  color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .aq-help {
    display: none;
  }

  .aq-brand span {
    display: none;
  }

  .aq-tool span:not(.ico):not(.shortcut) {
    display: none;
  }

  .aq-tool {
    min-width: 48px;
    padding: 10px;
  }

  .aq-tool .shortcut {
    display: none;
  }
}
