@import url("https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Gaegu:wght@400;700&family=Jua&family=Noto+Sans+KR:wght@700;900&display=swap");

@font-face {
  font-family: "JejuStoneWall";
  src: url("./assets/fonts/EF_jejudoldam.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OkDandan";
  src: url("./assets/fonts/OkDanDan-Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #06a9f4;
  --sky: #91d4ff;
  --yellow: #fff25a;
  --pink: #f13ca6;
  --green: #5adc36;
  --orange: #ffb018;
  --red: #ff5a43;
  --ink: #050505;
  --muted: #707070;
  --paper: #fffdf7;
  --line: #111;
  --ticker-height: clamp(64px, 7.2vw, 100px);
  --landing-ticker-height: var(--ticker-height);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:has(body.planner-page) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Arial,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hero-copy p,
.planner-intro h1,
.planner-intro > p,
.quiz-step strong,
legend,
.question-hint,
.option-grid label > span,
.result h2,
.result p,
.recommendation-list h3,
.recommendation-list p,
.card-body h3,
.card-body p,
.about li,
.contact span,
.dialog-copy h2,
.dialog-reason,
.dialog-guide strong {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ticker {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2.5vw, 40px);
  height: var(--ticker-height);
  min-height: var(--ticker-height);
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: var(--blue);
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0;
}

.ticker-stars {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 900;
  line-height: 0.56;
}

.ticker-stars:first-child span:first-child,
.ticker-stars:last-child span:last-child {
  transform: rotate(-8deg) scale(1.08);
}

.ticker-stars:first-child span:last-child,
.ticker-stars:last-child span:first-child {
  transform: rotate(7deg) scale(0.9);
}

.ticker strong {
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1;
  white-space: nowrap;
}

.ticker-home {
  color: inherit;
  text-decoration: none;
}

.ticker-home:hover {
  color: white;
}

.ticker-home:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.menu-button {
  position: fixed;
  left: 18px;
  top: calc(var(--ticker-height) + 20px);
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 2px solid var(--line);
  background: var(--blue);
  color: var(--ink);
  font-weight: 900;
  padding: 6px 12px;
}

.menu-button span {
  font-size: 38px;
  line-height: 24px;
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(310px, 84vw);
  transform: translateX(-102%);
  border-right: 2px solid var(--line);
  background: var(--blue);
  padding: 32px 34px;
  overflow-y: auto;
  transition: transform 180ms ease;
}

.side-menu.open {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--line);
}

.menu-close:hover,
.menu-close:focus-visible {
  background: var(--pink);
  color: white;
  transform: rotate(7deg);
}

.menu-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 34px;
  font-weight: 900;
}

.menu-title span {
  font-size: 72px;
  line-height: 38px;
}

.menu-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: 23px;
  line-height: 1.36;
  padding: 3px 0;
  text-decoration: none;
}

.menu-link.active,
.menu-link:hover {
  color: #b9fff2;
}

.menu-spacer {
  height: 76px;
}

main {
  overflow: hidden;
}

body.landing main > section:not(.hero):not(.places) {
  display: none;
}

body.landing .ticker,
body.landing .hero-copy {
  -webkit-user-select: none;
  user-select: none;
}

body.landing .menu-button {
  display: none;
}

.legacy-ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(18px, 3.1vw, 52px);
  height: var(--landing-ticker-height);
  min-height: var(--landing-ticker-height);
  border: 2px solid var(--line);
}

.legacy-ticker .ticker-stars {
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(80px, 9.5vw, 144px);
  line-height: 1;
}

.legacy-ticker .ticker-stars span:nth-child(n) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 0.7;
  transform: translateY(0.11em);
}

