:root {
  --bg-image: none;
  --site-font: "MedievalSharp", serif;
  --overlay-opacity: 0.44;
  --text-main: #f6e8bf;
  --panel-bg: rgba(17, 12, 20, 0.82);
  --panel-border: rgba(255, 227, 149, 0.28);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--site-font);
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(244, 211, 94, 0.12), transparent 32%),
    linear-gradient(180deg, #0d0a12 0%, #120f1a 52%, #1a1722 100%);
}

body.admin-page,
body.admin-page input,
body.admin-page select,
body.admin-page button,
body.admin-page textarea {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.admin-page {
  color: #111827;
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  opacity: 0.28;
  pointer-events: none;
}

body.admin-page::before {
  display: none;
}

body.dress-page::before {
  display: none;
}

a,
button,
input,
select {
  font: inherit;
}

.landing-page,
.next-page,
.admin-page {
  position: relative;
  min-height: 100vh;
}

.landing-page {
  margin: 0;
  width: 100vw;
  overflow: hidden;
}

.landing-shell,
.next-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.landing-shell {
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
}

.content-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.story-page {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #140406 0%, #2c070d 34%, #080506 100%);
}

.story-page::before {
  background-image: var(--story-page-bg, var(--bg-image));
  opacity: var(--story-bg-opacity, 0.22);
}

.story-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 0 0 28px;
  display: grid;
  gap: 0;
}

.story-intro-section,
.story-date-section,
.story-countdown-section,
.story-interaction-section,
.story-bottom-text-section,
.story-footer {
  position: relative;
  padding-inline: 18px;
}

.story-photo-section {
  position: relative;
  padding-inline: 0;
}

.story-photo-frame {
  width: 100%;
  min-height: 340px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.story-photo-top {
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
}

.story-photo-bottom {
  min-height: 360px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
}

.story-intro-section {
  margin-top: -24px;
  text-align: center;
}

.story-music-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.music-toggle {
  --music-button-fill: #d6b52f;
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.music-toggle-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.music-toggle-ring text {
  fill: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  dominant-baseline: hanging;
}

.music-toggle-core {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--music-button-fill);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.35);
}

.music-toggle-icon {
  position: relative;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #ffffff;
  color: #ffffff;
  line-height: 1;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.music-toggle-icon.is-paused {
  border: 0;
  width: 30px;
  height: 34px;
  display: block;
  position: relative;
  text-indent: 0;
}

.music-toggle-icon.is-paused::before,
.music-toggle-icon.is-paused::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 34px;
  background: #ffffff;
  border-radius: 2px;
}

.music-toggle-icon.is-paused::before {
  left: 3px;
}

.music-toggle-icon.is-paused::after {
  right: 3px;
}

