.kkcg-content-preview {
  position: relative;
}

.kkcg-member-section {
  display: block;
}

.kkcg-manual-gate {
  position: relative;
}

.kkcg-manual-gate .kkcg-gate {
  margin-top: clamp(26px, 5vw, 52px);
}

.kkcg-content-preview::after {
  content: "";
  display: block;
  width: min(100%, 420px);
  height: 1px;
  margin: clamp(24px, 5vw, 46px) auto 0;
  background: linear-gradient(90deg, transparent, rgba(224, 63, 105, 0.75), transparent);
}

.kkcg-gate {
  position: relative;
  overflow: hidden;
  margin: clamp(28px, 6vw, 58px) 0;
  padding: 1px;
  color: #f8eef3;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(224, 63, 105, 0.42), rgba(92, 62, 156, 0.34)),
    rgba(10, 7, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), 0 0 44px rgba(124, 46, 96, 0.18);
  isolation: isolate;
}

.kkcg-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(160deg, rgba(42, 9, 24, 0.9), rgba(11, 8, 13, 0.98) 58%, rgba(26, 19, 36, 0.96));
}

.kkcg-gate::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.kkcg-gate__inner {
  padding: clamp(24px, 5vw, 46px);
}

.kkcg-gate__kicker {
  margin: 0 0 10px;
  color: #e9b8c8;
  font-family: var(--kk-sans, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kkcg-gate__title {
  margin: 0;
  color: #fff8fb;
  font-family: var(--kk-serif, "Hiragino Mincho ProN", "Yu Mincho", serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.kkcg-gate__copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 244, 249, 0.82);
  font-family: var(--kk-serif, "Hiragino Mincho ProN", "Yu Mincho", serif);
  font-size: 0.96rem;
  line-height: 1.95;
}

.kkcg-form {
  margin-top: clamp(18px, 4vw, 30px);
}

.kkcg-form__row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.kkcg-form__email {
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 0 16px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.kkcg-form__email::placeholder {
  color: rgba(255, 239, 246, 0.55);
}

.kkcg-form__email:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 216, 226, 0.72);
  box-shadow: 0 0 0 3px rgba(224, 63, 105, 0.18);
}

.kkcg-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  overflow: hidden;
  isolation: isolate;
  appearance: none;
  border: 1px solid rgba(176, 38, 255, 0.48);
  border-radius: 0;
  padding: 0 26px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent),
    rgba(5, 2, 10, 0.68);
  font-family: var(--kk-serif, "Hiragino Mincho ProN", "Yu Mincho", serif);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 0 18px rgba(255, 244, 249, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 16px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: border-color 0.45s ease, box-shadow 0.45s ease, color 0.45s ease, background-color 0.45s ease, transform 0.45s ease;
}

