:root {
  color-scheme: light;
  --ink: #291d27;
  --muted: #685c67;
  --pink: #d40a6d;
  --pink-dark: #b0085a;
  --line: #ecdee6;
  --paper: #fff;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  color: var(--ink);
  background: #fbf7fa;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

.shell {
  width: min(900px, calc(100% - 48px));
  margin: 42px auto 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark { display: block; width: 148px; height: 44px; object-fit: contain; object-position: left center; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: 0 12px 36px rgba(67, 21, 53, .065);
  overflow: hidden;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 45px 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(112deg, #fff 26%, #fff1f7 100%);
}

.hero-compact { padding-block: 32px; }
.hero-copy { max-width: 535px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 750;
}
h1, h2 { margin: 0; line-height: 1.25; word-break: keep-all; }
h1 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 820; letter-spacing: -.055em; }
h2 { font-size: 21px; font-weight: 760; letter-spacing: -.035em; }
.hero-copy > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 16px; word-break: keep-all; }

.access-panel {
  width: min(880px, calc(100% - 48px));
  margin-top: 32px;
  border-radius: 17px;
}

.access-header {
  padding: 34px 48px 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, #fff 35%, #fff3f8 100%);
}

.access-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.access-scope {
  margin: 0 0 0 auto;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 700;
}

.access-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  align-items: center;
  gap: 34px;
}

.access-intro h1 { font-size: clamp(25px, 3.6vw, 37px); }
.access-intro h1 span { display: inline-block; white-space: nowrap; }
.access-intro p { margin: 11px 0 18px; color: var(--muted); word-break: keep-all; }
.button.access-exit { width: 104px; color: var(--pink-dark); }

.age-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  border: 6px solid var(--pink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 54px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.access-content { padding: 28px 48px 36px; }

.access-notice {
  margin: 0 0 26px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff3f8;
  font-size: 15px;
  text-align: center;
  word-break: keep-all;
}

.access-notice strong { color: var(--pink-dark); }
.access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }

.access-option { min-width: 0; }
.access-option h2 { margin-bottom: 17px; }
.member-option { border-left: 1px solid var(--line); padding-left: 34px; }

.guest-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 320px; }
.auth-action { margin: 0; }

.access-tile {
  display: block;
  position: relative;
  width: 100%;
  min-height: 94px;
  padding: 0;
  border: 1px solid #e7d5e0;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 730;
  cursor: pointer;
}

.access-tile:hover { border-color: var(--pink); }
.access-tile-primary { border-color: #f1b6d3; color: var(--pink-dark); background: #fff4f9; }
.access-tile:disabled { cursor: default; opacity: .72; }

.access-tile > span:last-child {
  position: absolute;
  top: 54px;
  left: 4px;
  right: 4px;
  line-height: 22px;
}

.form-icon, .phone-icon {
  display: block;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.form-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 4px;
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px currentColor, 0 10px currentColor;
}

.phone-icon { width: 20px; }
.phone-icon::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.verification-status { margin-top: 15px; }
.verification-status p, .result-time, .member-help { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.result-time { display: block; font-variant-numeric: tabular-nums; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.login-fields { display: grid; gap: 6px; }
.login-field {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 41px;
  padding: 8px 11px;
  border: 1px solid #e7dce3;
  border-radius: 7px;
  background: #f8f5f7;
  color: var(--muted);
}
.login-button { min-width: 75px; }

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  align-items: center;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.auto-login { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.auto-login input { width: 14px; height: 14px; margin: 0; }
.login-links a { color: var(--pink-dark); text-underline-offset: 2px; }
.member-help { margin-top: 12px; word-break: keep-all; }

.access-footer {
  padding: 19px 48px;
  color: #fff;
  background: #33212f;
  font-size: 14px;
  text-align: center;
}

.access-footer > span { display: block; margin-bottom: 3px; font-weight: 750; }
.access-footer a { display: inline-block; margin-inline: 6px; color: #fff; text-decoration: none; }
.access-footer a:hover { text-decoration: underline; }

.status-pill {
  display: inline-block;
  padding: 5px 11px;
  margin: 0;
  min-height: 30px;
  border-radius: 30px;
  background: #f5eaf1;
  color: #70465f;
  font-size: 14px;
  font-weight: 720;
}
.status-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: .1em;
  background: currentColor;
}
.status-pill[data-state="pending"] { color: var(--pink-dark); background: #ffe6f2; }
.status-pill[data-state="verified"] { color: #156144; background: #e4f5ea; }
.status-pill[data-state="failed"], .status-pill[data-state="expired"] { color: #a5354c; background: #fcecf0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 730;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: #fff; background: var(--pink); }
button.button-primary { display: block; line-height: 22px; }
.button-primary:hover { color: #fff; background: var(--pink-dark); }
.button-outline { color: var(--ink); background: #fff; border-color: #e7d5e0; }
.button-outline:hover { color: var(--pink-dark); border-color: #eab5d2; }
.button.access-settings { min-height: 38px; padding-block: 6px; font-size: 14px; }
.button:disabled { color: #6a5865; background: #f4eaf1; cursor: default; }

.setup-content { max-width: 655px; padding: 33px 52px 42px; }
.setup-content > .status-pill { margin-top: 12px; }
.settings-form { margin-top: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 710; }
.field input {
  min-height: 46px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d9c8d2;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.field input::placeholder { color: #796d77; }
.origin-label { margin: 20px 0; color: var(--muted); font-size: 14px; }
.origin-label strong { margin-left: 6px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #f8eff5; color: var(--ink); }
.notice-error { background: #fcecf0; color: #872134; }
.notice-success { background: #e4f5ea; color: #156144; }

.result-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.result-panel { width: min(100%, 440px); padding: 32px; }
.result-panel .status-pill { margin-top: 24px; }
.result-panel h1 { margin: 13px 0 21px; font-size: 22px; }

@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); margin-top: 16px; }
  .wordmark { width: 118px; height: 39px; }
  .hero { padding: 28px 24px; gap: 16px; }
  .hero-copy > p:last-child { margin-top: 11px; font-size: 15px; }
  .setup-content { padding: 24px; }

  .access-header, .access-content { padding: 22px 23px 25px; }
  .access-heading { column-gap: 9px; row-gap: 8px; margin-bottom: 17px; }
  .access-scope { order: 3; flex-basis: 100%; margin: 0; }
  .access-settings { margin-left: auto; }
  .access-intro { grid-template-columns: minmax(0, 1fr) 61px; gap: 12px; }
  .access-intro h1 { font-size: 25px; }
  .access-intro p { margin: 8px 0 14px; font-size: 14px; }
  .age-mark { width: 61px; height: 61px; border-width: 4px; font-size: 32px; }
  .access-notice { padding: 11px 13px; margin-bottom: 21px; font-size: 14px; }
  .access-options { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .member-option { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .guest-actions { max-width: none; }
  .access-footer { padding: 15px 23px; font-size: 13px; }
}
