:root {
  --jade: #177b73;
  --jade-dark: #0d4f4a;
  --pink: #f5b8c9;
  --rose: #ff6b9e;
  --cream: #fff8ef;
  --ink: #1d1f2b;
  --sky: #bce8f7;
  --card: rgba(255, 255, 255, 0.8);
  --shadow: 0 12px 28px rgba(18, 34, 54, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #fff3e1 0%, #ffeaf2 48%, #d7f4ff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
  z-index: -1;
}

.bg-1 {
  width: 340px;
  height: 340px;
  background: var(--rose);
  top: -90px;
  right: -80px;
}

.bg-2 {
  width: 420px;
  height: 420px;
  background: var(--jade);
  bottom: -130px;
  left: -110px;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.8rem 1.2rem 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--jade-dark);
  margin: 0 0 0.6rem;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.subtitle {
  margin-top: 0.55rem;
  font-size: 1.05rem;
}

.pill-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  background: var(--card);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1rem;
}

.wide {
  grid-column: span 2;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.meta {
  margin: 0;
  font-size: 0.9rem;
  color: #4f566b;
}

.stack {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.86rem;
  font-weight: 600;
  display: grid;
  gap: 0.35rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid rgba(32, 42, 64, 0.16);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.66rem 0.9rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(140deg, var(--jade) 0%, #1e9f94 100%);
  cursor: pointer;
}

button:hover {
  filter: brightness(1.07);
}

button:disabled {
  cursor: not-allowed;
  filter: saturate(0.35);
}

.card-list,
.ladder-list,
.activity-feed {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.challenge-card,
.activity-item,
.rank-row {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.75rem;
}

.challenge-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.challenge-card .title {
  margin: 0;
  font-weight: 700;
}

.challenge-card .details,
.activity-item p,
.stats {
  margin: 0.25rem 0 0;
  color: #5d6274;
  font-size: 0.86rem;
}

.inline-form {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 0.6rem;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.rank-badge {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  background: linear-gradient(160deg, var(--rose), #f584ac);
}

.player-name {
  font-weight: 700;
}

.city {
  font-size: 0.82rem;
  color: #59607a;
}

.movement {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--jade-dark);
}

.empty {
  margin: 0;
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: #556074;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: span 1;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}

