@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary-bg: #FFF8E1;       /* Light Cream */
  --primary-color: #7B1E1E;    /* Deep Maroon */
  --accent-color: #C49A3D;     /* Gold Ochre */
  --link-color: #C49A3D;
  --link-hover: #D4AF37;
  --text-color: #2C2C2C;       /* Charcoal Gray */
  --header-text: #F8F8F8;      /* Off‑white */
  --optional-accent: #1B1F3B;  /* Midnight Blue */
}

/* Calendar styling */
.fc-today-button {
  text-transform: uppercase;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  background: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.hero {
  display: grid;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  background: linear-gradient(135deg, rgba(123, 30, 30, 0.9) 0%, rgba(196, 154, 61, 0.85) 50%, rgba(255, 248, 225, 0.2) 100%);
  color: var(--header-text);
  align-items: center;
}

.hero__content {
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin-bottom: 1rem;
  color: #FFEFD6;
  font-weight: 600;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero__copy {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__aside {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  max-width: 420px;
  margin-inline: auto;
}

.hero__chips {
  width: min(220px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%),
              conic-gradient(from 180deg, var(--accent-color) 0deg, var(--accent-color) 70deg, var(--primary-color) 70deg, var(--primary-color) 180deg,
                var(--optional-accent) 180deg, var(--optional-accent) 250deg, var(--accent-color) 250deg, var(--accent-color) 360deg);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.hero__chips::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 225, 0.85) 0%, rgba(255, 248, 225, 0.1) 70%);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.25);
}

