:root {
  --paper: #fbfaf4;
  --paper-deep: #f3efe6;
  --ink: #4E603C;
  --ink-deep: #3f5030;
  --ink-soft: #7b8b6b;
  --line: #d9d8d1;
  --line-green: #71815d;
  --muted: #b8b7af;
  --white: #fffdf8;
  --danger: #8b4b3b;
  --radius: 18px;
  --content: 380px;
  --font: "Cormorant SC", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

body.modal-open {
  overflow: hidden;
}
legend{
  margin-bottom: 20px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.invite-page {
  position: relative;
  width: min(100%, 549px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(82, 109, 64, 0.08);
}

.section {
  position: relative;
  padding: 0 25px;
  text-align: center;
}


.section h2,
.result-card h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.06;
  /*text-transform: uppercase;*/
}

.section p {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
  /*text-transform: uppercase;*/
}

.section--hero {
  width: 100%;
  height: 498px;
  min-height: 498px;
  padding: 0;
}

.hero-title-wrap {
  position: absolute;
  left: 106px;
  top: 199px;
  z-index: 2;
  width: 187px;
  min-height: 88px;
  text-align: center;
}

.hero h1 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  font-weight: 500;
  line-height: 43.6px;
  /*text-transform: uppercase;*/
}

.hero p {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.ampersand {
  position: absolute;
  left: -46px;
  top: -128px;
  color: rgba(82, 109, 64, 0.055);
  font-size: 253px;
  line-height: 1;
}

.leaf {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.95;
}

.leaf--top-left {
  top: 0;
  left: 0;
  /*width: 313px;*/
  /*height: 280px;*/
  object-fit: contain;
}

.leaf--top-right {
  top: 144px;
  right: 0;
  width: 142px;
  transform: scaleX(-1);
}

.leaf--hero-bottom {
  right: 0;
  bottom: 0;
  /*width: 313px;*/
  /*height: 280px;*/
  object-fit: contain;
}

.leaf--calendar-right {
  right: -130px;
  bottom: -135px;
  /*width: 152px;*/
  z-index: 1;
}

.leaf--details-left {
  left: 0;
  bottom: -112px;
  z-index: 0;
}

.music-toggle {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: max-content;
  margin: 30px auto 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font-size: 19px;
  line-height: 1.15;
  /*text-transform: uppercase;*/
}

.music-toggle--floating {
  position: fixed;
  right: 20px;
  /*right: max(16px, calc((100vw - 549px) / 2 + 16px));*/
  top: max(16px, env(safe-area-inset-top));
  z-index: 20;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(78, 96, 60, 0.18);
  border-radius: 14px;
  background: rgba(251, 250, 244, 0.88);
  box-shadow: 0 8px 22px rgba(78, 96, 60, 0.14);
  backdrop-filter: blur(8px);
}

.music-toggle--floating > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.music-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid var(--line-green);
  border-radius: 12px;
  color: var(--ink);
  line-height: 1;
}

.music-icon img {
  width: 34px;
  height: 37px;
  display: block;
}

.music-toggle--floating .music-icon {
  padding-top: 8px;
  width: 40px;
  height: 40px;
  border: 0;
}

.music-toggle--floating .music-icon img {
  width: 23px;
  height: 25px;
}

/*.music-toggle[aria-pressed="true"] .music-icon {*/
/*  background: rgba(82, 109, 64, 0.08);*/
/*}*/

.intro {
  padding-top: 0;
  padding-bottom: 0;
}

.intro p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}

.divider {
  width: 184px;
  height: 17px;
  margin: 68px auto;
  background: url("../img/divider.svg") center / contain no-repeat;
}

.divider span {
  display: none;
}

.calendar h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0 8px;
  align-items: center;
  max-width: 315px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 17px;
  /*text-transform: uppercase;*/
}

.calendar-grid span {
  min-width: 32px;
  min-height: 30px;
  display: grid;
  place-items: center;
}

