.wall-guestbook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--ink-border, rgba(23, 18, 14, .42));
  border-radius: 999px;
  color: var(--ink, #17120e);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}

.wall-guestbook-link > span[aria-hidden="true"] {
  margin-left: 9px;
  font-family: "Caveat", cursive;
  font-size: 20px;
  transition: transform 180ms var(--ease);
}

.wall-guestbook-link:hover {
  color: var(--wall-bg, #f07a22);
  background: var(--ink, #17120e);
}

.wall-guestbook-link:hover > span[aria-hidden="true"] {
  transform: translate(2px, 2px);
}

.wall-guestbook-link:active {
  transform: scale(.98);
}

.guestbook-experience {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 96px;
  border-top: 1px solid rgba(23, 18, 14, .2);
}

.guestbook-experience[hidden] {
  display: none;
}

.guestbook-experience.is-opening {
  animation: guestbook-experience-in 440ms var(--ease) both;
}

.guestbook-experience.is-closing {
  animation: guestbook-experience-out 300ms cubic-bezier(.4, 0, 1, 1) both;
  pointer-events: none;
}

@keyframes guestbook-experience-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes guestbook-experience-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-18px); }
}

.guestbook-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.guestbook-kicker {
  margin-bottom: 14px;
  color: rgba(23, 18, 14, .68);
  font-family: "Big Shoulders", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
}

.guestbook-heading h2 {
  max-width: 13em;
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.guestbook-heading h2:focus {
  outline: 0;
}

.guestbook-heading > p:last-child {
  max-width: 41em;
  margin-top: 18px;
  color: rgba(23, 18, 14, .74);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.75;
}

.guestbook-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.guestbook-shell.is-unlocked {
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
}

.game-panel,
.guestbook-unlock {
  min-width: 0;
  border-radius: 28px;
}

.game-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: #f7f2e9;
  background: #15110e;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 56px rgba(58, 27, 8, .22);
  isolation: isolate;
}

.game-panel::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 122, 34, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(240, 122, 34, .05), 0 0 0 56px rgba(240, 122, 34, .035);
  pointer-events: none;
  z-index: -1;
}

.game-topline,
.game-status-row,
.guest-notes-head,
.guestbook-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-topline > span {
  color: rgba(247, 242, 233, .58);
  font-family: "Big Shoulders", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.game-reset,
.guest-notes-clear {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  transition: color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}

.game-reset {
  color: rgba(247, 242, 233, .7);
}

.game-reset:hover {
  color: #15110e;
  background: #f7f2e9;
}

.game-reset:active,
.guest-notes-clear:active,
.guestbook-submit:active,
.game-choice:active {
  transform: scale(.98);
}

.game-status-row {
  margin-top: 30px;
  align-items: flex-end;
}

.game-status-row > div > p:first-child {
  max-width: 25em;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.game-context {
  max-width: 42em;
  margin-top: 8px;
  padding-left: 13px;
  border-left: 2px solid #f07a22;
  color: rgba(247, 242, 233, .66);
  font-size: 14px;
  line-height: 1.7;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.memory-card {
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 0;
  border: 1px solid rgba(247, 242, 233, .16);
  border-radius: 17px;
  color: #f7f2e9;
  background: transparent;
  cursor: pointer;
  perspective: 760px;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), opacity 180ms var(--ease);
}

.memory-card:hover {
  border-color: rgba(240, 122, 34, .78);
  transform: translateY(-2px);
}

.memory-card__inner {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(.22, .72, .2, 1);
}

.memory-card.is-open .memory-card__inner,
.memory-card.is-matched .memory-card__inner {
  transform: rotateY(180deg);
}

.memory-card__back,
.memory-card__front {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.memory-card__back {
  align-items: flex-start;
  color: rgba(247, 242, 233, .68);
  background:
    radial-gradient(circle at 85% 14%, rgba(240, 122, 34, .16), transparent 42%),
    rgba(255, 255, 255, .045);
}

.memory-card__back b {
  align-self: flex-end;
  color: #f07a22;
  font-family: "Caveat", cursive;
  font-size: 31px;
  line-height: 1;
}

.memory-card__back small,
.memory-card__front small {
  font-family: "Big Shoulders", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.memory-card__front {
  gap: 8px;
  transform: rotateY(180deg);
  color: #17120e;
  background: #f3e8d8;
}

.memory-card__front small {
  color: #a64e13;
}

.memory-card__front strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.45;
}

.memory-card.is-matched {
  border-color: #f07a22;
  box-shadow: 0 0 0 1px rgba(240, 122, 34, .18), 0 10px 28px rgba(240, 122, 34, .13);
}

.memory-card.is-matched .memory-card__front {
  background: #f4a15f;
}

.memory-card.is-mismatch {
  animation: game-nudge 280ms var(--ease);
}

.memory-card:disabled {
  cursor: default;
}

.game-counter {
  flex: 0 0 auto;
  color: rgba(247, 242, 233, .48);
  font-family: "Caveat", cursive;
  font-size: 22px;
}

.game-counter b {
  color: #f07a22;
  font-size: 36px;
  font-weight: 700;
}

.game-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0 26px;
  list-style: none;
}

.game-route::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(247, 242, 233, .18);
}

.game-route li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(247, 242, 233, .42);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.route-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(247, 242, 233, .28);
  border-radius: 50%;
  color: rgba(247, 242, 233, .58);
  background: #15110e;
  font-family: "Caveat", cursive;
  font-size: 16px;
  z-index: 1;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.game-route li.is-filled {
  color: #f7f2e9;
}

.game-route li.is-filled .route-node {
  color: #15110e;
  background: #f07a22;
  border-color: #f07a22;
  transform: scale(1.06);
}

.route-label {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-choice {
  min-width: 0;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 242, 233, .16);
  border-radius: 16px;
  color: #f7f2e9;
  background: rgba(255, 255, 255, .045);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), opacity 180ms var(--ease);
}

