.order-board {
  display: grid;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.order-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.order-screen.hidden {
  display: none;
}

.order-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.order-subtitle {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.order-section-label {
  margin: 1.2rem 0 0.8rem;
  font-size: 1rem;
}

.order-level-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-level-btn {
  display: grid;
  gap: 0.3rem;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.order-level-btn strong {
  font-size: 1.02rem;
}

.order-level-btn small {
  color: var(--muted);
  line-height: 1.35;
}

.order-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.order-stat {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.9);
}

.order-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.order-stat strong {
  font-size: 1.1rem;
}

.order-instructions,
.order-feedback,
.order-result-message,
.order-question {
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.order-instructions,
.order-question {
  background: #eef6ff;
  color: #123055;
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.order-feedback {
  margin-top: 0.9rem;
  min-height: 1.25rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
}

.order-feedback.success {
  background: #ecfdf5;
  border-color: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.order-feedback.error {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.18);
  color: #991b1b;
}

.order-game-card,
.order-result-card {
  margin-top: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.order-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  cursor: grab;
  user-select: none;
  touch-action: none;
  text-align: left;
}

.order-item.dragging {
  opacity: 0.65;
  transform: scale(0.99);
  box-shadow: 0 18px 28px rgba(59, 130, 246, 0.18);
}

.order-item-grip {
  flex: 0 0 auto;
  color: #7c8aa5;
  font-size: 1rem;
  letter-spacing: -0.12em;
}

.order-item-value {
  flex: 1 1 auto;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.order-actions,
.order-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.order-result-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 1rem;
}

.order-result-stat {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.order-result-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.order-result-stat strong {
  font-size: 1.15rem;
}

.order-result-message {
  margin-top: 1rem;
  background: #eef6ff;
  color: #123055;
}

@media (max-width: 720px) {
  .order-item {
    padding: 0.85rem 0.85rem;
  }

  .order-actions,
  .order-result-actions {
    flex-direction: column;
  }

  .order-actions .btn,
  .order-result-actions .btn {
    width: 100%;
  }
}
