.gnc-wrap {
  max-width: 760px;
  margin: 16px auto;
  padding: 18px;
  border: 1px solid #e5e1dc;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  font-family: inherit;
}

.gnc-header {
  text-align: center;
  margin-bottom: 10px;
}

.gnc-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  line-height: 1.35;
}

.gnc-lead {
  margin: 0;
  color: #5f5b55;
  font-size: 0.98rem;
  line-height: 1.45;
}

.gnc-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin: 12px 0 10px;
}

.gnc-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.gnc-field select,
.gnc-small-btn,
.gnc-main-btn,
.gnc-choice {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7d0c8;
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.96rem;
  line-height: 1.2;
}

.gnc-field select {
  padding: 0 12px;
}

.gnc-small-btn,
.gnc-main-btn,
.gnc-choice {
  cursor: pointer;
  font-weight: 700;
}

.gnc-small-btn:hover,
.gnc-main-btn:hover,
.gnc-choice:hover {
  filter: brightness(0.98);
}

.gnc-status {
  min-height: 20px;
  text-align: center;
  color: #6b665f;
  font-size: 0.92rem;
}

.gnc-card {
  margin: 8px auto 10px;
  padding: 18px 16px;
  min-height: 205px;
  height: 205px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 2px solid #2f2b27;
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gnc-card:focus {
  outline: 3px solid #d9c8b4;
  outline-offset: 3px;
}

.gnc-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.gnc-card-meta {
  margin-bottom: 8px;
  color: #77716a;
  font-size: 0.88rem;
  font-weight: 700;
}

.gnc-card-main {
  font-size: clamp(1.8rem, 5.2vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
}

.gnc-card-sub {
  min-height: 1.7em;
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #48433d;
}

.gnc-card-note {
  min-height: 1.2em;
  margin-top: 6px;
  color: #6b665f;
  font-size: 0.88rem;
  line-height: 1.45;
}

.gnc-card-hint {
  min-height: 1.2em;
  margin-top: 8px;
  color: #81786f;
  font-size: 0.92rem;
}


.gnc-answer-buttons[hidden],
.gnc-audio[hidden] {
  display: none !important;
}

.gnc-answer-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0;
}

.gnc-choice {
  font-size: 1.15rem;
  background: #f7f3ee;
}

.gnc-feedback {
  min-height: 22px;
  margin: 8px 0;
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
}

.gnc-feedback.is-correct {
  color: #236b35;
}

.gnc-feedback.is-wrong {
  color: #9a3324;
}

.gnc-audio {
  margin: 10px auto;
  max-width: 240px;
}

.gnc-actions {
  margin-top: 8px;
}

.gnc-main-btn {
  background: #2f2b27;
  color: #ffffff;
  border-color: #2f2b27;
}

@media (max-width: 680px) {
  .gnc-wrap {
    padding: 16px;
    border-radius: 14px;
  }

  .gnc-controls {
    grid-template-columns: 1fr;
  }

  
.gnc-answer-buttons[hidden],
.gnc-audio[hidden] {
  display: none !important;
}

.gnc-answer-buttons {
    grid-template-columns: 1fr;
  }

  .gnc-card {
    min-height: 205px;
    height: 205px;
  }
}
