/* Selflogue — /try/ colour season test. Extends guide.css. */

[hidden] { display: none !important; }

.try { max-width: 680px; }

.try__panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.try__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.5rem 1rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: var(--text-soft);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.try__drop:hover, .try__drop:focus-visible, .try__drop.is-over {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.try__drop svg { color: var(--accent); margin-bottom: 0.4rem; }
.try__drop strong { color: #fff; font-size: 1.0625rem; }
.try__drop span { font-size: 0.875rem; color: var(--text-muted); }

.try__preview { display: flex; justify-content: center; }
.try__preview img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  display: block;
}

.try__status {
  margin: 1rem 0 0;
  color: var(--accent);
  text-align: center;
  font-weight: 500;
}
.try__status::before {
  content: '';
  display: inline-block;
  width: 0.8em; height: 0.8em;
  margin-right: 0.5em;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: try-spin 0.8s linear infinite;
}
@keyframes try-spin { to { transform: rotate(360deg); } }

.try__error {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: rgba(255, 99, 99, 0.12);
  border: 1px solid rgba(255, 99, 99, 0.35);
  border-radius: 10px;
  color: #ffb3b3;
  font-size: 0.9375rem;
}

.try__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1 1 auto;
}
.btn--primary { background: #fff; color: #0d0d0d; }
.btn--primary:hover:not(:disabled) { background: #e6e6e6; }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text-soft); border-color: var(--border); }
.btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

.try__tips {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.try__tips li { margin-bottom: 0.25rem; }

/* ---------- result: mirrors the app's "Your color" screen ---------- */

.yc {
  margin: 2.5rem calc(-1 * 1.25rem) 0;
  padding: 1.5rem 1rem 2rem;
  background: linear-gradient(180deg, #5D737B 0%, #738891 50%, #97AAB4 100%);
  border-radius: 0;
}
.yc__phone {
  max-width: 390px;
  margin: 0 auto;
  padding: 16px;
  background: #2f3a3f;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.yc__topbar { text-align: center; padding: 6px 0 18px; }
.yc__title { color: #D0DEE2; font-size: 20px; font-weight: 500; }

.yc__label {
  margin: 26px 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
}
.yc__label--tight { margin-top: 18px; }

.yc__card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(93, 115, 123, 0.35);
  border: 1px solid #8199A5;
}
.yc__card--hero { padding-top: 18px; }

.yc__profile { display: flex; justify-content: center; }
.yc__profile img {
  width: 127px; height: 128px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.yc__chroma { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yc__chroma-col {
  padding: 12px;
  border-radius: 12px;
  background: rgba(35, 56, 61, 0.3);
  border: 1px solid #8199A5;
}
.yc__field { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.85); margin-bottom: 8px; }
.yc__pill {
  display: flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 8px;
  border-radius: 6px;
  background: rgba(177, 203, 217, 0.3);
  color: #fff; font-size: 12px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yc__body { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.yc__body strong { color: #fff; font-weight: 600; }

.yc__measured { margin: 0 0 12px; font-size: 11px; color: rgba(255, 255, 255, 0.9); }
.yc__measured strong { font-weight: 600; color: #fff; }
.yc__bar { position: relative; height: 11px; }
.yc__bar img { display: block; width: 100%; height: 11px; border-radius: 6px; }
.yc__marker {
  position: absolute; top: -3px;
  width: 3px; height: 17px; margin-left: -1.5px;
  background: #fff; border-radius: 2px;
}
.yc__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: rgba(255, 255, 255, 0.8); }

.yc__swatches { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.yc__swatches li { flex: 1 1 0; min-width: 0; text-align: center; }
.yc__swatches--avoid li { flex: 0 0 calc((100% - 32px) / 5); }
.yc__swatch { display: block; aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); }
.yc__swatch-name { display: block; margin-top: 6px; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, 0.85); }

.yc__ptitle { margin: 16px 0 4px; font-size: 11px; font-weight: 500; color: #fff; }
.yc__para { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }

.yc__locked { position: relative; margin-top: 4px; }
.yc__locked-inner { filter: blur(6px); pointer-events: none; user-select: none; }
.yc__locked-cta {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  background: rgba(47, 58, 63, 0.55);
  border-radius: 12px;
}
.yc__locked-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #fff; }
.yc__locked-text { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); max-width: 300px; }
.yc .badges img { height: 36px; }

.try__how { margin-top: 3rem; }

@media (min-width: 560px) {
  .try__panel { padding: 1.75rem; }
  .yc { margin-left: 0; margin-right: 0; border-radius: 20px; padding: 2rem 1.5rem 2.5rem; }
  .btn { flex: 0 1 auto; }
}