.hero__aside-copy {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.home-feature-grid {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-feature-card {
  display: grid;
  gap: 0.75rem;
  background: #fff;
  padding: 1.75rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 12px 24px rgba(27, 31, 59, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(123, 30, 30, 0.08);
}

.home-feature-card:hover,
.home-feature-card:focus {
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.95), rgba(196, 154, 61, 0.2));
  box-shadow: 0 18px 30px rgba(27, 31, 59, 0.16);
  border-color: rgba(196, 154, 61, 0.35);
}

.home-feature-card:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

.home-feature-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.home-feature-card p {
  margin: 0;
  font-size: 0.98rem;
}

.home-feature-card__icon {
  width: 56px;
  height: 56px;
}

.page-content {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-block: clamp(2rem, 6vw, 4rem);
  max-width: 100vw;
  overflow-x: hidden;
}

.page-section {
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.page-section__inner {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.page-title {
  margin: 0;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--primary-color);
}

.page-lede {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: rgba(44, 44, 44, 0.82);
}

.stats-summary {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.stats-summary__card {
  position: relative;
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(27, 31, 59, 0.08);
  border: 1px solid rgba(123, 30, 30, 0.08);
  display: grid;
  gap: 0.35rem;
}

.stats-summary__label {
  font-size: 0.95rem;
  color: rgba(44, 44, 44, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.stats-summary__value {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.55rem;
  margin: 0;
  color: var(--primary-color);
}

.stats-summary__meta {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(44, 44, 44, 0.68);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stats-table {
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.stats-table__wrapper {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(123, 30, 30, 0.1);
  box-shadow: 0 14px 28px rgba(27, 31, 59, 0.08);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 30, 30, 0.4) transparent;
  padding-bottom: 0.35rem;
  scrollbar-gutter: stable both-edges;
}

.stats-table__wrapper:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.stats-table__wrapper::-webkit-scrollbar {
  height: 0.55rem;
}

.stats-table__wrapper::-webkit-scrollbar-thumb {
  background: rgba(123, 30, 30, 0.45);
  border-radius: 999px;
}

.stats-table__wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.stats-table table {
  inline-size: 100%;
  min-width: 64rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  white-space: nowrap;
}

.stats-table thead {
  background: rgba(123, 30, 30, 0.08);
}

.stats-table th,
.stats-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(27, 31, 59, 0.08);
  color: var(--text-color);
}

.stats-table th:first-child,
.stats-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  box-shadow: 6px 0 12px rgba(27, 31, 59, 0.05);
  z-index: 2;
}

.stats-table thead th:first-child {
  background: rgba(123, 30, 30, 0.08);
  z-index: 3;
}

.stats-table tbody tr:nth-child(even) {
  background: rgba(123, 30, 30, 0.02);
}

.stats-table tbody tr:nth-child(even) td:first-child {
  background: rgba(123, 30, 30, 0.02);
}

.stats-table tbody tr:hover {
  background: rgba(196, 154, 61, 0.08);
}

.stats-table .player-cell a {
  font-weight: 600;
  color: var(--primary-color);
}

.stats-table .player-cell a:hover,
.stats-table .player-cell a:focus-visible {
  text-decoration: underline;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sort-button:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 6px;
}

.sort-indicator {
  font-size: 0.9rem;
  color: var(--accent-color);
}

.table-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(44, 44, 44, 0.68);
}

.stats-table__controls {
  display: none;
}

.stats-table__controls-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #141414;
}

.stats-table__controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-table__select {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(27, 31, 59, 0.18);
  background: #fff;
  font-weight: 600;
  color: #141414;
}

.sort-button--direction {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(27, 31, 59, 0.18);
  background: #f4f6fb;
}

@media (max-width: 900px) {
  .stats-table table {
    font-size: 0.95rem;
    min-width: 64rem;
  }
}

@media (max-width: 768px) {
  .stats-summary {
    padding-inline: clamp(1rem, 6vw, 2rem);
  }

  .stats-table {
    padding-inline: clamp(1rem, 6vw, 2rem);
  }

  .stats-table table {
    font-size: 0.95rem;
    min-width: 64rem;
  }

  .stats-table th,
  .stats-table td {
    padding: 0.85rem 1rem;
    white-space: nowrap;
    word-break: normal;
  }
}

@media (max-width: 640px) {
  .page-content {
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
  }

  .page-section {
    padding-inline: clamp(0.85rem, 4vw, 1.5rem);
  }

  .stats-summary {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .stats-summary__card {
    width: 100%;
  }

  .stats-table__wrapper {
    max-width: 100vw;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .stats-table table {
    min-width: 64rem;
  }

  .stats-table th:first-child,
  .stats-table td:first-child {
    box-shadow: 4px 0 8px rgba(27, 31, 59, 0.08);
  }
}

@media (max-width: 640px) {
  .stats-table__controls {
    display: block;
    margin-bottom: 1rem;
  }

  .sort-button--direction {
    width: auto;
  }

  .stats-table__wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(123, 30, 30, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(27, 31, 59, 0.12);
    background: #fff;
  }

  .stats-table table {
    display: table;
    min-width: 64rem;
    border-collapse: collapse;
  }

  .stats-table thead {
    display: table-header-group;
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    padding: 0;
    position: static;
    width: auto;
  }

  .stats-table tbody {
    display: table-row-group;
    gap: 0;
  }

  .stats-table tbody tr {
    display: table-row;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .stats-table th,
  .stats-table td {
    display: table-cell;
    border-bottom: 1px solid rgba(27, 31, 59, 0.08);
    box-shadow: none;
    position: static;
  }

  .stats-table td {
    display: table-cell;
    padding: 0.7rem 0.85rem;
    text-align: left;
    vertical-align: middle;
  }

  .stats-table td:last-child {
    border-bottom: none;
    padding-bottom: 0.7rem;
  }

  .stats-table td::before {
    content: none;
  }

  .stats-table td:first-child,
  .stats-table td.player-cell {
    display: table-cell;
    padding: 0.85rem 0.85rem 0.7rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(27, 31, 59, 0.08);
  }

  .stats-table td.player-cell::before {
    display: none;
  }

  .stats-table td.player-cell a {
    font-size: 1.05rem;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  }
}

@media (max-width: 720px) {
  .hero {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }
}

header,
footer {
  background: var(--primary-color);
  color: var(--header-text);
  padding: 1rem 2rem;
  text-align: center;
}

/* Calendar page layout */
.calendar-page {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem) 4rem;
}

.calendar-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.calendar-auth-card,
.calendar-schedule-card {
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 18px 40px rgba(27, 31, 59, 0.12);
  border: 1px solid rgba(123, 30, 30, 0.12);
  display: grid;
  gap: 1.5rem;
}

.calendar-card-header {
  display: grid;
  gap: 0.65rem;
}

.calendar-card-header h2 {
  margin: 0;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: var(--primary-color);
  letter-spacing: 0.01em;
}

.calendar-card-description {
  margin: 0;
  color: rgba(44, 44, 44, 0.78);
  font-size: 0.98rem;
}

.calendar-card-callout {
  background: rgba(196, 154, 61, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: rgba(44, 44, 44, 0.85);
  font-size: 0.95rem;
}

.calendar-card-callout--accent {
  background: rgba(123, 30, 30, 0.08);
  border-left-color: var(--primary-color);
  color: rgba(44, 44, 44, 0.92);
}

.calendar-auth-form {
  display: grid;
  gap: 0.75rem;
}

.calendar-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(44, 44, 44, 0.85);
}

.calendar-auth-form input {
  border-radius: 10px;
  border: 1px solid rgba(123, 30, 30, 0.2);
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-auth-form input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(196, 154, 61, 0.2);
}

.calendar-status {
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: rgba(44, 44, 44, 0.75);
}

.calendar-status--error {
  color: #b21b1b;
}

.calendar-status--success {
  color: #0f6b3f;
}

.calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calendar-button:hover,
.calendar-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(123, 30, 30, 0.25);
  outline: none;
}

.calendar-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(196, 154, 61, 0.35);
}

.calendar-button--secondary {
  margin-top: 0.5rem;
  background: var(--accent-color);
  color: #1b1f3b;
}

.calendar-button--secondary:hover,
.calendar-button--secondary:focus {
  background: #d4af37;
  box-shadow: 0 12px 24px rgba(196, 154, 61, 0.25);
}

.calendar-button--ghost {
  background: transparent;
  border: 1px solid rgba(123, 30, 30, 0.2);
  color: var(--primary-color);
  box-shadow: none;
}

.calendar-button--ghost:hover,
.calendar-button--ghost:focus {
  background: rgba(123, 30, 30, 0.08);
  box-shadow: none;
}

.calendar-grid {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(27, 31, 59, 0.12);
}

.calendar-events {
  display: grid;
  gap: 1rem;
}

.calendar-events .event {
  border-radius: 14px;
  border: 1px solid rgba(123, 30, 30, 0.14);
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 24px rgba(27, 31, 59, 0.08);
  background: #fff;
  display: grid;
  gap: 0.75rem;
}

.calendar-events .event h3 {
  margin: 0;
  color: var(--primary-color);
}

.calendar-events .event p {
  margin: 0;
  font-size: 0.95rem;
}

.calendar-events .event p + p {
  margin-top: 0.5rem;
  color: rgba(44, 44, 44, 0.75);
}

.calendar-event-date {
  font-weight: 700;
  color: rgba(123, 30, 30, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.calendar-events .event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.calendar-rsvp {
  border-radius: 14px;
  border: 1px solid rgba(27, 31, 59, 0.12);
  padding: 1.1rem 1.3rem;
  background: rgba(255, 248, 225, 0.65);
  display: grid;
  gap: 0.75rem;
}

.calendar-rsvp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-rsvp h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.calendar-rsvp ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.calendar-rsvp li {
  list-style: disc;
}

@media (min-width: 960px) {
  .calendar-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .calendar-auth-card,
  .calendar-schedule-card {
    padding: 1.5rem;
  }

  .calendar-button {
    width: 100%;
  }
}

/* FullCalendar theming */
.fc .fc-toolbar.fc-header-toolbar {
  padding: 0.85rem 1.1rem;
  background: linear-gradient(90deg, rgba(123, 30, 30, 0.95), rgba(196, 154, 61, 0.75));
  color: #fff;
}

.fc .fc-toolbar-title {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: #fff;
}

.fc-theme-standard .fc-button-primary {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fc-theme-standard .fc-button-primary:hover,
.fc-theme-standard .fc-button-primary:focus {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.fc-theme-standard .fc-button-primary:disabled {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.fc .fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
  color: var(--text-color);
  font-weight: 600;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border-color: rgba(123, 30, 30, 0.12);
}

.fc .fc-daygrid-day.fc-day-today {
  background: rgba(196, 154, 61, 0.2);
}

.fc-event,
.fc-daygrid-event {
  background: var(--primary-color);
  border: none;
  padding: 0.15rem 0.4rem;
}

.fc-daygrid-event .fc-event-title {
  font-weight: 600;
}

.fc .fc-popover {
  border-radius: 12px;
  border-color: rgba(123, 30, 30, 0.2);
  box-shadow: 0 18px 32px rgba(27, 31, 59, 0.18);
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: sticky;
  top: 0;
  /* Keep the global navigation layer above any dashboard content */
  z-index: 4000;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
}

.nav-backdrop[hidden] {
  display: none;
}
.site-header h1,
footer p {
  margin: 0;
}

/* Dashboard */
.dashboard-page {
  max-width: min(1140px, 94vw);
  margin: clamp(2rem, 4vw, 3.5rem) auto 4rem;
  display: grid;
  gap: 2.5rem;
}

.dashboard-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.75rem, 2.5vw, 2.75rem);
  box-shadow: 0 20px 45px rgba(27, 31, 59, 0.1);
  border: 1px solid rgba(123, 30, 30, 0.08);
  display: grid;
  gap: 1.5rem;
}

.dashboard-card__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-color);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

.auth-card {
  max-width: 480px;
  margin-inline: auto;
}

.dashboard-layout {
  display: none;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.dashboard-layout.is-visible {
  display: grid;
}

.dashboard-hero {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(123, 30, 30, 0.92), rgba(196, 154, 61, 0.85));
  color: var(--header-text);
  overflow: hidden;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
}

.dashboard-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
}

.dashboard-hero__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 248, 225, 0.85);
}

