:root {
  color-scheme: dark;
  font-family: 'Trebuchet MS', 'Gill Sans', 'Lucida Sans', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #ecf2f8;
  background:
    radial-gradient(circle at top left, rgba(40, 170, 150, 0.25), transparent 30%),
    radial-gradient(circle at top right, rgba(227, 159, 34, 0.15), transparent 28%),
    linear-gradient(180deg, #0a111b 0%, #10192b 50%, #07111b 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 75%);
}

a {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  padding: 34px 40px 40px;
  border: 1px solid rgba(40, 170, 150, 0.15);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(9, 18, 32, 0.95), rgba(15, 28, 48, 0.85));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(40, 170, 150, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  width: min(100%, 220px);
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  color: #7fd5c7;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 820px;
  color: #c0cedd;
  font-size: 1.08rem;
  margin: 18px 0 0;
  position: relative;
  z-index: 1;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.section-tab {
  border: 1px solid rgba(40, 170, 150, 0.22);
  background: rgba(7, 13, 22, 0.7);
  color: #d5ffef;
  padding: 11px 16px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.section-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 213, 199, 0.6);
  background: rgba(10, 19, 32, 0.92);
}

.section-tab.is-active {
  border-color: rgba(127, 213, 199, 0.85);
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.22), rgba(40, 170, 150, 0.08));
  color: #f2fffb;
}

.page-home .home-hero {
  min-height: calc(100vh - 56px);
  justify-content: center;
}

.hero-brand-home {
  margin-bottom: 24px;
}

.hero-logo-home {
  width: min(100%, 280px);
  max-width: 280px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.stat-card,
.panel,
.mini-card {
  border: 1px solid rgba(40, 170, 150, 0.12);
  background: rgba(8, 15, 28, 0.8);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card {
  padding: 20px;
  border-radius: 22px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stat-card:hover {
  border-color: rgba(40, 170, 150, 0.3);
  background: rgba(8, 15, 28, 0.95);
  box-shadow: 0 12px 32px rgba(40, 170, 150, 0.1);
  transform: translateY(-4px);
}

.stat-card span {
  color: #93a6ba;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-card strong {
  font-size: 1.4rem;
  color: #28AA96;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-stat {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.08), rgba(40, 170, 150, 0.03));
  border: 1px solid rgba(40, 170, 150, 0.15);
  display: grid;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.mini-stat:hover {
  border-color: rgba(40, 170, 150, 0.3);
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.12), rgba(40, 170, 150, 0.06));
}

.mini-stat span {
  color: #93a6ba;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mini-stat strong {
  font-size: 1.15rem;
  color: #28AA96;
}

.content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.panel:hover {
  border-color: rgba(40, 170, 150, 0.2);
  box-shadow: 0 16px 48px rgba(40, 170, 150, 0.1);
}

.panel p {
  color: #c0cedd;
  margin: 12px 0 0;
}

.list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #ecf2f8;
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(40, 170, 150, 0.35);
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.15), rgba(40, 170, 150, 0.05));
  color: #d5ffef;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(40, 170, 150, 0.6);
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.25), rgba(40, 170, 150, 0.1));
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mini-card:hover {
  border-color: rgba(40, 170, 150, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(40, 170, 150, 0.12);
}

.mini-card p {
  margin: 10px 0 0;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.08), transparent);
  border: 1px solid rgba(40, 170, 150, 0.15);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  border-color: rgba(40, 170, 150, 0.3);
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.12), transparent);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.members-table th,
.members-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(40, 170, 150, 0.1);
  vertical-align: top;
}

.members-table th {
  color: #93a6ba;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  background: rgba(40, 170, 150, 0.04);
  font-weight: 600;
}

.members-table tbody tr {
  transition: all 0.2s ease;
}

.members-table tbody tr:hover {
  background: rgba(40, 170, 150, 0.08);
}

.empty-cell {
  color: #b7c7d8;
  padding: 18px 14px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-top: 4px;
}

.section-heading p {
  max-width: 520px;
  color: #b7c7d8;
  margin: 0;
}

.podium-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px;
  align-items: end;
}

.podium-card {
  border: 0;
  border-radius: 28px;
  padding: 22px 18px;
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(18, 28, 45, 0.95), rgba(8, 14, 24, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  display: grid;
  justify-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(40, 170, 150, 0.16);
}

.podium-card:hover,
.quick-member:hover,
.ranking-card:hover,
.medal-button:hover,
.profile-action:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(40, 170, 150, 0.12);
}

