:root {
  --navy: #092f56;
  --navy-dark: #05213e;
  --navy-soft: #174c78;
  --gold: #c58a25;
  --gold-light: #f4c75d;
  --paper: rgba(255,253,247,0.9);
  --text: #142033;
  --muted: #667085;
  --line: rgba(9,47,86,0.15);
  --success: #267a50;
  --shadow: 0 18px 50px rgba(5,33,62,0.16);
}

* { box-sizing: border-box; }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #dbeafe, #f8f6ff 52%, #eadcff);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body > :not(#penrose) {
  position: relative;
  z-index: 1;
}

a { color: inherit; }
button, input { font: inherit; }

#penrose {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.82);
  background:
    radial-gradient(circle at 12% 0%, rgba(244,199,93,0.22), transparent 31%),
    radial-gradient(circle at 92% 20%, rgba(37,170,252,0.14), transparent 34%),
    linear-gradient(115deg, rgba(255,253,247,0.86), rgba(237,246,250,0.76) 52%, rgba(255,248,235,0.82));
  box-shadow:
    0 14px 34px rgba(5,33,62,0.12),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(9,47,86,0.06);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 5vw, 72px) 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(197,138,37,0.6), rgba(9,47,86,0.42), transparent);
  pointer-events: none;
}

.brand, .site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px 12px 16px 16px;
  border: 1px solid rgba(12, 48, 82, 0.12);
  background: #fbf4e9;
  box-shadow: 0 8px 18px rgba(12, 48, 82, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.header-profile-inline {
  display: flex;
  margin-right: auto;
  align-items: center;
  gap: 12px;
}

.header-profile-inline .avatar {
  width: 48px;
  height: 48px;
  border-width: 3px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(5,33,62,0.16), 0 0 0 1px var(--gold);
  font-size: 1.45rem;
}

.header-profile-inline .profile-heading h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.site-nav {
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.site-nav a, .nav-button {
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.site-nav a:not(.nav-button) { border: 0; background: transparent; }

.nav-button {
  display: inline-flex;
  width: 154px;
  min-width: 154px;
  max-width: 154px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 154px;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 1.5px solid rgba(9,47,86,0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 12%, rgba(244,199,93,0.22), transparent 34%),
    linear-gradient(135deg, rgba(255,253,247,0.9), rgba(229,242,250,0.72));
  box-shadow:
    0 8px 18px rgba(5,33,62,0.11),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(9,47,86,0.05);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.site-nav a:hover { color: var(--gold); }

.nav-button:hover {
  border-color: rgba(161,62,62,0.5);
  color: #9a3445;
  background:
    radial-gradient(circle at 18% 12%, rgba(244,199,93,0.26), transparent 34%),
    linear-gradient(135deg, rgba(255,250,250,0.94), rgba(255,238,242,0.82));
  box-shadow:
    0 10px 22px rgba(106,38,54,0.14),
    inset 0 1px 0 rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.premium-nav-button {
  position: relative;
  overflow: hidden;
  border-color: rgba(197,138,37,0.42);
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow:
    0 9px 20px rgba(197,138,37,0.2),
    inset 0 1px 0 rgba(255,255,255,0.38);
}

.premium-nav-button::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -65%;
  width: 34px;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.78), transparent);
  transform: rotate(20deg);
  animation: premium-shine 120s ease-in-out infinite;
  pointer-events: none;
}

.premium-nav-button:hover {
  border-color: rgba(197,138,37,0.55);
  color: #ffffff;
  background: linear-gradient(135deg, #b97d1e, #eeb947);
  box-shadow:
    0 11px 24px rgba(197,138,37,0.26),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transform: translateY(-1px);
}

@keyframes premium-shine {
  0%,
  98.7% {
    left: -65%;
  }

  99.35% {
    left: 125%;
  }

  100% {
    left: 125%;
  }
}

.nav-button:focus-visible {
  outline: 3px solid rgba(197,138,37,0.3);
  outline-offset: 3px;
}

.profile-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 44px auto;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(244,199,93,0.14), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(37,170,252,0.12), transparent 34%),
    linear-gradient(145deg, rgba(255,253,247,0.84), rgba(236,246,252,0.68));
  box-shadow:
    0 24px 60px rgba(5,33,62,0.16),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(9,47,86,0.05);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at 16% 6%, rgba(244,199,93,0.18), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(37,170,252,0.16), transparent 35%),
    linear-gradient(135deg, rgba(255,253,247,0.88), rgba(229,241,255,0.72));
}

.avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fffaf0;
  border-radius: 26px;
  color: var(--gold-light);
  background: radial-gradient(circle at 35% 25%, var(--navy-soft), var(--navy-dark));
  box-shadow: 0 14px 28px rgba(5,33,62,0.2), 0 0 0 2px var(--gold);
  font: 700 2.5rem/1 Georgia, serif;
}

.avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.membership-line, .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.membership-badge, .count-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197,138,37,0.35);
  border-radius: 999px;
  color: #76500f;
  background: rgba(244,199,93,0.2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-since, .welcome-message, .activity-item small { color: var(--muted); }

.profile-heading h1 {
  margin: 0;
  color: var(--navy);
  font: 700 clamp(1.9rem, 4vw, 2.8rem)/1 Georgia, serif;
}

.username {
  margin: 8px 0;
  color: var(--navy-soft);
  font-weight: 750;
}

.welcome-message { margin: 0; }

.profile-actions {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 10px;
}

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.secondary-button {
  border: 1px solid rgba(9,47,86,0.25);
  color: var(--navy);
  background: rgba(255,255,255,0.7);
}

.primary-button:hover, .secondary-button:hover:not(:disabled) {
  box-shadow: 0 10px 22px rgba(5,33,62,0.18);
  transform: translateY(-2px);
}

.secondary-button:disabled { opacity: 0.7; cursor: not-allowed; }

.copy-message {
  min-height: 18px;
  margin: 0;
  color: var(--success);
  font-size: 0.78rem;
  text-align: left;
}

.nav-copy-message {
  flex-basis: 100%;
  min-height: 16px;
  color: var(--success);
  text-align: right;
}

.invitation-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-button {
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
}

.profile-games {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 32px);
}

.profile-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.profile-game-choice {
  display: flex;
  min-height: 310px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 24px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.74), rgba(246,250,255,0.52));
  box-shadow:
    0 8px 20px rgba(5,33,62,0.08),
    inset 0 1px 0 rgba(255,255,255,0.88);
  flex-direction: column;
  text-decoration: none;
  perspective: 900px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.profile-game-choice:hover {
  border-color: rgba(197,138,37,0.28);
  background: rgba(255,255,255,0.86);
  box-shadow:
    0 14px 28px rgba(5,33,62,0.14),
    inset 0 1px 0 rgba(255,255,255,0.92);
  transform: translateY(-3px);
}

.profile-game-cover {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(128px, 15vw, 155px);
  padding: 13px 13px 17px;
  border: 1px solid rgba(165, 136, 92, 0.35);
  border-radius: 18px 18px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.62), rgba(228,218,201,0.58)),
    linear-gradient(135deg, rgba(216,229,232,0.66), rgba(252,244,229,0.78));
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,0.45),
    inset 0 -9px 0 rgba(118, 102, 78, 0.12),
    0 10px 22px rgba(54,70,110,0.14);
  box-sizing: border-box;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.profile-game-cover::before {
  content: "";
  position: absolute;
  inset: 8px 8px 12px;
  border: 2px solid rgba(255,255,255,0.72);
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(69,82,110,0.12),
    0 0 0 1px rgba(89,93,102,0.08);
  pointer-events: none;
  z-index: 2;
}

.profile-game-cover::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f6d77e;
  box-shadow:
    0 0 0 2px rgba(95,75,43,0.18),
    0 2px 5px rgba(51,42,31,0.28);
  z-index: 3;
}

.profile-game-choice:hover .profile-game-cover {
  filter: saturate(0.9) brightness(1.03);
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,0.5),
    inset 0 -9px 0 rgba(118, 102, 78, 0.1),
    0 15px 28px rgba(54,70,110,0.2);
  transform: rotateY(-7deg) translateX(2px);
}

.profile-game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.96);
}

.tafl-card-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(240,195,91,0.2), transparent 34%),
    linear-gradient(135deg, rgba(45,27,87,0.9), rgba(9,47,86,0.78));
}

.tafl-mini-board {
  display: grid;
  width: min(118px, 72%);
  aspect-ratio: 1;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 2px solid rgba(240,195,91,0.68);
  border-radius: 14px;
  background: rgba(255,248,235,0.16);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.tafl-mini-board i {
  position: relative;
  display: block;
  border-radius: 4px;
  background: rgba(255,248,235,0.32);
}

.tafl-mini-board i:nth-child(1),
.tafl-mini-board i:nth-child(5),
.tafl-mini-board i:nth-child(21),
.tafl-mini-board i:nth-child(25),
.tafl-mini-board i:nth-child(13) {
  background: rgba(240,195,91,0.78);
}

.tafl-mini-board i:nth-child(3)::after,
.tafl-mini-board i:nth-child(11)::after,
.tafl-mini-board i:nth-child(15)::after,
.tafl-mini-board i:nth-child(23)::after,
.tafl-mini-board i:nth-child(13)::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #f8f0dc;
  box-shadow: 0 3px 6px rgba(0,0,0,0.22);
}

.tafl-mini-board i:nth-child(13)::after {
  border-radius: 30%;
  background: linear-gradient(135deg, #f0c35b, #c58a25);
}

.profile-game-copy {
  display: flex;
  padding: 17px 4px 2px;
  flex: 1;
  flex-direction: column;
}

.profile-game-copy strong {
  color: var(--navy);
  font: 800 21px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
}

.profile-game-copy small {
  margin-top: 7px;
  color: var(--muted);
  font: 600 13px/1.45 "Poppins", "Segoe UI", Arial, sans-serif;
}

.profile-game-copy b {
  margin-top: auto;
  padding-top: 14px;
  color: #377fd1;
  font: 800 13px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.stats-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 20px 24px;
}

.stats-toolbar h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font: 700 1.55rem/1.2 Georgia, serif;
}

