/* 16personalities Page Styles (extracted from inline) */
:root {
  --bg-base: #f4f8fa;
  --accent: #7fb6e0;
  --accent-hover: #5ca3d4;
  --accent-disabled: #c9dfec;
  --accent-selected-bg: #e9f4fa;
  --accent-selected-text: #2f7fae;
  --text-primary: #4a4a4a;
  --text-secondary: #6f7a83;
}
.app-bg {
  background-color: var(--bg-base);
}
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}
#app {
  position: relative;
  z-index: 1;
  background: transparent;
  backdrop-filter: blur(2px);
  border-radius: 20px;
  margin: 20px auto;
  max-width: 672px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 768px) {
  #app {
    margin: 10px auto;
    border-radius: 15px;
    width: calc(100% - 20px);
  }
}
.primary-text {
  color: var(--text-primary);
}
.secondary-text {
  color: var(--text-secondary);
}
.accent-bg {
  background-color: var(--accent);
}
.accent-text {
  color: var(--accent);
}
.accent-border {
  border-color: var(--accent);
}
.main-button {
  background-color: var(--accent);
  color: #fff;
  transition: background-color 0.3s, transform 0.2s;
}
.main-button:hover:not(:disabled) {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}
.main-button:disabled {
  background-color: var(--accent-disabled);
  cursor: not-allowed;
}
.choice-button {
  background: #fff;
  border: 2px solid #f0f0f0;
  transition: all 0.2s;
}
.choice-button.selected {
  border-color: var(--accent);
  background: var(--accent-selected-bg);
  color: var(--accent-selected-text);
  font-weight: 500;
}
.card {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100%;
}
#start-screen,
#question-screen,
#loading-screen,
#result-screen {
  width: 100%;
  max-width: 100%;
}
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chart-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  height: 300px;
  max-height: 400px;
}
@media (min-width: 768px) {
  .chart-container {
    height: 350px;
  }
}
.ai-response-card {
  background: rgba(254, 252, 251, 0.95);
  border: 1px solid rgba(253, 236, 235, 0.8);
  white-space: pre-wrap;
  word-wrap: break-word;
  backdrop-filter: blur(5px);
}
.loading-dots span {
  animation: blink 1.4s infinite both;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}
#audio-modal {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0 solid rgba(255, 255, 255, 0.2);
}
#audio-modal.active {
  display: flex;
}
.modal-content {
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-content.animate-in {
  opacity: 1;
  transform: scale(1);
}
.modal-fade-in {
  animation: modalFadeIn 0.3s ease-out forwards;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
