/* orbCounter 専用の差分表示だけ */

table {
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: center;
}

input {
  width: 60px;
}

.orb-plus {
  color: #d9534f;   /* 赤 */
  font-weight: bold;
}

.orb-minus {
  color: #337ab7;   /* 青 */
}

#orb-result {
    padding-bottom: 36px;
}

.result-title {
  font-size: 1.1em;
  margin-bottom: 8px;
}

.result-sub {
  font-size: 0.8em;
  font-weight: normal;
  color: #666;
  margin-left: 6px;
}

.action-btn {
  background-color: #4a90e2; /* 既存と同色 */
  width: 180px;
  padding: 10px 0;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.action-btn:hover {
  background-color: #3b7fc4;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.action-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
}

/* ===== ローディング表示 ===== */

.loading-overlay {
  display: none;           /* 通常は非表示 */
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;

  align-items: center;
  justify-content: center;
}

.loading-box {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  font-weight: bold;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ccc;
  border-top-color: #4a90e2;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orb-note {
  margin-top: 0.5em;
  padding: 0.5em 0.8em;
  background: #fff3cd;
  border-left: 4px solid #f0ad4e;
  font-size: 0.9em;
}

.orb-note {
  max-width: 520px;
  width: fit-content;
  margin: 12px auto;
  padding: 10px 14px;
}