
:root {
  --bg: #f4f1eb;
  --surface: #ffffff;
  --surface-soft: #faf7f2;
  --ink: #1f2630;
  --muted: #6f7680;
  --line: #ded8cf;
  --accent: #c83b49;
  --accent-dark: #8f2430;
  --accent-soft: #f8dfe2;
  --gold: #c89b3c;
  --shadow: 0 12px 28px rgba(31, 38, 48, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(200,59,73,.08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  margin-top: 24px;
  padding: 34px 38px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 50%),
    linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  box-shadow: var(--shadow);
}

.hero__eyebrow,
.section-heading__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero__eyebrow { opacity: .74; }

.hero__content {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.hero__subtitle {
  margin: 14px 0 0;
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  opacity: .86;
}

.identity-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .86rem;
  font-weight: 800;
}

.breadcrumbs {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.breadcrumbs a {
  text-decoration: none;
  font-weight: 750;
}

.breadcrumbs a:hover { color: var(--accent); }

.dashboard {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.section-heading__kicker { color: var(--accent); }

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -.025em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  display: block;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, var(--surface-soft));
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #c9b9aa;
  box-shadow: 0 14px 30px rgba(31,38,48,.1);
}

.card__meta {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #efebe5;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.status {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 850;
}

.status--muted { color: var(--muted); }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.info-card {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid #ebe5dc;
}

.info-card__label,
.info-card__note { display: block; }

.info-card__label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  font-size: 1.08rem;
}

.info-card__note {
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.party-slot {
  min-height: 96px;
  padding: 14px;
  border: 1px dashed #cfc8bd;
  border-radius: 14px;
  background: #fbfaf8;
}

.party-slot--filled {
  border-style: solid;
  background: linear-gradient(135deg, #fff, #faf7f2);
}

.party-slot strong { display: block; }

.party-slot span {
  color: var(--muted);
  font-size: .82rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.badge {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f6f2;
  color: #9a948a;
  text-align: center;
}

.badge__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 12px;
  font-weight: 900;
}

.badge small {
  margin-top: 7px;
  font-size: .7rem;
  font-weight: 750;
}

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

.log {
  display: grid;
  gap: 10px;
}

.log-entry {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.log-entry strong { display: block; }

.log-entry p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
  color: var(--muted);
}

.site-footer {
  padding: 16px 4px 38px;
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
}

.site-footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .party-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-shell { width: min(100% - 20px, 1180px); }
  .hero { padding: 26px 22px; border-radius: 18px; }
  .hero__content { flex-direction: column; align-items: start; }
  .panel { padding: 18px; }
  .card-grid,
  .overview-grid,
  .party-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
}
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #1f2630;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-button:hover {
  background: #c83b49;
  transform: translateY(-1px);
}