:root {
  --pressente-background: #140820;
  --pressente-surface: #21132f;
  --pressente-foreground: #f4f0f8;
  --pressente-muted: #c4b8ce;
  --pressente-gold: hsl(38 95% 56%);
  --pressente-gold-gradient: linear-gradient(135deg, hsl(43, 96%, 70%) 0%, hsl(38, 95%, 56%) 50%, hsl(25, 95%, 53%) 100%);
  --pressente-gold-detail: #d6bf90;
  --pressente-line: #51405e;
  color: var(--pressente-foreground);
  color-scheme: dark;
}

* {
  letter-spacing: 0;
}

body {
  background: var(--pressente-background);
}

.page {
  width: min(100%, 456px);
  padding: 24px 20px 34px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 26px;
  color: var(--pressente-gold);
}

.logo {
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--pressente-gold-detail);
  border-radius: 8px;
  background: var(--pressente-gold-detail);
  box-shadow: none;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.logo svg path {
  stroke: var(--pressente-background);
}

.logo svg circle {
  fill: var(--pressente-background);
}

.logo svg circle:last-child {
  fill: var(--pressente-gold-detail);
}

h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

h1 span,
.subtitle strong,
.instruction strong,
.connection h2,
.connection strong {
  color: var(--pressente-gold);
  background: var(--pressente-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  max-width: 34ch;
  margin: 0 auto 22px;
  color: var(--pressente-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.instruction {
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 2px dotted var(--pressente-gold-detail);
  border-radius: 0;
  background: #2b1b3b;
  color: var(--pressente-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

.instruction strong {
  color: var(--pressente-gold);
  font-weight: 700;
}

.cue {
  margin-bottom: 18px;
  color: var(--pressente-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  animation: cue-bob 1.8s ease-in-out infinite;
}

.card-grid {
  column-gap: 9px;
  row-gap: 14px;
}

.card {
  border-radius: 8px;
  box-shadow: 0 7px 16px #00000059;
  transition: transform 500ms ease-out, opacity 250ms ease-out, box-shadow 250ms ease-out;
}

.card:hover:not(.is-revealed):not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--pressente-gold-detail), 0 10px 20px #00000066;
}

.card:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--pressente-gold-detail);
  outline-offset: 4px;
}

.card.is-revealed {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 0 2px var(--pressente-gold-detail), 0 10px 20px #00000066;
}

.card-inner {
  transition: transform 500ms ease-out;
}

.card-back {
  background: var(--pressente-surface);
}

.card-front {
  background: #f4e9d7;
}

.progress {
  min-height: 22px;
  margin-top: 16px;
}

.dots {
  gap: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  background: #665670;
}

.dot.is-active {
  background: var(--pressente-gold-detail);
  box-shadow: none;
}

.progress-label {
  margin-left: 9px;
  color: var(--pressente-muted);
  font-size: 12px;
}

.connection {
  margin-top: 30px;
  padding: 24px 20px;
  border: 1px solid var(--pressente-gold-detail);
  border-radius: 8px;
  background: var(--pressente-surface);
  box-shadow: none;
}

.warning {
  display: none;
}

.connection h2 {
  margin-bottom: 20px;
  color: var(--pressente-gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

.connection p {
  margin-bottom: 16px;
  color: var(--pressente-muted);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
  text-wrap: pretty;
}

.connection strong {
  color: var(--pressente-gold);
  font-weight: 700;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 12px;
  border-radius: 8px;
  background: var(--pressente-gold);
  box-shadow: none;
  color: var(--pressente-background);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
  transition: transform 180ms ease-out, background-color 180ms ease-out;
}

.cta:hover {
  transform: translateY(-2px);
  background: #ffcf66;
  box-shadow: none;
}

.signature {
  color: var(--pressente-muted) !important;
  font-size: 12px !important;
  text-align: center !important;
}

.legal {
  margin-top: 32px;
  color: #b9adc5;
  font-size: 11px;
}

.legal a:hover {
  color: var(--pressente-gold);
}

@media (max-width: 359px) {
  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: 26px;
  }

  .card-grid {
    column-gap: 7px;
    row-gap: 12px;
  }

  .connection {
    padding: 20px 14px;
  }

  .cta {
    font-size: 13px;
  }
}

@media (hover: none) {
  .card:hover:not(.is-revealed):not(:disabled) {
    transform: none;
    box-shadow: 0 7px 16px #00000059;
  }

  .cta:hover {
    transform: none;
    background: var(--pressente-gold);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cue {
    animation: none;
    transform: none;
  }

  .card,
  .card-inner,
  .cta {
    transition: none;
  }

  .card.is-revealed,
  .cta:hover,
  .cta:active {
    transform: none;
  }
}
