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

.game-card {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: transparent;
  color: #2c3e50;
}

/* 外层容器透明：去掉外壳给 rounded-2xl 加的边框 */
.ot_workspace__inner .game-card {
  border: 0;
  box-shadow: none;
}

.app {
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* ---------- 头部 ---------- */
.app__header {
  text-align: center;
  margin-bottom: 28px;
}

.app__title {
  font-size: 30px;
  letter-spacing: 2px;
}

.app__subtitle {
  margin-top: 8px;
  color: #7f8c9b;
  font-size: 14px;
}

/* ---------- 模式切换 ---------- */
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mode-tabs__item {
  padding: 10px 18px;
  border: 1px solid #d5dde8;
  border-radius: 20px;
  background: #fff;
  color: #5a6a7e;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-tabs__item:hover {
  border-color: #0989E2;
  color: #0989E2;
}

.mode-tabs__item.is-active {
  background: #0989E2;
  border-color: #0989E2;
  color: #fff;
}

/* ---------- 面板 ---------- */
.panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(50, 70, 100, 0.08);
  padding: 36px 32px;
  text-align: center;
}

.panel__title {
  font-size: 22px;
  margin-bottom: 14px;
}

.panel__desc {
  color: #5a6a7e;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.panel__rules {
  list-style: none;
  color: #8a97a6;
  font-size: 13px;
  line-height: 2;
  margin-bottom: 24px;
}

.is-hidden {
  display: none;
}

/* ---------- 按钮 ---------- */
.btn {
  padding: 12px 34px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  background: #e8edf5;
  color: #2c3e50;
  transition: all 0.15s;
}

.btn:hover {
  filter: brightness(0.96);
}

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

.btn--primary {
  background: #0989E2;
  color: #fff;
}

.btn--answer {
  min-width: 140px;
  font-size: 18px;
  background: #f0f3f9;
  border: 2px solid #dfe6f0;
}

.btn--answer.btn--no {
  border-color: #f3d7d7;
  color: #c0504d;
}

.btn--answer.btn--yes {
  border-color: #cde8d2;
  color: #3d8b52;
}

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

/* ---------- 游戏区 ---------- */
.panel--game {
  padding: 24px 28px 32px;
}

.game-bar {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #8a97a6;
  margin-bottom: 26px;
}

.stage {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
}

/* 单个大字（模式一 / 模式三） */
.word {
  font-size: 84px;
  font-weight: 700;
  line-height: 1.2;
  user-select: none;
}

/* 模式二：上下两个字 */
.word-block__label {
  font-size: 12px;
  color: #a5b0bd;
  margin-bottom: 4px;
}

.word--sm {
  font-size: 64px;
}

/* 模式三：颜色选择按钮 */
.color-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.color-options__item {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
}

.color-options__item:hover {
  transform: translateY(-4px);
}

.color-options__item:active {
  transform: scale(0.95);
}

.color-options__item span {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #8a97a6;
}

/* ---------- 答案按钮区 ---------- */
.answers {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* 反馈 */
.feedback {
  font-size: 15px;
  font-weight: 600;
  min-height: 22px;
  margin-bottom: 18px;
}

.feedback--ok {
  color: #3d8b52;
}

.feedback--err {
  color: #c0504d;
}

.game-hint {
  margin-top: 18px;
  font-size: 12px;
  color: #a5b0bd;
}

/* ---------- 结果 ---------- */
.result {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 24px 0 30px;
}

.result__item {
  min-width: 130px;
  padding: 20px 16px;
  background: #f6f8fc;
  border-radius: 12px;
}

.result__num {
  font-size: 30px;
  font-weight: 700;
  color: #0989E2;
}

.result__label {
  margin-top: 6px;
  font-size: 13px;
  color: #8a97a6;
}

.result__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ---------- 底部介绍 ---------- */
.intro-footer {
  margin-top: 36px;
}

.intro-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.intro-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(50, 70, 100, 0.08);
  padding: 24px 26px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
}

.intro-card__icon {
  grid-row: 1 / span 2;
  font-size: 30px;
}

.intro-card__title {
  align-self: end;
  font-size: 17px;
  margin-bottom: 6px;
  color: #2c3e50;
}

.intro-card__text {
  align-self: start;
  font-size: 13px;
  line-height: 1.9;
  color: #5a6a7e;
}

.intro-card__text strong {
  color: #0989E2;
  font-weight: 600;
}
