.launcher-link {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: rgba(241,245,249,0.5);
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.launcher-link:hover { background: rgba(255,255,255,0.13); }

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 24px 20px 40px;
  animation: fadeIn 0.35s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- スタート画面 ---- */
.hero {
  margin: auto 0;
  text-align: center;
}

.hero-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
  font-weight: 800;
}

.subtitle {
  color: #fbbf24;
  font-weight: 700;
  margin: 0 0 20px;
}

.lead {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #93c5fd;
  border: 1px solid #334155;
  margin-top: 12px;
}

.credit-note {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}

/* ---- クイズ画面 ---- */
.quiz-header {
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

.photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.question-text {
  font-size: 1.05rem;
  text-align: center;
  margin: 0 0 16px;
  font-weight: 700;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.choice-btn {
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 56px;
}

.choice-btn:active {
  transform: scale(0.96);
}

.choice-btn.correct {
  background: #14532d;
  border-color: #22c55e;
  color: #bbf7d0;
}

.choice-btn.wrong {
  background: #450a0a;
  border-color: #ef4444;
  color: #fecaca;
}

.choice-btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.choice-btn.disabled.correct,
.choice-btn.disabled.wrong {
  opacity: 1;
}

.feedback {
  min-height: 70px;
  text-align: center;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  padding: 0 4px;
}

.feedback .fb-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: block;
}

.feedback.is-correct .fb-title { color: #4ade80; }
.feedback.is-wrong .fb-title { color: #f87171; }

.btn-next {
  margin-top: auto;
}

/* ---- 結果画面 ---- */
.result-box {
  margin: auto 0;
  text-align: center;
}

.result-emoji {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.result-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 8px 0 4px;
}

.result-comment {
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.6;
}

.credits {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #334155;
}

.credits h3 {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.credits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

.credits li {
  margin-bottom: 10px;
  word-break: break-word;
}

.credits a {
  color: #93c5fd;
}

@media (min-width: 520px) {
  #app {
    padding-top: 20px;
  }
}
