/* infFITS Style Identity Quiz */
.style-id-open {
  overflow: hidden;
}

.style-id {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.style-id__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.style-id__shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: auto;
  max-height: min(96vh, 96dvh);
  display: flex;
  flex-direction: column;
  padding:
    max(12px, env(safe-area-inset-top))
    14px
    max(14px, env(safe-area-inset-bottom));
}

.style-id__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  background: #0f0f0f;
  color: #f5f5f4;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.style-id__header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px 0;
  background: linear-gradient(180deg, #0f0f0f 68%, rgba(15, 15, 15, 0));
  pointer-events: none;
}

.style-id__close {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.25rem;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease;
}

.style-id__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.style-id__content {
  padding: 0 0 4px;
}

.style-id__panel {
  padding: 4px 22px 32px;
}

.style-id__kicker,
.style-id__result-kicker {
  margin: 0 0 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.style-id__headline {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.style-id__lede {
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.style-id__cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #d8ff94;
  color: #1e1e19;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.style-id__ghost {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.style-id__progress {
  position: relative;
  height: 3px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.style-id__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d8ff94, #fff);
  border-radius: inherit;
  transition: width 0.45s ease;
}

.style-id__progress-text {
  position: absolute;
  top: 10px;
  right: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.style-id__q-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.style-id__q-sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
}

.style-id__vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.style-id__vibe-card {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: #1a1a1a;
  text-align: left;
}

.style-id__vibe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.style-id__vibe-card:hover img {
  transform: scale(1.05);
}

.style-id__vibe-label,
.style-id__vibe-hint {
  position: absolute;
  left: 10px;
  right: 10px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.style-id__vibe-label {
  bottom: 28px;
  font-size: 0.78rem;
  font-weight: 800;
}

.style-id__vibe-hint {
  bottom: 10px;
  font-size: 0.65rem;
  opacity: 0.88;
}

.style-id__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-id__chip {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.style-id__chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.style-id__swipe {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: center;
}

.style-id__swipe-nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.style-id__swipe-card {
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  text-align: center;
}

.style-id__swipe-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.style-id__swipe-card span {
  display: block;
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.style-id__swipe-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.style-id__swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.style-id__swipe-dot--on {
  background: #d8ff94;
  width: 18px;
  border-radius: 999px;
}

.style-id__binary {
  display: grid;
  gap: 10px;
}

.style-id__binary-btn {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.style-id__places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.style-id__place {
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.style-id__panel--calc {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.style-id__calc-ring {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #d8ff94;
  border-radius: 50%;
  animation: style-id-spin 0.9s linear infinite;
}

@keyframes style-id-spin {
  to { transform: rotate(360deg); }
}

.style-id__calc-text {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.style-id__result-code {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #d8ff94;
}

.style-id__result-name {
  margin: 6px 0 4px;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.style-id__result-tag {
  margin: 0 0 16px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.style-id__result-desc p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.style-id__dna {
  margin: 22px 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.style-id__dna h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.style-id__dna-grid {
  display: grid;
  gap: 14px;
}

.style-id__dna-grid h4 {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 800;
}

.style-id__dna-label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.style-id__dna-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.style-id__dna-grid li {
  font-size: 0.82rem;
  padding: 2px 0;
}

.style-id__dna-val {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.style-id__shift-wrap {
  margin-bottom: 18px;
}

.style-id__shift-wrap h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
}

.style-id__shifts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-id__shift {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.style-id__shift--on {
  background: #fff;
  color: #1e1e19;
  border-color: #fff;
}

.style-id__daily {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(216, 255, 148, 0.08);
  border: 1px solid rgba(216, 255, 148, 0.2);
}

.style-id__daily h3 {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 255, 148, 0.85);
}

.style-id__daily-label {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.style-id__daily-desc {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.style-id__share-card {
  margin-bottom: 20px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, #2a2834 0%, #121218 55%, #1e2420 100%);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.style-id__share-kicker {
  margin: 0 0 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.style-id__share-code {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.style-id__share-name {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}

.style-id__share-energy {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.style-id__share-bars {
  text-align: left;
  font-size: 0.65rem;
}

.style-id__share-bars > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.style-id__share-bars em {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8ff94, rgba(255, 255, 255, 0.5));
  font-style: normal;
}

.style-id__share-brand {
  margin: 12px 0 0;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
}

.style-id__result-actions {
  margin-top: 8px;
}

@media (min-width: 560px) {
  .style-id__dna-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .style-id__calc-ring {
    animation: none;
  }

  .style-id__vibe-card:hover img {
    transform: none;
  }
}
