:root {
  --pitch: #103b2d;
  --pitch-2: #17644c;
  --gold: #c49a2c;
  --paper: #f7f5ef;
  --card: #ffffff;
  --ink: #17251f;
  --muted: #6f7c74;
  --line: #d9dfd8;
  --danger: #c23b31;
  --success: #208955;
  --shadow: 0 18px 45px rgba(16, 59, 45, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Aptos", sans-serif;
  background:
    linear-gradient(135deg, rgba(196, 154, 44, 0.18), transparent 34%),
    repeating-linear-gradient(90deg, rgba(16, 59, 45, 0.06) 0 1px, transparent 1px 64px),
    var(--paper);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  color: white;
  background:
    linear-gradient(120deg, rgba(16, 59, 45, 0.96), rgba(23, 100, 76, 0.92)),
    radial-gradient(circle at 90% 20%, rgba(196, 154, 44, 0.55), transparent 24%);
  border-bottom: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: #f2d782;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.subtitle {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.profile-panel,
.status-strip {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 223, 216, 0.88);
  border-radius: 8px;
}

.profile-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
  padding: 10px;
  color: var(--pitch);
}

.profile-panel span {
  flex: 1;
  font-weight: 800;
}

.status-strip {
  position: sticky;
  top: 10px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}

.album-progress {
  min-width: 150px;
}

.album-progress span,
.admin-offers span,
.status-count span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-offers {
  min-width: 115px;
}

.progress-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  background: #dfe7df;
  border-radius: 999px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pitch), var(--gold));
  border-radius: inherit;
  transition: width 0.25s ease;
}

.status-count {
  min-width: 78px;
}

.status-strip strong {
  font-size: 1.45rem;
  color: var(--pitch);
}

.status-offer {
  flex: 1;
  min-width: 0;
}

.status-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.status-row strong {
  font-size: 1rem;
}

.status-strip p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.card {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--pitch);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 59, 45, 0.08);
}

.card.special {
  border-top-color: var(--gold);
}

.team-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  color: var(--pitch);
  font-size: 1.1rem;
  font-weight: 900;
}

.team-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.team-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.team-abv {
  padding: 3px 6px;
  color: white;
  background: var(--pitch);
  border-radius: 5px;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.team-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.sticker-container,
.summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sticker {
  min-height: 34px;
  padding: 7px 12px;
  color: white;
  background: var(--danger);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(95, 25, 19, 0.2);
  cursor: pointer;
  font-weight: 900;
}

.sticker.selected {
  background: var(--success);
  box-shadow: 0 3px 0 rgba(21, 94, 59, 0.24);
}

.sticker.acquired {
  background: var(--success);
  box-shadow: 0 3px 0 rgba(21, 94, 59, 0.24);
}

.sticker.offered {
  color: var(--pitch);
  background: #f0c94a;
  box-shadow: 0 3px 0 rgba(150, 111, 9, 0.24);
}

.sticker.accepted {
  color: #263238;
  background: #cfd8dc;
  box-shadow: 0 3px 0 rgba(69, 90, 100, 0.22);
}

.admin-add-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.admin-add-form input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-add-form .ghost-button {
  min-height: 36px;
}

.summary-chip {
  padding: 7px 10px;
  background: #e8efe9;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pitch);
  font-weight: 800;
}

.accepted-history {
  margin-bottom: 8px;
}

.accepted-chip {
  color: #263238;
  background: #cfd8dc;
}

.summary-list.compact {
  margin-top: 8px;
  max-height: 84px;
  overflow: auto;
}

.compact .summary-chip {
  padding: 5px 9px;
  font-size: 0.9rem;
}

.ghost-button,
.primary-button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.ghost-button {
  color: var(--pitch);
  background: white;
  border: 1px solid var(--line);
}

.primary-button {
  color: white;
  background: var(--pitch);
  border: 1px solid var(--pitch);
}

.hidden {
  display: none;
}

.dialog {
  width: min(440px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(16, 37, 31, 0.58);
}

.dialog form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.dialog h2 {
  margin-bottom: 0;
  color: var(--pitch);
}

.dialog label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.dialog input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.admin-dialog {
  width: min(780px, calc(100% - 28px));
}

.admin-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.accepted-card {
  background: #f6f8f8;
}

.admin-card + .admin-card {
  margin-top: 10px;
}

.admin-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--pitch);
}

.status-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.status-badge.active {
  color: var(--pitch);
  background: #e8efe9;
}

.status-badge.accepted {
  color: #16512f;
  background: #c9efda;
}

.admin-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.offer-impact {
  color: var(--pitch);
  font-weight: 900;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.danger-button {
  color: #9d2f27;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 720px) {
  .hero,
  .status-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-panel {
    width: 100%;
  }
}