.game-choice span {
  display: inline-block;
  margin-right: 10px;
  color: #f07a22;
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 700;
}

.game-choice b {
  font: inherit;
  font-weight: 700;
}

.game-choice:hover {
  border-color: rgba(240, 122, 34, .82);
  background: rgba(240, 122, 34, .09);
  transform: translateY(-2px);
}

.game-choice.is-complete {
  color: rgba(247, 242, 233, .38);
  border-color: rgba(240, 122, 34, .18);
  background: rgba(240, 122, 34, .055);
  opacity: .62;
}

.game-choice.is-wrong {
  animation: game-nudge 280ms var(--ease);
  opacity: .38;
}

.game-choice:disabled {
  cursor: default;
}

.game-choices[hidden] {
  display: none;
}

@keyframes game-nudge {
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

.game-feedback {
  min-height: 1.6em;
  margin-top: 14px;
  color: rgba(247, 242, 233, .62);
  font-size: 13px;
  line-height: 1.6;
}

.game-panel.is-complete .game-feedback {
  color: #ffb16d;
}

.guestbook-unlock {
  padding: 28px;
  color: #17120e;
  background: rgba(248, 243, 234, .94);
  border: 1px solid rgba(255, 255, 255, .52);
  box-shadow: 0 24px 56px rgba(58, 27, 8, .15);
  opacity: 0;
  transform: translateY(14px);
}

.guestbook-unlock.is-visible {
  animation: guestbook-reveal 460ms var(--ease) forwards;
}

@keyframes guestbook-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.guestbook-unlock[hidden],
.guest-notes-wrap[hidden] {
  display: none;
}

.unlock-intro {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 24px;
}

.unlock-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #f7f2e9;
  background: #17120e;
  font-size: 24px;
  font-weight: 800;
}

.unlock-intro p {
  margin-bottom: 3px;
  color: #a64e13;
  font-family: "Big Shoulders", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.unlock-intro h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -.02em;
  line-height: 1.25;
}

.unlock-intro h3:focus {
  outline: 0;
}

.guestbook-form {
  display: grid;
  gap: 16px;
}

.guestbook-field {
  display: grid;
  gap: 7px;
}

.guestbook-field label {
  font-size: 13px;
  font-weight: 700;
}

.guestbook-field input,
.guestbook-field textarea {
  width: 100%;
  border: 1px solid rgba(23, 18, 14, .18);
  border-radius: 14px;
  color: #17120e;
  background: rgba(255, 255, 255, .72);
  font: inherit;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.guestbook-field input {
  min-height: 46px;
  padding: 0 13px;
}

.guestbook-field textarea {
  min-height: 104px;
  padding: 12px 13px;
  line-height: 1.65;
  resize: vertical;
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
  border-color: #a64e13;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(240, 122, 34, .16);
  outline: 0;
}

.guestbook-form__footer {
  align-items: flex-end;
}

.guestbook-count {
  color: rgba(23, 18, 14, .55);
  font-family: "Caveat", cursive;
  font-size: 16px;
}

.guestbook-submit {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #f7f2e9;
  background: #17120e;
  font-weight: 750;
  transition: color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}

.guestbook-submit:hover {
  color: #17120e;
  background: #f07a22;
}

.guestbook-storage-note {
  color: rgba(23, 18, 14, .56);
  font-size: 12px;
  line-height: 1.6;
}

.guestbook-form-status {
  min-height: 1.5em;
  color: #8b3f0f;
  font-size: 13px;
  line-height: 1.5;
}

.guest-notes-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 28px 82px;
  border-top: 1px solid rgba(23, 18, 14, .2);
}