.calendar-grid .active {
  color: var(--white);
  background: var(--ink);
}

.calendar-grid span:nth-child(2) {
  border-radius: 9px 9px 0 0;
  padding-top: 4px;
  margin-bottom: -1px;
  min-height: 31px;
}

.calendar-grid span:nth-child(9) {
  border-radius: 0 0 9px 9px;
  padding-bottom: 4px;
  margin-top: -1px;
  min-height: 31px;
}

.location {
  padding-top: 0;
  padding-bottom: 0;
}

.location-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(182px, 1fr));
  justify-content: center;
  gap: 10px;
  padding: 0 5px;
  margin-bottom: 20px;
}

.location-photos img {
  display: block;
  width: 100%;
  min-width: 182px;
  min-height: 253px;
  height: 253px;
  object-fit: cover;
  border-radius: 14px;
}

.location p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.timeline {
  padding-top: 0;
  padding-bottom: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 31px;
  margin: 18px 0;
  text-align: center;
}

.timeline-item img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.timeline-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}
.timeline-item div {
 text-align: right;
}

.timeline-item span {
  display: block;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  /*text-transform: uppercase;*/
}

.details {
  padding-inline: 30px;
}

.details p,
.reply-note p {
  margin-bottom: 40px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}

.details--short {
  padding-top: 0;
  padding-bottom: 0;
}

.reply-note {
  padding-top: 0;
  padding-bottom: 0;
}

.guest-form-section {
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}

.guest-form-section h2 {
  margin-bottom: 36px;
  text-align: center;
}

.guest-form {
  display: grid;
  /*gap: 34px;*/
}

.form-field {
  display: grid;
  gap: 14px;
  margin: 10px 0;
  padding: 0;
  border: 0;
}

.form-field > label:not(.choice),
.form-field legend {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  /*text-transform: uppercase;*/
}

.form-field small {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}

input[type="text"] {
  width: 100%;
  min-height: 40px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-deep);
  background: transparent;
  outline: none;
  font-size: 20px;
}

input[type="text"]::placeholder {
  color: rgba(82, 109, 64, 0.38);
}

input[type="text"]:focus {
  border-bottom-color: var(--ink);
}

.form-field .choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  margin: 0 0 17px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  /*text-transform: uppercase;*/
}

.form-field .choice input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--line-green);
  border-radius: 50%;
  background: transparent;
  transform: translateY(-1px);
}

.form-field .choice input:checked {
  border-color: var(--ink);
  background:
    radial-gradient(circle at center, var(--ink) 0 46%, transparent 48%);
}

.form-field .choice span {
  display: block;
  min-width: 0;
  transform: none;
}

.form-message {
  display: none;
  min-height: 28px;
  /*color: var(--danger);*/
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  /*text-transform: uppercase;*/
}

.form-message.is-visible {
  display: block;
}

.submit-btn {
  width: 100%;
  min-height: 63px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  color: var(--white);
  background: var(--ink);
  font-size: 21px;
  /*text-transform: uppercase;*/
  transition: background .2s ease, color .2s ease, opacity .2s ease;
  margin-bottom: 30px;
}

.submit-btn:disabled {
  color: rgba(82, 109, 64, 0.34);
  background: transparent;
  border-color: rgba(82, 109, 64, 0.34);
  cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
  background: var(--ink-deep);
}

.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(44, 54, 36, 0.22);
  backdrop-filter: blur(3px);
}

.result-card {
  position: relative;
  width: min(100%, 356px);
  margin: 0;
  min-height: 292px;
  padding: 50px 26px 32px;
  border: 1px solid var(--line-green);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
  display: grid;
  align-content: center;
  box-shadow: 0 18px 50px rgba(44, 54, 36, 0.18);
}

.result-card p {
  margin-top: 68px;
}

.result-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 30px;
  line-height: 1;
}

.answers-page {
  background: var(--paper-deep);
}

