/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(255, 136, 194, 0.18), transparent 60%),
    radial-gradient(900px 700px at 30% 90%, rgba(38, 247, 214, 0.12), transparent 55%),
    #0b0d12;
  overflow-x: hidden;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.hero {
  width: min(720px, 100%);
  text-align: center;
  padding: 26px 22px 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 650;
  letter-spacing: 0.2px;
}

.title {
  margin: 14px 0 6px;
  font-size: clamp(28px, 4.3vw, 44px);
  letter-spacing: -0.02em;
}
.subtitle {
  margin: 0;
  opacity: 0.78;
  font-size: clamp(14px, 2.2vw, 18px);
}

.footer {
  margin-top: 14px;
  opacity: 0.7;
  font-size: 13px;
}
.footer-text {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.card {
  width: min(760px, 100%);
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}
.hint {
  font-size: 12px;
  opacity: 0.6;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.title-love {
  margin: 10px 0 6px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.subtitle-love {
  margin: 0 0 14px;
  opacity: 0.82;
  font-size: clamp(14px, 2.1vw, 18px);
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.code {
  display: grid;
  gap: 6px;
}
.code-label {
  font-size: 12px;
  opacity: 0.72;
}
.code-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}
.code-input:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 650;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.96);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.92), rgba(255, 136, 194, 0.88));
  box-shadow: 0 14px 30px rgba(124, 92, 255, 0.2), 0 10px 26px rgba(255, 136, 194, 0.12);
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.reveal {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: center;
}

.message {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  padding: 14px 14px 12px;
}
.message-title {
  font-size: 13px;
  opacity: 0.72;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.message-text {
  font-size: 16px;
  opacity: 0.92;
}
.message-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill {
  font-size: 12px;
  opacity: 0.78;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.art {
  display: grid;
  place-items: center;
  padding: 10px 6px 0;
}
.kettle {
  width: min(260px, 100%);
  height: auto;
}
.art-caption {
  margin-top: 10px;
  opacity: 0.72;
  font-size: 13px;
  text-align: center;
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.card {
  position: relative;
  z-index: 2;
}

@media (max-width: 680px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .reveal {
    grid-template-columns: 1fr;
  }
}
