.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.message-dialog-open,
body.puzzle-dialog-open {
  overflow: hidden;
}

.message-tree {
  position: relative;
  overflow: clip;
  color: #f7fbf5;
  background:
    radial-gradient(circle at 50% 2%, rgba(64, 176, 210, 0.3), transparent 27%),
    linear-gradient(180deg, #111113 0, #071a22 11%, #08271f 62%, #071711 100%);
}

.message-tree::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.54;
  background-image:
    radial-gradient(circle at 18% 7%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.8px),
    radial-gradient(circle at 77% 15%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 36% 24%, rgba(154, 224, 255, 0.44) 0 1px, transparent 2px);
  background-size: 190px 230px, 280px 310px, 360px 410px;
}

.message-tree-intro {
  position: relative;
  z-index: 4;
  padding-top: clamp(110px, 12vw, 180px);
}

.message-tree-heading {
  max-width: 920px;
}

.message-tree-heading h2 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.message-tree-heading h2 span[aria-hidden="true"] {
  display: inline-block;
  margin-inline: 0;
  color: #8edb61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 0.9;
  transform: translateY(-0.03em) rotate(-5deg);
}

.message-tree-question {
  margin: 38px 0 0;
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.message-tree-aside {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.message-review-note {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.message-review-note-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #102217;
  background: #a9e96f;
  font-weight: 800;
}

.message-review-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.message-review-note strong {
  color: #fff;
}

.message-review-note small {
  margin-left: 10px;
  font-size: 0.82em;
}

.message-review-link {
  margin-top: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.message-review-link:hover,
.message-review-link:focus-visible {
  border-color: rgba(169, 233, 111, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.message-review-link-arrow {
  margin-left: auto;
  color: #a9e96f;
  font-size: 24px;
  line-height: 1;
}

.message-tree-shell {
  position: relative;
  z-index: 2;
  width: min(1420px, 100%);
  margin: 18px auto 0;
}

.message-tree-stage {
  position: relative;
  aspect-ratio: 852 / 1846;
}

.message-tree-art {
  position: absolute;
  inset: 0;
  background: url("../assets/images/message-tree-v3.webp") center top / contain no-repeat;
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.32));
}

.message-tree-overflow {
  display: none;
}

.message-tag-layer {
  position: absolute;
  z-index: 5;
  inset: 0;
}

.message-tag {
  position: absolute;
  left: var(--tag-x);
  top: var(--tag-y);
  width: 70px;
  height: 122px;
  padding: 0;
  border: 0;
  color: #3b2518;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -4px);
  transform-origin: 50% -28px;
}

.message-tag::before {
  position: absolute;
  top: -31px;
  left: 50%;
  width: 2px;
  height: 35px;
  content: "";
  background: linear-gradient(90deg, #b9893e, #f2d78c, #9b6e2b);
  box-shadow: 0 0 8px rgba(255, 221, 124, 0.36);
  transform: translateX(-50%);
}

.message-tag::after {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 246, 199, 0.88);
  border-radius: 50%;
  content: "";
  background: #d9ab4c;
  box-shadow: 0 0 0 4px rgba(255, 215, 109, 0.13), 0 0 15px rgba(255, 215, 109, 0.48);
  transform: translateX(-50%);
}

.message-tag-inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  padding: 15px 10px 12px;
  border: 2px solid #d8b966;
  border-radius: 10px 10px 20px 20px;
  background:
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.62) 44%, transparent 67%),
    linear-gradient(180deg, #fff9de, #eadba8 58%, #cab172 100%);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.28),
    inset 0 0 0 3px rgba(24, 70, 45, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.9);
  transition: filter 320ms ease, transform 320ms cubic-bezier(0.2, 0.78, 0.22, 1), box-shadow 320ms ease;
}

.message-tag:nth-child(3n + 2) .message-tag-inner {
  background:
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.56) 44%, transparent 67%),
    linear-gradient(180deg, #e8f1d7, #c3d29c 58%, #93aa69 100%);
}

.message-tag:nth-child(4n) .message-tag-inner {
  background:
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.62) 44%, transparent 67%),
    linear-gradient(180deg, #e5f3ed, #b9d8ca 58%, #82ae9a 100%);
}

.message-tag-name {
  display: block;
  max-height: 92px;
  color: #183c2b;
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow: 0 1px rgba(255, 255, 255, 0.56);
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}

