/* style.css */
/* Naming: kebab-case in CSS */

:root {
  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(51, 65, 85, 0.55);
}

.card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}

.card-body {
  padding: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.9);
}

.input {
  width: 100%;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.95);
  outline: none;
}

.input:focus {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.textarea {
  width: 100%;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.95);
  outline: none;
  resize: vertical;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  border-radius: 0.9rem;
  padding: 0.7rem 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.35);
}

.btn-primary:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.18);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.22);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.18);
}

.pill {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.10);
  font-size: 0.85rem;
  font-weight: 600;
}

.pill-active {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.18);
}

.toast {
  position: sticky;
  top: 4.25rem;
  z-index: 50;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.85);
}

.sticky-submit {
  position: sticky;
  bottom: 0.75rem;
  z-index: 30;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
}

.score-row {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(51, 65, 85, 0.55);
  background: rgba(2, 6, 23, 0.35);
}

.score-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.score-btn {
  border-radius: 0.75rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(148, 163, 184, 0.08);
  font-weight: 700;
  min-width: 2.25rem;
  text-align: center;
}

.score-btn-active {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(16, 185, 129, 0.22);
}

.btn-mini {
  border-radius: 0.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.10);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-mini:hover {
  background: rgba(148, 163, 184, 0.16);
}

.btn-mini-danger {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.10);
}

.btn-mini-danger:hover {
  background: rgba(244, 63, 94, 0.16);
}


/* Scoreboard intro animations */
.intro-pop{animation:intro-pop 900ms cubic-bezier(.2,.9,.2,1) both;}
@keyframes intro-pop{0%{transform:scale(.85);opacity:0}60%{transform:scale(1.05);opacity:1}100%{transform:scale(1);opacity:1}}
.intro-fade-out{animation:intro-fade-out 600ms ease both;}
@keyframes intro-fade-out{to{opacity:0;transform:scale(.98)}}
