:root {
  --ys-landing-ink: #24331c;
  --ys-landing-cream: #f4eedc;
  --ys-landing-line: rgba(43, 55, 34, 0.26);
  --ys-landing-serif: "Noto Serif KR", "Cormorant Garamond", serif;
  --ys-landing-sans: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  min-width: 320px;
  background: #172014;
}

body.ys-landing-document {
  margin: 0;
  color: var(--ys-landing-ink);
  background: #172014;
}

body.admin-bar.ys-landing-document .ys-landing-page {
  margin-top: -28px;
}

body.ys-landing-document,
body.ys-landing-document button,
body.ys-landing-document input {
  font-family: var(--ys-landing-sans);
}

.ys-landing-page,
.ys-landing-page *,
.ys-landing-page *::before,
.ys-landing-page *::after {
  box-sizing: border-box;
}

.ys-landing-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ys-landing-ink);
}

.ys-landing-page a {
  color: inherit;
  text-decoration: none;
}

.ys-landing-page img,
.ys-landing-page svg,
.ys-landing-page canvas {
  display: block;
}

.ys-landing-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: var(--ys-landing-background);
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.ys-landing-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 42%, rgba(250, 241, 185, 0.08), transparent 45%),
    linear-gradient(90deg, rgba(12, 22, 12, 0.16), transparent 25%, transparent 75%, rgba(12, 22, 12, 0.12));
}

.ys-glass-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #263427;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.34) 45%, rgba(238, 232, 214, 0.42) 100%);
  box-shadow:
    0 24px 70px rgba(38, 48, 35, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.ys-glass-panel::before,
.ys-glass-panel::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.ys-glass-panel::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 28%, transparent 56%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 38%, rgba(255, 255, 255, 0.14) 72%, transparent);
  opacity: 0.75;
}

.ys-glass-panel::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.22),
    inset 0 0 80px rgba(255, 255, 255, 0.08);
}

.ys-panel-dark {
  color: #f5f1e7;
  border-color: rgba(245, 239, 210, 0.22);
  background: linear-gradient(135deg, rgba(18, 27, 18, 0.88) 0%, rgba(31, 45, 28, 0.76) 48%, rgba(63, 70, 42, 0.58) 100%);
  box-shadow:
    0 26px 72px rgba(8, 14, 8, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.ys-panel-dark::before {
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045) 32%, transparent 60%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), transparent 42%, rgba(255, 255, 255, 0.035) 76%, transparent);
  opacity: 0.72;
}

.ys-panel-dark::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: none;
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.07),
    inset 0 0 80px rgba(255, 255, 255, 0.03);
}

.ys-glass-panel h1,
.ys-glass-panel h2,
.ys-glass-panel h3,
.ys-glass-panel h4,
.ys-glass-panel p,
.ys-glass-panel span {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.18);
}

.ys-panel-dark h1,
.ys-panel-dark h2,
.ys-panel-dark h3,
.ys-panel-dark h4,
.ys-panel-dark p,
.ys-panel-dark span {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.18);
}

.ys-landing-brandbar {
  display: grid;
  min-height: 75px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(102deg, rgba(55, 70, 41, 0.47), rgba(215, 202, 113, 0.38), rgba(90, 99, 52, 0.42));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.ys-logo-glass {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(36, 51, 28, 0.22);
  box-shadow:
    0 12px 34px rgba(20, 30, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.ys-logo-glass::before,
.ys-logo-glass::after {
  display: none;
}

.ys-logo-glass img,
.ys-logo-glass svg {
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 14px rgba(36, 51, 28, 0.28));
}

.ys-landing-brandbar a,
.ys-rs-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ys-landing-brandbar img,
.ys-rs-logo img {
  width: 207px;
  height: auto;
}

.ys-card-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.ys-title-rule {
  display: block;
  width: 42px;
  height: 1px;
  margin: 24px auto;
  background: currentColor;
  opacity: 0.72;
}

.ys-landing-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  font-family: var(--ys-landing-sans);
}

.ys-landing-button > span,
.ys-landing-button b {
  position: relative;
  z-index: 4;
}

.ys-landing-button > span {
  display: inline-flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), letter-spacing 0.35s ease, color 0.32s ease;
}

.ys-landing-button b {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.32s ease, color 0.32s ease, opacity 0.35s ease;
}

.ys-landing-button-dark {
  min-width: 190px;
  padding: 15px 28px;
  color: #f8f4ea !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 52, 36, 0.92), rgba(55, 78, 54, 0.82));
  box-shadow:
    0 12px 30px rgba(30, 45, 32, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background 0.35s ease;
}

.ys-landing-button-dark b {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 1.05em;
  opacity: 0.82;
}

.ys-landing-button-dark::before {
  position: absolute;
  z-index: 1;
  top: -40%;
  left: -70%;
  width: 48%;
  height: 180%;
  content: "";
  opacity: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.08) 75%, transparent 100%);
  transform: translateX(0) skewX(-22deg);
  transition: transform 0.75s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
}

