:root {
  --primary: #2A9D8F;
  --primary-hover: #1f7a6f;
  --bg-main: #F4F7F6;
  --bg-card: #FFFFFF;
  --text-main: #264653;
  --text-muted: #6b7280;
  --accent-teal: #13B49E;
  --danger: #e76f51;
  --warning: #f4a261;
  --success: #2A9D8F;
  --glass-border: rgba(0, 0, 0, 0.05);
  --font-main: "Inter", "Noto Sans JP", sans-serif;
  --font-accent: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Decorations (Simpler than blobs for Katakori style) */
.background-blobs {
  display: none;
  /* Removed for cleaner look */
}

/* App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem 1rem;
  max-width: 600px;
  /* Narrower like mobile app */
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.main-content {
  flex: 1;
  position: relative;
}

/* Screen Transitions */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screen.active {
  display: block;
  opacity: 1;
}

/* Cards */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(38, 70, 83, 0.1);
}

.card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-top: 1rem;
}

.btn-outline:hover:not(:disabled) {
  background: rgba(42, 157, 143, 0.05);
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Features List */
.feature-list {
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  background: #f9fafb;
  padding: 0.875rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.feature-item .icon {
  font-size: 1.25rem;
  color: var(--primary);
}

/* Disclaimer Text */
.disclaimer-box {
  background: #fffafa;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: #b91c1c;
  line-height: 1.4;
}

/* Medical Alert Styles */
.medical-alert {
  border-top: 5px solid #e63946 !important;
}

.alert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.alert-icon {
  font-size: 2rem;
}

.alert-title {
  color: #e63946;
  margin: 0;
  font-weight: 700;
}

.advice-card.urgent {
  background: #fff5f5;
  border: 1px solid #ffc9c9;
}

.advice-card.urgent h3 {
  .advice-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .advice-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
  }

  .therapist-advice {
    background: #f0f7f6;
    border-left: 4px solid var(--primary);
  }

  .info-box {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  color: #c92a2a;
}

.disclaimer-box.warning {
  background: #fff9db;
  border: 1px solid #ffe066;
  color: #856404;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 1.5rem;
}

.progress-bar {
  height: 0.4rem;
  background: #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  text-align: center;
}

/* Questionnaire UI */
.question-item {
  margin-bottom: 2rem;
}

.question-text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.options-container {
  display: grid;
  gap: 0.75rem;
}

.option-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-main);
  font-size: 0.95rem;
}

.option-btn:hover {
  border-color: var(--primary);
  background: #f0fdfa;
}

.option-btn.selected {
  background: #f0fdfa;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.nav-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* Results UI */
.result-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.badge-danger {
  background: var(--danger);
}

.badge-warning {
  background: var(--warning);
}

.badge-success {
  background: var(--success);
}

.classification-title {
  font-size: 1.5rem;
  color: var(--text-main);
}

.advice-card {
  background: #f0fdfa;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.advice-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.video-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.video-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-disclaimer {
  max-width: 500px;
  margin: 1rem auto;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .app-container {
    padding: 1rem;
  }

  .glass {
    padding: 1.5rem;
  }
}