@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  color-scheme: dark;
  --bg: #08110f;
  --surface: #101b18;
  --surface-2: #15231f;
  --surface-3: #1b2b26;
  --line: rgba(225, 242, 233, 0.12);
  --line-strong: rgba(225, 242, 233, 0.24);
  --text: #edf7f1;
  --muted: #92a89f;
  --accent: #b9f36a;
  --accent-strong: #96df3e;
  --accent-ink: #13200d;
  --warning: #ffc96b;
  --danger: #ff7e77;
  --info: #7ecdf5;
  --radius: 22px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -8%, rgba(185, 243, 106, 0.13), transparent 34rem),
    radial-gradient(circle at -12% 28%, rgba(58, 143, 115, 0.12), transparent 30rem),
    var(--bg);
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible {
  outline: 3px solid rgba(185, 243, 106, 0.42);
  outline-offset: 2px;
}
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .18em; }
.brand-mark { display: flex; align-items: end; gap: 2px; width: 25px; height: 25px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 50%; transform: rotate(-18deg); }
.brand-mark i { display: block; width: 4px; background: var(--accent); border-radius: 4px; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 10px; }
.header-note { color: var(--muted); font-size: 11px; letter-spacing: .15em; }
#app { width: min(1180px, 100%); margin: 0 auto; padding: 48px 28px 96px; }
.loading-state, .empty-state { min-height: 55vh; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.loader { width: 34px; height: 34px; border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 28px; align-items: end; margin-bottom: 34px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(36px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero-copy { margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 680px; }
.device-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(185,243,106,.08), rgba(16,27,24,.84)); box-shadow: var(--shadow); }
.device-card strong { display: block; font-size: 22px; margin-bottom: 5px; }
.device-card span { color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(185,243,106,.08); }
.layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 24px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 27, 24, .9); box-shadow: 0 16px 48px rgba(0,0,0,.16); overflow: hidden; }
.panel-section { padding: 28px; border-bottom: 1px solid var(--line); }
.panel-section:last-child { border-bottom: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2, .panel h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.section-head small, .help { color: var(--muted); font-size: 13px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label, .chip, .date-tab, .slot {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.choice label { display: block; min-height: 108px; padding: 19px; border-radius: 16px; cursor: pointer; }
.choice label strong { display: block; font-size: 17px; margin: 8px 0 4px; }
.choice label span { color: var(--muted); font-size: 13px; }
.choice input:checked + label { border-color: var(--accent); background: rgba(185,243,106,.09); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-icon { font-size: 22px; color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 66px; padding: 11px 14px; border-radius: 12px; cursor: pointer; }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 750; }
.calendar-field { display: grid; gap: 8px; }
.calendar-field label { color: var(--muted); font-size: 13px; }
.calendar-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-2);
  font-weight: 700;
  color-scheme: dark;
  cursor: pointer;
}
.calendar-field input:hover,
.calendar-field input:focus-visible { border-color: var(--accent); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-58%);
  pointer-events: none;
}
.select-wrap select {
  width: 100%;
  min-height: 48px;
  padding: 12px 48px 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-2);
  font: inherit;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}