.kkcg-form__submit::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(100deg, transparent 0%, rgba(176, 38, 255, 0.28) 38%, rgba(255, 216, 226, 0.2) 50%, rgba(217, 70, 239, 0.2) 62%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.kkcg-form__submit::after {
  position: absolute;
  inset: 3px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.kk-native-cursor .kkcg-form__submit,
.kk-native-cursor .kkcg-form__email,
.kk-native-cursor .kkcg-form__consent,
.kk-native-cursor .kkcg-form__consent input {
  cursor: auto;
}

.kkcg-form__submit:hover,
.kkcg-form__submit:focus-visible {
  color: #fff8fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(176, 38, 255, 0.14);
  border-color: rgba(236, 182, 206, 0.7);
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 28px rgba(176, 38, 255, 0.22);
}

.kkcg-form__submit:hover::before,
.kkcg-form__submit:focus-visible::before {
  transform: translateX(120%) skewX(-18deg);
}

.kkcg-form__submit:disabled {
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.kkcg-form__consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  color: rgba(255, 244, 249, 0.78);
  font-size: 0.84rem;
  line-height: 1.7;
}

.kkcg-form__consent input {
  width: 16px;
  height: 16px;
  margin: 0.28em 0 0;
  accent-color: #d85b83;
}

.kkcg-form__message {
  min-height: 1.6em;
  margin: 12px 0 0;
  color: #ffe7ef;
  font-size: 0.88rem;
  line-height: 1.6;
}

.kkcg-form__message[data-state="success"] {
  color: #ffeaf1;
}

.kkcg-form__message[data-state="error"] {
  color: #ffb4c2;
}

.kkcg-form__message[data-state="preview"] {
  color: #ffdbe7;
}

.kkcg-form__website {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.kkcg-audio-gate {
  position: relative;
  margin: clamp(22px, 5vw, 42px) 0;
}

.kkcg-audio-gate__player {
  position: relative;
}

.kkcg-audio-gate__hint {
  margin: 10px 0 0;
  color: rgba(255, 244, 249, 0.66);
  font-family: var(--kk-serif, "Hiragino Mincho ProN", "Yu Mincho", serif);
  font-size: 0.84rem;
  line-height: 1.7;
}

.kkcg-audio-gate.is-locked .kkcg-audio-gate__player {
  filter: saturate(0.82) brightness(0.72);
}

.kkcg-audio-gate__panel[hidden] {
  display: none;
}

.kkcg-audio-gate__panel .kkcg-gate {
  margin-top: 16px;
  margin-bottom: 0;
}

.kkcg-gate--audio .kkcg-gate__inner {
  padding: clamp(22px, 4vw, 36px);
}

.kkcg-audio-admin-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 0;
  padding: 12px 14px;
  color: rgba(255, 244, 249, 0.74);
  background:
    linear-gradient(135deg, rgba(176, 38, 255, 0.12), rgba(92, 25, 52, 0.28)),
    rgba(7, 3, 12, 0.7);
  border: 1px solid rgba(255, 214, 228, 0.2);
  border-radius: 0;
  font-family: var(--kk-serif, "Hiragino Mincho ProN", "Yu Mincho", serif);
  font-size: 0.8rem;
  line-height: 1.7;
}

.kkcg-audio-admin-preview a {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 244, 249, 0.14), rgba(176, 38, 255, 0.16));
  border: 1px solid rgba(255, 244, 249, 0.36);
  border-radius: 0;
  font-family: var(--kk-sans, system-ui, sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.kkcg-audio-admin-preview a:hover,
.kkcg-audio-admin-preview a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 244, 249, 0.2), rgba(176, 38, 255, 0.26));
  border-color: rgba(255, 244, 249, 0.7);
  transform: translateY(-1px);
}

.kkcg-resume-note {
  margin: 14px 0 0;
  padding: 12px 16px;
  color: #fff4f8;
  background: rgba(92, 25, 52, 0.42);
  border: 1px solid rgba(255, 214, 228, 0.2);
  border-radius: 0;
  font-family: var(--kk-serif, "Hiragino Mincho ProN", "Yu Mincho", serif);
  font-size: 0.9rem;
  line-height: 1.7;
}

.kkcg-admin-preview-notice {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 99999;
  display: grid;
  gap: 6px;
  width: min(360px, calc(100vw - 28px));
  padding: 16px 18px;
  color: #fff4f8;
  background:
    linear-gradient(135deg, rgba(176, 38, 255, 0.24), rgba(92, 25, 52, 0.62)),
    rgba(7, 3, 12, 0.94);
  border: 1px solid rgba(255, 214, 228, 0.24);
  border-radius: 0;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
  font-family: var(--kk-serif, "Hiragino Mincho ProN", "Yu Mincho", serif);
  line-height: 1.7;
}

.kkcg-admin-preview-notice strong {
  color: #fff;
  font-size: 0.96rem;
}

.kkcg-admin-preview-notice span {
  color: rgba(255, 244, 249, 0.78);
  font-size: 0.82rem;
}

.kkcg-admin-preview-notice a {
  justify-self: start;
  margin-top: 4px;
  color: #fff;
  font-family: var(--kk-sans, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 244, 249, 0.58);
}

@media (max-width: 720px) {
  .kkcg-audio-admin-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .kkcg-audio-admin-preview a {
    width: 100%;
  }

  .kkcg-form__row {
    grid-template-columns: 1fr;
  }

  .kkcg-form__submit {
    width: 100%;
    min-height: 50px;
  }

  .kkcg-gate__inner {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kkcg-form__email,
  .kkcg-form__submit {
    transition: none;
  }

  .kkcg-form__submit:hover,
  .kkcg-form__submit:focus-visible {
    transform: none;
  }
}