.legacy-ticker strong {
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(28px, 3.7vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

body.planner-page {
  display: grid;
  grid-template-rows: var(--ticker-height) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.planner-page main {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

body.landing .hero,
body.landing .hero-copy {
  height: calc(100vh - var(--landing-ticker-height));
  height: calc(100svh - var(--landing-ticker-height));
  min-height: 540px;
}

body:not(.landing) .planner {
  animation: plannerEnter 420ms ease-out both;
}

@keyframes plannerEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 58px);
  border-bottom: 2px solid var(--line);
  background: #a7d8fa;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 58px);
  align-content: center;
  justify-items: center;
  padding: 78px 24px 58px;
  color: white;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.hero-copy p {
  position: absolute;
  left: clamp(24px, 5vw, 92px);
  top: clamp(36px, 7vw, 92px);
  width: 28%;
  max-width: 360px;
  margin: 0;
  text-align: left;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  position: absolute;
  left: 50%;
  top: 23.5%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 48px);
  margin: 0;
  color: #ffef42;
  font-family: "JejuStoneWall", "Gaegu", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(72px, min(14.8vw, 22dvh), 304px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.06em;
  transform: translateX(-50%);
}

.hero-copy h1::before,
.hero-copy h1::after {
  display: none;
}

.hero-word {
  display: inline-flex;
  justify-content: center;
  font-size: inherit;
  white-space: nowrap;
}

.hero-word:first-child {
  transform: none;
}

.hero-word:last-child {
  color: inherit;
  transform: none;
}

.hero-word + .hero-word {
  margin-top: 0.08em;
}

.hero-letter {
  display: inline-block;
  font-size: inherit;
  transform-origin: 50% 62%;
}

.hero-word .hero-letter:nth-child(1) {
  transform: none;
}

.hero-word .hero-letter:nth-child(2) {
  transform: none;
}

.hero-word .hero-letter:nth-child(3) {
  transform: none;
}

.hero-copy > span {
  position: absolute;
  left: 50%;
  top: 77.5%;
  width: max-content;
  margin: 0;
  border: 0;
  background: transparent;
  color: white;
  padding: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(18px, 2.05vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  box-shadow: none;
}

.hero-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 56px;
  border: 2px solid var(--line);
  background: var(--pink);
  color: white;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: 900;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  box-shadow: 6px 6px 0 var(--yellow);
  text-decoration: none;
}

body.landing .hero-start {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 3.4%;
  min-height: auto;
  margin: 0;
  padding: 9px 18px 8px;
  font-size: clamp(16px, 1.45vw, 23px);
  transform: translateX(-50%);
}

.planner,
.result,
.places,
.favorites,
.about,
.contact {
  padding: clamp(48px, 7vw, 94px) clamp(18px, 5vw, 72px);
}

.planner {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - var(--ticker-height));
  align-items: center;
  background: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-weight: 900;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.04;
}

.planner-intro h1 {
  margin: 0;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.04;
}

.planner-intro > p:not(.eyebrow),
.result p,
.contact span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.planner-exit-note {
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink) !important;
  padding: 10px 12px;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.4 !important;
  box-shadow: 4px 4px 0 var(--pink);
  transform: rotate(-0.6deg);
}

.planner-page .planner {
  height: 100%;
  min-height: 0;
  align-items: stretch;
  padding: clamp(14px, 2.7vh, 28px) clamp(16px, 4vw, 56px);
  gap: clamp(20px, 3vw, 48px);
  overflow: hidden;
}

.planner-page .planner-intro {
  align-self: center;
}

.planner-page .quiz {
  align-self: stretch;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(7px, 1.4vh, 13px);
}

.planner-page .quiz-step {
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.planner-page .quiz > label,
.planner-page fieldset {
  padding: clamp(9px, 1.5vh, 15px);
}

.planner-page .quiz-progress {
  gap: 6px;
  padding: 7px 12px;
  font-size: 14px;
}

.planner-page .progress-track {
  height: 9px;
}

.planner-page legend {
  font-size: clamp(24px, 4vh, 40px);
}

.planner-page .question-hint {
  margin: 7px 0 5px;
  font-size: clamp(12px, 1.8vh, 14px);
  line-height: 1.3;
}

.planner-page .option-grid {
  gap: clamp(5px, 1vh, 9px);
  margin-top: 6px;
}

.planner-page .option-grid label {
  min-height: clamp(40px, 6.2vh, 56px);
  padding: 5px 8px;
  font-size: clamp(14px, 2vh, 16px);
}

.planner-page .option-grid label small {
  font-size: 11px;
}

.planner-page .visit-date-grid {
  gap: clamp(8px, 1.4vh, 12px);
  margin-top: clamp(8px, 2vh, 18px);
}

.planner-page .date-field {
  gap: clamp(5px, 1vh, 8px);
  padding: clamp(10px, 2vh, 16px);
}

.planner-page .date-guide {
  margin-top: clamp(8px, 1.8vh, 16px);
}

.planner-page .primary-button,
.planner-page .secondary-button {
  min-height: clamp(44px, 6.5vh, 56px);
  font-size: clamp(17px, 2.5vh, 21px);
}

.planner-page .quiz-message {
  min-height: 16px;
  font-size: 12px;
}

.planner-page .quiz-message:empty {
  min-height: 0;
}

.quiz {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.quiz > label,
fieldset {
  min-width: 0;
  margin: 0;
  border: 2px solid var(--line);
  background: #fff;
  padding: 18px;
  box-shadow: 7px 7px 0 var(--yellow);
}

.quiz > label {
  display: grid;
  gap: 10px;
  font-weight: 900;
}

.quiz-step {
  min-height: 500px;
  align-content: start;
}

.quiz-step:not(.active) {
  display: none;
}

.quiz-step strong {
  display: block;
  margin: 10px 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.quiz-step em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.quiz-progress {
  display: grid;
  gap: 10px;
  border: 2px solid var(--line);
  background: var(--blue);
  padding: 12px 14px;
  color: var(--yellow);
  font-weight: 900;
}

.progress-track {
  height: 12px;
  border: 2px solid var(--line);
  background: white;
}

.progress-track i {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--pink);
  transition: width 180ms ease;
}

input[type="text"] {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  padding: 8px 10px;
}

.party-size-field {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin-top: 18px;
  border: 2px solid var(--line);
  background: #fff8cf;
  padding: 16px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--pink);
}

.party-size-field input[type="number"] {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  background: white;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}

.party-size-field small {
  color: var(--muted);
  font-weight: 700;
}

.visit-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.visit-date-grid.is-single-date {
  grid-template-columns: minmax(0, 1fr);
}

.date-field {
  display: grid;
  gap: 8px;
  border: 2px solid var(--line);
  background: #fff8cf;
  padding: 16px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--pink);
  cursor: pointer;
}

.date-field[hidden] {
  display: none;
}

.date-field span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.date-field small {
  color: var(--muted);
  font-size: 11px;
}

.date-field input[type="date"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 2px solid var(--line);
  background: white;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}

.date-field.is-auto-date {
  cursor: default;
}

.date-field.is-auto-date input[type="date"]:disabled {
  background: #f2f2f2;
  color: var(--ink);
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.date-guide {
  display: block;
  margin-top: 16px;
}

legend {
  padding: 0 8px;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.08;
}

legend span {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.question-hint {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

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

.option-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  border: 2px solid #d8d8d8;
  background: #fafafa;
  padding: 9px 10px;
  font-size: 17px;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.option-grid label:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.option-grid label:has(input:checked) {
  border-color: var(--line);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
}

.option-grid label > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.option-grid label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.primary-button {
  min-height: 64px;
  border: 2px solid var(--line);
  background: var(--pink);
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 7px 7px 0 var(--line);
}

.secondary-button {
  min-height: 64px;
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 18px;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 7px 7px 0 var(--line);
}

.secondary-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.wizard-actions {
  display: grid;
  grid-template-columns: minmax(110px, 0.55fr) minmax(180px, 1fr);
  gap: 14px;
}

.quiz-message {
  min-height: 24px;
  margin: 0;
  color: var(--pink);
  font-weight: 900;
}

.reveal-button {
  display: none;
  background: var(--yellow);
  color: var(--ink);
}

.quiz.is-final-step #nextStep {
  display: none;
}

.quiz.is-final-step .reveal-button {
  display: block;
}

.pre-result .locked-content {
  display: none;
}

body:not(.pre-result) .hero .hero-start {
  display: none;
}

body:not(.pre-result) .result {
  animation: tadaReveal 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes tadaReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(280px, 0.85fr) minmax(390px, 1.4fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
  scroll-margin-top: var(--ticker-height);
  background: #050505;
  color: white;
}

body.awaiting-invitation .result {
  position: fixed;
  z-index: 18;
  inset: var(--ticker-height) 0 0;
  grid-template-columns: minmax(280px, 480px);
  place-content: center;
  min-height: 0;
  padding: clamp(18px, 4vw, 48px);
  overflow: auto;
}

body.awaiting-invitation .result-intro,
body.awaiting-invitation .recommendation-list {
  display: none;
}

body.awaiting-invitation .invitation-card {
  position: relative;
  top: auto;
  justify-self: center;
  width: min(100%, 480px);
  min-height: min(570px, calc(100svh - var(--ticker-height) - 48px));
}

body.awaiting-invitation .invitation-card:not(.open) {
  animation:
    invitationArrival 580ms cubic-bezier(0.2, 0.85, 0.2, 1) both,
    invitationFloat 2.8s 580ms ease-in-out infinite;
}

body.invitation-opened .result-intro,
body.invitation-opened .recommendation-list,
body.invitation-opened .places {
  animation: invitationDetailsReveal 520ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

@keyframes invitationArrival {
  from {
    opacity: 0;
    transform: translateY(34px) rotate(2deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-0.7deg) scale(1);
  }
}

@keyframes invitationFloat {
  0%, 100% { transform: translateY(0) rotate(-0.7deg); }
  50% { transform: translateY(-7px) rotate(0.4deg); }
}

@keyframes invitationDetailsReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-intro {
  position: sticky;
  top: calc(var(--ticker-height) + 24px);
}

@media (min-width: 1101px) {
  body.invitation-opened .result {
    grid-template-columns: minmax(220px, 0.72fr) minmax(270px, 0.86fr) minmax(360px, 1.42fr);
    align-items: stretch;
    height: calc(100svh - var(--ticker-height));
    min-height: 0;
    padding-block: calc(clamp(22px, 3.2vh, 36px) + 8px) clamp(22px, 3.2vh, 36px);
    overflow: hidden;
  }

  body.invitation-opened .result-intro,
  body.invitation-opened .invitation-card {
    position: relative;
    top: auto;
    min-height: 0;
    max-height: 100%;
  }

  body.invitation-opened .result-intro {
    overflow-y: auto;
    padding-top: 36px;
    padding-right: 8px;
  }

  body.invitation-opened .result-intro h2 {
    font-size: clamp(30px, 2.8vw, 40px);
  }

  body.invitation-opened .result-intro > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.45;
  }

  body.invitation-opened .answer-summary {
    gap: 5px;
    margin-top: 14px;
  }

  body.invitation-opened .answer-summary span {
    padding: 4px 8px;
    font-size: 11px;
  }

  body.invitation-opened .invitation-card {
    height: 100%;
  }

  body.invitation-opened .result > .recommendation-list {
    grid-column: auto;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 14px;
    scroll-behavior: auto;
  }

  body.invitation-opened .recommendation-list::-webkit-scrollbar {
    width: 10px;
  }

  body.invitation-opened .recommendation-list::-webkit-scrollbar-track {
    border-left: 2px solid white;
    background: #1c1c1c;
  }

  body.invitation-opened .recommendation-list::-webkit-scrollbar-thumb {
    border: 2px solid #1c1c1c;
    background: var(--yellow);
  }
}

.invitation-card {
  position: sticky;
  top: calc(var(--ticker-height) + 24px);
  width: 100%;
  min-height: clamp(440px, 48vw, 570px);
  overflow: hidden;
  border: 3px solid white;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 11px 11px 0 var(--pink);
  perspective: 1200px;
  transform: rotate(-0.7deg);
}

body::after {
  content: "";
  position: fixed;
  z-index: 1000;
  inset: 0;
  visibility: hidden;
  background: #050505;
  opacity: 0;
  pointer-events: none;
}

body.invitation-curtain::after {
  visibility: visible;
  opacity: 1;
  transition: opacity 260ms ease-in;
}

body.invitation-curtain.invitation-curtain-reveal::after {
  opacity: 0;
  transition-duration: 420ms;
  transition-timing-function: ease-out;
}

.invitation-envelope,
.invitation-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.invitation-envelope {
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  gap: 12px;
  border: 0;
  background: #fffdf8;
  color: var(--ink);
  padding: clamp(18px, 2.4vw, 28px);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  text-align: left;
  transform-origin: 50% 0;
  transition: opacity 280ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.invitation-recipient {
  justify-self: center;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  text-decoration: underline wavy var(--pink) 2px;
  text-underline-offset: 5px;
}

.invitation-envelope > strong {
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(23px, 2.15vw, 32px);
  line-height: 1.16;
  text-align: center;
  word-break: keep-all;
}

.envelope-face {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--blue);
}

.envelope-face::before,
.envelope-face::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -9%;
  width: 72%;
  height: 58%;
  border-bottom: 2px solid rgba(5, 5, 5, 0.68);
  transform-origin: bottom center;
}

.envelope-face::before {
  transform: translateX(-100%) rotate(42deg);
}

.envelope-face::after {
  transform: rotate(-42deg);
}

.envelope-face b {
  position: absolute;
  top: 13%;
  font-family: "JejuStoneWall", "Gaegu", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.envelope-face i {
  position: relative;
  z-index: 1;
  margin-top: 25%;
  font-size: clamp(48px, 6vw, 78px);
  font-style: normal;
  line-height: 1;
  animation: invitationHeart 1.2s ease-in-out infinite;
}

.envelope-face small {
  position: absolute;
  bottom: 8%;
  font-family: "JejuStoneWall", "Gaegu", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(13px, 1.5vw, 20px);
  letter-spacing: 0.03em;
}

@keyframes invitationHeart {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  45% { transform: scale(1.13) rotate(3deg); }
}

.invitation-nudge {
  justify-self: center;
  border-bottom: 2px solid var(--pink);
  color: var(--muted);
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.invitation-reveal {
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  background: var(--yellow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.88) rotate(3deg);
  transition:
    opacity 240ms 130ms ease,
    transform 480ms 120ms cubic-bezier(0.2, 0.85, 0.2, 1),
    visibility 0s 580ms;
}

.invitation-reveal > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.invitation-reveal > div {
  display: grid;
  gap: 3px;
  border-top: 3px solid var(--line);
  background: var(--yellow);
  padding: 12px 14px 10px;
  text-align: center;
}

.invitation-reveal > div span {
  color: var(--pink);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.invitation-reveal > div strong {
  font-family: "JejuStoneWall", "Gaegu", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: 22px;
  font-weight: 400;
}

.invitation-reveal > button {
  border: 0;
  border-top: 2px solid var(--line);
  background: var(--blue);
  color: var(--ink);
  padding: 9px 12px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-weight: 900;
}

.invitation-card.open .invitation-envelope {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16%) rotateX(82deg) scale(0.94);
}

.invitation-card.open .invitation-reveal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) rotate(0);
  transition:
    opacity 240ms 130ms ease,
    transform 480ms 120ms cubic-bezier(0.2, 0.85, 0.2, 1),
    visibility 0s;
}

body.awaiting-invitation .invitation-card.open .invitation-reveal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.88) rotate(3deg);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  body.awaiting-invitation .invitation-card:not(.open),
  body.invitation-opened .result-intro,
  body.invitation-opened .recommendation-list,
  body.invitation-opened .places,
  .envelope-face i {
    animation: none;
  }

  .invitation-envelope,
  .invitation-reveal {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }

  body.invitation-curtain::after {
    transition-duration: 0.01ms;
  }
}

.answer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.answer-summary span {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.recommendation-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommendation-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-areas: "icon copy";
  gap: 16px;
  align-items: start;
  border: 2px solid white;
  border-left: 8px solid var(--recommendation-color, var(--yellow));
  background: #161616;
  padding: 16px 18px;
}

.recommendation-place-button {
  grid-area: icon;
  display: grid;
  place-items: center;
  align-self: start;
  width: 62px;
  min-height: 68px;
  border: 2px solid white;
  border-radius: 18px 22px 16px 24px;
  background: var(--recommendation-color, var(--yellow));
  color: var(--ink);
  padding: 6px 4px 5px;
  box-shadow: 4px 4px 0 var(--yellow);
  transform: rotate(-2deg);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.recommendation-place-button:hover,
.recommendation-place-button:focus-visible {
  box-shadow: 7px 7px 0 var(--pink);
  transform: rotate(2deg) translateY(-3px) scale(1.04);
}

.recommendation-place-button span {
  font-size: 30px;
  line-height: 1;
}

.recommendation-place-button small {
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: 10px;
  line-height: 1;
}

.recommendation-category {
  display: block;
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.recommendation-copy {
  grid-area: copy;
}

.recommendation-list h3 {
  margin: 0 0 7px;
  font-size: 26px;
}

.recommendation-list p {
  margin: 0;
  color: #e7e7e7;
}

.recommendation-estimate {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.place-controls {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.place-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: min(100%, 440px);
  border: 2px solid var(--line);
  background: white;
  box-shadow: 4px 4px 0 var(--line);
}

.place-search > span {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 2px solid var(--line);
  background: var(--yellow);
  padding: 8px 11px 7px;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
}

.place-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 11px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
}

.place-search:focus-within {
  box-shadow: 4px 4px 0 var(--pink);
}

.menu-search {
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  margin: 0 0 22px;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.78);
}

.menu-search > span {
  background: var(--yellow);
}

.menu-search-submit {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 34px;
  border: 0;
  border-left: 2px solid var(--line);
  background: var(--pink);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.menu-search-submit:hover,
.menu-search-submit:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.place-empty {
  margin: 0 0 28px;
  border: 2px solid var(--line);
  background: var(--yellow);
  padding: 18px 20px;
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--pink);
}

.section-heading h2 {
  font-size: clamp(18px, 3vw, 46px);
  white-space: nowrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  border: 2px solid var(--line);
  background: white;
  padding: 6px 12px;
  font-family: "JejuStoneWall", "Gaegu", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  font-weight: 400;
}

.filter.active {
  background: var(--yellow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.place-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 520px;
  border: 3px solid var(--line);
  background: white;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 var(--card-color);
}

.place-card.hidden {
  display: none;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 13px 18px 9px;
  color: var(--card-color);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.card-category {
  font-family: "JejuStoneWall", "Gaegu", "Jua", "Apple SD Gothic Neo", sans-serif;
}

.card-actions {
  display: inline-grid;
  justify-items: center;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  margin-top: -3px;
}

.card-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--card-color);
  line-height: 1;
}

.card-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fave {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--card-color);
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
  transition: transform 140ms ease;
}

.fave:hover,
.fave:focus-visible {
  transform: scale(1.14) rotate(-5deg);
}

.fave.saved {
  color: var(--pink);
}

.place-map-link {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.photo-box {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 18px 18px;
  padding: 12px;
  border: 2px solid var(--card-color);
  outline: 2px solid var(--card-color);
  outline-offset: -7px;
  background: color-mix(in srgb, var(--card-color) 24%, white);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.place-photo-fallback {
  display: grid;
  place-items: center;
  width: min(48%, 146px);
  aspect-ratio: 1;
  border: 3px solid var(--line);
  background: white;
  color: var(--card-color);
  font-size: clamp(62px, 8vw, 106px);
  font-weight: 900;
  line-height: 1;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
}

.place-photo {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 2px solid var(--line);
  background: white;
  object-fit: cover;
  transition: transform 220ms ease;
}

.place-map-link:hover .place-photo,
.place-map-link:focus-visible .place-photo {
  transform: scale(1.025);
}

.map-link-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 6px 9px 5px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--line);
}

.card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 20px 22px 22px;
  border-top: 3px solid var(--line);
  background: var(--card-color);
  color: var(--ink);
}