.music-toggle-label {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.music-toggle.is-disabled {
  opacity: 0.6;
}

.story-quote,
.story-invite-text,
.story-countdown-intro,
.story-bottom-text-section p {
  margin: 0;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.story-quote {
  text-align: left;
  font-size: 1.02rem;
}

.story-name {
  margin: 18px 0 0;
  font-family: "Cinzel Decorative", serif;
  color: #d1b332;
  font-size: clamp(3rem, 14vw, 4.4rem);
  line-height: 0.95;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
}

.story-age {
  margin: 6px 0 10px;
  font-family: "Great Vibes", cursive;
  color: #f0ce62;
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
}

.story-date-section {
  padding-top: 18px;
  text-align: center;
}

.story-date-day {
  margin: 0;
  color: #e5c33d;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(3.6rem, 16vw, 5rem);
  line-height: 1;
}

.story-date-month,
.story-date-year,
.story-date-time {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.story-date-month {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
}

.story-date-year {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.story-date-time {
  margin-top: 6px;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.55rem;
}

.story-countdown-section {
  padding-top: 24px;
}

.countdown-live {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.countdown-live-item {
  text-align: center;
}

.countdown-live-item strong {
  display: block;
  color: #e5c33d;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2rem, 8vw, 2.9rem);
  line-height: 1;
}

.countdown-live-item span {
  display: block;
  margin-top: 4px;
  color: #f2e7c0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-interaction-section {
  padding-top: 34px;
}

.story-interaction-intro {
  margin: 0 0 24px;
  text-align: center;
  color: #ffffff;
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.story-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 14px;
  align-items: start;
}

.story-action-card {
  text-decoration: none;
  color: #ffffff;
  display: grid;
  place-items: center;
}

.story-action-card:nth-child(2n) {
  transform: translateY(18px);
}

.story-action-card.is-disabled {
  opacity: 0.64;
  pointer-events: none;
}

.story-action-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, #d51624 48%, #5e0309 100%);
  border: 3px solid rgba(255, 255, 255, 0.64);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.38);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.story-action-icon.has-image,
.story-preview-action-icon.has-image {
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.story-action-visual,
.story-preview-action-visual {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.story-action-ring,
.story-preview-action-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-action-ring text,
.story-preview-action-ring text {
  fill: #ffffff;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.story-action-ring text {
  font-size: 16px;
}

.story-preview-action-ring text {
  font-size: 12px;
}

.story-bottom-text-section {
  padding-top: 26px;
  padding-bottom: 12px;
}

.gift-page {
  background:
    linear-gradient(180deg, rgba(34, 3, 7, 0.86), rgba(8, 5, 6, 0.96)),
    url("./assets/1776996655723-tunel-vestiarios-beira-rio.png");
  background-position: center;
  background-size: cover;
}

.gift-page::before {
  display: none;
}

.gift-panel {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(122, 5, 17, 0.86), rgba(16, 6, 8, 0.9));
}

.gift-back-link {
  display: inline-flex;
  justify-self: center;
  margin-top: 8px;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
}

.location-page {
  background:
    linear-gradient(180deg, rgba(34, 3, 7, 0.82), rgba(8, 5, 6, 0.96)),
    url("./assets/1776996655723-tunel-vestiarios-beira-rio.png");
  background-position: center;
  background-size: cover;
}

.location-page::before {
  display: none;
}

.location-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  place-items: center;
}

.location-panel {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(122, 5, 17, 0.88), rgba(16, 6, 8, 0.92));
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.location-copy {
  display: grid;
  gap: 8px;
}

.location-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #130609;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-back-link {
  display: inline-flex;
  justify-self: center;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
}

body.modal-open {
  overflow: hidden;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 3, 0.78);
  backdrop-filter: blur(5px);
}

.map-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(122, 5, 17, 0.96), rgba(16, 6, 8, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.map-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.map-modal-copy {
  display: grid;
  gap: 6px;
  padding: 10px 42px 0;
}

.map-modal-title,
.map-modal-description {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.map-modal-title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
}

.map-modal-description {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
}

.map-modal-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #130609;
}

.map-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-footer {
  padding-top: 10px;
  text-align: center;
}

.story-footer p {
  margin: 0;
  color: #ffffff;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2rem, 10vw, 3rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.content-hero,
.content-panel,
.content-closing {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 228, 158, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.75) 0%, rgba(10, 13, 21, 0.82) 100%),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.content-hero {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.content-hero-copy {
  max-width: 540px;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
}

.content-hero-lead {
  margin: 0;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.content-hero-title {
  margin: 8px 0 12px;
  color: #d1b332;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(3.4rem, 10vw, 5.8rem);
  line-height: 0.95;
}

.content-hero-description {
  margin: 0 auto;
  max-width: 520px;
  color: rgba(255, 247, 225, 0.9);
  font-size: 1.08rem;
}

.interaction-section {
  display: grid;
  place-items: center;
}

.interaction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 760px);
}

.interaction-card {
  min-height: 190px;
  padding: 22px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 28px;
  border: 1px solid rgba(255, 228, 158, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 24, 38, 0.9) 0%, rgba(12, 17, 29, 0.96) 100%),
    var(--bg-image);
  background-size: cover;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease;
}

.interaction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 76, 0.55);
}

.interaction-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(209, 179, 50, 0.16);
  border: 1px solid rgba(209, 179, 50, 0.4);
  color: #f2da87;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.35rem;
}

.interaction-card-label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.interaction-card.is-disabled {
  opacity: 0.72;
  pointer-events: none;
}

