/* 60초 경험 재료 실험실 · 서비스 전용 레이어 */

.xp {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  padding: 24px 0 72px;
  color: var(--ev-text);
}

.xp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--ev-line);
}

.xp-header a,
.xp-actions a {
  color: var(--ev-accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.xp-intro {
  max-width: 820px;
  padding: clamp(54px, 8vw, 96px) 0 clamp(38px, 6vw, 64px);
}

.xp-tag {
  margin: 0 0 16px;
  color: var(--ev-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.xp-intro h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(2.55rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.xp-intro > p:not(.xp-tag):not(.xp-muted) {
  max-width: 680px;
  margin: 0;
  color: var(--ev-text-2);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.xp-muted {
  color: var(--ev-text-3);
  font-size: .9rem;
  line-height: 1.7;
}

.xp-intro .xp-muted {
  max-width: 760px;
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--ev-accent);
}

.xp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.xp-panel,
.xp-chapter {
  border: 1px solid var(--ev-line);
  background: var(--ev-surface-2);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--ev-text) 8%, transparent);
}

.xp-panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 24px;
}

.xp-panel h2,
.xp-chapter h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.xp-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.xp-form {
  display: grid;
  gap: 10px;
}

.xp-form > label,
.xp-form legend {
  color: var(--ev-text-2);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.xp-form select {
  width: 100%;
  min-height: 50px;
  margin-bottom: 10px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--ev-line-strong);
  border-radius: 12px;
  background: var(--ev-surface-3);
  color: var(--ev-text);
  font: inherit;
}

.xp-form fieldset {
  display: grid;
  gap: 10px;
  margin: 10px 0 8px;
  padding: 20px;
  border: 1px solid var(--ev-line);
  border-radius: 16px;
}

.xp-form legend { padding-inline: 6px; }

.xp-form fieldset label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  line-height: 1.55;
}

.xp-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ev-accent);
}

.xp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.xp button,
.xp-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ev-accent);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.xp button[type="submit"],
.xp #print {
  background: var(--ev-accent);
  color: var(--ev-deep);
}

.xp button[type="reset"],
.xp #retry,
.xp-actions a {
  background: transparent;
  color: var(--ev-accent);
}

.xp button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.xp-result {
  display: grid;
  align-content: center;
  overflow: hidden;
  border-color: var(--ev-accent);
  background: linear-gradient(150deg, var(--ev-surface-2), var(--ev-surface-3));
}

.xp-result p { line-height: 1.75; }

.xp-result h3,
.xp-chapter h3 {
  margin: 28px 0 8px;
  color: var(--ev-accent);
  font-size: .94rem;
  letter-spacing: .025em;
}

.xp-list,
.xp-plan {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 22px;
}

.xp-list li,
.xp-plan li {
  padding-left: 4px;
  line-height: 1.65;
}

.xp-chapter {
  margin-top: 32px;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 28px;
}

.xp-chapter h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.xp-chapter > p { max-width: 820px; line-height: 1.8; }
.xp-chapter hr { margin: 42px 0; border: 0; border-top: 1px solid var(--ev-line); }

.xp :focus-visible {
  outline: 3px solid var(--ev-accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .xp button:not(:disabled),
  .xp a { transition: transform .18s ease, opacity .18s ease; }
  .xp button:not(:disabled):hover,
  .xp a:hover { transform: translateY(-2px); }
}

@media (max-width: 760px) {
  .xp { width: min(100% - 28px, 1120px); padding-top: 12px; }
  .xp-header { gap: 12px; padding-bottom: 18px; font-size: .9rem; }
  .xp-intro { padding: 42px 0 34px; }
  .xp-intro h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.08; word-break: keep-all; }
  .xp-layout { grid-template-columns: minmax(0, 1fr); }
  .xp-panel { padding: 24px 20px; border-radius: 18px; }
  .xp-chapter { padding: 30px 20px; border-radius: 20px; }
  .xp-actions { align-items: stretch; flex-direction: column; }
  .xp-actions > * { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .xp button, .xp a { transition: none !important; transform: none !important; }
}

@media print {
  .xp { width: 100%; padding: 0; }
  .xp-header,
  .xp-intro,
  .xp-layout,
  .xp-chapter .xp-actions,
  .xp-chapter hr,
  .xp-chapter hr ~ * { display: none !important; }
  .xp-chapter { display: block !important; margin: 0; padding: 0; border: 0; box-shadow: none; }
}