.dashboard-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

.dashboard-hero__subtitle {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 248, 225, 0.85);
  font-size: clamp(1rem, 2.3vw, 1.1rem);
}

.dashboard-hero__meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 1.5rem;
  border-radius: 18px;
  background: rgba(27, 31, 59, 0.28);
  backdrop-filter: blur(6px);
  align-self: start;
  color: rgba(255, 248, 225, 0.9);
}

.dashboard-hero__meta-label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.dashboard-hero__meta-value {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  word-break: break-word;
}

.dashboard-hero__logout {
  justify-self: start;
}

.dashboard-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 560px) {
  .dashboard-hero__meta {
    max-width: min(320px, 80%);
  }
}

@media (min-width: 768px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    align-items: center;
  }

  .dashboard-hero__meta {
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .dashboard-hero {
    padding: 1.75rem;
  }

  .dashboard-hero__meta {
    padding: 1rem 1.25rem;
  }
}

@media (min-width: 680px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }

  #profile-summary {
    grid-column: 1 / 2;
  }

  #customization-controls,
  #security-settings {
    grid-column: 2 / 3;
  }
}

.dashboard-section {
  position: relative;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.section-heading p {
  margin: 0.4rem 0 0;
  color: rgba(44, 44, 44, 0.72);
  font-size: 0.95rem;
}

.profile-overview {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.avatar-stack {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
}

#profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(123, 30, 30, 0.15);
  box-shadow: 0 15px 30px rgba(27, 31, 59, 0.15);
}

.border-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  display: none;
}

