.ss-venn-problems-game {
  width: 640px;
  max-width: 100%;
  min-height: 500px;
  margin: 0 auto 18px;
  box-sizing: border-box;
  border: 1px solid #8cb7d3;
  background: #f7fbff;
  color: #1f3347;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  box-shadow: 0 2px 8px rgba(37, 75, 105, 0.16);
}

.ss-venn-shell {
  min-height: 500px;
  padding: 14px;
  box-sizing: border-box;
  background: linear-gradient(#ffffff, #edf7ff);
}

.ss-venn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #bdd7e8;
}

.ss-venn-title {
  margin: 0;
  color: #075e91;
  font-size: 23px;
  line-height: 1.2;
}

.ss-venn-stats {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.ss-venn-pill {
  padding: 5px 8px;
  border: 1px solid #bad2e4;
  border-radius: 4px;
  background: #ffffff;
  font-size: 13px;
  font-weight: bold;
}

.ss-venn-problem {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #ead995;
  border-radius: 4px;
  background: #fffdf2;
  font-size: 15px;
  line-height: 1.38;
}

.ss-venn-layout {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
  align-items: start;
}

.ss-venn-diagram {
  position: relative;
  height: 265px;
  border: 1px solid #b8d4e6;
  background: #ffffff;
  overflow: hidden;
}

.ss-venn-circle {
  position: absolute;
  top: 42px;
  width: 230px;
  height: 170px;
  border: 3px solid #2484be;
  border-radius: 50%;
  background: rgba(81, 163, 217, 0.18);
}

.ss-venn-circle.right {
  right: 54px;
  border-color: #d37a2e;
  background: rgba(244, 166, 78, 0.2);
}

.ss-venn-circle.left {
  left: 54px;
}

.ss-venn-label {
  position: absolute;
  top: 12px;
  width: 170px;
  text-align: center;
  font-weight: bold;
  color: #28415b;
}

.ss-venn-label.left {
  left: 72px;
}

.ss-venn-label.right {
  right: 72px;
}

.ss-venn-region {
  position: absolute;
  width: 74px;
}

.ss-venn-region.a-only {
  left: 87px;
  top: 117px;
}

.ss-venn-region.both {
  left: 198px;
  top: 117px;
}

.ss-venn-region.b-only {
  right: 87px;
  top: 117px;
}

.ss-venn-region.outside {
  left: 198px;
  bottom: 15px;
}

.ss-venn-region label {
  display: block;
  margin-bottom: 3px;
  color: #244059;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.ss-venn-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 5px;
  border: 1px solid #9fb9cd;
  border-radius: 4px;
  background: #ffffff;
  color: #152c3f;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
}

.ss-venn-side {
  min-height: 265px;
  padding: 10px;
  border: 1px solid #b8d4e6;
  background: #ffffff;
  box-sizing: border-box;
}

.ss-venn-side h3 {
  margin: 0 0 8px;
  color: #075e91;
  font-size: 16px;
}

.ss-venn-side ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.ss-venn-feedback {
  min-height: 34px;
  margin: 12px 0;
  padding: 9px;
  border: 1px solid #d8c271;
  border-radius: 4px;
  background: #fffdf2;
  font-size: 15px;
}

.ss-venn-feedback.good {
  border-color: #8dc77d;
  background: #eefae9;
}

.ss-venn-feedback.bad {
  border-color: #df8b83;
  background: #fff0ef;
}

.ss-venn-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ss-venn-button {
  min-width: 100px;
  padding: 8px 11px;
  border: 1px solid #1e6f9f;
  border-radius: 4px;
  background: #0c82bd;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.ss-venn-button.secondary {
  border-color: #9ab6ca;
  background: #ffffff;
  color: #24516d;
}

.ss-venn-button:hover,
.ss-venn-button:focus {
  background: #1195d8;
}

.ss-venn-button.secondary:hover,
.ss-venn-button.secondary:focus {
  background: #eef7ff;
}

@media (max-width: 640px) {
  .ss-venn-layout {
    grid-template-columns: 1fr;
  }

  .ss-venn-diagram {
    transform-origin: top left;
  }
}
