:root {
  --bg-1: #080808;
  --bg-2: #121212;
  --bg-3: #1f1f1f;
  --accent-1: #d8d8d8;
  --accent-2: #cfcfcf;
  --text-main: #f2f2f2;
  --text-soft: rgba(242, 242, 242, 0.82);
  --card-bg: rgba(22, 22, 22, 0.72);
  --card-border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Literata", Georgia, serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.14), transparent 36%),
    radial-gradient(circle at 82% 74%, rgba(185, 185, 185, 0.14), transparent 40%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -5;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
  transform: scale(1.03);
  pointer-events: none;
}

.control-btn {
  z-index: 2;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: clamp(2.8rem, 7vw, 3.15rem);
  height: clamp(2.8rem, 7vw, 3.15rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #f2f2f2;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.control-btn:disabled {
  cursor: default;
}

.control-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.2);
}

.control-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.quote-controls {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.control-icon {
  font-size: clamp(1rem, 2.6vw, 1.22rem);
  line-height: 1;
}

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

.audio-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.audio-toggle.is-muted {
  color: rgba(214, 214, 214, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.like-btn {
  color: #f4f4f4;
}

.like-btn.is-liked {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.17);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.like-btn.is-liked:disabled {
  pointer-events: none;
}

.like-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  line-height: 1;
}

.engagement-line {
  margin: 0.75rem 0 0;
  text-align: center;
  font-family: "Unbounded", "Segoe UI", sans-serif;
  font-size: clamp(0.64rem, 1.4vw, 0.8rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(235, 235, 235, 0.9);
}

.background-glow {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
}

.background-glow-a {
  width: min(62vw, 640px);
  height: min(62vw, 640px);
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 62%);
  animation: driftA 13s ease-in-out infinite alternate;
}

.background-glow-b {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  bottom: -14%;
  right: -10%;
  background: radial-gradient(circle, rgba(164, 164, 164, 0.24), transparent 66%);
  animation: driftB 15s ease-in-out infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.45px, transparent 0.45px);
  background-size: 2px 2px;
  opacity: 0.15;
}

.layout {
  width: min(1080px, 100% - 2.25rem);
  margin: 0 auto;
  min-height: 100dvh;
  padding: clamp(0.9rem, 2.2vw, 1.4rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.05rem, 2.4vw, 1.85rem);
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.brand {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 6.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f2f2f2;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.brand-cut {
  display: inline-block;
  position: relative;
  margin-left: 0.02em;
  font-family: inherit;
  font-weight: inherit;
  color: var(--accent-1);
  opacity: 0.35;
}

.brand-cut::after {
  content: "";
  position: absolute;
  left: -4%;
  width: 108%;
  top: 67%;
  height: 0.08em;
  border-radius: 999px;
  background: rgba(220, 220, 220, 0.72);
  pointer-events: none;
}

.timer-card {
  margin-top: 0;
  padding: 0;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 128px));
  justify-content: center;
  gap: clamp(0.45rem, 1.1vw, 0.75rem);
}

.metric {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.72rem 0.52rem 0.78rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  min-height: 106px;
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -30% -58% -30%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.12),
    transparent 68%
  );
  transition: transform 0.55s ease;
  transform: translateY(25%);
}

.metric:hover::after {
  transform: translateY(8%);
}

.metric-value {
  margin: 0;
  font-family: "Unbounded", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 4.5vw, 3.1rem);
  line-height: 1.06;
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
}

.metric-label {
  margin: 0.5rem 0 0;
  font-size: clamp(0.7rem, 1.75vw, 0.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.summary {
  margin: 1.3rem auto 0;
  font-size: clamp(1.05rem, 2.55vw, 1.38rem);
  line-height: 1.65;
  color: #ebebeb;
  min-height: 3.4em;
  max-width: clamp(28ch, 56vw, 42ch);
  text-wrap: balance;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.summary.quote-shift {
  animation: quoteShift 0.45s ease;
}

.pulse {
  animation: pulse 0.45s ease;
}

@keyframes driftA {
  from {
    transform: translateY(0) translateX(0) scale(1);
  }
  to {
    transform: translateY(3%) translateX(4%) scale(1.07);
  }
}

@keyframes driftB {
  from {
    transform: translateY(0) translateX(0) scale(1);
  }
  to {
    transform: translateY(-4%) translateX(-2%) scale(1.08);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    color: var(--accent-2);
  }
  50% {
    transform: scale(1.03);
    color: #e5e5e5;
  }
  100% {
    transform: scale(1);
    color: var(--accent-2);
  }
}

@keyframes quoteShift {
  0% {
    opacity: 0.35;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .timer-grid {
    grid-template-columns: repeat(2, minmax(0, 128px));
  }

  .metric {
    min-height: 102px;
  }
}

@media (max-width: 560px) {
  .layout {
    width: min(100% - 1.3rem, 1080px);
    min-height: 100dvh;
    padding: 0.85rem 0;
  }

  .brand {
    font-size: clamp(2.4rem, 19vw, 4.6rem);
    line-height: 0.98;
  }

  .timer-grid {
    gap: 0.55rem;
  }

  .metric {
    border-radius: 12px;
    padding: 0.64rem 0.46rem 0.7rem;
  }

  .control-btn {
    width: 2.65rem;
    height: 2.65rem;
  }
}