.content-panel {
  padding: 26px;
}

.panel-heading h2 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fef6df;
}

.panel-heading p {
  color: rgba(255, 245, 224, 0.88);
}

.countdown-embed-wrap,
.media-embed-wrap {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 228, 158, 0.14);
}

.countdown-frame {
  width: 100%;
  min-height: 340px;
  border: 0;
  background: #ffffff;
}

.media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.content-closing {
  padding: 46px 24px;
  text-align: center;
}

.content-closing p {
  margin: 0;
  color: #ffffff;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
}

.dress-page {
  background:
    radial-gradient(circle at top, rgba(123, 89, 24, 0.2), transparent 24%),
    linear-gradient(180deg, #08111b 0%, #091420 36%, #08111b 100%);
}

.dress-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.dress-panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 132px 28px 124px;
  overflow: hidden;
  text-align: center;
}

.dress-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--dress-bg-opacity, 1);
  background:
    linear-gradient(180deg, rgba(5, 11, 18, 0.34) 0%, rgba(7, 13, 20, 0.12) 18%, rgba(7, 13, 20, 0.18) 82%, rgba(5, 11, 18, 0.34) 100%),
    var(--dress-page-image, var(--bg-image));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.dress-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  width: 100%;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.dress-title {
  margin: 0;
  line-height: 0.96;
}

.dress-description {
  margin: 0;
  white-space: pre-line;
  line-height: 1.18;
}

.invite-card,
.mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-soft);
}

.invite-card {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  transition: opacity 180ms ease;
  box-shadow: none;
  margin: 0;
}

.invite-card:hover {
  opacity: 0.98;
}

.invite-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 4, 7, calc(var(--overlay-opacity) * 0.92)) 0%,
      rgba(7, 4, 7, calc(var(--overlay-opacity) * 0.32)) 24%,
      rgba(12, 7, 9, calc(var(--overlay-opacity) * 0.72)) 52%,
      rgba(15, 11, 11, var(--overlay-opacity)) 100%
    ),
    radial-gradient(circle at center, rgba(245, 198, 81, 0.05), transparent 38%);
}

.invite-copy,
.mini-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 22px 34px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
}

.invite-copy {
  padding: 0;
}

.invite-kicker {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 242, 197, 0.9);
}

.invite-name-group {
  margin-top: 74px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.invite-title {
  margin: 0;
  font-size: clamp(3.6rem, 11vw, 5rem);
  line-height: 0.9;
  color: #e2b437;
  transform: translateY(var(--title-offset-y, 0px));
}

.invite-age {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 3.1rem);
  color: #e7c457;
  transform: translateY(var(--age-offset-y, 0px));
}

.invite-cta {
  margin-top: auto;
  font-size: clamp(1.45rem, 5vw, 2rem);
  color: #fff9e8;
  transform: translateY(var(--cta-offset-y, 0px));
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(280px, 380px);
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 24px;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 460px);
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe2ea;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.admin-panel,
.admin-preview,
.next-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.admin-panel {
  padding: 28px;
}

body.admin-page .admin-panel,
body.admin-page .admin-preview {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbe2ea;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.1);
  backdrop-filter: none;
}

.admin-heading h1,
.next-card h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.admin-heading p,
.next-card p {
  color: rgba(255, 243, 215, 0.9);
}

body.admin-page .admin-heading h1,
body.admin-page .login-panel h1,
body.admin-page .admin-form label,
body.admin-page .phrase-section h2 {
  color: #0f172a;
}

body.admin-page .admin-heading p,
body.admin-page .login-panel p,
body.admin-page .upload-status,
body.admin-page .range-value {
  color: #475569;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 18px;
}

.admin-tab {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.admin-tab.is-active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #e6bc55;
}