.answers-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.answers-header {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid rgba(82, 109, 64, 0.18);
  border-radius: 18px;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 18px;
  /*text-transform: uppercase;*/
}

.answers-header h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
}

.answers-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.answers-stats div {
  padding: 14px;
  border-radius: 14px;
  background: var(--paper);
}

.answers-stats strong,
.answers-stats span {
  display: block;
}

.answers-stats strong {
  font-size: 30px;
}

.answers-stats span {
  font-size: 16px;
  /*text-transform: uppercase;*/
}

.answers-empty,
.answers-table-wrap {
  border: 1px solid rgba(82, 109, 64, 0.18);
  border-radius: 18px;
  background: var(--white);
}

.answers-empty {
  padding: 32px;
  text-align: center;
}

.answers-table-wrap {
  overflow: auto;
}

.answers-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.answers-table th,
.answers-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(82, 109, 64, 0.14);
  text-align: left;
  vertical-align: top;
}

.answers-table th {
  color: var(--ink-deep);
  font-size: 18px;
  /*text-transform: uppercase;*/
}

.answers-table td {
  font-size: 19px;
}

.answers-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.answers-summary-card {
  padding: 18px;
  border: 1px solid rgba(82, 109, 64, 0.18);
  border-radius: 18px;
  background: var(--white);
}

.answers-summary-card h2 {
  margin: 0 0 10px;
  color: var(--ink-deep);
  font-size: 24px;
}

.answers-top-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.answers-top-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(82, 109, 64, 0.12);
}

.answers-top-list li:last-child {
  border-bottom: 0;
}

.answers-summary-empty,
.answers-winner-date {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  body {
    background:
      radial-gradient(circle at 20% 8%, rgba(113, 129, 93, 0.12), transparent 28%),
      radial-gradient(circle at 80% 18%, rgba(185, 170, 145, 0.18), transparent 32%),
      var(--paper-deep);
  }

  .invite-page {
    width: min(100%, 880px);
    margin-block: 28px;
    border-radius: 28px;
  }

  .leaf--calendar-right {
    width: 276px;
  }
  .section {
    width: min(100%, 620px);
    margin-inline: auto;
    padding-inline: 42px;
  }

  .section--hero {
    width: 100%;
    min-height: 650px;
    padding-top: 142px;
  }

  .hero-title-wrap {
    left: 50%;
    top: 258px;
    transform: translateX(-50%);
    width: 420px;
  }

  .hero h1 {
    font-size: 66px;
    line-height: 66px;
  }

  .hero p {
    font-size: 32px;
  }

  .ampersand {
    left: -32px;
    top: -153px;
    font-size: 331px;
  }

  .leaf--top-left {
    /*width: 430px;*/
    height: 385px;
  }

  .leaf--top-right {
    right: 0;
    width: 260px;
  }

  .leaf--hero-bottom {
    right: 0;
    /*width: 430px;*/
    height: 385px;
  }

  .location-photos {
    grid-template-columns: repeat(2, minmax(228px, 1fr));
    gap: 10px;
    padding: 0 5px;
  }

  .location-photos img {
    height: 319px;
  }

  .timeline-item {
    grid-template-columns: 93px 1fr;
    gap: 42px;
  }

  .timeline-item img {
    justify-self: center;
  }

  .guest-form-section {
    max-width: 560px;
  }

  .result-card {
    width: min(540px, calc(100% - 56px));
    margin-inline: auto;
  }
  .answers-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .leaf--details-left{
    left: -130px;
    width: 200px;
  }
}

@media (max-width: 360px) {
  .section {
    padding-inline: 22px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 22px;
  }

  .answers-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  #guestFormSection,
  #guestSummarySection,
  #resultOverlay,
  #gameOverlay,
  #downloadPdfBtn {
    display: none !important;
  }

  .music-toggle,
  .pdf-download-btn {
    display: none !important;
  }
}

