/* =========================================================================
 * Flush Rush — game-specific styles
 *
 * The game itself is rendered into a single <canvas> that sits inside the
 * shared 1080x1920 virtual stage from brand.css. Everything else (HUD,
 * brand bar, screens) is regular DOM using shared components.
 * ========================================================================= */

/* Canvas fills the virtual stage. Logical size is 1080x1920; brand.css's
   #game.transform: scale() handles fitting to viewport. */
#gameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
  z-index: 1;
}

/* Reposition the puddle since there's no bottom HUD in Flush Rush; actually
   Flush Rush doesn't use a puddle — canvas handles everything. */

/* Keep the tagline out of the way on the title screen */
#tagline {
  position: absolute;
  bottom: 60px; left: 60px;
  font-family: "Luckiest Guy", "Fredoka", sans-serif;
  font-size: 34px;
  color: var(--honey-lt);
  letter-spacing: 2px;
  text-shadow: 0 4px 0 var(--navy-deep);
  opacity: 0.85;
  z-index: 6;
  max-width: 520px;
  line-height: 1.15;
}

/* ---------- Dive button ---------- */
/* Big circular touch target at bottom-right. The rest of the canvas is
   tap-to-jump, so players only need to remember one dedicated button. */
#diveButton {
  position: absolute;
  right: 70px;
  bottom: 80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(210,240,255,0.98) 0%,
    rgba(110,198,255,0.96) 35%,
    rgba(55,140,205,0.96) 70%,
    rgba(30,80,140,0.98) 100%);
  border: 8px solid var(--navy-deep);
  box-shadow: 0 14px 0 var(--navy-deep), 0 20px 36px rgba(0,0,0,0.5);
  color: var(--white);
  font-family: "Luckiest Guy", "Fredoka", sans-serif;
  font-size: 50px;
  letter-spacing: 3px;
  text-shadow:
    -3px 0 0 var(--navy-deep),
    3px 0 0 var(--navy-deep),
    0 -3px 0 var(--navy-deep),
    0 3px 0 var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  user-select: none;
  touch-action: manipulation;
  line-height: 1;
}
#diveButton .arrow {
  font-size: 120px;
  line-height: 0.7;
  margin-bottom: 10px;
}
#diveButton.pressed {
  transform: translateY(8px);
  box-shadow: 0 6px 0 var(--navy-deep), 0 10px 20px rgba(0,0,0,0.5);
  filter: brightness(1.15);
}

/* Close call popup — floats briefly center-screen */
#closeCall {
  position: absolute;
  left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  font-family: "Luckiest Guy", "Fredoka", sans-serif;
  font-size: 96px;
  color: var(--honey);
  letter-spacing: 4px;
  text-shadow:
    -5px 0 0 var(--navy-deep),
    5px 0 0 var(--navy-deep),
    0 -5px 0 var(--navy-deep),
    0 5px 0 var(--navy-deep),
    0 12px 0 rgba(0,0,0,0.45);
  pointer-events: none;
  opacity: 0;
  z-index: 9;
  white-space: nowrap;
}
#closeCall.show { animation: closeCallPop 700ms ease-out forwards; }
@keyframes closeCallPop {
  0%   { opacity: 0; transform: translate(-50%, -40%) scale(0.6); }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  60%  { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(0.9); }
}

/* Controls hint on title screen — only show until first play */
.controlsHint {
  font-family: "Luckiest Guy", "Fredoka", sans-serif;
  font-size: 28px;
  color: var(--honey-lt);
  letter-spacing: 2px;
  text-shadow: 0 3px 0 var(--navy-deep);
  margin: 10px 0 0;
  max-width: 780px;
  line-height: 1.4;
}