.guest-notes-head {
  align-items: flex-end;
  margin-bottom: 38px;
}

.guest-notes-kicker {
  margin-bottom: 8px;
  color: rgba(23, 18, 14, .62);
  font-family: "Big Shoulders", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.guest-notes-head h3 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.guest-notes-head h3:focus {
  outline: 0;
}

.guest-notes-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.guest-notes-clear {
  flex: 0 0 auto;
  color: rgba(23, 18, 14, .62);
}

.guest-notes-clear:hover {
  color: #f7f2e9;
  background: #17120e;
}

.guest-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 42px;
  list-style: none;
}

.guest-note {
  position: relative;
  min-width: 0;
  min-height: 138px;
  padding: 8px 10px 24px;
  transform: rotate(var(--guest-tilt, 0deg));
  transform-origin: center;
}

.guest-note:nth-child(3n + 2) {
  margin-top: 24px;
}

.guest-note:nth-child(3n) {
  margin-top: -12px;
}

.guest-note::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 8px;
  width: min(82px, 32%);
  height: 1.5px;
  background: currentColor;
  opacity: .42;
  transform: scaleX(.72);
  transform-origin: left center;
}

.guest-note__message {
  overflow-wrap: anywhere;
  color: #17120e;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.3;
  text-wrap: pretty;
}

.guest-note__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  color: rgba(23, 18, 14, .56);
  font-family: "Caveat", cursive;
  font-size: 17px;
}

.guest-note.is-arriving {
  animation: guest-note-settle 900ms var(--ease) both;
}

.guest-note.is-arriving .guest-note__message {
  animation: guest-note-ink-in 920ms cubic-bezier(.22, .72, .2, 1) 90ms both;
}

.guest-note.is-arriving .guest-note__meta {
  animation: guest-note-meta-in 360ms ease-out 720ms both;
}

.guest-note.is-arriving::after {
  animation: guest-note-line-in 520ms var(--ease) 650ms both;
}

@keyframes guest-note-settle {
  from { opacity: .25; transform: translateY(28px) rotate(calc(var(--guest-tilt, 0deg) - 1deg)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--guest-tilt, 0deg)); }
}

@keyframes guest-note-ink-in {
  from { opacity: .12; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes guest-note-meta-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes guest-note-line-in {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: .42; transform: scaleX(.72); }
}

.guestbook-shell :focus-visible {
  outline-color: #f7f2e9;
}

.guestbook-unlock :focus-visible,
.guest-notes-wrap :focus-visible {
  outline-color: #17120e;
}

@media (max-width: 960px) {
  .guestbook-shell.is-unlocked {
    grid-template-columns: 1fr;
  }

  .guest-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-note:nth-child(3n + 2),
  .guest-note:nth-child(3n) {
    margin-top: 0;
  }

  .guest-note:nth-child(even) {
    margin-top: 22px;
  }
}

@media (max-width: 620px) {
  .guestbook-experience {
    padding: 60px 18px 72px;
  }

  .guestbook-heading {
    margin-bottom: 26px;
  }

  .game-panel,
  .guestbook-unlock {
    padding: 20px;
    border-radius: 22px;
  }

  .game-topline,
  .game-status-row,
  .guest-notes-head {
    align-items: flex-start;
  }

  .game-status-row {
    margin-top: 24px;
  }

  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .memory-card {
    min-height: 104px;
  }

  .game-route {
    margin-block: 26px 22px;
    gap: 4px;
  }

  .route-label {
    font-size: 10.5px;
  }

  .game-choice {
    min-height: 58px;
    padding-inline: 11px;
    font-size: 14px;
  }

  .game-choices {
    grid-template-columns: 1fr;
  }

  .game-choice span {
    margin-right: 5px;
  }

  .guest-notes-head {
    display: grid;
    justify-items: start;
  }

  .guest-notes-wrap {
    padding: 38px 18px 62px;
  }

  .guest-notes {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .guest-note {
    min-height: 112px;
    padding-inline: 6px;
    margin-top: 0 !important;
    transform: none;
  }

  .guest-note__message {
    font-size: clamp(28px, 9vw, 38px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-experience {
    animation: none !important;
  }

  .guestbook-experience *,
  .guestbook-experience *::before,
  .guestbook-experience *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .guestbook-unlock {
    opacity: 1;
    transform: none;
  }

  .guest-note,
  .guest-note__message,
  .guest-note__meta,
  .guest-note::after {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .game-panel,
  .memory-card,
  .guestbook-unlock,
  .guest-note {
    border: 1px solid CanvasText;
  }
}