.file-upload {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  cursor: pointer;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-editor {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

#image-preview {
  display: none;
  width: min(320px, 100%);
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(27, 31, 59, 0.12);
}

.profile-bio__text {
  margin: 0;
  padding: 1rem;
  background: rgba(196, 154, 61, 0.08);
  border-radius: 12px;
  min-height: 3.5rem;
}

.profile-bio__text:empty {
  display: none;
}

.profile-stats h3,
.profile-activity h3,
.profile-badges h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.stats-grid p {
  margin: 0;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(27, 31, 59, 0.05);
  font-weight: 600;
  color: rgba(27, 31, 59, 0.8);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.activity-list li {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fdf6e8;
  font-weight: 600;
  color: rgba(27, 31, 59, 0.78);
}

.badge-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: stretch;
}

.badge-grid .badge {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(27, 31, 59, 0.04);
  box-shadow: inset 0 0 0 1px rgba(123, 30, 30, 0.08);
}

.badge-grid .badge img {
  width: 64px;
  height: 64px;
}

.badge-grid .badge span {
  font-size: 0.88rem;
  text-align: center;
  color: rgba(27, 31, 59, 0.85);
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-label {
  font-weight: 700;
  color: rgba(27, 31, 59, 0.8);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(27, 31, 59, 0.15);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.92);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(196, 154, 61, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 154, 61, 0.2);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  background: rgba(27, 31, 59, 0.08);
  color: var(--primary-color);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(27, 31, 59, 0.12);
}

.btn:focus {
  outline: 3px solid rgba(196, 154, 61, 0.35);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--primary-color);
  color: var(--header-text);
}

.btn--primary:hover,
.btn--primary:focus {
  background: #8f2424;
}

.btn--secondary {
  background: var(--accent-color);
  color: var(--header-text);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: #d4af37;
}

.btn--outline {
  background: transparent;
  border: 1px dashed rgba(196, 154, 61, 0.6);
  color: var(--accent-color);
}

.btn--outline:hover,
.btn--outline:focus {
  background: rgba(196, 154, 61, 0.12);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(27, 31, 59, 0.18);
  color: rgba(27, 31, 59, 0.75);
}

.btn--ghost:hover,
.btn--ghost:focus {
  background: rgba(27, 31, 59, 0.08);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(27, 31, 59, 0.45);
  backdrop-filter: blur(3px);
  padding: 1.5rem;
  z-index: 2000;
}

.modal__content {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  min-width: min(420px, 90vw);
  box-shadow: 0 25px 45px rgba(27, 31, 59, 0.2);
}

.modal__content h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.modal__content select {
  width: 100%;
  border: 1px solid rgba(27, 31, 59, 0.15);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.modal.show {
  display: flex;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .dashboard-page {
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .dashboard-card {
    padding: 1.5rem;
  }

  .button-group {
    width: 100%;
  }

  .button-group .btn {
    flex: 1 1 auto;
  }
}
header h2 {
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--link-hover);
}
.tagline {
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--link-hover);
  text-align: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 2100;
}
.nav-toggle:focus,
.nav-toggle:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