.card-body h3 {
  margin: 0;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.12;
}

.card-body p {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta span {
  border: 2px solid var(--line);
  background: white;
  padding: 4px 8px 3px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.favorites {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr);
  gap: 30px;
  background: white;
  border-top: 2px solid var(--line);
}

.favorite-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  min-height: 92px;
  color: var(--muted);
  font-weight: 900;
}

.favorite-pill {
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 14px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 2px solid var(--line);
  background: #f8f8f8;
}

.about ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
}

.about li::before {
  content: "✓ ";
}

.contact {
  min-height: 320px;
  background: var(--blue);
  color: var(--ink);
  text-align: center;
}

.contact p {
  margin: 0 0 10px;
  font-weight: 900;
}

.contact h2 {
  margin-bottom: 18px;
}

.place-dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: auto;
  border: 0;
  background: transparent;
  padding: 10px;
  overflow: visible;
}

.place-dialog::backdrop {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  --dialog-color: var(--yellow);
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.25fr);
  max-height: calc(100vh - 48px);
  border: 3px solid var(--line);
  border-radius: 28px 18px 30px 16px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--dialog-color);
  overflow: auto;
  transform: rotate(-0.35deg);
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--line);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: var(--pink);
  color: white;
  transform: rotate(8deg);
}

.dialog-photo {
  position: relative;
  min-height: 430px;
  border-right: 3px solid var(--line);
  background: var(--dialog-color);
  overflow: hidden;
}

