.gandire-page .adun-ex-card {
  max-width: 520px;
}

.gandire-page .gandire-prompt {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.35;
}

.gandire-page .gandire-display {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.45;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.gandire-page .gandire-display--word {
  font-size: 1.15rem;
  font-weight: 700;
}

.gandire-page .gandire-display--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}

.gandire-page .gandire-input.is-blank-box {
  width: 3rem;
  min-width: 2.75rem;
  height: 2.4rem;
  padding: 4px;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  border-bottom: 2px dashed #94a3b8;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.gandire-page .gandire-input.is-blank-box:focus {
  border-style: solid;
  border-color: #4e65b4;
  background: #eef2ff;
}

.gandire-page .adun-ex-card.is-solved .gandire-input.is-blank-box {
  border-style: solid;
  border-color: #86efac;
  background: #ecfdf5;
  color: #15803d;
}

.gandire-page .gandire-blank-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 8px;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  color: #94a3b8;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.gandire-page .adun-ex-card.is-solved .gandire-blank-slot {
  border-style: solid;
  border-color: #86efac;
  background: #ecfdf5;
  color: #15803d;
}

.gandire-page .gandire-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gandire-page .gandire-input {
  width: min(100%, 11rem);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  border: 0;
  border-bottom: 3px solid #1f2937;
  background: transparent;
  padding: 6px 4px;
  color: #1f2937;
}

.gandire-page .gandire-input:focus {
  outline: none;
  border-bottom-color: #4e65b4;
  background: #eef2ff;
}

.gandire-page .gandire-input.is-order {
  width: min(100%, 14rem);
}

.gandire-page .gandire-order {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 14px;
}

.gandire-page .gandire-order__item {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 16px;
  background: #eef2ff;
  border: 2px solid #c7d2fe;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.gandire-page .gandire-order__item.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.gandire-page .gandire-order__item.is-drag-over {
  border-color: #4e65b4;
  box-shadow: 0 0 0 3px rgba(78, 101, 180, 0.2);
}

.gandire-page .gandire-order__item.is-locked {
  cursor: default;
  background: #ecfdf5;
  border-color: #86efac;
}

.gandire-page .gandire-order.is-wrong .gandire-order__item {
  animation: gandire-shake 0.35s ease;
  border-color: #f87171;
  background: #fef2f2;
}

.gandire-page .gandire-order__num {
  min-width: 2.6rem;
  padding: 8px 10px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
  line-height: 1;
}

.gandire-page .gandire-order__shift {
  appearance: none;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #4e65b4;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.gandire-page .gandire-order__shift:disabled {
  opacity: 0.35;
  cursor: default;
}

.gandire-page .gandire-order__shift:not(:disabled):hover {
  background: #4e65b4;
  color: #fff;
}

.gandire-page .adun-ex-card.is-solved .gandire-order__shift {
  pointer-events: none;
}

.gandire-page .gandire-check {
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  background: #4e65b4;
  color: #fff;
}

.gandire-page .gandire-check:disabled {
  opacity: 0.5;
  cursor: default;
}

.gandire-page .adun-ex-card.is-solved .gandire-input,
.gandire-page .adun-ex-card.is-solved .gandire-check,
.gandire-page .adun-ex-card.is-solved .adun-choice {
  pointer-events: none;
}

.gandire-page .gandire-input.is-wrong {
  animation: gandire-shake 0.35s ease;
  border-color: #f87171 !important;
  background: #fef2f2;
}

@keyframes gandire-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
