:root {
  --gradient-bg-top: #FFFFFF;
  --gradient-bg-top-rgb: 255, 255, 255;
  --gradient-bg-bottom: #FFFFFF;
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --muted-foreground: 0 0% 45%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gradient-bg-top: #1E1127;
    --gradient-bg-top-rgb: 30, 17, 39;
    --gradient-bg-bottom: #000000;
    --background: 260 15% 7%;
    --foreground: 0 0% 98%;
    --muted-foreground: 0 0% 60%;
  }
}

@font-face {
  font-family: 'Petrov Sans';
  src: url('/fonts/PetrovSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Petrov Sans';
  src: url('/fonts/PetrovSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Petrov Sans', sans-serif;
  color: hsl(var(--foreground));
  background: linear-gradient(180deg, var(--gradient-bg-top) 0%, var(--gradient-bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
}

/* Bokeh backdrop */
.bokeh {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    to bottom right,
    rgba(var(--gradient-bg-top-rgb), 0.4),
    var(--gradient-bg-bottom),
    rgba(var(--gradient-bg-top-rgb), 0.3)
  );
}

.bokeh__circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.bokeh__circle--primary {
  background: rgba(var(--gradient-bg-top-rgb), 0.5);
  width: 24rem;
  height: 24rem;
  left: 25%;
  top: 25%;
  animation: float 8s ease-in-out infinite;
}

.bokeh__circle--secondary {
  background: rgba(var(--gradient-bg-top-rgb), 0.4);
  width: 24rem;
  height: 24rem;
  right: 25%;
  bottom: 25%;
  animation: float 10s ease-in-out infinite;
  animation-delay: 1s;
}

.bokeh__circle--center {
  background: rgba(var(--gradient-bg-top-rgb), 0.3);
  width: 16rem;
  height: 16rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

.bokeh__circle--center {
  transform: translate(-50%, -50%);
}

/* Ripple (breath variant) */
.ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  animation: fadeIn 1.5s ease-out forwards;
}

.ripple img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: breathPulse 4s ease-in-out infinite;
  width: 100%;
  height: 100%;
}

.ripple img:nth-child(1) {
  animation-delay: 0s;
}

.ripple img:nth-child(2) {
  animation-delay: 1.33s;
  width: 80%;
  height: 80%;
}

.ripple img:nth-child(3) {
  animation-delay: 2.66s;
  width: 60%;
  height: 60%;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes breathPulse {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.05); }
}

/* Layout */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.content {
  max-width: 28rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  z-index: 10;
}

.logotype {
  color: inherit;
  width: 100%;
  max-width: 180px;
}

.logotype path {
  fill: currentColor;
}

.description {
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.badges img {
  display: block;
}

.badges a {
  display: inline-block;
  line-height: 0;
}

.app-store-badge {
  height: 48px;
}

.play-store-badge {
  height: 71px;
}

/* Confirm-deletion states */
.spinner {
  border: 2px solid hsl(var(--foreground));
  border-top-color: transparent;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
}

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

.title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
