.threshold-try-page {
  --threshold-color: #d8bd83;
  --threshold-color-soft: rgba(216, 189, 131, 0.25);
  --threshold-color-faint: rgba(216, 189, 131, 0.10);
}

.threshold-try-main {
  position: relative;
  z-index: 1;
}

.threshold-try-hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 66svh;
  margin: 0 auto clamp(64px, 8vw, 118px);
  padding: clamp(44px, 7vw, 90px) 0 clamp(30px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.threshold-try-copy h1 {
  max-width: 800px;
  font-size: clamp(3.55rem, 9.5vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-align: left;
}

.threshold-try-copy .label,
.threshold-try-copy .hero-line,
.threshold-try-copy .hero-copy {
  text-align: left;
}

.threshold-try-copy .hero-copy {
  max-width: 650px;
}

.threshold-try-copy .hero-actions {
  justify-content: flex-start;
}

.threshold-hero-door {
  min-height: 430px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 234, 223, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 215, 178, 0.17), transparent 18rem),
    radial-gradient(circle at 50% 78%, var(--threshold-color-faint), transparent 16rem),
    rgba(255, 255, 255, 0.026);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.door-orb,
.question-orb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.door-orb {
  width: min(360px, 78vw);
}

.door-glow,
.door-ring,
.door-panel,
.door-seam,
.door-ray,
.question-glow,
.question-ring,
.question-door,
.question-light {
  position: absolute;
}

.door-glow {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 50%, rgba(255, 252, 238, 0.92), rgba(232, 215, 178, 0.34) 28%, rgba(123, 88, 62, 0.14) 58%, transparent 76%);
  filter: blur(0.5px);
  animation: threshold-door-breathe 9s ease-in-out infinite;
}

.door-ring {
  width: 76%;
  aspect-ratio: 1;
  border: 2px solid rgba(242, 234, 223, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 52px rgba(232, 215, 178, 0.18);
}

.door-panel {
  width: 9%;
  height: 72%;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(to bottom, rgba(7, 5, 4, 0.94), rgba(22, 17, 12, 0.82), rgba(7, 5, 4, 0.94));
  box-shadow: inset 0 0 14px rgba(232, 215, 178, 0.16);
}

.door-panel.left {
  transform: translateX(-56%);
}

.door-panel.right {
  transform: translateX(56%);
}

.door-seam {
  width: 3.5%;
  height: 70%;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(255, 252, 239, 0.96), rgba(232, 215, 178, 0.74), transparent);
  box-shadow:
    0 0 18px rgba(255, 246, 214, 0.56),
    0 0 44px rgba(232, 215, 178, 0.32);
}

.door-ray {
  width: 128%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, rgba(255, 249, 224, 0.82), transparent);
  opacity: 0.34;
  filter: blur(0.3px);
}

.door-ray.diagonal {
  width: 92%;
  transform: rotate(-24deg) translateX(12%);
  opacity: 0.18;
}

.threshold-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.threshold-map-grid article {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 215, 178, 0.09), transparent 12rem),
    rgba(255, 255, 255, 0.032);
}

.threshold-map-grid span {
  display: block;
  margin-bottom: 18px;
  color: rgba(232, 215, 178, 0.76);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.threshold-instrument {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(242, 234, 223, 0.12);
  border-radius: 40px;
  background:
    radial-gradient(circle at 24% 20%, var(--threshold-color-faint), transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(232, 215, 178, 0.11), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.44);
}

.language-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242, 234, 223, 0.10);
}

.language-strip p {
  margin: 0;
  color: rgba(242, 234, 223, 0.60);
  font-size: 0.92rem;
}

.language-actions {
  display: flex;
  gap: 8px;
}

.lang-button,
.door-button,
.saved-mark button {
  border: 1px solid rgba(242, 234, 223, 0.12);
  color: rgba(242, 234, 223, 0.74);
  font: inherit;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button {
  min-width: 92px;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.lang-button.active,
.door-button.active {
  border-color: color-mix(in srgb, var(--threshold-color), white 18%);
  color: rgba(255, 252, 244, 0.94);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--threshold-color), transparent 75%), rgba(232, 215, 178, 0.09)),
    rgba(255, 255, 255, 0.04);
}

.lang-button:hover,
.door-button:hover,
.saved-mark button:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 215, 178, 0.26);
}

.threshold-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: stretch;
}