.podium-card strong,
.podium-card p,
.podium-card span {
  text-align: center;
}

.podium-card strong {
  font-size: 1.08rem;
}

.podium-card p {
  margin: 0;
  color: #9eb4c6;
}

.podium-card-1 {
  min-height: 250px;
  background: linear-gradient(180deg, rgba(30, 139, 122, 0.95), rgba(10, 20, 32, 0.96));
}

.podium-card-2,
.podium-card-3 {
  min-height: 210px;
}

.podium-rank {
  align-self: start;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.podium-avatar,
.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: #e9fffb;
  background: linear-gradient(135deg, rgba(40, 170, 150, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.podium-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: #7fd5c7;
  font-size: 0.86rem;
}

.podium-base {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quick-member,
.ranking-card,
.profile-action {
  border: 1px solid rgba(40, 170, 150, 0.14);
  background: rgba(9, 18, 32, 0.78);
  color: inherit;
  border-radius: 18px;
  cursor: pointer;
}

.quick-member {
  padding: 14px 12px;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.quick-member span,
.ranking-position {
  font-size: 0.75rem;
  color: #7fd5c7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-member small,
.ranking-card p,
.muted {
  color: #9fb3c6;
}

.profile-panel {
  display: grid;
  gap: 18px;
}

.profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.profile-header h2,
.profile-header p,
.detail-copy h3,
.detail-copy p {
  margin: 0;
}

.profile-action {
  padding: 12px 16px;
  font-weight: 700;
  color: #d9fff4;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.medal-button {
  padding: 12px 10px 14px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  color: inherit;
  cursor: pointer;
}

.medal-button.is-selected {
  border-color: rgba(127, 213, 199, 0.75);
  box-shadow: 0 0 0 1px rgba(127, 213, 199, 0.2), 0 16px 36px rgba(40, 170, 150, 0.16);
}

.medal-name {
  font-size: 0.9rem;
  line-height: 1.2;
}

.medal-button small,
.detail-tags span {
  color: #90a4b8;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.medal-svg {
  width: 90px;
  height: 100px;
}

.medal-svg.large {
  width: 140px;
  height: 154px;
}

.medal-detail {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.95), rgba(8, 14, 24, 0.86));
  border: 1px solid rgba(40, 170, 150, 0.14);
}

.detail-card {
  display: grid;
  gap: 14px;
  align-items: start;
}

.detail-preview {
  display: grid;
  place-items: center;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(40, 170, 150, 0.08);
  border: 1px solid rgba(40, 170, 150, 0.18);
}

.ranking-grid {
  display: grid;
  gap: 10px;
}

.ranking-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.ranking-card strong,
.ranking-score {
  font-size: 1.02rem;
}

.ranking-score {
  color: #7fd5c7;
  font-weight: 700;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.medal-catalog-panel {
  display: grid;
  gap: 18px;
}

.medal-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.medal-catalog-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(40, 170, 150, 0.14);
  background: rgba(8, 15, 28, 0.72);
}

.medal-catalog-icon {
  width: 108px;
  display: grid;
  place-items: center;
}

.medal-catalog-copy h3 {
  margin: 0;
}

.medal-catalog-copy p {
  margin: 8px 0 0;
  color: #c0cedd;
}

.medal-catalog-copy .detail-tags {
  margin-top: 10px;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.compact-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #dbe8f5;
}

.profile-panel h2,
.ranking-panel h2,
.podium-panel h2,
.compact-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.medal-button:hover,
.ranking-card:hover,
.quick-member:hover,
.profile-action:hover {
  border-color: rgba(40, 170, 150, 0.35);
}

.panel:hover {
  border-color: rgba(40, 170, 150, 0.2);
  box-shadow: 0 16px 48px rgba(40, 170, 150, 0.1);
}

@media (max-width: 960px) {
  .hero-grid,
  .two-column,
  .card-grid,
  .stats-row,
  .podium-stage,
  .profile-metrics,
  .profile-body,
  .archive-grid,
  .medal-catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .hero,
  .panel {
    padding: 20px;
    border-radius: 20px;
  }

  .hero-grid,
  .two-column,
  .card-grid,
  .stats-row,
  .podium-stage,
  .profile-metrics,
  .profile-body,
  .archive-grid,
  .podium-base,
  .medal-catalog-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .profile-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-brand {
    margin-bottom: 14px;
  }

  .hero-logo {
    max-width: 170px;
  }

  .podium-card-1,
  .podium-card-2,
  .podium-card-3 {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
  }

  .header h1 {
    font-size: 1.2rem;
  }
}