:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --soft: #fff4d1;
  --brand: #ffff64;
  --text: #352315;
  --muted: #74685f;
  --line: #e6ded0;
  --accent: #412819;
  --accent-strong: #21150f;
  --naver: #03c75a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans KR", Arial, sans-serif;
}

.embed-body {
  min-height: auto;
  background: transparent;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.page {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-nav {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  background: var(--brand);
  border: 1px solid #f4ef56;
}

.brand-mark {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a,
.nav-contact {
  text-decoration: none;
}

.nav-contact {
  font-size: 0.86rem;
  font-weight: 700;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  min-height: 680px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--accent-strong);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.lede,
.helper,
.summary-note {
  color: var(--muted);
  line-height: 1.75;
}

.helper {
  margin: 0;
  font-size: 0.92rem;
}

.lede {
  max-width: 34rem;
  margin: 28px 0 0;
  font-size: 1.05rem;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.intro-meta span {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
}

.intro-visual {
  min-height: 520px;
  overflow: hidden;
}

.intro-visual img,
.summary-image img,
.embed-media img {
  height: 100%;
  object-fit: cover;
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
  align-items: stretch;
  padding: 52px 48px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}

.login-status-card,
.login-choice-card,
.terms-panel {
  border: 1px solid var(--line);
  background: #fffefb;
}

.login-status-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.login-status-name {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
}

.login-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.login-choice-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 270px;
  padding: 26px;
}

.login-choice-card h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.8rem;
  line-height: 1.2;
}

.login-action-disabled {
  background: #e5dfd2;
  border-color: #d8cfbf;
  color: var(--muted);
}

.terms-panel {
  margin-top: 20px;
  padding: 0;
}

.terms-link-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
}

.terms-panel summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.terms-content {
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.8;
}

.terms-content h2 {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 1.15rem;
}

.terms-content p {
  margin: 0;
}

.terms-content p + p {
  margin-top: 12px;
}

.terms-document {
  padding: 42px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}

.terms-document h1 {
  margin: 0 0 28px;
  color: var(--accent-strong);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.15;
}

.terms-document section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.terms-document h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.25rem;
}

.terms-document p {
  margin: 0;
  max-width: 70rem;
  color: var(--muted);
  line-height: 1.85;
}

.terms-document p + p {
  margin-top: 10px;
}

.booking-shell {
  margin-top: 28px;
}

.booking-summary h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.booking-main,
.booking-summary {
  background: var(--surface);
  border: 1px solid var(--line);
}