body.admin-page .eyebrow {
  color: #64748b;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.phrase-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

.tab-panel,
.preview-panel {
  display: none;
}

.tab-panel.is-active,
.preview-panel.is-active {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.phrase-section h2 {
  margin: 0;
  font-size: 1rem;
}

.section-note {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.phrase-style-grid {
  display: grid;
  gap: 12px;
}

.mini-style-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #ffffff;
}

.mini-style-card h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #0f172a;
}

.slider-field {
  display: grid;
  gap: 8px;
}

.slider-value {
  font-size: 0.92rem;
  color: #64748b;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-size: 1rem;
}

.admin-form input,
.admin-form select,
.admin-form button {
  border: 1px solid rgba(255, 228, 158, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff7df;
}

body.admin-page .admin-form input,
body.admin-page .admin-form select,
body.admin-page .admin-form textarea,
body.admin-page .admin-form button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

body.admin-page .admin-form textarea {
  border-radius: 16px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
}

body.admin-page .admin-form input[type="color"] {
  padding: 6px;
  min-height: 48px;
}

body.admin-page .admin-form input[type="range"] {
  padding: 0;
  accent-color: #334155;
}

.admin-form input::placeholder {
  color: rgba(255, 246, 220, 0.45);
}

body.admin-page .admin-form input::placeholder {
  color: #94a3b8;
}

.admin-actions,
.next-actions,
.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-actions button,
.next-actions a,
.admin-links a {
  cursor: pointer;
  text-decoration: none;
  color: #1d1306;
  background: linear-gradient(180deg, #f6d272 0%, #dda937 100%);
  box-shadow: 0 10px 24px rgba(223, 169, 55, 0.22);
}

body.admin-page .admin-actions button,
body.admin-page .admin-links a {
  color: #ffffff;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff4d2 !important;
  box-shadow: none !important;
}

body.admin-page .secondary-button {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.admin-preview {
  padding: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  min-height: 0;
}

.story-preview-shell {
  display: grid;
  gap: 0;
  width: min(100%, 360px);
  margin: 0 auto;
  height: max-content;
  align-self: start;
  --story-page-bg: var(--bg-image);
  --story-bg-opacity: 0.22;
  background:
    linear-gradient(
      0deg,
      rgba(11, 23, 38, var(--story-bg-opacity)),
      rgba(11, 23, 38, var(--story-bg-opacity))
    ),
    radial-gradient(circle at top, rgba(255, 230, 145, 0.08), transparent 20%),
    linear-gradient(180deg, #09111d 0%, #0b1626 26%, #0b1726 100%);
  border-radius: 28px;
  overflow: hidden;
}

.story-preview-photo {
  min-height: 170px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  margin-inline: 0;
}

.story-preview-photo-top {
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
}

.story-preview-photo-bottom {
  min-height: 180px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
}

.story-preview-intro,
.story-preview-date,
.story-preview-countdown,
.story-preview-actions-area,
.story-preview-bottom-text,
.story-preview-footer {
  padding-inline: 16px;
}

.story-preview-intro {
  margin-top: -10px;
}

.story-preview-music-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.story-preview-music {
  --music-button-fill: #d6b52f;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: visible;
}

.story-preview-music-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-preview-music-ring text {
  fill: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  dominant-baseline: hanging;
}

.story-preview-music-core {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--music-button-fill);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.28);
}

.story-preview-music-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
  color: #ffffff;
  line-height: 1;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.story-preview-quote,
.story-preview-text,
.story-preview-bottom-text p {
  margin: 0;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  line-height: 1.08;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.story-preview-name {
  margin: 12px 0 0;
  color: #d1b332;
  font-family: "Cinzel Decorative", serif;
  font-size: 3.3rem;
  line-height: 0.95;
  text-align: center;
}

.story-preview-age {
  margin: 4px 0 8px;
  color: #f0ce62;
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  text-align: center;
}

.story-preview-date {
  display: grid;
  justify-items: center;
  padding-top: 16px;
}

.story-preview-date strong,
.story-preview-date span {
  color: #ffffff;
}

.story-preview-date strong {
  color: #e5c33d;
  font-family: "Cinzel Decorative", serif;
  font-size: 3.2rem;
  line-height: 1;
}

.story-preview-date span:nth-of-type(1) {
  font-family: "Great Vibes", cursive;
  font-size: 1.8rem;
}

.story-preview-date span:nth-of-type(2) {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.story-preview-date span:nth-of-type(3) {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.2rem;
}

.story-preview-countdown {
  padding-top: 18px;
}

.story-preview-counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.story-preview-counter span {
  color: #e5c33d;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  text-align: center;
}

.story-preview-actions-area {
  padding-top: 20px;
}

.story-preview-interaction {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: "Great Vibes", cursive;
  font-size: 1.9rem;
  text-align: center;
}

.story-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 10px;
  align-items: start;
}

.story-preview-action {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: #ffffff;
}

.story-preview-action:nth-child(2n) {
  transform: translateY(14px);
}

.story-preview-action-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background:
    radial-gradient(circle at 35% 30%, #f6e8af 0%, #2d4e9d 48%, #0a1d4f 100%);
  border: 3px solid rgba(255, 242, 196, 0.54);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.28);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.story-preview-bottom-text {
  padding-top: 18px;
  padding-bottom: 8px;
}

.story-preview-footer {
  padding: 10px 16px 18px;
}

.story-preview-footer p {
  margin: 0;
  color: #ffffff;
  font-family: "Cinzel Decorative", serif;
  font-size: 2rem;
  text-align: center;
}

.preview-panel[data-preview-panel="conteudo"] {
  height: min(72vh, 920px);
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  align-content: start;
  align-items: start;
}

.preview-panel[data-preview-panel="conteudo"]::-webkit-scrollbar {
  width: 8px;
}

.preview-panel[data-preview-panel="conteudo"]::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.inline-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 14px;
}

.inline-admin-link.is-disabled {
  opacity: 0.6;
}

.hidden {
  display: none !important;
}

.auth-message,
.upload-status,
.range-value {
  min-height: 22px;
  margin: -2px 0 0;
  font-size: 0.95rem;
}

body.admin-page .auth-message {
  color: #475569;
}

.mini-card {
  min-height: 560px;
}

body.admin-page .mini-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.mini-copy {
  --site-font: initial;
}

.mini-copy .invite-kicker,
.mini-copy .invite-title,
.mini-copy .invite-age,
.mini-copy .invite-cta {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
}

.invite-name-group-preview {
  margin-top: 82px;
}

.mini-copy .invite-cta {
  margin-top: auto;
}

.next-card {
  width: min(100%, 760px);
  padding: 32px;
}

.next-card-preview {
  width: 100%;
}

.next-actions a {
  padding: 14px 18px;
  border-radius: 16px;
}

.secondary-link {
  background: transparent !important;
  color: #fff5d8 !important;
  border: 1px solid rgba(255, 230, 170, 0.24);
  box-shadow: none !important;
}

body.admin-page .secondary-link {
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  background: #f8fafc !important;
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-preview {
    position: static;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .landing-shell,
  .next-shell,
  .admin-shell,
  .login-shell {
    padding: 18px;
  }

  .invite-copy,
  .mini-copy {
    padding: 42px 18px 30px;
  }

  .interaction-grid,
  .story-preview-actions {
    grid-template-columns: 1fr;
  }

  .story-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .story-action-card:nth-child(2n) {
    transform: translateY(14px);
  }

  .countdown-live {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .countdown-live-item strong {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .countdown-live-item span {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .story-action-icon {
    width: 76px;
    height: 76px;
    font-size: 1.7rem;
  }

  .story-action-text {
    font-size: 0.88rem;
  }

  .content-panel,
  .content-hero,
  .content-closing {
    border-radius: 24px;
  }

  .dress-shell {
    width: 100%;
  }

  .dress-panel {
    padding: 118px 22px 108px;
  }

  .invite-name-group,
  .invite-name-group-preview {
    margin-top: 58px;
  }

  .admin-panel,
  .admin-preview,
  .next-card,
  .login-panel {
    border-radius: 22px;
  }

  .preview-panel[data-preview-panel="conteudo"] {
    height: 70vh;
  }

  .map-modal {
    padding: 12px;
  }

  .map-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 14px;
    border-radius: 18px;
  }

  .map-modal-copy {
    padding-inline: 40px;
  }

  .map-modal-frame {
    min-height: 360px;
    aspect-ratio: 3 / 4;
  }
}