.door-panel-card,
.question-panel {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(242, 234, 223, 0.11);
  border-radius: 32px;
  background:
    radial-gradient(circle at 22% 0%, var(--threshold-color-faint), transparent 15rem),
    rgba(11, 7, 7, 0.30);
}

.door-panel-card h2 {
  font-family: var(--body);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.door-choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.door-button {
  position: relative;
  min-height: 78px;
  border-radius: 24px;
  padding: 15px 18px 15px 76px;
  text-align: left;
  overflow: hidden;
}

.door-button::before,
.door-button::after {
  content: "";
  position: absolute;
}

.door-button::before {
  left: 24px;
  top: 18px;
  width: 32px;
  height: 42px;
  border: 2px solid color-mix(in srgb, var(--door-color), white 18%);
  border-bottom-color: rgba(242, 234, 223, 0.18);
  border-radius: 999px 999px 6px 6px;
  opacity: 0.64;
}

.door-button::after {
  left: 39px;
  top: 22px;
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--door-color), white 24%), transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--door-color), transparent 35%);
}

.door-button strong {
  display: block;
  color: rgba(255, 252, 244, 0.92);
  font-size: 1.08rem;
}

.door-button span {
  display: block;
  margin-top: 4px;
  color: rgba(242, 234, 223, 0.55);
}

.question-panel {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.question-panel.is-crossing .question-orb {
  transform: scale(1.035);
}

.question-orb {
  width: min(220px, 70%);
  margin-bottom: 18px;
  transition: transform 900ms ease;
}

.question-glow {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 251, 236, 0.78), var(--threshold-color-soft) 34%, transparent 74%);
  filter: blur(0.5px);
}

.question-ring {
  width: 82%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(242, 234, 223, 0.34);
  border-radius: 50%;
}

.question-door {
  width: 8%;
  height: 70%;
  border-radius: 999px 999px 7px 7px;
  background: rgba(7, 5, 4, 0.82);
  transition: transform 820ms ease;
}

.question-door.left {
  transform: translateX(-48%);
}

.question-door.right {
  transform: translateX(48%);
}

.question-panel.is-crossing .question-door.left {
  transform: translateX(-150%);
}

.question-panel.is-crossing .question-door.right {
  transform: translateX(150%);
}

.question-light {
  width: 5%;
  height: 68%;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(255, 252, 239, 0.98), rgba(232, 215, 178, 0.78), transparent);
  box-shadow:
    0 0 20px rgba(255, 246, 214, 0.62),
    0 0 64px rgba(232, 215, 178, 0.36);
  transition: width 820ms ease, opacity 820ms ease, filter 820ms ease;
}

.question-panel.is-crossing .question-light {
  width: 34%;
  opacity: 0.95;
  filter: blur(0.8px);
}

#question-door-label {
  margin-bottom: 18px;
}

#question-text {
  max-width: 760px;
  color: rgba(255, 252, 244, 0.94);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.02;
  transition: opacity 360ms ease, transform 360ms ease;
}

#question-guidance,
.question-note {
  color: rgba(232, 215, 178, 0.70);
}

.question-panel.is-fading #question-text,
.question-panel.is-fading #question-guidance,
.question-panel.is-fading #question-door-label {
  opacity: 0;
  transform: translateY(8px);
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 14px;
}

.question-note {
  margin: 0;
  font-size: 0.92rem;
}

.saved-mark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.saved-mark,
.empty-marks {
  padding: 22px;
  border: 1px solid rgba(242, 234, 223, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, var(--mark-color, rgba(232, 215, 178, 0.11)), transparent 12rem),
    rgba(255, 255, 255, 0.028);
}

.saved-mark h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.06;
}

.saved-mark p,
.empty-marks p {
  color: rgba(242, 234, 223, 0.58);
}

.saved-mark button {
  border-radius: 999px;
  padding: 10px 14px;
}

@keyframes threshold-door-breathe {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.76;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door-glow {
    animation: none;
  }

  .question-panel *,
  .question-orb {
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 920px) {
  .threshold-try-hero,
  .threshold-workspace {
    grid-template-columns: 1fr;
  }

  .threshold-hero-door {
    min-height: 330px;
  }

  .threshold-map-grid,
  .saved-mark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .threshold-try-hero {
    width: min(100% - 28px, 1120px);
  }

  .threshold-try-copy h1 {
    font-size: clamp(3.2rem, 15vw, 5.4rem);
  }

  .language-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .threshold-map-grid,
  .saved-mark-grid {
    grid-template-columns: 1fr;
  }

  .question-actions {
    display: grid;
    width: 100%;
  }
}
