:root {
  --bg: #171717;
  --paper: #f8f0df;
  --paper-strong: #f2e4c2;
  --line: rgba(111, 78, 31, 0.25);
  --gold: #b08b4a;
  --gold-deep: #735737;
  --gold-soft: #d7b56a;
  --text: #553911;
  --muted: #947547;
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(176, 139, 74, 0.18), transparent 30%),
    linear-gradient(180deg, #191919 0%, #111 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

body.wish-modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.intro-envelope {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #9f7711;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-envelope.is-opening {
  background: transparent;
}

.intro-envelope.is-opening .envelope-scene {
  background: transparent;
}

.intro-envelope.is-opening .envelope-back {
  opacity: 0;
}

.intro-envelope.is-opening .envelope-copy,
.intro-envelope.is-opening .seal-button,
.intro-envelope.is-opening .envelope-hint {
  opacity: 0;
}

.intro-envelope.is-opening .envelope-flap-top {
  transform: translateY(-118%) rotate(-2deg);
}

.intro-envelope.is-opening .envelope-flap-left {
  transform: translateX(-118%) rotate(-5deg);
}

.intro-envelope.is-opening .envelope-flap-right {
  transform: translateX(118%) rotate(5deg);
}

.intro-envelope.is-opening .envelope-flap-bottom {
  transform: translateY(118%) rotate(2deg);
}

.intro-envelope.is-opening .seal-button {
  transform: translate(-50%, -50%) scale(0.72);
}

.intro-envelope.is-opening .envelope-lines {
  opacity: 0;
}

.intro-envelope.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-scene {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 199, 88, 0.15), transparent 18%),
    linear-gradient(90deg, #9a7310 0 50%, #a17911 50% 100%);
  perspective: 1200px;
}

.envelope-copy,
.seal-button,
.envelope-hint {
  position: absolute;
  z-index: 4;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.envelope-copy {
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff7da;
  z-index: 7;
}

.envelope-script {
  margin: 0 0 18px;
  font-family: "Lobster", "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 64px);
}

.envelope-subtitle {
  margin: 0;
  font-family: "Forum", serif;
  font-size: clamp(15px, 2.1vw, 32px);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.envelope-hint {
  left: 50%;
  bottom: 38px;
  width: min(92%, 430px);
  transform: translateX(-50%);
  text-align: center;
  color: #fff3ca;
  font-size: 17px;
  line-height: 1.55;
  font-family: "Forum", serif;
}

.seal-button {
  z-index: 6;
  top: 50%;
  left: 50%;
  width: 148px;
  height: 148px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: 0 18px 34px rgba(82, 43, 9, 0.34);
}

.seal-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.seal-text {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: #5e3418;
  font-family: "Forum", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 241, 224, 0.45);
  pointer-events: none;
}

.envelope-back,
.envelope-lines,
.envelope-flap {
  position: absolute;
  inset: 0;
}

.envelope-back {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 221, 128, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04)),
    #9a7410;
  transition: opacity 0.2s ease;
}

.envelope-lines {
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.22s ease 0.18s;
}

.line {
  stroke: rgba(92, 66, 9, 0.58);
  stroke-width: 0.36;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 0 rgba(255, 219, 126, 0.14));
}

.envelope-flap {
  z-index: 3;
  background: #a17810;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 2s cubic-bezier(0.18, 0.78, 0.18, 1);
  will-change: transform;
}