.game-invite {
  /* padding-top: 52px; */
  padding-bottom: 0;
  text-align: center;
}

.pdf-download-btn {
  margin-top: 18px;
  margin-bottom: 0;
}

.guest-summary-section {
  margin-top: 18px;
  margin-bottom: 30px;
}

.guest-summary-grid {
  display: grid;
  gap: 12px;
}

.guest-summary-card {
  border: 1px solid var(--line-green);
  border-radius: 14px;
  background: var(--paper);
  padding: 16px;
}

.guest-summary-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 28px;
}

.guest-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.guest-summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
}

.guest-summary-list strong,
.guest-summary-winner strong {
  font-size: 30px;
  line-height: 1;
}

.guest-summary-winner p {
  margin: 8px 0;
  color: var(--ink);
}

.guest-summary-text {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.game-invite h2 {
  margin-bottom: 24px;
}

.game-invite p {
  margin: 0 auto 36px;
  font-size: 24px;
  line-height: 1.55;
  /*text-transform: uppercase;*/
}

.game-open-btn {
  margin-bottom: 0;
}

.game-open-btn:hover {
  background: var(--ink-deep);
}

.game-open-btn:active {
  transform: translateY(1px);
}

.game-invite-stats {
  display: grid;
  gap: 44px;
  margin: 38px 0;
  color: var(--ink);
  text-align: center;
  /*text-transform: uppercase;*/
}

.game-invite-stats span,
.game-invite-stats strong {
  display: block;
  font-weight: 500;
  line-height: 1.1;
}

.game-invite-stats span {
  font-size: 24px;
}

.game-invite-stats strong {
  margin-top: 4px;
  font-size: 34px;
}

.game-invite .divider {
  margin-top: 78px;
  margin-bottom: 0;
}

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(44, 54, 36, 0.38);
  backdrop-filter: blur(4px);
}

.game-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 0;
  padding: 42px 12px 14px;
  border: 1px solid var(--line-green);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(44, 54, 36, 0.26);
}

.game-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 32px;
  line-height: 1;
}

.wedding-game {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--ink);
  font-family: var(--font);
}

.wedding-game .game-panel {
  border-radius: 10px;
  padding: 12px;
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 1px rgba(113, 129, 93, 0.28), 0 12px 24px rgba(44, 54, 36, 0.12);
}

.game-score-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px;
  border-radius: 10px;
  background: var(--ink-deep);
  color: var(--white);
}

.game-score-box,
.game-best-box,
.game-moves-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 18px;
  background: rgba(251, 250, 244, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  /*text-transform: uppercase;*/
}

.game-score-value,
.game-best-value,
.game-moves-value {
  min-width: 42px;
  padding: 2px 7px;
  border-radius: 16px;
  background: rgba(251, 250, 244, 0.14);
  color: var(--white);
  font-family: inherit;
  font-size: 20px;
  text-align: center;
  transition: transform .12s ease, color .12s ease;
}

.game-moves-value {
  color: #e8dcc4;
}

.game-best-value {
  color: #d4dfc8;
}

.game-score-value.pop {
  transform: scale(1.18);
  color: #f5f0e4;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 10px;
  background-color: #c8d4b8;
  box-shadow: inset 0 0 0 2px var(--line-green);
  contain: layout style;
}

.game-board.is-processing .game-cell {
  pointer-events: none;
}

.game-cell {
  appearance: none;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  line-height: 0;
  overflow: hidden;
  transition: transform .14s ease;
  will-change: auto;
}

.game-cell.is-swapping,
.game-cell.is-falling {
  z-index: 2;
  will-change: transform;
}

.game-cell.is-swapping {
  transition: transform .18s cubic-bezier(.33, 1, .68, 1);
}

.game-cell img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.game-cell.selected,
.game-cell.hint-available {
  transform: scale(.96);
}

.game-cell.hint-target {
  animation: gamePulseGlow .9s infinite;
}

