/* ground.css — '환각의 비밀'의 '자료를 붙여서 물으면?' 구역.
   확률 막대(.prob-row, .honest)는 components.css·twin.css, 고르기 단추(.variant-btn)는 아래에 따로 둔다. */

.ground {
  margin-top: 88px;
}

.ground-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
}

/* prompt.css의 고르기 단추와 같은 모양(이 페이지는 prompt.css를 불러오지 않는다) */
.ground-switch .variant-btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ground-switch .variant-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.ground-switch .variant-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.ground-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.ground-panel {
  min-height: 0;
  gap: 14px;
}

.ground-sent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ground-block {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: pop-in 0.3s ease;
}

.ground-material,
.ground-ask {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.ground-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 2px;
}

.ground-panel .prob-list {
  flex: none;
}

.ground-panel .btn {
  align-self: flex-start;
}

.ground-result {
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ground-result:empty {
  display: none;
}

.ground-result strong {
  color: var(--accent-deep);
}

.ground-verdict {
  max-width: 1100px;
  margin: 14px auto 0;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 0.97rem;
  line-height: 1.7;
  text-align: center;
}

.ground-verdict strong {
  color: var(--accent-deep);
}

.ground-source {
  max-width: 1100px;
  margin: 10px auto 0;
  text-align: center;
}

@media (max-width: 1024px) {
  .ground-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ground {
    margin-top: 56px;
  }

  .ground-verdict {
    padding: 12px 14px;
    text-align: left;
  }

  .ground-source {
    text-align: left;
  }

  .ground-panel .btn {
    align-self: stretch;
  }
}
