.ymodal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ymodal.open { opacity: 1; pointer-events: auto; }

.ymodal__card {
  position: relative;
  width: calc(100% - 32px);
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 180, 0.25);
  transform: translateY(20px);
  transition: transform 0.35s ease;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 200, 180, 0.07);
}
.ymodal.open .ymodal__card { transform: translateY(0); }

.ymodal__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(0.9);
}

.ymodal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 10, 6, 0.1)  0%,
    rgba(4, 10, 6, 0.82) 52%,
    rgba(4, 10, 6, 0.97) 100%
  );
}

.ymodal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(180, 220, 200, 0.55);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  padding: 4px 6px;
}
.ymodal__close:hover { color: var(--teal, #00c8b4); }

.ymodal__content {
  position: relative;
  z-index: 2;
  padding: 160px 32px 32px;
}

.ymodal__tag {
  font-family: var(--font-mono, 'Share Tech Mono', monospace);
  font-size: 10px;
  color: var(--teal, #00c8b4);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.ymodal__title {
  font-family: var(--font-hud, 'Orbitron', monospace);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-bright, #e6edf3);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ymodal__sub {
  font-family: var(--font-body, 'Exo 2', sans-serif);
  font-size: 13px;
  color: #8abcaa;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.ymodal__body {
  font-family: var(--font-body, 'Exo 2', sans-serif);
  font-size: 14px;
  line-height: 1.65;
  color: #cce4da;
  margin-bottom: 24px;
}

.ymodal__btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: rgba(0, 200, 180, 0.1);
  border: 1px solid rgba(0, 200, 180, 0.4);
  border-radius: 6px;
  font-family: var(--font-mono, 'Share Tech Mono', monospace);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #40f0e0;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}
.ymodal__btn:hover {
  background: rgba(0, 200, 180, 0.2);
  box-shadow: 0 0 22px rgba(0, 200, 180, 0.18);
}

.ymodal__note {
  font-family: var(--font-mono, 'Share Tech Mono', monospace);
  font-size: 11px;
  color: #6a9a8a;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .ymodal__content { padding: 130px 20px 24px; }
  .ymodal__title { font-size: 22px; }
}