.dialog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.dialog-sticker {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 3px solid var(--line);
  border-radius: 43% 57% 54% 46%;
  background: white;
  font-size: 48px;
  box-shadow: 6px 6px 0 var(--yellow);
  transform: rotate(7deg);
}

.dialog-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 40px 28px 24px;
}

.dialog-label {
  width: fit-content;
  margin: 0;
  border: 2px solid var(--line);
  background: var(--dialog-color);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-1deg);
}

.dialog-copy h2 {
  font-family: "Gaegu", "Jua", sans-serif;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 0.96;
}

.dialog-reason {
  margin: 0;
  color: #404040;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.dialog-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dialog-guide section {
  display: grid;
  gap: 6px;
  border: 2px solid var(--line);
  background: white;
  padding: 10px;
  box-shadow: 3px 3px 0 var(--dialog-color);
}

.dialog-guide span {
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
}

.dialog-guide strong {
  font-size: 15px;
  line-height: 1.35;
}

.dialog-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dialog-info span {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.dialog-details {
  display: grid;
  gap: 8px;
}

.dialog-details section {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--dialog-color);
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 12px;
}

.dialog-details span {
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
}

.dialog-details p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
}

#dialogHours {
  overflow: visible;
  line-height: 1.6;
}

.dialog-source {
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.dialog-source:hover,
.dialog-source:focus-visible {
  color: var(--pink);
}

.dialog-favorite {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 14px 18px 13px 20px;
  background: white;
  color: var(--ink);
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  box-shadow: 4px 4px 0 var(--line);
}

.dialog-favorite.saved {
  background: var(--pink);
  color: white;
}

.subpage-hero h1,
.subpage-hero p,
.info-card h3,
.info-card p,
.about-guide-list li,
.contact-coming-soon,
.favorite-empty h2,
.favorite-empty p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.subpage-main {
  background: var(--paper);
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  min-height: 520px;
  border-bottom: 2px solid var(--line);
  padding: clamp(92px, 10vw, 150px) clamp(20px, 7vw, 100px) clamp(64px, 8vw, 110px);
}

.subpage-hero > div {
  max-width: 920px;
}

.subpage-hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 1.02;
}