nav {
  margin-top: 0.5rem;
  z-index: 2000; /* Increased z-index to ensure nav overlays all content */
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-account {
  display: flex;
  align-items: center;
  margin-left: auto;
}

nav a {
  margin: 0;
  text-decoration: none;
  color: var(--link-color);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(196, 154, 61, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.account-chip:hover,
.account-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  outline: none;
}

.account-chip--profile {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
}

.account-chip--cta {
  background: linear-gradient(135deg, var(--accent-color), #e9c46a);
  color: var(--primary-color);
  border-color: rgba(196, 154, 61, 0.7);
}

.account-chip--cta:hover,
.account-chip--cta:focus-visible {
  background: linear-gradient(135deg, #f0cd78, var(--accent-color));
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 154, 61, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.account-name {
  white-space: nowrap;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: var(--link-color);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.dropbtn::after {
  content: ' \25BC'; /* Unicode for down arrow */
  font-size: 0.8em;
  margin-left: 0.3em;
  color: var(--link-color);
  transition: transform 0.2s;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--primary-bg); /* Changed to cream color */
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 5000; /* Ensure dropdowns overlay dashboard hero */
  border-radius: 4px;
}

.dropdown-content a {
  display: block;
  margin: 0;
  padding: 0.75rem 1rem;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content,
.dropbtn[aria-expanded="true"] + .dropdown-content {
  display: block;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content,
.dropbtn[aria-expanded="true"] + .dropdown-content {
  background: #f7e9c2; /* slightly darker cream for hover */
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.dropdown.open > .dropbtn,
.dropbtn[aria-expanded="true"] {
  color: var(--accent-color);
}

.dropdown.open > .dropbtn::after,
.dropbtn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-content a:hover {
  background: var(--accent-color);
  color: var(--header-text);
}

@media (min-width: 601px) {
  nav .dropdown:hover .dropdown-content,
  nav .dropdown.open .dropdown-content,
  nav .dropbtn[aria-expanded="true"] + .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav .dropdown:hover > .dropbtn,
  nav .dropdown.open > .dropbtn,
  nav .dropbtn[aria-expanded="true"] {
    color: var(--accent-color);
  }
}



@media (max-width: 600px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    text-align: left;
  }
  .nav-toggle {
    display: block;
    position: static;
    margin-left: auto;
    align-self: center;
    order: 2;
  }
  header h1 {
    font-size: 1.2rem;
    order: 1;
    margin: 0;
    flex: 1 1 auto;
    text-align: left;
  }
  header h2 {
    font-size: 0.9rem;

  }
  .nav-toggle {
    display: block;
    align-self: flex-end;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 2000; /* Ensure mobile nav overlays all content */
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-account {
    width: 100%;
    margin-left: 0;
  }

  .account-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .account-chip--profile {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
  }
  nav.open {
    display: flex;
  }
  nav a,
  .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 4px;
  }

  nav a:hover,
  .dropbtn:hover {
    background: rgba(255,255,255,0.1);
  }

  .dropdown {
    display: none;
  }

  .dropdown-content {
    display: none !important;
  }

  /* Show all links in mobile menu */
  nav .dropdown-content a {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    width: 100%;
  }
}

/* Hide mobile-only links on desktop */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  /* Show mobile-only links */
  .mobile-only {
    display: block !important;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-account {
    width: 100%;
    margin-left: 0;
  }

  .account-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .account-chip--profile {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  header h1 {
    font-size: 1rem;
  }
  header h2 {
    font-size: 0.8rem;
  }
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Centered text variant for the home page */
.home-container {
  text-align: center;
}

/* Info page layout */
.info-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem 2rem;
}

.info-hero {
  background: linear-gradient(135deg, rgba(123, 30, 30, 0.95), rgba(196, 154, 61, 0.9));
  color: var(--header-text);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.info-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}

.info-hero h1 {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-top: 0;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.info-hero p,
.info-hero-list {
  position: relative;
  z-index: 1;
}

.info-hero-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.info-hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}

.info-hero-list li::before {
  content: '\2726';
  color: var(--header-text);
  opacity: 0.85;
  font-size: 1.1rem;
  line-height: 1;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-section h2 {
  margin-top: 0;
  color: var(--primary-color);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

.info-section-intro {
  margin-top: 0.25rem;
  font-weight: 600;
}

.info-summary-list {
  margin: 0;
  padding-left: 1.2rem;
}

.info-summary-list li {
  margin-bottom: 0.35rem;
}

.rules-accordion {
  display: grid;
  gap: 1rem;
}

.rules-card {
  background: rgba(255, 248, 225, 0.55);
  border: 1px solid rgba(123, 30, 30, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rules-card[open] {
  border-color: rgba(123, 30, 30, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.rules-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

.rules-card > summary::-webkit-details-marker {
  display: none;
}

.rules-card > summary::after {
  content: '\25BC';
  margin-left: auto;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.rules-card[open] > summary::after {
  transform: rotate(180deg);
}

.rules-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.rules-card ul {
  margin: 0;
  padding: 0 1.25rem 1.25rem 2.5rem;
  display: grid;
  gap: 0.5rem;
}

.rules-card ul ul {
  margin-top: 0.35rem;
  padding-left: 1.25rem;
  gap: 0.35rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.badge-card {
  background: rgba(255, 248, 225, 0.6);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-card:hover,
.badge-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.badge-card img {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.badge-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.badge-card p {
  margin: 0;
}

@media (max-width: 768px) {
  .info-main {
    padding: 0 0.75rem 2rem;
  }

  .info-hero {
    padding: 2rem 1.5rem;
  }

  .rules-card > summary {
    padding: 0.85rem 1rem;
  }

  .rules-card ul {
    padding: 0 1rem 1rem 2rem;
  }
}

@media (max-width: 540px) {
  .info-hero-list {
    gap: 0.6rem;
  }

  .rules-accordion {
    gap: 0.75rem;
  }

  .badge-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .badge-card {
    padding: 1rem 0.75rem;
  }
}

/* Variant used on pages that need more width */
/* Containers that hold wide tables should allow horizontal scrolling
   instead of forcing the entire page to be wider than the viewport. */
.wide-container {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: auto;
}

/* Allow tables within wide containers to exceed container width */
.wide-container table {
  width: 100%;
  min-width: 800px;
  table-layout: auto;
  margin-left: auto;
  margin-right: auto;
}

/* RSVP dropdown positioning */
#rsvp-container {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  padding: 1rem 1.5rem;
  z-index: 3000;
  border-radius: 8px;
  min-width: 220px;
  max-width: 90vw;
  max-height: 60vh;
  overflow-y: auto;
  box-sizing: border-box;
  right: 0;
  left: auto;
}
#rsvp-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--primary-color);
}
#rsvp-list {
  list-style: disc inside;
  margin: 0;
  padding: 0 0 0 1rem;
  color: var(--text-color);
  font-size: 1rem;
}
#rsvp-list li {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

button,
.cta-button {
  background: var(--accent-color);
  color: var(--header-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover,
.cta-button:hover {
  background: var(--link-hover);
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.notification-optin {
  margin: 2rem auto;
  max-width: 520px;
  background: rgba(27, 31, 59, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
}

.home-container .notification-optin {
  text-align: center;
}

.notification-optin button {
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.secondary-button {
  background: transparent;
  color: var(--optional-accent);
  border: 2px solid var(--optional-accent);
  font-weight: 600;
  margin-left: 0.5rem;
  padding: 0.65rem 1.35rem;
}

.secondary-button:hover,
.secondary-button:focus {
  background: rgba(27, 31, 59, 0.08);
  color: var(--optional-accent);
}

.notification-settings-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  z-index: 3000;
}

.notification-settings-modal[hidden] {
  display: none;
}

.notification-settings-modal__content {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.notification-settings-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--optional-accent);
  font-size: 1.5rem;
  cursor: pointer;
}

.notification-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.notification-category-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
}

.notification-category-list span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: #555;
}

.notification-category-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.notification-guidance {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--optional-accent);
}

.notification-status {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

.notification-status.success {
  color: #1b5e20;
}

.notification-status.error {
  color: #b71c1c;
}

.notification-status.info {
  color: var(--optional-accent);
}

textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  resize: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  line-height: 1.2;
  margin-top: 0;
  font-weight: bold;
}
p {
  margin-bottom: 1rem;
}

#quote-of-the-day {
  font-style: italic;
  color: inherit;
}

#quote-section {
  text-align: center;
  margin-top: 2rem;
}

#quote-controls {
  margin-top: 0.5rem;
}

#quote-votes {
  margin-left: 0.5rem;
  font-weight: bold;
}

#quote-input {
  max-width: 400px;
  display: block;
  margin: 0.5rem auto;
}

#quote-section button {
  margin-top: 0.5rem;
}

/* Leaderboard table */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}

th {
  cursor: pointer;
  background-color: #f4f4f4;
  font-weight: bold;
}

/* Keep leaderboard headers visible when scrolling */
#leaderboard thead th {
  position: sticky;
  top: 0;
  background-color: #f4f4f4;
  z-index: 2;
}

.sort-icon {
  margin-left: 4px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }
  nav a {
    margin: 0 0.5rem;
  }
  th,
  td {
    font-size: 0.85rem;
    padding: 0.4rem;
  }
  .wide-container {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Player profile page */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}
.profile-header #profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 60%;
  border: 4px solid var(--accent-color);
  box-sizing: border-box;
  object-fit: cover;
  margin-bottom: 1rem;
}
#equipped-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.profile-header #equipped-badge img {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0;
}
#avatar-wrapper {
  position: relative;
  display: inline-block;
  width: min(350px, 100%);
  aspect-ratio: 1 / 1;
}

.border-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
  border-radius: 60%;
  object-fit: contain;
}

.profile-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-color);
}
#player-title {
  font-style: italic;
  text-align: center;
  margin: 0.25rem 0;
}
#player-elo {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: var(--accent-color);
}
.badge-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.badge {
  text-align: center;
}