.message-tag-name.is-long {
  font-size: 12px;
  letter-spacing: 0;
}

.message-tag:hover,
.message-tag:focus-visible {
  z-index: 15;
  outline: none;
}

.message-tag:hover .message-tag-inner,
.message-tag:focus-visible .message-tag-inner {
  filter: saturate(1.06) brightness(1.05);
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 225, 139, 0.28),
    inset 0 0 0 3px rgba(24, 70, 45, 0.18);
  transform: translateY(-7px) scale(1.035);
}

.message-tree-loading {
  position: absolute;
  z-index: 6;
  top: 120px;
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  transform: translateX(-50%);
}

.message-form-wrap {
  position: relative;
  z-index: 8;
  padding-bottom: clamp(100px, 12vw, 170px);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(42px, 7vw, 100px);
  padding: clamp(32px, 6vw, 74px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 38px;
  color: var(--ink);
  background: rgba(251, 251, 253, 0.96);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.3);
}

.message-form-copy h3 {
  max-width: 430px;
  margin: 12px 0 20px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.message-form-copy > p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.message-form-fields {
  display: grid;
  gap: 22px;
}

.message-field {
  display: grid;
  gap: 9px;
}

.message-field > span {
  display: flex;
  justify-content: space-between;
  color: #313136;
  font-size: 0.92rem;
  font-weight: 650;
}

.message-field small,
.message-field b {
  color: var(--soft-muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.message-field input,
.message-field textarea {
  width: 100%;
  border: 1px solid rgba(29, 29, 31, 0.13);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.message-field input {
  height: 56px;
  padding: 0 17px;
}

.message-field textarea {
  min-height: 116px;
  padding: 15px 17px;
  resize: vertical;
}

.message-field input:focus,
.message-field textarea:focus {
  border-color: rgba(0, 113, 227, 0.66);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.message-field.is-invalid input,
.message-field.is-invalid textarea {
  border-color: #c94136;
  box-shadow: 0 0 0 4px rgba(201, 65, 54, 0.09);
}

.message-form-status {
  min-height: 22px;
  margin: -3px 0 -4px;
  color: #b3372d;
  font-size: 0.86rem;
}

.message-form-status.is-success {
  color: #24723f;
}

.message-save-button {
  display: flex;
  width: min(170px, 100%);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #173f2c;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.message-save-button:hover,
.message-save-button:focus-visible {
  background: #1f583b;
  transform: translateY(-2px);
}

.message-save-button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.message-review-toast {
  position: fixed;
  z-index: 180;
  top: calc(var(--header-height) + 16px);
  left: 50%;
  display: grid;
  width: min(620px, calc(100% - 32px));
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #fff;
  background: rgba(15, 54, 36, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  transform: translate(-50%, -18px);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.message-review-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.message-review-toast > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #173f2c;
  background: #bce98c;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.message-review-toast p {
  margin: 0;
  font-size: 0.86rem;
}

.message-review-toast button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.message-dialog,
.puzzle-dialog {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  background: rgba(4, 12, 9, 0.66);
  opacity: 0;
  backdrop-filter: blur(16px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.message-dialog.is-open,
.puzzle-dialog.is-open {
  visibility: visible;
  opacity: 1;
}

.message-dialog-panel {
  position: relative;
  width: min(480px, 100%);
  min-height: 280px;
  padding: 70px 48px 45px;
  border: 1px solid rgba(92, 47, 20, 0.18);
  border-radius: 22px 22px 34px 34px;
  color: #432817;
  background:
    linear-gradient(90deg, rgba(96, 47, 16, 0.04) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(180deg, #fff2c4, #efbd6b 70%, #d5834c);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.8);
  transform: translateY(18px) rotate(-1deg);
  transition: transform 220ms ease;
}

.message-dialog.is-open .message-dialog-panel,
.puzzle-dialog.is-open .puzzle-dialog-panel {
  transform: translateY(0) rotate(0);
}

.message-dialog-knot {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 4px solid rgba(106, 58, 27, 0.74);
  border-radius: 50%;
  transform: translateX(-50%);
}

.message-dialog-panel h3 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 2rem;
}

.message-dialog-panel > p:last-child {
  margin: 26px 0 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.65;
}

.message-dialog-close,
.puzzle-dialog-close {
  position: absolute;
  z-index: 4;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.puzzle-dialog-panel {
  position: relative;
  width: min(470px, 100%);
  padding: 18px 16px 14px;
  border: 1px solid #e0e4e7;
  border-radius: 6px;
  color: #172027;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(10px);
  transition: transform 220ms ease;
}

.puzzle-kicker {
  margin: 0 38px 5px 0;
  color: #879098;
  font-size: 0.86rem;
  line-height: 1.25;
}

.puzzle-dialog-panel h3 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.puzzle-dialog-tip {
  margin: 4px 0 10px;
  color: #6e7a82;
  font-size: 0.77rem;
  line-height: 1.45;
}

.puzzle-dialog-close {
  top: 12px;
  right: 12px;
  width: 27px;
  height: 27px;
  border: 2px solid #9ba3a9;
  color: #858e94;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.puzzle-scene {
  position: relative;
  aspect-ratio: 2.25 / 1;
  overflow: hidden;
  border-radius: 2px;
  background-color: #c7d8e1;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  isolation: isolate;
}

.puzzle-scene::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 70%, rgba(3, 18, 25, 0.23));
}

.puzzle-scene-name {
  position: absolute;
  z-index: 5;
  bottom: 6px;
  right: 8px;
  padding: 2px 5px;
  border-radius: 2px;
  color: #fff;
  background: rgba(10, 29, 38, 0.45);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.puzzle-gap,
.puzzle-piece,
.puzzle-decoy {
  position: absolute;
  z-index: 2;
  top: var(--piece-y, 40%);
  width: var(--piece-size, 58px);
  height: var(--piece-size, 58px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='white' d='M4 4H36C34 8 32 12 34 16C36 21 46 20 50 18C58 16 62 10 59 4H96V36C91 33 84 33 81 39C77 47 84 52 96 52V96H4V62C10 64 18 62 19 55C20 49 15 44 4 45Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='white' d='M4 4H36C34 8 32 12 34 16C36 21 46 20 50 18C58 16 62 10 59 4H96V36C91 33 84 33 81 39C77 47 84 52 96 52V96H4V62C10 64 18 62 19 55C20 49 15 44 4 45Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.puzzle-gap {
  left: var(--target-x, 68%);
  background: rgba(5, 20, 30, 0.76);
  filter: drop-shadow(0 0 2px #fff);
  transition: opacity 220ms ease;
}

.puzzle-decoy {
  top: var(--decoy-y, 48%);
  left: var(--decoy-x, 38%);
  background: rgba(6, 21, 30, 0.67);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='white' d='M4 4H96V37C91 34 83 35 81 42C79 50 87 55 96 53V96H4V68C13 69 19 62 19 54C19 46 13 40 4 41Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='white' d='M4 4H96V37C91 34 83 35 81 42C79 50 87 55 96 53V96H4V68C13 69 19 62 19 54C19 46 13 40 4 41Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transition: opacity 220ms ease;
}

.puzzle-piece-shell {
  position: absolute;
  z-index: 4;
  top: var(--piece-y, 40%);
  left: var(--piece-left, 12px);
  width: var(--piece-size, 58px);
  height: var(--piece-size, 58px);
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.68));
  transition: filter 180ms ease, opacity 180ms ease;
}

.puzzle-piece-shell::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M4 4H36C34 8 32 12 34 16C36 21 46 20 50 18C58 16 62 10 59 4H96V36C91 33 84 33 81 39C77 47 84 52 96 52V96H4V62C10 64 18 62 19 55C20 49 15 44 4 45Z' fill='none' stroke='white' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.puzzle-piece {
  top: 0;
  left: 0;
  background-image: var(--scene-image);
  background-repeat: no-repeat;
}

.puzzle-scene.is-success .puzzle-piece-shell {
  filter: drop-shadow(0 0 12px rgba(184, 255, 196, 0.92));
}

.puzzle-scene.is-success .puzzle-gap,
.puzzle-scene.is-success .puzzle-decoy {
  opacity: 0;
}

.puzzle-scene.is-unavailable .puzzle-gap,
.puzzle-scene.is-unavailable .puzzle-decoy,
.puzzle-scene.is-unavailable .puzzle-piece-shell {
  opacity: 0;
}

.puzzle-scene.is-failed {
  animation: puzzle-shake 260ms ease;
}

@keyframes puzzle-shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.puzzle-slider {
  position: relative;
  height: 40px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  color: #8a9297;
  background: #d3d6d8;
  text-align: center;
  line-height: 40px;
  font-size: 0.78rem;
  user-select: none;
  touch-action: none;
}

.puzzle-slider::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--slider-progress, 62px);
  content: "";
  border-radius: inherit;
  background: #b7d3fa;
}

.puzzle-slider button {
  position: absolute;
  top: 0;
  left: var(--handle-left, 0px);
  width: 62px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0867e8;
  box-shadow: 0 3px 9px rgba(0, 77, 172, 0.35);
  cursor: grab;
  touch-action: none;
}

.puzzle-slider button span {
  display: block;
  width: 27px;
  height: 14px;
  margin: auto;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 11px);
}

.puzzle-slider button:active {
  cursor: grabbing;
}

.puzzle-slider button:focus-visible {
  outline: 3px solid #173f2c;
  outline-offset: -4px;
}

.puzzle-slider button:disabled {
  cursor: default;
}

.puzzle-actions {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 5px;
}

.puzzle-refresh {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: #697984;
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.puzzle-refresh span {
  display: block;
  transition: transform 220ms ease;
}

.puzzle-refresh:hover span,
.puzzle-refresh:focus-visible span {
  transform: rotate(90deg);
}

.puzzle-refresh:disabled {
  cursor: default;
  opacity: 0.5;
}

.puzzle-refresh:focus-visible {
  outline: 2px solid #0867e8;
  outline-offset: 2px;
}

.puzzle-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.puzzle-actions p.is-error { color: #b3372d; }
.puzzle-actions p.is-success { color: #24723f; }

.turnstile-slot {
  margin-top: 14px;
}

.turnstile-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.turnstile-status:empty {
  display: none;
}

.turnstile-status.is-error { color: #b3372d; }
.turnstile-status.is-success { color: #24723f; }

.turnstile-retry {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #0d64ad;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 900px) {
  .message-tag-layer .message-tag:nth-child(n + 13) {
    display: none;
  }

  .message-tree-overflow:not([hidden]) {
    display: block;
    width: min(680px, calc(100% - 32px));
    margin: 36px auto 72px;
  }

  .message-tree-overflow h3 {
    margin: 0 0 16px;
    color: #f7fbf5;
    font-size: 1.25rem;
  }

  .message-tree-overflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .message-overflow-tag {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 245, 202, 0.5);
    border-radius: 12px;
    color: #f9f5e8;
    background: rgba(255, 245, 202, 0.12);
    cursor: pointer;
  }

  .message-overflow-tag:focus-visible {
    outline: 3px solid #a9e96f;
    outline-offset: 2px;
  }

  .message-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .message-tree-intro {
    padding-top: 96px;
  }

  .message-tree-heading h2 {
    font-size: clamp(3.7rem, 19vw, 5.4rem);
  }

  .message-tree-question {
    margin-top: 30px;
  }

  .message-review-note {
    align-items: flex-start;
    padding: 16px;
  }

  .message-tree-overflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-tag {
    width: 58px;
    height: 108px;
  }

  .message-tag-name {
    max-height: 82px;
    font-size: 12px;
  }

  .message-tag-name.is-long {
    font-size: 11px;
  }

  .message-form-wrap {
    width: calc(100% - 28px);
  }

  .message-form {
    gap: 32px;
    padding: 28px 20px;
    border-radius: 28px;
  }

  .message-form-copy h3 {
    font-size: 2.55rem;
  }

  .message-review-toast {
    grid-template-columns: 1fr auto;
  }

  .message-review-toast > span {
    display: none;
  }

  .message-dialog,
  .puzzle-dialog {
    align-items: end;
    padding: 12px;
  }

  .message-dialog-panel,
  .puzzle-dialog-panel {
    width: 100%;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    border-radius: 24px;
  }

  .message-dialog-panel {
    min-height: 300px;
    padding: 65px 28px 36px;
  }

  .puzzle-dialog-panel {
    padding: 17px 13px 13px;
    border-radius: 6px;
  }

  .puzzle-scene {
    border-radius: 2px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .message-tag,
  .message-tag:hover,
  .message-tag:focus-visible,
  .message-tag-inner,
  .message-review-toast,
  .message-dialog,
  .puzzle-dialog,
  .puzzle-gap,
  .puzzle-piece-shell {
    animation: none !important;
    transition: none !important;
  }
}