.subpage-hero > div > p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.55;
}

.about-hero {
  background: var(--yellow);
}

.contact-hero {
  background: var(--blue);
}

.favorites-hero {
  background: #ffd8ed;
}

.subpage-mark {
  justify-self: center;
  border: 3px solid var(--line);
  background: white;
  color: var(--pink);
  padding: 32px 26px 22px;
  font-family: "Gaegu", "Jua", sans-serif;
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 700;
  line-height: 0.78;
  text-align: center;
  box-shadow: 12px 12px 0 var(--line);
  transform: rotate(4deg);
}

.page-section {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 6vw, 88px);
}

.compact-heading {
  align-items: start;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.info-card {
  min-height: 280px;
  border: 2px solid var(--line);
  background: var(--info-color, white);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 8px 8px 0 var(--line);
}

.info-card > span {
  display: inline-block;
  margin-bottom: 44px;
  border: 2px solid var(--line);
  background: white;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.info-card h3 {
  margin: 0 0 14px;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
}

.info-card p {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.about-guide-list,
.contact-prep {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(30px, 6vw, 90px);
  border-top: 2px solid var(--line);
  background: white;
}

.about-guide-list ul {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-guide-list li {
  border: 2px solid var(--line);
  background: var(--yellow);
  padding: 16px 18px;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--pink);
}

.about-guide-list li::before {
  content: "✓ ";
}

.subpage-cta {
  display: grid;
  justify-items: center;
  border-top: 2px solid var(--line);
  background: var(--blue);
  padding: clamp(54px, 7vw, 90px) 20px;
  text-align: center;
}

.subpage-cta p {
  margin: 0;
  font-family: "OkDandan", "Jua", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(28px, 4vw, 54px);
  word-break: keep-all;
}

.subpage-cta .hero-start {
  margin-top: 24px;
}

.contact-topics > h2 {
  margin-bottom: 32px;
}

.contact-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-checklist span {
  border: 2px solid var(--line);
  background: #b9fff2;
  padding: 16px;
  font-size: 17px;
  font-weight: 900;
}

.contact-coming-soon {
  grid-column: 2;
  margin: 8px 0 0;
  border-left: 6px solid var(--pink);
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.favorite-collection {
  background: white;
}

.favorite-page-grid:has(.favorite-empty) {
  grid-template-columns: 1fr;
}

.favorite-empty {
  display: grid;
  justify-items: center;
  min-height: 360px;
  background: white;
  padding: 54px 20px;
  text-align: center;
}

.favorite-empty > span {
  color: var(--pink);
  font-size: 82px;
  line-height: 1;
}

.favorite-empty h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
}

.favorite-empty p {
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 800;
}

.favorite-empty a {
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--line);
}

@media (max-width: 1200px) {
  .result {
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  }

  .result > .recommendation-list {
    grid-column: 1 / -1;
  }

  .invitation-card {
    min-height: 540px;
  }
}

@media (max-width: 900px) {
  .planner,
  .result,
  .favorites,
  .about {
    grid-template-columns: 1fr;
  }

  .result-intro,
  .invitation-card {
    position: relative;
    top: auto;
  }

  .invitation-card {
    justify-self: center;
    width: min(100%, 430px);
    min-height: 570px;
  }

  .result > .recommendation-list {
    grid-column: auto;
  }

  .quiz,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .place-controls {
    justify-items: start;
    width: 100%;
  }

  .filters {
    justify-content: flex-start;
  }

  body.landing .hero-copy {
    align-content: normal;
    justify-items: normal;
    text-align: center;
  }

  body.landing .hero-copy p {
    position: absolute;
    left: 5.5%;
    top: 6%;
    width: 62%;
    max-width: none;
    margin: 0;
    font-size: clamp(18px, 3.8vw, 30px);
  }

  body.landing .hero-copy h1 {
    top: 26%;
    font-size: clamp(72px, min(24vw, 22dvh), 148px);
    line-height: 0.9;
  }

  body.landing .hero-copy > span {
    top: auto;
    bottom: 17%;
    width: 88%;
    font-size: clamp(18px, 3.8vw, 30px);
    line-height: 1.35;
    white-space: normal;
  }

  body.landing .hero-start {
    bottom: 4.5%;
    min-height: 48px;
    font-size: clamp(17px, 4vw, 22px);
  }

  .quiz-step {
    min-height: 470px;
  }

  .planner-page .planner-intro {
    display: none;
  }

  .planner-page .quiz-step {
    min-height: 0;
  }

  .subpage-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 110px;
  }

  .subpage-mark {
    justify-self: start;
    font-size: clamp(48px, 14vw, 78px);
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
  }

  .info-card > span {
    margin-bottom: 28px;
  }

  .about-guide-list,
  .contact-prep {
    grid-template-columns: 1fr;
  }

  .contact-coming-soon {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .ticker-stars span:nth-child(n + 2) {
    display: none;
  }

  .ticker-stars {
    font-size: clamp(56px, 18vw, 76px);
  }

  .legacy-ticker {
    gap: 8px;
  }

  .legacy-ticker .ticker-stars {
    font-size: clamp(76px, 20vw, 82px);
  }

  .legacy-ticker strong {
    font-size: clamp(26px, 7vw, 29px);
  }

  .menu-button {
    left: 12px;
    top: calc(var(--ticker-height) + 12px);
  }

  .planner,
  .result,
  .places,
  .favorites,
  .about,
  .contact {
    padding-inline: 14px;
  }

  .quiz > label,
  fieldset {
    padding: 15px;
    box-shadow: 4px 4px 0 var(--yellow);
  }

  .quiz-step {
    min-height: 520px;
  }

  .option-grid,
  .option-grid.compact {
    grid-template-columns: 1fr;
  }

  .recommendation-list li {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "icon copy";
    gap: 12px;
  }

  .dialog-shell {
    grid-template-columns: 1fr;
    transform: none;
  }

  .dialog-photo {
    min-height: 210px;
    max-height: 260px;
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }

  .dialog-copy {
    gap: 13px;
    padding: 28px 18px 24px;
  }

  .dialog-guide {
    grid-template-columns: 1fr;
  }

  .place-card {
    min-height: 0;
  }

  .place-search-main {
    width: 100%;
  }

  body.landing .hero-copy h1 {
    font-size: clamp(72px, min(24vw, 22dvh), 108px);
  }

  body.landing .hero-word + .hero-word {
    margin-top: 4px;
  }

  .wizard-actions {
    grid-template-columns: 1fr;
  }

  .secondary-button,
  .primary-button {
    min-height: 56px;
    font-size: 20px;
  }

  .planner-page .quiz-step {
    min-height: 0;
  }

  .planner-page .option-grid,
  .planner-page .option-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-page .option-grid label small {
    display: none;
  }

  .planner-page .wizard-actions {
    grid-template-columns: minmax(82px, 0.55fr) minmax(140px, 1fr);
    gap: 8px;
  }

  .planner-page .secondary-button,
  .planner-page .primary-button {
    min-height: clamp(42px, 6.5vh, 52px);
    font-size: clamp(16px, 2.5vh, 19px);
  }

  .subpage-hero {
    padding: 100px 18px 54px;
  }

  .subpage-hero h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .contact-checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 780px) {
  body.landing .hero-copy {
    padding: 24px 18px 16px;
    overflow: hidden;
  }

  body.landing .hero-copy p {
    font-size: clamp(16px, 3vh, 23px);
  }

  body.landing .hero-copy h1 {
    font-size: clamp(72px, 20vh, 136px);
  }

  body.landing .hero-copy > span {
    margin-top: 12px;
    font-size: clamp(16px, 2.5vh, 23px);
  }

  body.landing .hero-start {
    min-height: 44px;
    margin-top: 13px;
    padding-block: 6px;
    font-size: 18px;
  }

  .planner-page .planner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 10px;
  }

  .planner-page .planner-intro {
    display: none;
  }

  .planner-page .quiz {
    width: min(100%, 980px);
  }

  .planner-page .quiz-progress {
    padding-block: 5px;
  }

  .planner-page legend {
    font-size: clamp(22px, 3.8vh, 30px);
  }

  .planner-page .question-hint {
    margin-block: 5px 3px;
  }

  .planner-page .option-grid label {
    min-height: 38px;
  }

  .planner-page .option-grid label small {
    display: none;
  }

  .planner-page .quiz-step strong {
    margin: 6px 0 10px;
    font-size: clamp(24px, 4.6vh, 36px);
  }
}

@media (max-height: 600px) {
  .planner-page .planner {
    padding-block: 7px;
  }

  .planner-page .quiz {
    gap: 5px;
  }

  .planner-page .quiz > label,
  .planner-page fieldset {
    padding: 7px 9px;
  }

  .planner-page .quiz-progress {
    gap: 3px;
    padding-block: 4px;
    font-size: 12px;
  }

  .planner-page .progress-track {
    height: 7px;
  }

  .planner-page legend {
    font-size: clamp(20px, 4.8vh, 26px);
  }

  .planner-page .question-hint {
    display: none;
  }

  .planner-page .option-grid {
    gap: 4px;
    margin-top: 4px;
  }

  .planner-page .option-grid label {
    min-height: 34px;
    padding-block: 3px;
    font-size: 13px;
  }

  .planner-page .primary-button,
  .planner-page .secondary-button {
    min-height: 38px;
    padding-block: 5px;
    font-size: 16px;
  }

  .planner-page .quiz-step strong {
    margin: 4px 0 8px;
    font-size: clamp(21px, 5vh, 28px);
  }

  .planner-page .quiz-step em {
    font-size: 12px;
    line-height: 1.3;
  }
}
