.tto-wrap {
  max-width: 720px;
  margin: 0 auto 24px;
}

.tto-date-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #006e33;
  background: #e8f8f0;
  border: 1px solid #6bd6af;
  border-radius: 999px;
}

.tto-tool-panel {
  padding: 20px 16px 24px;
  background: linear-gradient(180deg, #f7fffb 0%, #fff 100%);
  border: 1px solid #c5ead8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 110, 51, 0.08);
}

.tto-topic-label {
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.tto-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.tto-topic-pill {
  border: 1px solid #6bd6af;
  background: #fff;
  color: #006e33;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tto-topic-pill:hover,
.tto-topic-pill:focus {
  background: #e8f8f0;
  outline: none;
}

.tto-topic-pill.is-active {
  background: #00af69;
  border-color: #00af69;
  color: #fff;
}

.tto-topic-hint {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: -8px 0 16px;
  min-height: 40px;
}

.tto-card-stage {
  text-align: center;
  margin-bottom: 16px;
}

.tto-card-btn {
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.tto-card-btn:hover:not(:disabled) {
  transform: translateY(-4px);
}

.tto-card-btn:disabled {
  cursor: default;
}

.tto-card-img {
  display: block;
  max-width: 200px;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.45s ease;
}

.tto-card-btn.is-flipping .tto-card-img {
  transform: rotateY(90deg);
}

.tto-card-btn.is-revealed .tto-card-img {
  transform: rotateY(0);
}

.tto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.tto-btn-draw {
  display: inline-block;
  padding: 10px 22px;
  background: #006e33;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
}

.tto-btn-draw:hover {
  background: #00af69;
  color: #fff !important;
}

.tto-btn-secondary {
  font-weight: 600;
}

.tto-status {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
}

.tto-status.is-info {
  color: #31708f;
}

.tto-status.is-success {
  color: #006e33;
}

.tto-status.is-error {
  color: #a94442;
}

.tto-result {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px dashed #c5ead8;
}

.tto-result-meta {
  text-align: center;
  margin-bottom: 12px;
}

.tto-result-card-name {
  font-size: 18px;
}

.tto-result-body {
  margin-top: 16px;
}

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

.tto-step-card {
  padding: 14px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid #00af69;
}

.tto-step-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.tto-step-card p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 767px) {
  .tto-steps {
    grid-template-columns: 1fr;
  }

  .tto-card-img {
    max-width: 160px;
  }
}

.btt-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 8px;
}

.btt-card-cell {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btt-card-cell:hover {
  transform: translateY(-3px);
}

.btt-card-cell.is-selected {
  box-shadow: 0 0 0 2px #00af69;
  border-radius: 8px;
}

.btt-card-img {
  display: block;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 479px) {
  .btt-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}
