/* RIPPLE LAB — matches Mindivr games thumbnail (soft cyan rings on dark pond) */

:root {
  --void: #070b16;
  --pond: #070f1c;
  --ripple: #60a5fa;
  --ripple-soft: rgba(96, 165, 250, 0.55);
  --ripple-glow: rgba(96, 165, 250, 0.35);
  --text-cream: #eaf6f8;
  --text-muted: #9cc3cc;
  --text-dim: #5a7e88;
  --cyan: #60a5fa;
  --cyan-soft: #93c5fd;
  --teal-deep: rgba(96, 165, 250, 0.2);
  --line-soft: rgba(96, 165, 250, 0.14);
  --display: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

.sim-wrap {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 75% at 50% 85%, rgba(96, 165, 250, 0.1), transparent 58%),
    radial-gradient(ellipse 70% 45% at 50% 15%, rgba(45, 212, 212, 0.04), transparent 55%),
    var(--pond);
}

.sim-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 75% at 50% 50%, transparent 42%, rgba(4, 8, 18, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.4) 0%, transparent 18%, transparent 82%, rgba(3, 7, 14, 0.55) 100%);
}

#sim {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
  background: transparent;
}

.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  pointer-events: none;
  z-index: 3;
}

.hud-title {
  font-family: var(--display);
  font-size: 23px;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

.hud-title .mark { color: var(--cyan); font-style: normal; font-size: 20px; }

.hud-controls { display: flex; align-items: center; gap: 14px; pointer-events: auto; }

.counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(7, 15, 28, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease);
}

.ctrl-btn:hover { border-color: var(--ripple); color: var(--cyan-soft); transform: translateY(-1px); }
.ctrl-btn:active { transform: translateY(0) scale(0.95); }

.onboard {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.onboard.gone { opacity: 0; transform: translateX(-50%) translateY(12px); }

.g-demo {
  position: relative;
  width: 200px;
  height: 125px;
  border-radius: 6px;
  overflow: hidden;
  background: #070b16;
  border: 1px solid rgba(96, 165, 250, 0.12);
}

.g-pond {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(96, 165, 250, 0.12), transparent 70%);
}

.g-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid var(--ripple-soft);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ripple-glow);
  animation: thumbRipple 4s ease-out infinite;
  animation-delay: var(--d, 0s);
}

.g-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--cyan-soft);
  box-shadow: 0 0 12px var(--ripple);
  animation: thumbCore 4s ease-in-out infinite;
}

@keyframes thumbRipple {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(28); opacity: 0; }
}

@keyframes thumbCore {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 0.6; }
}

.onboard-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 7px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.65);
  backdrop-filter: blur(8px);
}

.cta-pill {
  position: absolute;
  bottom: 22px;
  right: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-cream);
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 15, 28, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
}

.cta-pill .mark { color: var(--cyan); }
.cta-pill svg { transition: transform 0.3s ease; }
.cta-pill:hover { border-color: var(--ripple); color: #fff; background: rgba(7, 15, 28, 0.88); transform: translateY(-2px); }
.cta-pill:hover svg { transform: translateX(3px); }

.convert-prompt {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 6;
  max-width: 290px;
  padding: 18px 20px 20px;
  border-radius: 6px;
  border: 1px solid var(--teal-deep);
  background: linear-gradient(160deg, rgba(12, 22, 38, 0.95), rgba(7, 11, 22, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s var(--spring);
}

.convert-prompt.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.convert-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.convert-close:hover { color: var(--text-cream); }

.convert-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.convert-title {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  color: var(--text-cream);
  margin-bottom: 14px;
}

.convert-btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a1520;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.convert-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(96, 165, 250, 0.35); }

@media (max-width: 540px) {
  .hud { padding: 14px 16px; }
  .hud-title { font-size: 19px; }
  .onboard { bottom: 13%; }
  .onboard-text { font-size: 10px; letter-spacing: 0.12em; }
  .cta-pill { bottom: 16px; right: 14px; font-size: 10px; padding: 9px 13px; }
  .convert-prompt { left: 14px; right: 14px; bottom: 70px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .g-ring, .g-core { animation: none !important; }
  .g-ring { opacity: 0.35; transform: scale(8); }
}
