.nstq {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255, 236, 179, 0.18), transparent 62%),
    rgba(8, 16, 28, 0.42);
  font-family: ComfortaaOkul, Comfortaa, "Segoe UI", sans-serif;
  pointer-events: auto;
  touch-action: manipulation;
}
.nstq.is-hosted {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nstq.is-holding {
  overflow: visible;
}
.nstq-shell {
  flex: 0 0 auto;
  overflow: hidden;
  line-height: 0;
}
.nstq-card {
  width: min(560px, calc(100vw - 12px));
  max-width: none;
  max-height: none;
  overflow: visible;
  padding: 14px 16px 16px;
  border-radius: 28px;
  color: #3b2410;
  text-align: center;
  line-height: normal;
  background: linear-gradient(180deg, #fff8e7 0%, #f6e2b8 42%, #efd09a 100%);
  border: 4px solid #c47a2b;
  box-shadow: 0 18px 0 #8a4b16, 0 28px 40px rgba(0, 0, 0, 0.35);
  transform-origin: top left;
}
.nstq-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}
.nstq-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #5b2c0a;
}
.nstq-passage {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  color: #3b2410;
  background: #fffdf6;
  border-radius: 16px;
  border: 2px solid #e8c88a;
}
.nstq-photo.is-miss,
.nstq-slot img.is-miss {
  object-fit: contain;
  background:
    radial-gradient(circle at 30% 30%, #ffe8b0, #f6d58a 62%, #e8b86a);
}
.nstq-photo {
  display: block;
  width: min(180px, 28vh);
  height: min(180px, 28vh);
  object-fit: cover;
  margin: 0 auto 10px;
  border-radius: 22px;
  border: 3px solid #fff6d6;
  box-shadow: 0 8px 0 #d6a15a;
  background: #fff;
}
.nstq-sentence {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}
.nstq-gap {
  display: inline-block;
  min-width: 72px;
  padding: 2px 10px;
  border-bottom: 4px dashed #c47a2b;
  color: #9a3412;
}
.nstq-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.nstq-opt,
.nstq-chip,
.nstq-check {
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  color: #1e3a5f;
  background: linear-gradient(180deg, #fff, #ffe8b0);
  box-shadow: 0 5px 0 #d6a15a;
}
.nstq-opt.is-ok,
.nstq-chip.is-ok {
  background: #bbf7d0;
  color: #14532d;
}
.nstq-opt.is-bad {
  background: #fecaca;
  color: #7f1d1d;
}
.nstq-card--match {
  width: min(720px, calc(100vw - 12px));
}
.nstq-match {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.nstq-match--cards {
  grid-template-columns: repeat(var(--nstq-cols, 2), minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.nstq-match.is-ok .nstq-slot {
  outline: 3px solid #16a34a;
}
.nstq-match.is-bad .nstq-slot {
  outline: 3px solid #dc2626;
}
.nstq-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}
.nstq-match--cards .nstq-slot {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  min-width: 0;
}
.nstq-slot img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  flex: 0 0 auto;
}
.nstq-match--cards .nstq-slot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-height: min(200px, 32vh);
  object-fit: cover;
}
.nstq-slot strong {
  flex: 1;
  text-align: left;
  font-size: 18px;
}
.nstq-match--cards .nstq-slot strong {
  text-align: center;
  font-size: 16px;
}
.nstq-drop {
  min-width: 110px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  color: #92400e;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  border: 2px dashed #d6a15a;
}
.nstq-match--cards .nstq-drop {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  font-size: 16px;
}
.nstq-drop.has {
  background: #fde68a;
  cursor: grab;
  border-style: solid;
  color: #5b2c0a;
}
.nstq-drop.is-over {
  background: #fff3c4;
  border-color: #c47a2b;
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(196, 122, 43, 0.35);
}
.nstq-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.nstq-chip {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
.nstq-chip.is-picked {
  outline: 3px solid #c47a2b;
  box-shadow: 0 0 0 3px rgba(196, 122, 43, 0.35), 0 5px 0 #d6a15a;
}
.nstq-drop.is-target {
  border-style: solid;
  background: #fff8dc;
}
.nstq-chip.is-dragging,
.nstq-drop.is-dragging {
  opacity: 0.4;
}
.nstq-lift {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: visible;
}
.nstq-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483646;
  pointer-events: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0 8px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 14px ComfortaaOkul, Comfortaa, "Segoe UI", sans-serif;
  color: #3b2410;
  background: linear-gradient(180deg, #fffef6, #ffd56a);
  border: 3px solid #c47a2b;
  box-shadow: 0 8px 0 #8a4b16, 0 16px 28px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  transform: none;
  will-change: left, top;
}
.birles-magara.is-nstq-open .kosucu-pads,
.birles-tepe.is-nstq-open .kosucu-pads {
  visibility: hidden !important;
  pointer-events: none !important;
}
.nstq-check {
  background: linear-gradient(180deg, #86efac, #22c55e);
  color: #14532d;
  box-shadow: 0 5px 0 #15803d;
}
.nstq.is-lock .nstq-opt,
.nstq.is-lock .nstq-chip,
.nstq.is-lock .nstq-check {
  pointer-events: none;
}
.nstq-gap.is-bad {
  color: #9f1239;
  border-bottom-color: #e11d48;
  background: #ffe4e6;
  border-radius: 8px;
}
.nstq-review-ok,
.nstq-review-bad {
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 800;
}
.nstq-review-ok { color: #0f766e; }
.nstq-review-bad { color: #be123c; }
.nstq-correct-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #0f766e;
}
.nstq-drop.is-picked-ok {
  background: #bbf7d0;
  color: #14532d;
  border-color: #16a34a;
}
.nstq-drop.is-picked-bad {
  background: #fecaca;
  color: #7f1d1d;
  border-color: #e11d48;
}
.nstq-slot.is-ok {
  outline: 2px solid #16a34a;
}
.nstq-slot.is-bad {
  outline: 2px solid #dc2626;
}