#leaderboard-title {
  text-align: center;
}
.badge img {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 0.5rem;
}
.chart-controls {
  text-align: center;
  margin-bottom: 1rem;
}
.chart-controls button {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.compare-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

#charts-wrapper {
  display: none;
}
.compare-charts .player-charts {
  flex: 1 1 45%;
}
.compare-charts canvas {
  max-width: 100%;
  width: 100% !important;
  height: 220px !important;
  min-height: 120px;
  max-height: 40vw;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .compare-charts canvas {
    width: 100vw !important;
    min-width: 220px;
    height: 180px !important;
    min-height: 100px;
    max-height: 40vw;
    margin-left: -10vw;
    left: 50%;
    transform: translateX(0);
  }
  #avatar-wrapper {
    width: 80vw;
    height: 80vw;
    min-width: 180px;
    min-height: 180px;
    max-width: 98vw;
    max-height: 98vw;
  }
  .profile-header #profile-photo {
    width: 100%;
    height: 100%;
    min-width: 120px;
    min-height: 120px;
    max-width: 98vw;
    max-height: 98vw;
  }
  #profile-border {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    min-width: 120px;
    min-height: 120px;
  }
  #equipped-badge {
    width: 30%;
    height: auto;
    min-width: 60px;
    min-height: 60px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  .profile-header #equipped-badge img {
    width: 100%;
    height: auto;
    min-width: 60px;
    min-height: 60px;
    display: block;
    margin: 0;
  }
}