.select-wrap select:hover,
.select-wrap select:focus-visible { border-color: var(--accent); }
.select-wrap select option { color: var(--text); background: var(--surface-2); }
.participant-block[hidden] { display: none; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.slot { padding: 12px 6px; border-radius: 12px; cursor: pointer; text-align: center; }
.slot:hover:not(:disabled), .chip:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.slot.active { border-color: var(--accent); background: rgba(185,243,106,.1); color: var(--accent); font-weight: 750; }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot-empty { grid-column: 1 / -1; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }
.sticky-panel { position: sticky; top: 18px; }
.price-box { padding: 28px; }
.price-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-total span { color: var(--muted); }
.price-total strong { font-size: 34px; letter-spacing: -.045em; color: var(--accent); }
.formula { margin: 18px 0; padding: 14px; color: var(--text); background: var(--surface-2); border-radius: 12px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.summary-list { display: grid; gap: 12px; margin: 20px 0; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; }
.field { display: grid; gap: 8px; margin-top: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--text);
  background: var(--surface-2);
}
.field input::placeholder { color: #61746d; }
.policy { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.policy input { margin-top: 3px; accent-color: var(--accent); }
.policy span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.policy strong { color: var(--text); }
.button { width: 100%; border: 0; border-radius: 13px; padding: 15px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; transition: transform .18s ease, opacity .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button.secondary { background: var(--surface-3); color: var(--text); border: 1px solid var(--line); }
.button.danger { background: rgba(255,126,119,.15); color: #ffaaa5; border: 1px solid rgba(255,126,119,.35); }
.button-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.notice { display: flex; gap: 11px; padding: 15px; border: 1px solid rgba(255,201,107,.22); border-radius: 13px; background: rgba(255,201,107,.07); color: #efd29d; font-size: 13px; line-height: 1.55; }
.notice.info { border-color: rgba(126,205,245,.25); background: rgba(126,205,245,.07); color: #b9dff3; }
.notice.danger { border-color: rgba(255,126,119,.27); background: rgba(255,126,119,.07); color: #ffc0bc; }
.reservation-wrap { max-width: 900px; margin: 0 auto; }
.reservation-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.reservation-top h1 { margin: 0; font-size: clamp(34px, 7vw, 64px); letter-spacing: -.05em; }
.code-badge { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--accent); border: 1px solid rgba(185,243,106,.25); border-radius: 999px; padding: 8px 12px; }
.status-hero { padding: 30px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(130deg, rgba(185,243,106,.1), rgba(16,27,24,.92) 55%); }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.status-line h2 { margin: 0; font-size: 25px; }
.status-pill { border-radius: 999px; padding: 7px 11px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; }
.countdown { margin: 24px 0 8px; font-size: clamp(42px, 11vw, 76px); font-weight: 780; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.countdown-label { color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.time-card { padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 15px; }
.time-card span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.time-card strong { font-size: 18px; }
.time-card.changed { border-color: rgba(255,201,107,.3); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail-item { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.detail-item span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.detail-item strong { font-size: 15px; }
.action-panel { display: grid; gap: 10px; margin-top: 18px; }
.disabled-reason { margin: 0; text-align: center; color: var(--muted); font-size: 12px; }
.countdown-warning { margin-top: 18px; border-color: rgba(255,195,92,.4); background: rgba(255,195,92,.1); }
.countdown-warning.urgent { border-color: rgba(255,126,119,.5); background: rgba(255,126,119,.12); }
.end-panel { display: grid; gap: 14px; margin-top: 10px; padding: 22px; border: 1px solid rgba(255,126,119,.25); border-radius: 17px; background: rgba(255,126,119,.05); }
.end-panel h3, .end-state h3 { margin: 0; font-size: 21px; }
.end-panel > p:not(.eyebrow), .end-state p { margin: 0; color: var(--muted); line-height: 1.6; }
.end-confirmation { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-2); cursor: pointer; }
.end-confirmation input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent); }
.end-confirmation span { display: grid; gap: 5px; }
.end-confirmation strong { color: var(--text); }
.end-confirmation small { color: var(--muted); line-height: 1.5; }
.end-state { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); }
.end-state .eyebrow { margin-bottom: 6px; }
.end-state .button { margin-top: 16px; }
.end-state-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 21px; font-weight: 800; }
.end-state.pending { border-color: rgba(126,205,245,.3); }
.end-state.success { border-color: rgba(185,243,106,.3); }
.end-state.success .end-state-icon { color: var(--accent-ink); background: var(--accent); }
.end-state.failed { border-color: rgba(255,126,119,.35); }
.end-state.failed .end-state-icon { color: #ffaaa5; background: rgba(255,126,119,.15); }
.refund-card { margin-top: 18px; padding: 24px; border: 1px solid rgba(126,205,245,.28); border-radius: var(--radius); background: rgba(126,205,245,.06); }
.refund-card h2 { margin: 0 0 6px; }
.refund-state { color: var(--info); font-size: 13px; }
.auth-card { width: min(440px, 100%); margin: 7vh auto; padding: 30px; }
.auth-card h1 { margin: 0 0 8px; font-size: 32px; }
.auth-card > p { color: var(--muted); line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 30px); opacity: 0; max-width: min(440px, calc(100% - 32px)); padding: 13px 17px; border: 1px solid var(--line-strong); border-radius: 13px; background: #1d2c27; box-shadow: var(--shadow); transition: .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confirm-dialog { max-width: 480px; width: calc(100% - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.confirm-dialog form { padding: 28px; }
.confirm-dialog h2 { margin: 0 0 10px; }
.confirm-dialog form > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 24px; }

@media (max-width: 840px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .header-note { display: none; }
}

@media (max-width: 560px) {
  .site-header { height: 62px; padding: 0 18px; }
  #app { padding: 32px 16px 72px; }
  .hero { gap: 20px; margin-bottom: 22px; }
  .hero-copy { font-size: 15px; margin-top: 17px; }
  .panel-section, .price-box { padding: 21px; }
  .choice label { min-height: 98px; padding: 15px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .price-total strong { font-size: 28px; }
  .reservation-top { align-items: flex-start; flex-direction: column; }
  .status-hero { padding: 22px; }
  .time-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .button-row, .dialog-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