.stats-toolbar p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.game-stat-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-stat-filter select {
  min-width: 190px;
  padding: 10px 34px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: rgba(255,255,255,0.82);
  font-weight: 750;
  text-transform: none;
  cursor: pointer;
  outline: none;
}

.game-stat-filter select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,138,37,0.12);
}

.stat-card {
  display: grid;
  min-height: 148px;
  padding: 20px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.5), transparent 52%),
    linear-gradient(145deg, rgba(232,244,255,0.78), rgba(255,253,247,0.58));
  box-shadow:
    0 14px 34px rgba(5,33,62,0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  text-align: center;
}

.stat-icon { color: var(--gold); font-size: 1.4rem; }
.stat-card strong { color: var(--navy); font: 700 2rem/1 Georgia, serif; }
.stat-card span:last-child { color: var(--muted); font-size: 0.83rem; font-weight: 700; }

.daily-streak-card {
  background:
    radial-gradient(circle at 50% 18%, rgba(244,199,93,0.24), transparent 42%),
    linear-gradient(145deg, rgba(255,248,225,0.78), rgba(255,253,247,0.58));
}

.profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}

.profile-columns > .profile-card,
.profile-shell > .profile-card:not(.profile-summary) {
  padding: clamp(22px, 4vw, 32px);
}

.section-heading { margin-bottom: 20px; }
.section-heading h2, .membership-card h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font: 700 1.55rem/1.2 Georgia, serif;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.activity-list { display: grid; gap: 10px; }

.empty-state {
  display: grid;
  min-height: 160px;
  padding: 20px;
  place-items: center;
  align-content: center;
  border: 1px dashed rgba(9,47,86,0.18);
  border-radius: 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.48), rgba(237,246,250,0.34));
  text-align: center;
}

.empty-state span { color: var(--gold); font-size: 1.7rem; }
.empty-state p { margin: 8px 0 2px; color: var(--text); font-weight: 800; }

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 16px;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.68), rgba(246,250,255,0.42));
  box-shadow:
    0 8px 18px rgba(5,33,62,0.07),
    inset 0 1px 0 rgba(255,255,255,0.82);
  text-decoration: none;
}

.saved-game:hover { border-color: var(--gold); transform: translateY(-1px); }

.activity-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(9,47,86,0.08);
  font-weight: 900;
}

.activity-item strong, .activity-item small { display: block; }
.activity-item b { color: var(--navy-soft); font-size: 0.8rem; }

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

.achievement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.62), rgba(246,250,255,0.4));
  box-shadow:
    0 8px 18px rgba(5,33,62,0.07),
    inset 0 1px 0 rgba(255,255,255,0.8);
  opacity: 0.62;
}

.achievement.unlocked { border-color: rgba(197,138,37,0.4); opacity: 1; }
.achievement-icon { font-size: 1.7rem; }
.achievement h3 { margin: 0 0 4px; color: var(--navy); }
.achievement p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.achievement-status { grid-column: 2; color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.achievement-total { color: var(--muted); font-size: 0.83rem; }

.settings-columns { align-items: stretch; }
.membership-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(244,199,93,0.22), transparent 34%),
    linear-gradient(145deg, rgba(255,250,240,0.82), rgba(238,244,255,0.68));
}
.membership-star { color: var(--gold); font-size: 2rem; }

#profile-form { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--navy); font-size: 0.83rem; font-weight: 800; }
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  outline: none;
}
.form-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,138,37,0.12); }
.form-actions { display: flex; align-items: center; gap: 14px; }
#save-message { color: var(--success); font-size: 0.84rem; }

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .profile-summary { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: auto; }
  .membership-line { justify-content: center; }
  .profile-actions { width: min(320px, 100%); margin: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-columns { grid-template-columns: 1fr; }
  .profile-game-grid { grid-template-columns: 1fr; }
  .profile-game-choice {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(170px, 230px) 1fr;
    gap: 18px;
    align-items: center;
  }
  .profile-game-cover {
    height: 128px;
  }
  .profile-game-copy {
    padding: 4px 4px 4px 0;
  }
  .stats-toolbar { align-items: stretch; flex-direction: column; }
  .game-stat-filter { justify-content: space-between; }
  .achievement-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px 11px 14px 14px;
  }
  .brand-mark img {
    width: 100%;
    height: 100%;
    transform: none;
  }
  .site-nav { width: 100%; gap: 10px; flex-wrap: wrap; justify-content: stretch; }
  .site-nav .nav-button { flex: 1 1 150px; }
  .nav-copy-message { text-align: left; }
  .profile-shell { margin-top: 24px; }
  .profile-game-choice {
    display: flex;
    min-height: 0;
    gap: 0;
  }
  .profile-game-cover {
    height: clamp(128px, 42vw, 155px);
  }
  .profile-game-copy {
    padding: 15px 4px 2px;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .daily-streak-card { grid-column: 1 / -1; }
  .stat-card { min-height: 120px; padding: 14px; }
  .invitation-heading-actions { align-items: flex-end; flex-direction: column; }
  .site-footer { align-items: center; flex-direction: column; gap: 8px; }
}