/* Attendees popup modal */
.attendees-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid var(--accent-color);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  z-index: 4000;
  min-width: 260px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  text-align: left;
}
.attendees-popup strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.attendees-popup ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
  color: var(--text-color);
  font-size: 1rem;
}
.attendees-popup li {
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.attendees-popup .close-popup {
  display: block;
  margin: 0 auto;
  background: var(--accent-color);
  color: var(--header-text);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.attendees-popup .close-popup:hover {
  background: var(--link-hover);
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-banner-stack {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.status-banner {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
  background: #f4f4f4;
  border-left: 4px solid transparent;
}

.status-banner.with-spinner::before {
  content: '';
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: status-spin 0.9s linear infinite;
}

.status-banner-message {
  flex: 1 1 auto;
}

.status-info {
  background: #eef3ff;
  color: #1b3a70;
  border-left-color: #1b3a70;
}

.status-success {
  background: #e6f4ea;
  color: #1b5e20;
  border-left-color: #1b5e20;
}

.status-warning {
  background: #fff4de;
  color: #b26a00;
  border-left-color: #b26a00;
}

.status-error {
  background: #fdecea;
  color: #a3102d;
  border-left-color: #a3102d;
}

body #schedule-display {
  margin-top: 1rem;
  text-align: left;
}

body #schedule-display.is-empty ol {
  padding-left: 0;
  display: block;
}

body #schedule-display .schedule-empty {
  list-style: none;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(196, 154, 61, 0.4);
  border-radius: 6px;
  color: #6b7280;
  background: rgba(255, 248, 225, 0.6);
  text-align: center;
}

@keyframes status-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.quote-card {
  background: linear-gradient(135deg, rgba(47, 11, 11, 0.92), rgba(8, 12, 32, 0.94));
  color: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
  box-shadow: 0 18px 40px rgba(27, 31, 59, 0.25);
  overflow: hidden;
}

.quote-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-card__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-color);
}

.quote-card__text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
}

.quote-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  align-self: flex-start;
}

.quote-card__votes-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.quote-card__votes {
  font-size: 1.15rem;
  min-width: 1.5rem;
  text-align: center;
}

.quote-card__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(8, 12, 32, 0.55);
  border-radius: 16px;
  padding: 1.25rem;
}

.quote-card__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-card__textarea {
  font: inherit;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.85rem 1rem;
  resize: vertical;
  min-height: 6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-card__textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.quote-card__button {
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 1rem;
}

.quote-card__button:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.6);
  outline-offset: 2px;
}

.quote-card__button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.quote-card__button--primary {
  background: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 12px 24px rgba(196, 154, 61, 0.35);
}

.quote-card__button--primary:not(:disabled):hover,
.quote-card__button--primary:not(:disabled):focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(196, 154, 61, 0.5);
}

.quote-card__button--secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.quote-card__button--secondary:not(:disabled):hover,
.quote-card__button--secondary:not(:disabled):focus {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.quote-card__status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 1.25rem;
}

.quote-card__status--success {
  color: #c8f7d4;
}

.quote-card__status--error {
  color: #ffd0c8;
}

.feature-request {
  margin: 3rem auto;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(27, 31, 59, 0.1);
  max-width: 760px;
}

.feature-request__intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.feature-request__intro h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--primary-color);
}

.feature-request__intro p {
  margin: 0;
  color: rgba(27, 31, 59, 0.75);
}

.feature-request__form {
  display: grid;
  gap: 1.5rem;
}

.feature-request__field {
  display: grid;
  gap: 0.5rem;
}

.feature-request__field--full {
  grid-column: 1 / -1;
}

.feature-request__field label {
  font-weight: 600;
  color: var(--optional-accent);
}

.feature-request__optional {
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(27, 31, 59, 0.6);
}

.feature-request__field input,
.feature-request__field textarea {
  border: 1px solid rgba(27, 31, 59, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.95);
}

.feature-request__field input:focus,
.feature-request__field textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(196, 154, 61, 0.25);
}

.feature-request__actions {
  display: flex;
  justify-content: flex-end;
}

.feature-request__submit {
  background: var(--accent-color);
  color: var(--header-text);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 20px rgba(196, 154, 61, 0.25);
}

.feature-request__submit:hover,
.feature-request__submit:focus-visible {
  background: var(--link-hover);
  transform: translateY(-1px);
}

.feature-request__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.feature-request__status {
  margin: 0;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(27, 31, 59, 0.05);
}

.feature-request__status--success {
  color: #1b5e20;
  background: rgba(76, 175, 80, 0.15);
}

.feature-request__status--error {
  color: #c62828;
  background: rgba(198, 40, 40, 0.18);
}