.envelope-flap-top {
  z-index: 4;
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  background:
    linear-gradient(180deg, rgba(255, 225, 134, 0.1), transparent 72%),
    linear-gradient(135deg, #a57d14 0%, #936d0d 100%);
  transform-origin: 50% 0;
}

.envelope-flap-left {
  z-index: 4;
  clip-path: polygon(0 0, 50% 50%, 0 100%);
  background:
    linear-gradient(90deg, rgba(91, 62, 6, 0.14), transparent 74%),
    linear-gradient(135deg, #96700d 0%, #aa8114 100%);
  transform-origin: 0 50%;
}

.envelope-flap-right {
  z-index: 4;
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  background:
    linear-gradient(270deg, rgba(91, 62, 6, 0.14), transparent 74%),
    linear-gradient(225deg, #96700d 0%, #aa8114 100%);
  transform-origin: 100% 50%;
}

.envelope-flap-bottom {
  z-index: 3;
  clip-path: polygon(0 100%, 50% 50%, 100% 100%);
  background:
    linear-gradient(0deg, rgba(88, 60, 6, 0.12), transparent 72%),
    linear-gradient(0deg, #9d7610 0%, #aa8114 100%);
  transform-origin: 50% 100%;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-shell-hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  pointer-events: none;
}

.page-shell-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.phone-stage {
  position: relative;
  width: min(100%, 430px);
  overflow: hidden;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 16%),
    linear-gradient(180deg, #fff8ea 0%, #f5e7ca 100%);
  box-shadow: var(--shadow), 0 0 0 10px #2a2a2a, 0 0 0 12px #0f0f0f;
}

.phone-notch {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 150px;
  height: 28px;
  margin: 0 auto;
  background: #111;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.ornament {
  position: absolute;
  inset: auto;
  width: 340px;
  height: 340px;
  background-image: url("https://tyrasoft.kz/uploads/beyne/page_builder_comp_1769673314456_c9cd339f600e4e4089712ff29c3a0027.webp");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  animation: spin 24s linear infinite;
}

.ornament-left {
  top: 240px;
  left: -180px;
}

.ornament-right {
  top: 880px;
  right: -180px;
  animation-duration: 34s;
}

.section {
  position: relative;
  padding: 32px 26px;
  text-align: center;
}

.hero {
  padding-top: 18px;
  padding-bottom: 12px;
}

.hero-medallion {
    position: relative;
    width: 310px;
    margin: -50px auto 22px;
}

.hero-ring {
  width: 310px;
  margin: 0 auto;
  animation: spin 26s linear infinite;
}

.hero-ornament {
  width: 176px;
  margin: 0 auto;
}

.hero-ornament-top {
  margin-bottom: -20px;
}

.hero-ornament-bottom {
  margin-top: -8px;
  margin-bottom: 18px;
}

.eyebrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  margin: 0;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--gold);
}

.eyebrow-number {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #d6a436;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-text-stroke: 1px #8f6512;
  text-shadow:
    0 1px 0 #fff1bd,
    0 3px 0 #8a5f10,
    0 7px 13px rgba(80, 48, 4, 0.28),
    0 0 20px rgba(230, 185, 73, 0.34);
}

.eyebrow-label {
  display: block;
  margin-top: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subtitle {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #5b4013;
}

.script-title {
  margin: 0 auto 14px;
  font-family: "Lobster", "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  text-shadow: 1px 1px 0 rgba(139, 92, 26, 0.18);
}

.hero .script-title {
  max-width: 330px;
}

.scroll-title {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.18, 0.78, 0.18, 1);
  will-change: opacity, transform;
}

.scroll-title.from-left {
  transform: translateX(-56px);
}

.scroll-title.from-right {
  transform: translateX(56px);
}

.scroll-title.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-copy,
.section-copy,
.venue-copy,
.calendar-note,
.closing-copy {
  margin: 0 auto;
  max-width: 320px;
  color: var(--text);
  line-height: 1.7;
      
}
.aqqqw{
  font-family: "Forum", serif;
  font-size: 23px;
}

.framed-section {
  padding-top: 8px;
  padding-bottom: 8px;
}

.frame-art {
  width: 100%;
}

.calendar-card,
.venue-card,
.rsvp-card,
.wishes-card {
  position: relative;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 251, 243, 0.82);
  box-shadow: 0 14px 34px rgba(111, 78, 31, 0.1);
  backdrop-filter: blur(10px);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: "Forum", serif;
  font-size: 22px;
  color: var(--gold-deep);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 50%;
  font-family: "Forum", serif;
  font-size: 13px;
}

.calendar-weekdays span {
  min-height: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.calendar-grid .muted {
  color: #c3ae83;
}

.event-day {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(176, 139, 74, 0.35);
}

.calendar-note {
  margin-top: 18px;
  font-family: "Forum", serif;
  font-size: 15px;
}

.floating-accent {
    position: absolute;
    left: 270px;
    top: 450px;
    width: 44px;
    transform: rotate(22deg);
    z-index: 9;
    border-radius: 20px;
}

.venue-image {
    border-radius: 22px;
    margin-bottom: -104px;
    margin-top: -110px;
}

.venue-name {
    margin: 0 0 8px;
    /* font-family: "Cormorant Garamond", serif; */
    font-size: 30px;
    font-weight: 700;
    font-family: "Forum", serif;
}

.gold-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(115, 87, 55, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gold-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(115, 87, 55, 0.3);
}

.countdown-section {
  background: linear-gradient(180deg, rgba(115, 87, 55, 0.92), rgba(86, 62, 40, 0.98));
  color: white;
}

.countdown-ornament {
  position: absolute;
  left: -14px;
  top: 18px;
  width: 92px;
  opacity: 0.95;
}

.countdown-title {
  margin: 0 0 18px;
  color: white;
  font-family: "Forum", serif;
  font-size: 16px;
  letter-spacing: 0.16em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.time-box {
  padding: 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.time-box span {
  display: block;
  font-family: "Forum", serif;
  font-size: 34px;
  font-weight: 700;
}

.time-box small {
  font-family: "Forum", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.survey-decor {
    width: 100%;
    margin-bottom: -16px;
    margin-top: -70px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.rsvp-card input[type="text"],
.wishes-form input,
.wishes-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(85, 57, 17, 0.28);
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
}

.wishes-form textarea {
  min-height: 132px;
  resize: vertical;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.option-pill {
  position: relative;
  display: block;
  cursor: pointer;
}

.option-pill input {
  position: absolute;
  opacity: 0;
}

.option-pill span {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(176, 139, 74, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  transition: all 0.25s ease;
}

.option-pill input:checked + span {
  background: linear-gradient(135deg, rgba(176, 139, 74, 0.22), rgba(115, 87, 55, 0.2));
  border-color: rgba(115, 87, 55, 0.55);
  color: var(--text);
  font-weight: 700;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--gold-deep);
}

.form-message.is-error {
  color: #9f3a2f;
}

.wishes-banner {
    width: 100%;
    margin-bottom: -56px;
    margin-top: -120px;
}

.wishes-form {
  display: grid;
  gap: 12px;
}

.wishes-slider {
  margin-top: 0;
}

.wish-open-button {
  width: 100%;
  margin-top: 18px;
}

.wishes-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.wishes-viewport::-webkit-scrollbar {
  display: none;
}

.wishes-track {
  display: flex;
  gap: 18px;
}

.wish-slide {
  flex: 0 0 86%;
  scroll-snap-align: center;
}

.wish-card-shell {
  min-height: 226px;
  padding: 22px 20px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 237, 0.96)),
    var(--white);
  border: 1px solid rgba(176, 139, 74, 0.18);
  box-shadow: 0 18px 34px rgba(111, 78, 31, 0.1);
  text-align: left;
}

.wish-card-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #9c7a43;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  line-height: 1.45;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.wish-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(176, 139, 74, 0.16);
}

.wish-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wish-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #9f7711);
  color: var(--white);
  font-family: "Forum", serif;
  font-size: 18px;
  font-weight: 700;
}

.wish-author-meta {
  min-width: 0;
}

.wish-author-meta strong,
.wish-author-meta span {
  display: block;
}

.wish-author-meta strong {
  color: var(--gold-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wish-author-meta span {
  margin-top: 4px;
  color: #b49a73;
  font-size: 13px;
}

.wish-like {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(176, 139, 74, 0.12);
  color: #c35d73;
  font-weight: 700;
  font-size: 14px;
}

.wishes-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.wishes-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(176, 139, 74, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.wishes-dot.is-active {
  width: 26px;
  background: var(--gold-deep);
}

.wishes-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 1.5px solid rgba(176, 139, 74, 0.8);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.wishes-toggle::after {
  content: "\2192";
  font-size: 20px;
}

.wish-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.wish-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wish-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 20, 11, 0.54);
  backdrop-filter: blur(5px);
}

.wish-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 28px 18px 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 236, 0.98)),
    var(--white);
  border: 1px solid rgba(176, 139, 74, 0.28);
  box-shadow: 0 26px 60px rgba(37, 24, 8, 0.28);
}

