/* ===== BASE ===== */

body.potential-game {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #0f172a, #020617 70%);
  color: #e2e8f0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.game-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 70px;
}

/* ===== HEADER ===== */

.game-header {
  text-align: center;
  margin-bottom: 26px;
}

.game-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
}

.game-subtitle {
  margin-top: 8px;
  opacity: 0.72;
}

/* ===== CARDS ===== */

.game-card,
.test-card,
.result-block {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.36);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

/* ===== HERO ===== */

.hero-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.hero-avatar {
  width: 100%;
  border-radius: 18px;
}

.hero-text h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.hero-text p,
.type-desc {
  opacity: 0.78;
  line-height: 1.55;
}

/* ===== LEVEL / BARS ===== */

.level-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.level-value {
  font-size: 30px;
  font-weight: 800;
}

.level-bar,
.axis-bar,
.test-progress-bar {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.level-fill,
.axis-fill,
.test-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c5cff, #5eead4);
}

.axis-row {
  margin-bottom: 12px;
}

.axis-label {
  font-size: 14px;
  margin-bottom: 5px;
  opacity: 0.9;
}

/* ===== GRID ===== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== TEXT BLOCKS ===== */

.block-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}

.type-card {
  text-align: center;
}

.type-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.list {
  display: grid;
  gap: 8px;
}

.list-item,
.realization-item,
.mechanism-card {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  line-height: 1.45;
}

/* ===== QUESTIONS ===== */

.test-progress {
  font-size: 14px;
  opacity: 0.78;
  margin-bottom: 10px;
}

.test-scale-note {
  font-size: 14px;
  opacity: 0.78;
  margin: 16px 0;
}

.test-question {
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 18px;
}

.test-answers {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.answer-btn {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

.answer-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(94,234,212,0.42);
  background: rgba(94,234,212,0.09);
}

.answer-btn.selected {
  border-color: rgba(94,234,212,0.75);
  background: rgba(94,234,212,0.14);
}

.answer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.answer-label {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #14213a;
  color: white;
  font-weight: 800;
  flex: 0 0 auto;
}

.answer-text {
  font-size: 15px;
  opacity: 0.92;
}

/* ===== NAV BUTTONS ===== */

.test-nav-row,
.copy-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.test-nav-btn,
.cta-btn,
.copy-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.test-nav-btn:hover,
.cta-btn:hover,
.copy-btn:hover {
  transform: translateY(-2px);
}

.cta-btn,
.copy-btn {
  background: linear-gradient(90deg, #7c5cff, #22c55e);
  color: white;
}

.test-nav-btn.secondary,
.copy-btn.secondary {
  background: rgba(255,255,255,0.09);
  color: white;
}

.test-nav-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.78);
}

.test-nav-btn.ghost:hover {
  color: white;
  border-color: rgba(255,255,255,0.28);
}

/* ===== RESULT ===== */

.profile-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(94,234,212,0.14);
  margin-top: 8px;
}

.score-line {
  font-size: 13px;
  opacity: 0.75;
}

.result-grid,
.realization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ===== AI TEXTAREA ===== */

.ai-prompt-box {
  width: 100%;
  min-height: 240px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: inherit;
  padding: 14px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  margin-top: 10px;
  box-sizing: border-box;
}

/* ===== MOBILE ===== */

@media (max-width: 800px) {
  .game-title {
    font-size: 26px;
  }

  .hero-block,
  .grid-2,
  .grid-3,
  .result-grid,
  .realization-grid {
    grid-template-columns: 1fr;
  }

  .hero-block {
    text-align: center;
  }

  .test-question {
    font-size: 21px;
  }

  .answer-inner {
    align-items: flex-start;
  }
}