@media (max-width: 600px) {
  .feature-request {
    margin: 2.5rem 1rem;
    padding: 1.75rem;
  }

  .feature-request__actions {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .quote-card {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: stretch;
  }

  .quote-card__actions {
    align-self: stretch;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .quote-card {
    padding: 1.25rem;
  }

  .quote-card__actions {
    padding: 1rem;
  }

  .quote-card__text {
    font-size: 1.1rem;
  }
}

@media (max-width: 1024px) {
  .status-banner-stack {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  body .timer-controls {
    gap: 0.75rem;
  }
  body .timer-controls button {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 8.5rem;
  }
  body #schedule-display ol {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  body .roster-panel header {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  body #timer-display {
    padding: 1.25rem 1rem;
  }
  body .level-meta {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  body .timer-controls {
    flex-direction: column;
    align-items: stretch;
  }
  body .timer-controls button {
    width: 100%;
    min-width: 0;
  }
  body .roster-panel header {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  body .roster-controls {
    flex-direction: column;
    align-items: stretch;
  }
  body .roster-controls button {
    min-width: 0;
  }
  body .roster-item {
    grid-template-columns: 1fr;
  }
  body .roster-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  body .roster-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  body .roster-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body .bust-actions {
    width: 100%;
  }
  body .bust-actions button {
    flex: 1 1 auto;
  }
  body .modal-card {
    width: 100%;
    max-height: 95vh;
  }
  body .modal-card table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  body #schedule-display li {
    padding: 0.5rem;
  }
  body .level-meta .meta-item {
    padding: 0.5rem 0.75rem;
  }
  body .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .status-banner-stack {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.battlepass {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.battlepass-progress {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: stretch;
  background: linear-gradient(135deg, rgba(123, 30, 30, 0.95), rgba(196, 154, 61, 0.8));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(27, 31, 59, 0.18);
  color: var(--header-text);
}

.battlepass-progress__art {
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(255, 248, 225, 0.45), transparent 65%);
}

.battlepass-progress__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.battlepass-progress__content {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.battlepass-progress__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.battlepass-progress__season-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 248, 225, 0.75);
}

.battlepass-progress__season h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

.battlepass-progress__countdown-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 248, 225, 0.6);
}

.battlepass-progress__countdown-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
}

.battlepass-progress__description {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 248, 225, 0.85);
}

.battlepass-progress__cta {
  display: flex;
  flex-wrap: wrap;
}

.battlepass-progress__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--primary-color);
  background: rgba(255, 248, 225, 0.9);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(27, 31, 59, 0.18);
}

.battlepass-progress__cta-button:hover,
.battlepass-progress__cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(27, 31, 59, 0.25);
}

.battlepass-progress__bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.battlepass-progress__fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(196, 154, 61, 0.95), rgba(255, 248, 225, 0.85));
  border-radius: inherit;
  transition: width 0.4s ease;
}

.battlepass-progress__stats {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: rgba(255, 248, 225, 0.9);
}

.tier-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tier-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(255, 248, 225, 0.96), rgba(196, 154, 61, 0.16));
  border-radius: 18px;
  border: 1px solid rgba(123, 30, 30, 0.08);
  box-shadow: 0 18px 30px rgba(27, 31, 59, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-color);
}

.tier-card:hover,
.tier-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 36px rgba(27, 31, 59, 0.18);
}

.tier-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--optional-accent);
}

.tier-card__body {
  display: grid;
  gap: 1rem;
  grid-template-columns: 96px 1fr;
  align-items: center;
}

.tier-card__art {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: rgba(27, 31, 59, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tier-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tier-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.tier-card__type {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(27, 31, 59, 0.7);
}

.tier-card__status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--optional-accent);
}

.tier-card__actions {
  display: flex;
  justify-content: flex-end;
}

.tier-card__button {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(123, 30, 30, 0.92), rgba(196, 154, 61, 0.75));
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.tier-card__button:hover,
.tier-card__button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(27, 31, 59, 0.2);
}

.tier-card__button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.tier-card--locked {
  filter: grayscale(0.35);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(27, 31, 59, 0.08));
}

.tier-card--locked .tier-card__button {
  background: rgba(27, 31, 59, 0.2);
  color: rgba(27, 31, 59, 0.6);
}

.tier-card--locked .tier-card__status {
  color: rgba(27, 31, 59, 0.6);
}

@media (max-width: 960px) {
  .battlepass-progress {
    grid-template-columns: 1fr;
  }

  .battlepass-progress__art {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .tier-card__body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tier-card__art {
    margin: 0 auto;
  }

  .tier-card__actions {
    justify-content: center;
  }
}

.tier-card__info {
  display: grid;
  gap: 0.35rem;
}

.tier-card__info p {
  margin: 0;
}

.tier-card--claimed {
  border-color: rgba(196, 154, 61, 0.4);
  box-shadow: 0 22px 36px rgba(196, 154, 61, 0.25);
}

.tier-card--claimed .tier-card__status {
  color: var(--accent-color);
}
