﻿* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
}

.app {
  width: 100vw;
  height: 100dvh;
  display: grid;
  place-items: center;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-card {
  min-width: min(280px, calc(100vw - 32px));
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(14, 18, 20, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border: 3px solid rgba(126, 232, 222, 0.22);
  border-top-color: #7ee8de;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font: 600 16px/1.4 "Segoe UI", sans-serif;
}

.audio-gate {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.audio-gate[hidden] {
  display: none;
}

.audio-gate-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.audio-start-button {
  min-width: 150px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(126, 232, 222, 0.94);
  color: #031311;
  font: 700 15px/1 "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.audio-start-button:hover,
.audio-start-button:focus-visible {
  background: #98efe7;
}

.audio-start-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

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

.pipe-wrap {
  position: relative;
  width: min(100vw, 100dvh);
  aspect-ratio: 1 / 1;
}

.pipe-stage {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  touch-action: none;
  cursor: grab;
}

.pipe-stage.rotating {
  cursor: grabbing;
}

.pipe-image {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hotspots {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:focus-visible {
  outline: 2px solid rgba(91, 216, 205, 0.8);
  outline-offset: 1px;
}

.hotspot.active {
  border-color: transparent;
  box-shadow: none;
}

.credit {
  position: fixed;
  right: 14px;
  bottom: 10px;
  margin: 0;
  font: 600 23px/1.2 "Segoe UI", sans-serif;
  color: rgba(255, 255, 255, 0.78);
}

.credit a {
  color: #7ee8de;
  text-decoration: underline;
}

.credit a:hover,
.credit a:focus-visible {
  text-decoration: underline;
}

.install-button {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 44px);
  z-index: 20;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(126, 232, 222, 0.94);
  color: #031311;
  font: 700 15px/1 "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.install-button:hover,
.install-button:focus-visible {
  background: #98efe7;
}

.install-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.install-button[hidden] {
  display: none;
}

.install-hint {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 94px);
  z-index: 20;
  width: min(260px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 22, 24, 0.92);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.install-hint[hidden] {
  display: none;
}

.install-hint-title,
.install-hint-body {
  margin: 0;
}

.install-hint-title {
  font: 700 14px/1.2 "Segoe UI", sans-serif;
}

.install-hint-body {
  margin-top: 6px;
  font: 400 13px/1.4 "Segoe UI", sans-serif;
  color: rgba(255, 255, 255, 0.82);
}

