.tool {
  --game-navy: #14213d;
  --game-teal: #0e9f8e;
  --game-amber: #f2a541;
  --game-bg: #f4f8f8;

  margin-top: 27px;
  background: var(--game-bg);
  border: 1px solid #e4eceb;
  border-radius: 18px;
  padding: 24px;
  font-family: 'Cairo', sans-serif;
  line-height: 1.8;
  color: #26344b;
  box-sizing: border-box;
}

.tool *,
.tool *::before,
.tool *::after {
  box-sizing: border-box;
}

.tool button {
  font: inherit;
  cursor: pointer;
}

.tool .game-card {
  max-width: 760px;
  margin: auto;
  background: white;
  border: 1px solid #e7eeee;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(20,33,61,.045);
}

.tool .game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tool .game-label {
  color: var(--game-teal);
  font-size: 12px;
  font-weight: 800;
  background: #eaf8f5;
  border-radius: 30px;
  padding: 5px 12px;
}

.tool .game-count {
  color: #788698;
  font-size: 13px;
  font-weight: 700;
}

.tool .game-title {
  font-size: 23px;
  color: var(--game-navy);
  font-weight: 800;
  margin: 0 0 8px;
}

.tool .game-intro {
  color: #718096;
  font-size: 14px;
  margin: 0 0 22px;
}

.tool .start-screen {
  text-align: center;
  padding: 22px 5px;
}

.tool .game-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #eaf8f5;
  font-size: 34px;
}

.tool .start-screen .game-title {
  font-size: 26px;
}

.tool .start-screen .game-intro {
  max-width: 480px;
  margin: 0 auto 22px;
}

.tool .game-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tool .stat {
  background: #f6f8fa;
  border: 1px solid #edf0f3;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 12px;
  color: #64748b;
}

.tool .stat strong {
  color: var(--game-navy);
}

.tool .primary-btn {
  border: 0;
  border-radius: 10px;
  background: var(--game-teal);
  color: white;
  padding: 12px 28px;
  font-weight: 800;
  transition: .2s;
}

.tool .primary-btn:hover {
  background: #087e71;
  transform: translateY(-1px);
}

.tool .progress-area {
  margin-bottom: 23px;
}

.tool .progress-meta {
  display: flex;
  justify-content: space-between;
  color: #7a8797;
  font-size: 12px;
  margin-bottom: 8px;
}

.tool .progress-track {
  height: 7px;
  background: #edf1f3;
  border-radius: 20px;
  overflow: hidden;
}

.tool .progress-fill {
  height: 100%;
  width: 0;
  background: var(--game-teal);
  border-radius: 20px;
  transition: width .3s;
}

.tool .question-type {
  color: var(--game-teal);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}

.tool .question {
  color: var(--game-navy);
  font-size: 20px;
  line-height: 1.7;
  font-weight: 800;
  margin: 0 0 9px;
  direction: ltr;
  text-align: left;
}

.tool .question-instruction {
  color: #8792a0;
  font-size: 13px;
  margin: 0 0 20px;
}

.tool .options {
  display: grid;
  gap: 10px;
  direction: ltr;
}

.tool .option {
  width: 100%;
  text-align: left;
  border: 1px solid #e5ebef;
  background: white;
  color: #35445a;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 14px;
  transition: .15s;
}

.tool .option:hover:not(:disabled) {
  border-color: var(--game-teal);
  background: #f5fbfa;
}

.tool .option.correct {
  border-color: #65b99b;
  background: #effaf5;
  color: #16734f;
  font-weight: 800;
}

.tool .option.wrong {
  border-color: #e6a1a1;
  background: #fff4f4;
  color: #b33c3c;
}

.tool .option:disabled {
  cursor: default;
}

.tool .feedback {
  display: none;
  margin-top: 17px;
  padding: 15px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.9;
}

.tool .feedback.show {
  display: block;
}

.tool .feedback.good {
  background: #effaf5;
  border: 1px solid #d4eee1;
  color: #276b50;
}

.tool .feedback.bad {
  background: #fff5f3;
  border: 1px solid #f1ddda;
  color: #8c4941;
}

.tool .feedback strong {
  display: block;
  margin-bottom: 4px;
}

.tool .next-area {
  display: none;
  margin-top: 17px;
  text-align: left;
}

.tool .next-area.show {
  display: block;
}

.tool .result-screen {
  text-align: center;
  padding: 15px 0;
}

.tool .result-score {
  font-size: 48px;
  font-weight: 800;
  color: var(--game-teal);
  line-height: 1.3;
  margin: 10px 0;
}

.tool .result-message {
  color: #66758a;
  font-size: 14px;
  margin-bottom: 20px;
}

.tool .result-details {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.tool .result-box {
  min-width: 110px;
  background: #f6f8fa;
  border-radius: 11px;
  padding: 12px 18px;
}

.tool .result-box strong {
  display: block;
  color: var(--game-navy);
  font-size: 22px;
}

.tool .result-box span {
  color: #7b8796;
  font-size: 11px;
}

.tool .result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool .game-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: #83909e;
  font-size: 12px;
  text-align: center;
}

.below-content {
  margin-top: 35px;
  background: white;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 24px;
}

.below-content h2 {
  color: #14213d;
  font-size: 19px;
  margin: 0 0 10px;
}

.below-content p {
  color: #68768a;
  font-size: 14px;
  margin: 0;
}

@media(max-width:700px) {
  .tool {
    padding: 12px;
  }

  .tool .game-card {
    padding: 20px 15px;
  }

  .tool .game-title {
    font-size: 20px;
  }

  .tool .question {
    font-size: 18px;
  }

  .below-content {
    padding: 18px;
  }
}