/* ==========================================================================
   Glam Heist — global styles
   ========================================================================== */

:root {
  --pink: #ff2f92;
  --pink-bright: #ff5fb0;
  --pink-dim: #b8226a;
  --ink: #050208;
  --panel: rgba(8, 3, 10, 0.82);
  --text: #f6e9f1;
  --text-dim: #d8b7cb;
  --stage-ratio: 1600 / 907;
  --content-ratio: 1672 / 941;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body { position: relative; }

::selection { background: var(--pink); color: #100; }

/* Scrollbars inside content panels */
.scrollable {
  scrollbar-width: thin;
  scrollbar-color: var(--pink-dim) transparent;
}
.scrollable::-webkit-scrollbar { width: 8px; }
.scrollable::-webkit-scrollbar-track { background: transparent; }
.scrollable::-webkit-scrollbar-thumb {
  background: var(--pink-dim);
  border-radius: 4px;
}
.scrollable::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ==========================================================================
   App shell
   ========================================================================== */

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--ink);
}

.stage {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

.stage.is-active { display: flex; }

.stage-frame {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--stage-ratio);
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  overflow: hidden;
}

/* letterbox math: if viewport is narrower/taller than ratio, height limits; else width limits */
.stage-frame {
  width: min(100vw, calc(100vh * (1600 / 907)));
  height: min(100vh, calc(100vw * (907 / 1600)));
}

.stage-frame video,
.stage-frame > img.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Hotspots
   ========================================================================== */

.hotspot {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border-radius: 6px;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-touched {
  background: rgba(255, 47, 146, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 95, 176, 0.35), 0 0 22px 4px rgba(255, 47, 146, 0.28) inset;
}

.hotspot-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: rgba(5, 2, 8, 0.92);
  border: 1px solid var(--pink);
  color: var(--pink-bright);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(11px, 1.1vw, 15px);
  letter-spacing: 0.04em;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 47, 146, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  text-transform: uppercase;
  z-index: 60;
  transform: translateX(-50%);
}

.hotspot-tooltip.is-visible { opacity: 1; }

/* ==========================================================================
   Content box (About / Support / FAQs / Rules pages)
   ========================================================================== */

.content-box {
  position: absolute;
  left: 20.6%;
  top: 28.7%;
  width: 58.9%;
  height: 50.5%;
  overflow-y: auto;
  padding: clamp(10px, 2.2%, 34px) clamp(14px, 3%, 40px);
  color: var(--text);
}

.content-box h1 {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: 0.06em;
  color: var(--pink-bright);
  text-shadow: 0 0 14px rgba(255, 47, 146, 0.65);
  margin: 0 0 0.5em;
}

.content-box h2 {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: 0.04em;
  color: var(--pink-bright);
  margin: 1.3em 0 0.4em;
  border-bottom: 1px solid rgba(255, 47, 146, 0.35);
  padding-bottom: 0.25em;
}

.content-box h2:first-of-type { margin-top: 0.4em; }

.content-box p {
  font-size: clamp(10.5px, 1.05vw, 14.5px);
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 0.9em;
}

.content-box strong { color: var(--text); }

.content-box a.inline-link {
  color: var(--pink-bright);
  text-decoration: underline;
}

.content-box .lede {
  font-style: italic;
  color: var(--pink-bright);
}

.qa {
  margin: 0 0 0.85em;
}
.qa .q {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(10.5px, 1.05vw, 14.5px);
}
.qa .a {
  color: var(--text-dim);
  font-size: clamp(10.5px, 1.02vw, 14.5px);
  line-height: 1.5;
  margin: 0.2em 0 0;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6em 0 1em;
  font-size: clamp(10px, 0.95vw, 13px);
}
.rate-table th, .rate-table td {
  border: 1px solid rgba(255, 47, 146, 0.3);
  padding: 0.4em 0.6em;
  text-align: left;
  color: var(--text-dim);
}
.rate-table th {
  color: var(--pink-bright);
  background: rgba(255, 47, 146, 0.08);
}

/* ==========================================================================
   About page extras
   ========================================================================== */

.about-signoff {
  font-size: clamp(11px, 1.1vw, 15px);
  color: var(--pink-bright);
  margin-top: 1em;
}

.biz-inquiry {
  margin-top: 1.4em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 47, 146, 0.3);
}

/* ==========================================================================
   Support form
   ========================================================================== */

.support-form {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.field label {
  display: block;
  font-size: clamp(10px, 0.95vw, 13px);
  color: var(--pink-bright);
  letter-spacing: 0.03em;
  margin-bottom: 0.35em;
  text-transform: uppercase;
}

.field .hint {
  display: block;
  font-size: clamp(9px, 0.82vw, 11.5px);
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.3em;
  font-style: italic;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 47, 146, 0.45);
  border-radius: 6px;
  color: var(--text);
  padding: 0.6em 0.75em;
  font-family: inherit;
  font-size: clamp(11px, 1vw, 14px);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 10px rgba(255, 47, 146, 0.45);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ff5fb0'><path d='M5 7l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 14px;
  padding-right: 2em;
}

.field textarea { resize: vertical; min-height: 4.5em; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85em;
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

.submit-btn {
  align-self: flex-start;
  margin-top: 0.3em;
  background: linear-gradient(135deg, var(--pink), var(--pink-dim));
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.05vw, 14px);
  padding: 0.75em 1.8em;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 47, 146, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(255, 47, 146, 0.75); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-status {
  font-size: clamp(10px, 0.95vw, 13px);
  min-height: 1.2em;
  margin-top: 0.3em;
}
.form-status.ok { color: #7CFFB2; }
.form-status.err { color: #ff8080; }

/* ==========================================================================
   Loading transition
   ========================================================================== */

#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#loading.is-visible {
  opacity: 1;
  pointer-events: all;
}

#loading .diamond {
  width: 46px;
  height: 46px;
  border: 2px solid var(--pink);
  transform: rotate(45deg);
  box-shadow: 0 0 24px rgba(255, 47, 146, 0.85), inset 0 0 14px rgba(255, 47, 146, 0.5);
  animation: diamond-pulse 1.1s ease-in-out infinite;
}

@keyframes diamond-pulse {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(45deg) scale(1.18); opacity: 1; }
}

#loading .loading-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.35em;
  color: var(--pink-bright);
  font-size: 15px;
  text-shadow: 0 0 12px rgba(255, 47, 146, 0.8);
  animation: flicker 1.6s linear infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 55% { opacity: 0.4; }
}

/* ==========================================================================
   Audio control
   ========================================================================== */

#audio-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 47, 146, 0.6);
  background: rgba(5, 2, 8, 0.75);
  color: var(--pink-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 47, 146, 0.35);
  backdrop-filter: blur(3px);
  transition: box-shadow 0.2s ease;
}
#audio-toggle:hover { box-shadow: 0 0 22px rgba(255, 47, 146, 0.6); }
#audio-toggle svg { width: 20px; height: 20px; }
#audio-toggle[hidden] { display: none; }

/* ==========================================================================
   Skip-link for accessibility (kept visually minimal)
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
