/* Preserve the main layout while giving components restrained Jeongsaju styling. */
body.match-mode {
  background: #f6f2f0;
  color: #352c31;
}
body.match-mode #app {
  background: #fff;
}
.match-page {
  background:
    radial-gradient(ellipse 80% 360px at 35% 0, #f7e9edaa, transparent),
    radial-gradient(ellipse 80% 300px at 100% 0, #fcf2e1aa, transparent), #fff;
  color: #352c31;
}
.match-top > button {
  color: #75646c;
}
.match-field input:not([type="checkbox"]),
.match-birth,
.unknown-box,
.match-gender button,
.relation-list button,
.mood-list button {
  border-color: #e9e0e3;
}
.calendar-toggle {
  color: #775a65;
  border-color: #eee5e8;
}
.unknown-box input {
  accent-color: #ad6578;
}
.match-gender button[aria-pressed="true"] {
  background: #f5e9ee;
  border-color: #e3cbd5;
  color: #945069;
}
.relation-list button[aria-pressed="true"],
.mood-list button[aria-pressed="true"] {
  background: #fcf2f5;
  border-color: #b9758c;
  box-shadow: 0 0 0 1px #b9758c25;
}
.relation-icon,
.mood-symbol {
  color: #b16a83;
}
.match-primary {
  background: #49353f;
  border-radius: 10px;
}
.match-primary:disabled {
  background: #f1edef;
  color: #aaa0a6;
}
.match-score {
  background: linear-gradient(120deg, #faedf3, #fff7e8 55%, #fff);
}
.match-person {
  border-color: #eee4e9;
}
.match-context > div {
  border-color: #eee5e9;
}
.match-offer {
  background: #fbf8f9;
}
.match-offer .match-primary,
.report-locked .match-primary,
.match-sticky .match-primary,
.result-bottom .match-primary {
  background: #ad6578;
}
.match-sticky {
  border-color: #f0e4e9;
}
.match-sticky button {
  box-shadow: 0 4px 14px #ad657820;
}
.reveal-orb {
  background: radial-gradient(circle at 30% 25%, #dfb5c8, #a76b88 62%, #68425b);
  box-shadow:
    0 0 55px #ecd6e199,
    inset 0 0 25px #fff3;
}
.reveal-orb:after {
  background: linear-gradient(#ad7892, #dfbfd1);
}
.reveal-touch {
  color: #ad718b;
}
.checkout-product {
  border-color: #ad6578;
}
.checkout-product > span:first-child,
.match-checkout dd {
  color: #ad6578;
}
/* Keep the flow and layout, with restrained Jeongsaju component styling. */
.match-question {
  padding-left: 11px;
  border-left: 3px solid #b9798e;
  line-height: 1.5;
}
.match-field > label,
.match-gender legend {
  color: #6f5d67;
  font-size: 12px;
  margin-bottom: 9px;
}
.match-field input:not([type="checkbox"]) {
  height: 54px;
  border-radius: 12px;
  background: #fffcfd;
  box-shadow: none;
  padding: 0 14px;
  border-color: #e6d9df;
}
.match-birth {
  border-radius: 12px;
  background: #fffcfd;
  box-shadow: none;
}
.match-birth input:not([type="checkbox"]) {
  border: 0;
  border-radius: 0;
  background: none;
  padding-left: 7px;
}
.calendar-toggle {
  border: 0;
  border-radius: 8px;
  background: #f5e9ef;
  height: 34px;
  min-width: 70px;
  margin-left: 8px;
  color: #9b5f76;
  gap: 6px;
}
.calendar-toggle span {
  font-size: 18px;
}
.unknown-box {
  border-radius: 12px;
  background: #fffcfd;
  min-height: 54px;
  border-color: #e6d9df;
}
.match-gender > div {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f4edf1;
  border: 1px solid #eee2e9;
}
.match-gender button {
  flex: 1;
  height: 40px;
  border: 0;
  background: none;
  border-radius: 9px;
  box-shadow: none;
  color: #9b8590;
}
.match-gender button[aria-pressed="true"] {
  background: #fff;
  color: #9c5e76;
  box-shadow: 0 1px 5px #62404e12;
}
.match-primary {
  height: 52px;
  border-radius: 14px;
  position: relative;
  background: #a65e76;
  font-weight: 650;
}
.match-primary:disabled {
  background: #f1e9ed;
  color: #b4a1ab;
}
.input-page .match-primary,
.match-page:not(.result-page):not(.reveal-page) > .match-primary {
  padding-left: 36px;
  padding-right: 36px;
}
.input-page .match-primary:after,
.match-page:not(.result-page):not(.reveal-page) > .match-primary:after {
  content: "→";
  position: absolute;
  right: 18px;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.8;
}
.relation-list {
  gap: 11px;
  margin-top: 24px;
}
.relation-list button,
.mood-list button {
  border-radius: 14px;
  min-height: 64px;
  padding: 12px 14px;
  gap: 12px;
  border-color: #e8dce3;
  background: #fff;
  box-shadow: none;
}
.relation-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8eef3;
  font-size: 22px;
  flex-shrink: 0;
  color: #ae6c88;
}
.relation-list button:after,
.mood-list button:after {
  content: "";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #dccad4;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.relation-list button[aria-pressed="true"],
.mood-list button[aria-pressed="true"] {
  background: #fcf6f9;
  border-color: #bc819a;
  box-shadow: none;
}
.relation-list button[aria-pressed="true"]:after,
.mood-list button[aria-pressed="true"]:after {
  content: "✓";
  background: #a65e76;
  border-color: #a65e76;
  color: #fff;
  font-size: 11px;
}
.mood-list button {
  justify-content: space-between;
  font-size: 14px;
}
.match-person {
  border-radius: 16px;
  box-shadow: none;
  border-color: #e5d7df;
}
.person-art {
  margin: 10px 10px 0;
  border-radius: 9px;
  height: 145px;
}
.match-person h3 {
  margin-top: 16px;
}
.score-categories {
  gap: 8px;
}
.score-categories > div {
  background: #fcf6f9;
  border-radius: 10px;
  padding: 14px 3px;
  border: 1px solid #f2e8ee;
}
.score-categories strong {
  font-size: 19px;
  margin-bottom: 8px;
}
.score-categories span {
  font-size: 11px;
}
.match-context > div {
  border-radius: 14px;
}
.report-locked {
  border-radius: 14px;
}
.match-sticky button {
  border-radius: 14px;
  font-size: 15px;
  box-shadow: none;
}
.checkout-product {
  border-width: 1px;
  border-left-width: 4px;
  border-radius: 14px;
}
.match-checkout {
  border-radius: 22px 22px 0 0;
}
.match-offer .match-primary,
.report-locked .match-primary,
.match-sticky .match-primary,
.result-bottom .match-primary {
  background: #a65e76;
}
@media (max-width: 350px) {
  .relation-list button,
  .mood-list button {
    font-size: 12px;
    gap: 9px;
    padding: 12px;
  }
  .relation-icon {
    width: 29px;
    height: 31px;
    font-size: 20px;
  }
  .person-art {
    margin: 8px 8px 0;
    height: 123px;
  }
  .calendar-toggle {
    min-width: 62px;
    margin-left: 6px;
  }
  .match-sticky button {
    font-size: 14px;
  }
}
/* Compact calendar tabs and one unified time field. */
.input-page .match-birth {
  border: 0;
  background: none;
  gap: 10px;
  border-radius: 0;
  overflow: visible;
}
.calendar-tabs {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 3px;
  border: 1px solid #e8dce3;
  border-radius: 12px;
  background: #f4edf1;
  padding: 5px;
  flex-shrink: 0;
}
.calendar-tabs button {
  min-width: 36px;
  height: 40px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 12px;
  color: #a38b97;
  white-space: nowrap;
}
.calendar-tabs button[aria-pressed="true"] {
  background: #fff;
  color: #9b5e76;
  font-weight: 650;
  box-shadow: 0 1px 4px #76506612;
}
.input-page .match-birth input[data-field] {
  border: 1px solid #e6d9df;
  background: #fffcfd;
  border-radius: 12px;
  height: 54px;
  padding: 0 12px;
}
.input-page .match-time {
  gap: 10px;
}
.input-page .hour-minute {
  height: 54px;
  gap: 0;
  border: 1px solid #e6d9df;
  border-radius: 12px;
  background: #fffcfd;
  overflow: hidden;
}
.input-page .hour-minute input[data-time] {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  height: 52px;
  text-align: center;
  padding: 0 8px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  flex: 1;
  width: 0;
}
.time-separator {
  font-size: 17px;
  color: #b99fac;
  flex-shrink: 0;
  padding: 0 3px;
}
.input-page .hour-minute[aria-disabled="true"] {
  background: #f4f0f2;
  opacity: 0.55;
}
.input-page .unknown-box {
  width: 91px;
  gap: 7px;
  min-height: 54px;
  font-size: 11px;
  flex-shrink: 0;
  background: #fff;
}
.input-page .unknown-box:has(input:checked) {
  border-color: #bc819a;
  background: #fcf2f7;
  color: #9b5e76;
}
@media (max-width: 350px) {
  .input-page .match-birth {
    gap: 8px;
  }
  .calendar-tabs {
    padding: 4px;
    gap: 2px;
  }
  .calendar-tabs button {
    min-width: 33px;
    padding: 0 5px;
    font-size: 11px;
  }
  .input-page .match-birth input[data-field] {
    padding: 0 9px;
    font-size: 13px;
  }
  .input-page .match-time {
    gap: 8px;
  }
  .input-page .unknown-box {
    width: 85px;
  }
}

/* A single focus ring belongs to the whole time control. */
.input-page .hour-minute:focus-within {
  border-color: #bc819a;
  box-shadow: 0 0 0 3px #bc819a20;
}
.input-page .hour-minute input[data-time]:focus,
.input-page .hour-minute input[data-time]:focus-visible {
  outline: none;
  box-shadow: none;
}
.payment-sheet.match-checkout {
  padding: 30px 22px max(22px, env(safe-area-inset-bottom));
  background: #252025;
  color: #fff8fc;
  border-radius: 26px 26px 0 0;
  max-height: 92dvh;
}
.payment-sheet h2 {
  margin: 0;
  padding-right: 28px;
  font-size: 22px;
  line-height: 1.5;
}
.payment-sheet .checkout-close {
  color: #bdacb7;
}
.payment-sheet .payment-for {
  margin: 10px 0 24px !important;
  color: #c6b2be !important;
  font-size: 13px;
}
.payment-product {
  border: 1.5px solid #cf809f;
  border-radius: 18px;
  min-height: 100px;
  padding: 20px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  background: #33232d;
}
.payment-product > strong {
  font-size: 17px;
}
.payment-product .payment-price {
  font-size: 28px;
  white-space: nowrap;
}
.payment-price small {
  font-size: 20px;
  margin-left: 2px;
}
.payment-agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0;
  font-size: 11px;
  line-height: 1.7;
  color: #cdbbc5;
  cursor: pointer;
}
.payment-agreement input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: #c97999;
}
.payment-agreement a {
  color: inherit;
  text-underline-offset: 3px;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.payment-methods button {
  min-height: 58px;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -1px;
  padding: 10px 4px;
}
.pay-kakao {
  background: #fee500;
  color: #171300;
}
.pay-kakao > span {
  font-size: 17px;
}
.pay-naver {
  background: #03c75a;
  color: #05190b;
}
.pay-naver > b {
  font-size: 23px;
}
.pay-toss {
  background: #0064ff;
  color: white;
}
.pay-toss > span {
  font-weight: 450;
}
.payment-methods .pay-card {
  grid-column: 1/-1;
  background: #fff;
  color: #282128;
  font-size: 18px;
  font-weight: 650;
}
.payment-methods button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.payment-secure {
  color: #aa94a1;
  text-align: center;
  margin: 18px 0 0;
  font-size: 10px;
}
.payment-status {
  color: #e5b4ca;
  text-align: center;
  font-size: 12px;
  margin: 12px 0 0;
}
.payment-status:empty,
.payment-sheet .match-error:empty {
  display: none;
}
.payment-sheet .match-error {
  color: #ffbbcd;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.payment-sheet[open] {
  animation: match-sheet-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes match-sheet-in {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 350px) {
  .payment-sheet.match-checkout {
    padding-left: 16px;
    padding-right: 16px;
  }
  .payment-sheet h2 {
    font-size: 19px;
  }
  .payment-methods {
    gap: 7px;
  }
  .payment-methods button {
    font-size: 18px;
  }
  .payment-product .payment-price {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .payment-sheet[open] {
    animation: none;
  }
}

.payment-sheet.match-checkout {
  padding: 26px 22px max(22px, env(safe-area-inset-bottom));
}
.payment-sheet h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.payment-sheet .payment-for {
  margin-bottom: 22px !important;
}
.payment-product {
  min-height: 94px;
  padding: 20px;
  border-radius: 16px;
}
.payment-methods {
  margin-top: 24px;
  gap: 9px;
}
.payment-sheet .payment-legal {
  margin: 20px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.8 !important;
  text-align: center;
  color: #baa6b3 !important;
  word-break: keep-all;
}
.payment-legal a {
  color: inherit;
  text-underline-offset: 3px;
}

.mood-page .mood-title {
  margin: 20px 0 32px;
}