.wish-modal-title {
  margin: 0 38px 18px;
  color: var(--gold-deep);
  font-family: "Lobster", "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1.1;
  text-align: center;
}

.wish-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(176, 139, 74, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--gold-deep);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wishes-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.wishes-list-hidden {
  display: none;
}

.wish-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(176, 139, 74, 0.22);
  text-align: left;
}

.wish-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-deep);
}

.wish-item p {
  margin: 0;
  line-height: 1.65;
}

.closing-section {
  padding-top: 12px;
  padding-bottom: 92px;
}

.closing-copy {
  font-family: "Lobster", "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.audio-toggle,
.wish-shortcut {
  position: fixed;
  bottom: 18px;
  z-index: 30;
  width: calc(50% - 26px);
  max-width: 180px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-deep), #8d672f);
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.25s ease;
}

.audio-toggle {
  left: 16px;
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  overflow: hidden;
  cursor: pointer;
}

.wish-shortcut {
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  text-decoration: none;
}

.audio-toggle::before,
.wish-shortcut::before {
  display: block;
  position: relative;
  z-index: 1;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.audio-toggle::before {
  content: "";
  background-image: url("play.svg");
  animation: playHeartbeat 1.4s ease-in-out infinite;
}

.wish-shortcut::before {
  content: "\270E";
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
}

.action-label {
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.action-icon {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.action-icon::before,
.action-icon::after {
  content: "";
  position: absolute;
}

.action-icon-play::before {
  left: 10px;
  top: 7px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid rgba(255, 255, 255, 0.95);
}

.action-icon-note {
  border-radius: 8px;
}

.action-icon-note::before {
  left: 6px;
  top: 7px;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.95), 0 10px 0 rgba(255, 255, 255, 0.95);
}

.audio-toggle:hover,
.wish-shortcut:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.audio-toggle-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.audio-toggle.is-playing {
  background: linear-gradient(135deg, #87653a, #c9a96a);
  color: transparent;
}

.audio-toggle.is-playing::before {
  content: "";
  background-image: url("stop.svg");
  animation: none;
}

.audio-toggle::after {
  content: "";
  display: none;
}

.audio-toggle.is-playing::after {
  content: "";
  display: block;
  position: absolute;
  left: 56px;
  right: 16px;
  top: 50%;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 999px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 0 50% / 3px 30% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 10% 50% / 3px 65% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 20% 50% / 3px 45% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 30% 50% / 3px 85% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 40% 50% / 3px 55% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 50% 50% / 3px 95% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 60% 50% / 3px 50% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 70% 50% / 3px 82% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 80% 50% / 3px 42% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 90% 50% / 3px 62% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 100% 50% / 3px 32% no-repeat;
  animation: equalizerPulse 0.95s ease-in-out infinite alternate;
}

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

@keyframes equalizerPulse {
  0% {
    transform: translateY(-50%) scaleY(0.82);
    opacity: 0.82;
  }

  50% {
    transform: translateY(-50%) scaleY(1.08);
    opacity: 1;
  }

  100% {
    transform: translateY(-50%) scaleY(0.72);
    opacity: 0.88;
  }
}

@keyframes playHeartbeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.12);
  }

  28% {
    transform: scale(0.98);
  }

  42% {
    transform: scale(1.18);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes driftLeft {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(10px) translateX(-4px);
  }
}

@keyframes driftRight {
  from {
    transform: scaleX(-1) translateY(0);
  }

  to {
    transform: scaleX(-1) translateY(10px) translateX(-4px);
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0;
  }

  .phone-stage {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .audio-toggle,
  .wish-shortcut {
    width: calc(50% - 22px);
    max-width: none;
    min-height: 52px;
    padding: 0 12px;
  }

  .wish-shortcut {
    right: 16px;
  }

  .action-label {
    font-size: 13px;
  }

  .action-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .audio-toggle::before,
  .wish-shortcut::before {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .seal-button {
    width: 142px;
    height: 142px;
  }

  .hero-medallion {
    width: 350px;
    margin-bottom: 14px;
  }

  .hero-ring {
    width: 350px;
  }

  .hero-ornament {
    width: 154px;
  }

    .hero-ornament-top {
        margin-bottom: -16px;
        margin-top: -30px;
    }

  .hero-ornament-bottom {
    margin-top: -8px;
    margin-bottom: 14px;
  }

  .eyebrow {
    width: 146px;
  }

  .eyebrow-number {
    font-size: 74px;
  }

  .eyebrow-label {
    font-size: 24px;
  }

.hero-subtitle {
        font-size: 19px;
        margin-bottom: 0px;
    }

  .seal-text {
    font-size: 19px;
  }

  .envelope-copy {
    top: 80px;
    width: 90%;
  }

  .envelope-hint {
    bottom: 68px;
    font-size: 15px;
  }
}