.ys-landing-button-dark::after {
  position: absolute;
  z-index: 0;
  inset: -2px;
  content: "";
  opacity: 0.45;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.28), transparent 36%),
    radial-gradient(circle at 80% 80%, rgba(186, 205, 143, 0.18), transparent 42%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ys-landing-button-light {
  min-width: 230px;
  gap: 14px;
  padding: 20px 30px;
  color: #26331f !important;
  border: 1px solid rgba(245, 239, 219, 0.95);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 239, 219, 0.92), rgba(223, 208, 171, 0.72));
  box-shadow:
    0 12px 30px rgba(30, 45, 32, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), border-color 0.32s ease, box-shadow 0.32s ease;
}

.ys-landing-button-light b {
  color: #f5efdb;
  background: #26331f;
}

.ys-landing-button-light::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(36, 51, 28, 0.92), rgba(54, 70, 42, 0.78));
  transform: translateY(105%);
  transition: transform 0.38s cubic-bezier(.2,.8,.2,1);
}

.ys-landing-button-light::after {
  position: absolute;
  z-index: 2;
  top: -45%;
  left: -55%;
  width: 42%;
  height: 190%;
  content: "";
  opacity: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.1) 28%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.1) 72%, transparent 100%);
  transform: translateX(0) skewX(-22deg);
  transition: transform 0.72s cubic-bezier(.2,.8,.2,1), opacity 0.22s ease;
}

.ys-landing-button-dark:hover,
.ys-landing-button-dark:focus-visible {
  color: #f8f4ea !important;
  background: linear-gradient(135deg, rgba(43, 65, 45, 0.96), rgba(73, 97, 67, 0.88));
  box-shadow:
    0 22px 48px rgba(30, 45, 32, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16);
  transform: translateY(-3px);
}

.ys-landing-button-dark:hover::before,
.ys-landing-button-dark:focus-visible::before {
  opacity: 1;
  transform: translateX(420%) skewX(-22deg);
}

.ys-landing-button-dark:hover::after,
.ys-landing-button-dark:focus-visible::after {
  opacity: 0.72;
  transform: scale(1.08);
}

.ys-landing-button-dark:hover > span,
.ys-landing-button-dark:focus-visible > span {
  letter-spacing: 0.02em;
  transform: translateX(-2px);
}

.ys-landing-button-dark:hover b,
.ys-landing-button-dark:focus-visible b {
  opacity: 1;
  transform: translateX(8px);
}

.ys-landing-button-light:hover,
.ys-landing-button-light:focus-visible {
  color: #f5efdb !important;
  border-color: rgba(245, 239, 219, 0.62);
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.ys-landing-button-light:hover::before,
.ys-landing-button-light:focus-visible::before {
  transform: translateY(0);
}

.ys-landing-button-light:hover::after,
.ys-landing-button-light:focus-visible::after {
  opacity: 1;
  transform: translateX(430%) skewX(-22deg);
}

.ys-landing-button-light:hover > span,
.ys-landing-button-light:focus-visible > span {
  color: #f5efdb;
  transform: translateX(2px);
}

.ys-landing-button-light:hover b,
.ys-landing-button-light:focus-visible b {
  color: #26331f;
  background: rgba(245, 239, 219, 0.92);
  transform: translateX(7px);
}

.ys-landing-button-dark:active {
  transform: translateY(-1px) scale(0.985);
}

.ys-landing-button-light:active {
  transform: translateY(0) scale(0.985);
}

.ys-network-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.66;
  pointer-events: none;
}

.ys-landing-skip {
  position: fixed;
  z-index: 100001;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 8px;
  background: #24331c;
  transform: translateY(-150%);
}

.ys-landing-skip:focus {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .ys-glass-panel {
    border-radius: 22px;
    box-shadow:
      0 16px 42px rgba(38, 48, 35, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
  }

  .ys-landing-brandbar {
    min-height: 48px;
    border-radius: 17px;
  }

  .ys-landing-brandbar img,
  .ys-rs-logo img {
    width: 150px;
  }

  .ys-landing-button {
    font-size: 15px;
  }

  .ys-landing-button-light {
    min-width: auto;
    padding: 10px 20px;
  }
}

@media (max-width: 782px) {
  body.admin-bar.ys-landing-document .ys-landing-page {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ys-landing-page *,
  .ys-landing-page *::before,
  .ys-landing-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