.game-cell:active {
  transform: scale(.94);
}

.game-cell.is-bonus img {
  transform-origin: center;
}

.game-cell.bonus-heart img {
  animation: gameBonusHeartPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(210, 72, 98, 0.5));
}

.game-cell.bonus-lightning img {
  animation: gameBonusFlowerPulse 1.65s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(236, 178, 52, 0.55));
}

.game-cell.heart-pending img {
  animation: gameBonusHeartPulse 0.85s ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(210, 55, 85, 0.8));
}

.game-cell.heart-pickable img {
  animation: gameHeartPickablePulse 1s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(90, 130, 70, 0.85));
}

.game-cell.fade-out {
  animation: gameVanishMatch .22s forwards;
  pointer-events: none;
}

.game-cell.special-blast {
  animation: gameSpecialBlast .3s ease-out forwards;
}

.game-cell.bounce-in {
  animation: gameBounceFresh .26s cubic-bezier(.68, -.45, .27, 1.45) forwards;
}

.game-cell.bonus-spawn img {
  animation: gameBonusSpawn .32s cubic-bezier(.33, 1, .68, 1) forwards;
}

.game-controls {
  display: flex;
  gap: 10px;
}

.game-controls button,
.game-result-content button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 4px 0 var(--ink-deep);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  /*text-transform: uppercase;*/
}

.game-controls button:active,
.game-result-content button:active {
  transform: translateY(2px);
  background: var(--ink-deep);
  box-shadow: 0 2px 0 var(--ink-deep);
}

.game-controls button:disabled {
  opacity: .6;
}

.game-message {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(113, 129, 93, 0.24);
  color: var(--ink-deep);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.game-hint-badge {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.game-result-modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .55);
}

.game-result-content {
  width: min(100%, 320px);
  padding: 24px 22px;
  border: 2px solid var(--line-green);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--white), var(--paper-deep));
  color: var(--ink-deep);
  text-align: center;
}

.game-result-content h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 28px;
  /*text-transform: uppercase;*/
}

.game-result-content p {
  margin: 8px 0;
  font-size: 16px;
}

.game-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.game-result-exit-btn {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 4px 0 rgba(78, 96, 60, 0.28);
}

.game-result-exit-btn:active {
  background: var(--paper-deep);
  box-shadow: 0 2px 0 rgba(78, 96, 60, 0.28);
}

.game-result-score {
  display: inline-block;
  margin: 8px 0;
  padding: 6px 24px;
  border-radius: 28px;
  background: var(--ink-deep);
  color: var(--white);
  font-family: inherit;
  font-size: 38px;
  font-weight: 800;
}

@media (min-width: 760px) {
  .game-modal-card {
    padding: 48px 18px 18px;
  }

  .wedding-game .game-panel {
    padding: 18px;
  }

  .game-board {
    gap: 0;
    padding: 12px;
  }

  .game-cell {
    padding: 0;
  }
}

@keyframes gamePulseGlow {
  0%, 100% { transform: scale(1.01); }
  50% { transform: scale(1.04); }
}

@keyframes gameBonusHeartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes gameBonusFlowerPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.03) rotate(2deg); }
}

@keyframes gameHeartPickablePulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(90, 130, 70, 0.65));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(78, 120, 55, 0.85));
  }
}

@keyframes gameBounceFresh {
  0% { transform: translateY(14px) scale(.88); opacity: .4; }
  70% { transform: translateY(-2px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes gameBonusSpawn {
  0% { transform: scale(.55); opacity: .25; }
  70% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes gameVanishMatch {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.7); opacity: 0; }
}

@keyframes gameSpecialBlast {
  0% { transform: scale(1); opacity: 1; filter: brightness(1); }
  50% { transform: scale(1.25); opacity: .8; filter: brightness(1.5); }
  100% { transform: scale(0); opacity: 0; filter: brightness(2); }
}