.booking-main {
  padding: 30px;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.review-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.usage-item {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffefb;
}

.usage-title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-info-item {
  display: grid;
  gap: 8px;
}

.profile-info-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.profile-info-title .usage-title {
  margin-bottom: 0;
}

.profile-info-title span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  padding: 2px 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-info-item strong {
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.review-card {
  border: 1px solid var(--line);
  background: #fffefb;
}

.field-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.login-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffefb;
}

.login-copy {
  min-width: 0;
}

.login-copy-complete {
  display: grid;
  gap: 4px;
}

.login-action {
  min-width: 146px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.login-action-naver {
  border-color: var(--naver);
  background: var(--naver);
}

.login-action-muted {
  background: transparent;
  color: var(--accent);
}

.review-card {
  margin-top: 20px;
  padding: 22px;
}

.review-card-head {
  align-items: center;
}

.pass-type-summary {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff8e4;
}

.pass-type-summary strong {
  color: var(--accent-strong);
  font-size: 1.05rem;
  line-height: 1.35;
}

.pass-type-summary span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.field-group + .field-group {
  margin-top: 28px;
}

.date-input,
.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  padding: 14px 15px;
}

.date-input:focus,
.text-input:focus,
.text-area:focus,
.choice:focus,
.slot:focus,
.primary-action:focus,
.secondary-action:focus,
.login-action:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.text-area {
  min-height: 120px;
  resize: vertical;
}

.focus-grid,
.time-grid {
  display: grid;
  gap: 10px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.time-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice,
.slot {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.choice strong,
.slot strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.choice span,
.slot span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.choice.is-selected,
.slot.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.choice.is-selected span,
.slot.is-selected span {
  color: rgba(255, 255, 255, 0.82);
}

.slot.is-disabled {
  background: #f2eee7;
  color: #9b8b7d;
  border-color: #e2d8ca;
  cursor: not-allowed;
}

.guest-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.booking-summary {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.summary-image {
  height: 320px;
  background: var(--soft);
}

.summary-copy,
.booking-summary > .summary-actions {
  padding: 24px;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.summary-note {
  margin: 18px 0 0;
}

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

.booking-summary > .summary-actions {
  border-top: 1px solid var(--line);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: var(--accent);
  color: #fff;
}

.secondary-action {
  background: transparent;
  color: var(--accent);
}

.status {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.embed-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0;
}

.embed-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
  gap: 18px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.embed-copy {
  align-self: center;
}

.embed-copy h1 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.embed-description {
  max-width: 34rem;
  margin: 16px 0 0;
}

.embed-media {
  min-height: 190px;
  overflow: hidden;
  background: var(--soft);
}

.embed-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.embed-flow div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fffefb;
}

.embed-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: var(--accent);
  font-weight: 700;
}

.embed-flow p {
  margin: 0;
  font-weight: 700;
}

.embed-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.internal-page {
  display: grid;
  gap: 20px;
}

.internal-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  background: #f5f8f3;
}

.internal-top .hero-title {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.internal-account {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 220px;
  color: #263c34;
}

.internal-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.internal-account span {
  color: var(--muted);
  font-size: 0.9rem;
}

.internal-shell {
  align-items: start;
}

.internal-title {
  margin: 4px 0 18px;
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1.18;
}

.internal-now-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fffefb;
}

.internal-now-box span {
  color: var(--muted);
  font-weight: 700;
}

.internal-now-box strong {
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1;
}

.login-action {
  max-width: 260px;
}

.compact-action {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.split-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.internal-slot {
  gap: 8px;
}

.internal-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid #cdd8d2;
  background: #f7faf8;
  color: #263c34;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-badge.is-open {
  border-color: #e3d0a1;
  background: #fff9e8;
  color: #6b4a14;
}

.status-badge.is-done {
  border-color: #b8d7c4;
  background: #edf8f1;
  color: #1f5a38;
}

.internal-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.internal-time-section + .internal-time-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.internal-staff-panel {
  margin-top: 22px;
}

.internal-staff-list {
  margin-top: 14px;
}

.internal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.internal-dashboard-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.internal-dashboard-card h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1.2;
}

.internal-dashboard-card:hover {
  border-color: var(--accent);
  background: #fffefb;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 16px;
  }

  .intro,
  .booking-shell,
  .login-hero,
  .login-choice-grid,
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
  }

  .intro-copy {
    padding: 48px 34px;
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .booking-summary {
    position: static;
  }

  .internal-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .internal-account {
    justify-items: start;
  }

  .internal-account-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100vw - 20px, 1240px);
    padding-top: 10px;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro-copy,
  .login-hero,
  .booking-main,
  .summary-copy,
  .booking-summary > .summary-actions,
  .embed-panel {
    padding: 22px;
  }

  .intro-visual,
  .summary-image {
    min-height: 260px;
    height: 260px;
  }

  .hero-title {
    font-size: 2.55rem;
    line-height: 1.18;
  }

  .booking-summary h2 {
    font-size: 1.65rem;
  }

  .login-panel,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .review-usage-grid,
  .focus-grid,
  .time-grid,
  .guest-fields,
  .terms-link-panel,
  .embed-panel,
  .embed-flow,
  .embed-actions,
  .split-actions,
  .internal-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .terms-link-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .embed-copy h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .intro-copy,
  .login-hero,
  .booking-main,
  .summary-copy,
  .booking-summary > .summary-actions,
  .embed-panel {
    padding: 18px;
  }
}
