/* Navigation refresh only: page tables, forms and their behavior remain unchanged. */
.topbar,
.game-view-page .topbar {
  display: grid;
  grid-template-areas: "season nav account";
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(100% - 36px, 1340px);
  height: auto;
  min-height: 76px;
  margin: 12px auto 0;
  padding: 8px 16px;
  border: 1px solid #e9e4f1;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 28px rgba(52, 34, 92, .08);
  position: sticky;
  top: 10px;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.competition-switcher {
  grid-area: season;
  position: relative;
  justify-self: start;
}

.season-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #ded5f0;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff, #f7f3ff);
  box-shadow: 0 5px 18px rgba(52, 34, 92, .09);
  color: #514568;
  cursor: pointer;
  font: 800 13px Manrope, sans-serif;
  white-space: nowrap;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.season-picker:hover,
.season-picker[aria-expanded="true"] {
  border-color: #bca9e8;
  box-shadow: 0 7px 22px rgba(93, 56, 191, .16);
}

.season-picker[aria-expanded="true"] .season-caret {
  transform: rotate(180deg);
}

.competition-menu[hidden] {
  display: none !important;
}

.competition-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 35;
  display: grid;
  width: min(290px, calc(100vw - 28px));
  gap: 3px;
  padding: 9px;
  border: 1px solid #e7e0f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 25, 63, .17);
}

.competition-menu-heading {
  padding: 7px 10px 8px;
  color: #8a8297;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.competition-menu form {
  margin: 0;
}

.competition-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #514a62;
  cursor: pointer;
  font: 700 13px Manrope, sans-serif;
  text-align: left;
}

.competition-option:hover,
.competition-option.is-current {
  background: #f2edff;
  color: #5938bf;
}

.competition-option:disabled {
  background: #f7f5fa;
  color: #9b95a7;
  cursor: not-allowed;
}

.competition-option-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c4bdcf;
}

.competition-option.is-current .competition-option-dot {
  background: #24a47b;
  box-shadow: 0 0 0 4px rgba(36, 164, 123, .12);
}

.competition-option small {
  margin-left: auto;
  color: #8a8297;
  font-size: 9px;
  font-weight: 700;
}

.season-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24a47b;
  box-shadow: 0 0 0 4px rgba(36, 164, 123, .12);
}

.season-caret {
  display: grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-left: 1px;
  place-items: center;
  border-radius: 50%;
  background: #f2eef9;
  color: #706981;
  font-size: 13px;
  transition: transform .18s ease;
}

.season-picker > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 2px solid #eee9f6;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(38, 24, 69, .14);
}

.main-nav .brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 42px;
  padding: 0 3px;
  border-radius: 999px;
}

.main-nav,
.game-view-page .main-nav {
  grid-area: nav;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 54px;
  padding: 5px 7px;
  border: 1px solid #eee9f5;
  border-radius: 999px;
  background: #fdfcff;
  box-shadow: 0 4px 15px rgba(52, 34, 92, .06);
}

.main-nav a,
.game-view-page .main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  color: #5d566c;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.main-nav a:hover,
.game-view-page .main-nav a:hover,
.main-nav a.active,
.game-view-page .main-nav a.active {
  border: 0;
  background: #eee8ff;
  color: #5938bf;
}

.main-nav a.active::after,
.game-view-page .main-nav a:first-child::after {
  display: none;
  content: none;
}

.account {
  position: relative;
  grid-area: account;
  justify-self: end;
  display: block;
  margin: 0;
  color: #514a62;
  font-family: Manrope, sans-serif;
  font-size: 13px;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 6px 5px 12px;
  border: 1px solid #e9e4f1;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: #d8ccf5;
  box-shadow: 0 4px 14px rgba(93, 56, 191, .12);
}

.account-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #eee8ff;
  color: #5d3bbf;
  font-size: 13px;
  font-weight: 800;
  object-fit: cover;
}

.account-trigger-label {
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-trigger-label b {
  max-width: 150px;
  overflow: hidden;
  color: #40384f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger-label small {
  color: #827b90;
  font-size: 10px;
  font-weight: 600;
}

.account-caret {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #f4f1f9;
  color: #716a80;
  font-size: 13px;
  transition: transform .18s ease;
}

.account-trigger[aria-expanded="true"] .account-caret {
  transform: rotate(180deg);
}

.account-menu[hidden] {
  display: none !important;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 230px;
  padding: 8px;
  border: 1px solid #e8e2f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 25, 63, .16);
}

.account-menu > a,
.account-menu .text-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #514a62;
  font: 600 13px Manrope, sans-serif;
  text-align: left;
  text-decoration: none;
}

.account-menu > a:hover,
.account-menu .text-button:hover {
  background: #f2edff;
  color: #5938bf;
}

.account-menu form {
  margin: 0;
}

.account-menu-separator {
  height: 1px;
  margin: 5px 8px;
  background: #eeeaf4;
}

@media (max-width: 900px) {
  .topbar,
  .game-view-page .topbar {
    grid-template-columns: minmax(145px, 1fr) auto minmax(145px, 1fr);
    gap: 10px;
    width: calc(100% - 24px);
    padding: 8px 12px;
  }

  .season-picker {
    min-height: 48px;
    gap: 8px;
    padding: 0 11px;
    font-size: 12px;
  }

  .brand-logo {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .main-nav a,
  .game-view-page .main-nav a {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  body,
  .game-view-page {
    padding-top: 0 !important;
  }

  .topbar,
  .game-view-page .topbar {
    position: sticky;
    top: 6px;
    display: grid;
    grid-template-areas: "season account" "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    width: calc(100% - 16px);
    min-height: 0;
    height: auto;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .season-picker {
    gap: 7px;
    padding: 0 10px;
    font-size: 11px;
  }

  .competition-switcher {
    min-width: 0;
    max-width: 100%;
  }

  .season-picker {
    max-width: 100%;
    min-height: 42px;
    overflow: hidden;
    border-radius: 14px;
    text-overflow: ellipsis;
  }

  .season-picker > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .season-caret {
    width: 23px;
    height: 23px;
  }

  .brand-logo,
  .game-view-page .brand-logo {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .main-nav .brand {
    width: 34px;
    height: 36px;
    padding: 0 2px;
  }

  .game-view-page .main-nav .brand {
    flex: 0 0 34px;
  }

  .main-nav,
  .game-view-page .main-nav {
    justify-self: center;
    width: min(100%, 390px);
    height: 46px;
    padding: 4px;
  }

  .main-nav a,
  .game-view-page .main-nav a {
    flex: 1 1 0;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .account,
  .game-view-page .account {
    flex: initial;
    max-width: none;
    margin: 0;
    white-space: normal;
    font-size: 12px;
    z-index: 40;
  }

  .account-trigger {
    min-height: 42px;
    gap: 6px;
    padding: 4px 5px 4px 7px;
  }

  .account-avatar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .account-trigger-label b {
    max-width: 75px;
    font-size: 10px;
  }

  .account-trigger-label small {
    font-size: 9px;
  }

  .account-caret {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .account-menu {
    top: calc(100% + 8px);
    width: min(230px, calc(100vw - 24px));
  }

  .game-view-page .page-shell {
    padding-top: 20px;
  }
}

@media (max-width: 380px) {
  .season-picker {
    gap: 6px;
    padding: 0 8px;
    font-size: 10px;
  }

  .main-nav a,
  .game-view-page .main-nav a {
    padding: 0 5px;
    font-size: 12px;
  }

  .account-trigger-label b {
    max-width: 54px;
  }
}

html[data-theme="dark"] .topbar {
  border-color: #343047;
  background: rgba(25, 29, 43, .94);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .account-trigger-label b {
  color: #ece9f5;
}

html[data-theme="dark"] .season-picker {
  border-color: #4b4168;
  background: linear-gradient(135deg, #29263a, #242337);
  color: #ded9eb;
}

html[data-theme="dark"] .competition-menu {
  border-color: #3b3551;
  background: #202436;
}

html[data-theme="dark"] .competition-menu-heading,
html[data-theme="dark"] .competition-option small {
  color: #aaa3bd;
}

html[data-theme="dark"] .competition-option {
  color: #ded9eb;
}

html[data-theme="dark"] .competition-option:hover,
html[data-theme="dark"] .competition-option.is-current {
  background: #363051;
  color: #d0c3ff;
}

html[data-theme="dark"] .season-caret {
  background: #363051;
  color: #c9b8ff;
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .account-trigger-label small {
  color: #aaa3bd;
}

html[data-theme="dark"] .main-nav {
  border-color: #3b3551;
  background: #1d2030;
}

html[data-theme="dark"] .main-nav a {
  color: #c7c1d8;
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active {
  background: #363051;
  color: #c9b8ff;
}

html[data-theme="dark"] .account-trigger,
html[data-theme="dark"] .account-menu {
  border-color: #3b3551;
  background: #202436;
  color: #e8e4f1;
}

html[data-theme="dark"] .account-avatar,
html[data-theme="dark"] .account-caret {
  background: #363051;
  color: #c9b8ff;
}

html[data-theme="dark"] .account-menu > a,
html[data-theme="dark"] .account-menu .text-button {
  color: #ded9eb;
}

html[data-theme="dark"] .account-menu > a:hover,
html[data-theme="dark"] .account-menu .text-button:hover {
  background: #363051;
  color: #d0c3ff;
}

/* Purple visual refresh for non-table surfaces and controls. */
body:not(.game-view-page) {
  background-color: #f7f5fa;
  background-image: radial-gradient(ellipse at 50% -240px, #e8e0ff 0, transparent 54%);
}

.page-heading h1,
.game-title-line h1,
.section-title h2,
.game-edit-section-heading h2 {
  font-family: Manrope, sans-serif;
}

.section-card,
.metric,
.login-card,
.profile-hero,
.activity-card {
  border-color: #e8e3f1;
  box-shadow: 0 8px 26px rgba(56, 37, 93, .07);
}

.section-card {
  border-radius: 20px;
}

.section-title h2 {
  color: #2c243e;
  font-size: 21px;
  font-weight: 800;
}

.button.primary,
.primary {
  border-color: #6845cf;
  background: linear-gradient(110deg, #704fda, #5c3cc2);
  box-shadow: 0 6px 16px rgba(104, 69, 207, .24);
}

.button.primary:hover,
.primary:hover {
  border-color: #5736b8;
  background: linear-gradient(110deg, #6442cc, #5233b3);
}

.button.secondary {
  border-color: #e5def2;
  background: #f4f0fc;
  color: #5f49a8;
}

.button.secondary:hover {
  border-color: #d6c8f3;
  background: #eee8fb;
}

.metric {
  border-radius: 20px;
}

.metric > span:first-child {
  color: #5c536d;
  font-size: 14px;
  font-weight: 700;
}

.metric strong {
  font-size: 36px;
}

.metric.accent {
  border-color: #6240c6;
  background: linear-gradient(135deg, #5737bd, #7957e2);
}

.metric.accent > span:first-child,
.metric.accent .metric-note {
  color: #eee8ff;
}

.series-row {
  border-color: #eeeaf4;
  border-radius: 14px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.series-row:hover {
  border-color: #e4dcf7;
  background: #faf8ff;
  transform: translateY(-1px);
}

.series-row .series-main b {
  color: #30283e;
  font-size: 17px;
}

.series-row .series-main small {
  color: #827b90;
  font-size: 13px;
}

.series-row .series-icon,
.series-row .arrow,
.game-number {
  color: #6541ce;
}

.game-card {
  border-color: #e8e3f1;
  border-radius: 17px;
  box-shadow: 0 5px 16px rgba(56, 37, 93, .05);
}

.game-card:hover {
  border-color: #cdbff0;
  box-shadow: 0 9px 22px rgba(104, 69, 207, .12);
}

.game-view-page {
  background: radial-gradient(ellipse at 8% 0, #e8e0ff 0, transparent 38%),
    radial-gradient(ellipse at 92% 80%, #f0e8fb 0, transparent 32%),
    linear-gradient(135deg, #f8f6fb, #f0edf7 58%, #f8f6fb);
}

.game-view-page .game-hero-card {
  background: linear-gradient(110deg, #43327f, #7254d1);
  box-shadow: 0 9px 24px rgba(89, 62, 183, .22);
}

html[data-theme="dark"] body:not(.game-view-page) {
  background-color: #111522;
  background-image: radial-gradient(ellipse at 50% -240px, #2b2550 0, transparent 54%);
}

html[data-theme="dark"] .section-title h2,
html[data-theme="dark"] .series-row .series-main b {
  color: #e8e4f2;
}

html[data-theme="dark"] .series-row {
  border-color: #30384b;
}

html[data-theme="dark"] .series-row:hover {
  border-color: #484064;
  background: #25223a;
}

html[data-theme="dark"] .series-row .series-main small {
  color: #aaa3bd;
}

@media (max-width: 700px) {
  .section-card {
    border-radius: 17px;
  }

  .section-title h2 {
    font-size: 19px;
  }

  .series-row .series-main b {
    font-size: 15px;
  }

  .series-row .series-main small {
    font-size: 12px;
  }

  .metric > span:first-child {
    font-size: 13px;
  }
}

/* Variant 1 — Classic retro chic: warm paper, clay accents, quiet depth. */
:root {
  --bg: #e8dcc8;
  --surface: #f5f1e8;
  --ink: #2c1810;
  --muted: #806d5e;
  --line: #b9a58c;
  --primary: #a0522d;
  --primary-dark: #7e3e23;
  --soft: #ead9c3;
  --green: #765437;
  --green-bg: #f0e2c7;
  --amber: #a0522d;
  --amber-bg: #f2e3cd;
  --red: #9e473b;
  --shadow: 0 12px 28px rgba(57, 36, 24, .12);
}

body:not(.game-view-page),
html[data-theme="dark"] body:not(.game-view-page) {
  color: #2c1810;
  background-color: #e8dcc8;
  background-image:
    radial-gradient(ellipse at 12% 4%, rgba(255, 250, 239, .76), transparent 42%),
    radial-gradient(ellipse at 92% 82%, rgba(160, 82, 45, .07), transparent 36%),
    repeating-linear-gradient(0deg, rgba(92, 64, 51, .018) 0, rgba(92, 64, 51, .018) 1px, transparent 1px, transparent 4px);
}

body, body:not(.game-view-page) {
  color: #2c1810;
  font-family: Manrope, "Trebuchet MS", sans-serif;
}

.topbar,
.game-view-page .topbar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .game-view-page .topbar {
  min-height: 76px;
  border: 2px solid #5c4033;
  border-radius: 15px;
  background: rgba(245, 241, 232, .97);
  box-shadow: 0 7px 0 rgba(92, 64, 51, .12), 0 13px 24px rgba(57, 36, 24, .12);
  backdrop-filter: blur(10px);
}

.brand-logo,
.brand:hover .brand-logo {
  border: 2px solid #5c4033;
  box-shadow: 0 3px 0 #5c4033, 0 6px 12px rgba(44, 24, 16, .2);
  filter: sepia(.82) saturate(.78) hue-rotate(337deg) contrast(1.05);
}

.season-picker,
.main-nav,
.account-trigger,
.competition-menu,
.account-menu {
  border-color: #b9a58c;
  background: #f5f1e8;
  color: #2c1810;
  box-shadow: 0 3px 0 rgba(92, 64, 51, .13);
}

.season-picker:hover,
.season-picker[aria-expanded="true"] {
  border-color: #a0522d;
  box-shadow: 0 4px 0 rgba(92, 64, 51, .16);
}

.main-nav a,
.game-view-page .main-nav a {
  color: #5c4033;
  font-family: Manrope, sans-serif;
  font-weight: 750;
}

.main-nav a:hover,
.game-view-page .main-nav a:hover,
.main-nav a.active,
.game-view-page .main-nav a.active,
.competition-option:hover,
.competition-option.is-current,
.account-menu > a:hover,
.account-menu .text-button:hover {
  background: #ead9c3;
  color: #7e3e23;
}

.competition-option,
.account-menu > a,
.account-menu .text-button,
.account,
.account-trigger-label small,
.season-caret {
  color: #5c4033;
}

.season-dot,
.competition-option.is-current .competition-option-dot {
  background: #a0522d;
  box-shadow: 0 0 0 4px rgba(160, 82, 45, .13);
}

.page-shell,
.game-view-page .page-shell {
  max-width: 1320px;
  padding-top: 36px;
}

.page-heading h1,
.game-title-line h1,
.section-title h2,
.game-edit-section-heading h2 {
  color: #2c1810;
  font-family: Unbounded, Georgia, serif;
  letter-spacing: -.045em;
}

.page-heading h1,
.game-title-line h1 {
  font-size: clamp(27px, 3vw, 36px);
}

.eyebrow,
.game-eyebrow {
  color: #a0522d;
  font-weight: 800;
  letter-spacing: .14em;
}

.muted,
.page-heading .muted {
  color: #806d5e;
}

.section-card,
.metric,
.login-card,
.profile-hero,
.activity-card,
html[data-theme="dark"] .section-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .profile-hero,
html[data-theme="dark"] .activity-card {
  border: 2px solid #b9a58c;
  background: rgba(245, 241, 232, .94);
  color: #2c1810;
  box-shadow: 0 5px 0 rgba(92, 64, 51, .12), 0 13px 28px rgba(57, 36, 24, .10);
}

.section-card {
  border-radius: 17px;
}

.section-title h2 {
  color: #5c4033;
  font-size: 20px;
  font-weight: 800;
}

.metric {
  border-radius: 15px;
}

.metric > span:first-child {
  color: #806d5e;
  font-weight: 750;
}

.metric strong {
  color: #2c1810;
  font-family: Unbounded, Manrope, sans-serif;
}

.metric.accent,
html[data-theme="dark"] .metric.accent {
  border-color: #5c4033;
  background: linear-gradient(145deg, #5c4033 0%, #75452f 58%, #8e4b2f 100%);
  color: #f5f1e8;
}

.metric.accent > span:first-child,
.metric.accent .metric-note,
.metric.accent strong {
  color: #f5f1e8;
}

.metric a,
.metric.accent a,
.auth-links a,
.login-hint a {
  color: #a0522d;
  font-weight: 800;
}

.metric.accent a {
  color: #f1d8ad;
}

.auth-links {
  align-items: center;
  font-size: 15px;
}

.auth-links .registration-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #b29074;
  border-radius: 9px;
  background: #d8b99e;
  color: #684831;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(92, 64, 51, .12);
}

.auth-links .registration-link:hover {
  border-color: #9d785b;
  background: #cda988;
  color: #583923;
}

.auth-links .registration-link:focus-visible {
  outline: 3px solid #d6a28b;
  outline-offset: 3px;
}

.login-hint {
  margin: 14px 0 0;
  color: #7f899f;
  font-size: 12px;
  text-align: center;
}

.button,
.button.primary,
.primary,
.button.secondary,
.button.danger-outline {
  min-height: 42px;
  border: 2px solid #5c4033;
  border-radius: 9px;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button.primary,
.primary {
  border-color: #5c4033;
  background: linear-gradient(180deg, #b7633d 0%, #a0522d 100%);
  color: #f5f1e8;
  box-shadow: 0 4px 0 #5c4033, 0 8px 15px rgba(92, 64, 51, .18), inset 0 1px rgba(255,255,255,.24);
}

.button.primary:hover,
.primary:hover {
  border-color: #4a3025;
  background: linear-gradient(180deg, #c46b43, #a0522d);
  box-shadow: 0 5px 0 #4a3025, 0 11px 18px rgba(92, 64, 51, .2), inset 0 1px rgba(255,255,255,.25);
  transform: translateY(-1px);
}

.button.secondary,
.button.danger-outline {
  border-color: #8a6b56;
  background: #eadcc8;
  color: #5c4033;
  box-shadow: 0 3px 0 rgba(92, 64, 51, .22);
}

.button.secondary:hover,
.button.danger-outline:hover {
  border-color: #5c4033;
  background: #f2e8d9;
  color: #7e3e23;
  transform: translateY(-1px);
}

.series-row,
html[data-theme="dark"] .series-row {
  border: 1.5px solid #c5b39d;
  border-color: #c5b39d;
  border-radius: 12px;
  background: #f5f1e8;
  box-shadow: 0 2px 0 rgba(92, 64, 51, .08);
}

.series-row:hover,
html[data-theme="dark"] .series-row:hover {
  border-color: #a0522d;
  background: #fffaf0;
  box-shadow: 0 4px 0 rgba(92, 64, 51, .15), 0 8px 16px rgba(57, 36, 24, .1);
  transform: translateY(-2px);
}

.series-row .series-main b {
  color: #2c1810;
}

.series-row .series-main small,
html[data-theme="dark"] .series-row .series-main small {
  color: #806d5e;
}

.series-row .series-icon,
.series-row .arrow,
.game-number,
.series-icon,
.count-badge,
.avatar {
  background: #ead9c3;
  color: #7e3e23;
}

.status-pill.done {
  border: 1px solid #b18a55;
  background: #f2e5cf;
  color: #76502b;
}

.status-pill.pending {
  border: 1px solid #c28b4d;
  background: #f4e5cd;
  color: #845322;
}

.game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.game-card,
html[data-theme="dark"] .game-card {
  border: 2px solid #b9a58c;
  border-radius: 13px;
  background: linear-gradient(155deg, #faf7ef, #eadcc8);
  box-shadow: 0 4px 0 rgba(92, 64, 51, .16), 0 9px 18px rgba(57, 36, 24, .08);
}

.game-card b {
  color: #2c1810;
}

.game-card:hover,
html[data-theme="dark"] .game-card:hover {
  border-color: #a0522d;
  background: #fffaf0;
  box-shadow: 0 6px 0 rgba(92, 64, 51, .2), 0 13px 22px rgba(57, 36, 24, .14);
  transform: translateY(-2px);
}

.game-toggle-button {
  border-color: #b68d75;
  border-radius: 8px;
  background: #f3e4d5;
  color: #8c4030;
}

.table-wrap {
  border: 2px solid #8b6c56;
  border-radius: 12px;
  background: #f5f1e8;
  box-shadow: inset 0 1px rgba(255,255,255,.7);
}

table {
  color: #2c1810;
}

th {
  border-color: #5c4033;
  background: #5c4033;
  color: #f5f1e8;
  font-weight: 800;
}

td {
  border-color: #dfd1bd;
  color: #2c1810;
}

tbody tr:nth-child(even) {
  background: rgba(212, 196, 168, .22);
}

body.series-detail-page .wide-table tbody tr,
body.series-detail-page .wide-table tbody tr .sticky-rank-column,
body.series-detail-page .wide-table tbody tr .sticky-player-column {
  background: #f5f1e8;
}

body.series-detail-page .wide-table tbody td {
  border-bottom-color: #c9b69e;
}

body.series-detail-page .wide-table tbody td:not(:last-child),
.wide-table tbody td:not(:last-child),
body.player-profile-page .table-wrap tbody td:not(:last-child) {
  border-right: 1px solid #d5c4ad;
}

body.series-detail-page .wide-table thead th:not(:last-child),
.wide-table thead th:not(:last-child),
body.player-profile-page .table-wrap thead th:not(:last-child) {
  border-right: 1px solid #80634f;
}

tbody tr:hover {
  background: #f0e1cb;
}

body.series-detail-page .wide-table tbody tr:hover,
body.series-detail-page .wide-table tbody tr:hover .sticky-rank-column,
body.series-detail-page .wide-table tbody tr:hover .sticky-player-column {
  background: #f0e1cb;
}

.wide-table .sticky-rank-column,
.wide-table .sticky-player-column,
.wide-table thead .sticky-rank-column,
.wide-table thead .sticky-player-column,
.wide-table tr.ranking-active .sticky-rank-column,
.wide-table tr.ranking-active .sticky-player-column,
.wide-table tr.ranking-inactive .sticky-rank-column,
.wide-table tr.ranking-inactive .sticky-player-column {
  background: #f0e7d8;
  color: #2c1810;
}

.wide-table thead .sticky-rank-column,
.wide-table thead .sticky-player-column {
  background: #5c4033;
  color: #f5f1e8;
}

.wide-table .sticky-player-column {
  box-shadow: 3px 0 0 rgba(92, 64, 51, .14);
}

.wide-table tr.ranking-active,
.wide-table tr.ranking-active .sticky-rank-column,
.wide-table tr.ranking-active .sticky-player-column {
  background: #f0e6d5;
}

.wide-table tr.ranking-active td:first-child {
  border-left: 0;
}

.wide-table tr.ranking-inactive,
.wide-table tr.ranking-inactive .sticky-rank-column,
.wide-table tr.ranking-inactive .sticky-player-column {
  background: #f5f1e8;
  color: #806d5e;
}

.rank-number {
  color: #a0522d;
  font-weight: 900;
}

.player-link,
td a {
  color: #8e462b;
  font-weight: 800;
}

.player-link:hover,
td a:hover {
  color: #5c4033;
}

.table-footnote,
.footer {
  color: #806d5e;
}

.login-logo {
  display: block;
  width: 84px;
  height: 84px;
  margin: 18px auto 12px;
  border: 1px solid rgba(92, 64, 51, .18);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(57, 36, 24, .18);
}

.game-view-page,
html[data-theme="dark"] .game-view-page {
  color: #2c1810;
  background:
    radial-gradient(ellipse at 10% 0, rgba(255,250,239,.8) 0, transparent 38%),
    repeating-linear-gradient(0deg, rgba(92,64,51,.018) 0, rgba(92,64,51,.018) 1px, transparent 1px, transparent 4px),
    #e8dcc8;
}

.game-view-page .game-title-line h1,
.game-view-page .game-nickname,
.game-view-page .game-score-trigger {
  color: #2c1810;
}

.game-view-page .game-hero-card {
  border: 2px solid #5c4033;
  border-radius: 13px;
  background: linear-gradient(120deg, #5c4033, #8c4d31);
  box-shadow: 0 5px 0 #5c4033, 0 12px 22px rgba(57, 36, 24, .18);
}

.game-view-page .game-eyebrow {
  color: #f2d7a8;
}

.game-view-page .game-roster-frame {
  border: 2px solid #8b6c56;
  border-radius: 13px;
  background: rgba(245, 241, 232, .72);
}

/* Keep the winner tint on the whole roster frame, not on individual rows. */
.game-view-page .game-roster-frame.winner-red {
  border-color: #a64c49;
  background: #e6c0bb;
  box-shadow: 0 0 0 2px rgba(166, 76, 73, .16), 0 7px 18px rgba(120, 48, 45, .14);
}

.game-view-page .game-roster-frame.winner-black {
  border-color: #45464b;
  background: #c9c7c5;
  box-shadow: 0 0 0 2px rgba(69, 70, 75, .16), 0 7px 18px rgba(45, 46, 50, .14);
}

.game-view-page .game-player-row {
  border-color: #c7b69f;
  border-radius: 8px;
  background: #f5f1e8;
}

.game-view-page .game-seat,
.game-view-page .game-role-icon {
  background: #ead9c3;
  color: #5c4033;
}

.game-view-page .game-player-row.is-pu {
  border-color: #c29348;
  background: #f2e3c7;
}

.game-view-page .game-nickname:hover,
.game-view-page .game-score-trigger:hover,
.game-view-page .game-crumb:hover {
  color: #a0522d;
}

.game-view-page .score-dialog {
  border: 2px solid #5c4033;
  border-radius: 13px;
  background: #f5f1e8;
  color: #2c1810;
  box-shadow: 0 16px 42px rgba(44, 24, 16, .25);
}

.notice,
.empty {
  border-color: #b9a58c;
  background: #f5f1e8;
  color: #2c1810;
}

.notice {
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border: 1px solid;
  border-radius: 12px;
  font-weight: 650;
}

.notice.success {
  border-color: #a9d8b6;
  background: #eff9f1;
  color: #235c35;
}

.notice.error {
  border-color: #e3aaaa;
  background: #fff2f2;
  color: #7c2929;
}

@media (max-width: 1000px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar,
  .game-view-page .topbar {
    border-width: 1px;
    border-radius: 11px;
    box-shadow: 0 4px 0 rgba(92, 64, 51, .12), 0 8px 18px rgba(57, 36, 24, .12);
  }

  .page-shell,
  .game-view-page .page-shell {
    padding-top: 26px;
  }

  .section-card,
  .metric,
  .game-card {
    border-radius: 12px;
  }

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

/* Use the supplied Impact crest without changing the existing logo element or markup. */
.main-nav .brand-logo,
.game-view-page .main-nav .brand-logo {
  content: url("data:image/webp;base64,UklGRrIPAABXRUJQVlA4IKYPAACwPQCdASqQAJAAPmEqkEWkIqGV6vXgQAYEsgHYDynCrrJfi/M75Z7Wfk/2bzTdSHX3l3vz/6T1H+YT/hPKt9SP7jeon9nPVq/0n7oe5b/BfbN8gH/A6iv0IPLw9l/+1f+jqAP//wNe5Lxr6X/N/mDy/emPM/+VffX9V+ZntR/rvDP5NagXr3/Y78eAX87/pH+88P3Us8FewB+rP/F8rfxXaBP88/vP7IexV/4/6L0K/oP+a/aT4C/5v/aP+12PvSTRLmA1Ry8Fbug7kMPy4Z1DbfFond2/Ag6+vL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Y2pBzuiB/uidjhCCKTDz8sqg7L98BWaUFHMLtuUnZYp4cHJdJJVh1JPI0fvvuyDOZH648pIk8ctOwYcW9H1l1OugtNzdybrtiT6QMehh9Mi1DxXzJXLLHh7xa/sWkrrdp/+S944o2umQlerYx/+a4a//8NE24anEjjhyy22yf1gXqJCkfkxeUTNtGQb6ZjOwfYQ2oFwSTf4gjsPhKCvysl4IothxsMc9VACLrK0PxwT8V9XFLSvQcAhW+SC1pjxhfsk8YJPJnkvFHEYWNyCMFBOoo4lhq/uEGbL3zbbnz5GU3mH9bGwHKGgDYMfrCDfiBpZe3PrvD6NGBSlJYRTnI1MNzza5MwK5MuD/NQxOKtVg0ELCvwwQaF3YJn1L+rRWhtVcfz4vgIvAyhnCB3e+sQMMytQWkMXp+SmfiHVWkOsbXEyFD3MSbaY5yCUT2Pc1bCMsMqIV/RDnwLVR9ueT3omLYhpRYCitQkXNN7GfDm0Rs9pUMtNOlvfBZa4EdX8wdqvODNGPRv0D3eTHV/mJFhZ8gYBO/nYc6gbNwvrCkmChc+hDmB9juV83Kg4tU7gUGr75HnTxxWAboQ1Rw4AbKjNvk0yeTVlPNrlOc/MoGIfKk7LN0tZ4Wx1ccNTwYQrmQ0meXJj6yjOPdB0dszI8rJDgucDWCn6kaW3liDXczGIPjT8CGVv337l+R8i/rPhGIdVq050Pb7CHaSl/gy59NMh6nTUWQ2PomGUAATHD6iAAA");
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 9px;
  object-fit: cover;
  filter: none;
}

/* Variant 1 polish: make the crest legible and give the navigation ovals a warmer fill. */
.topbar,
.game-view-page .topbar {
  min-height: 88px;
}

.main-nav .brand {
  width: 56px;
  height: 56px;
}

.main-nav .brand-logo,
.game-view-page .main-nav .brand-logo {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}

.main-nav,
.game-view-page .main-nav {
  height: 66px;
  padding: 6px;
  border-color: #b79a7e;
  background: #e8d7c1;
  box-shadow: inset 0 2px 5px rgba(92, 64, 51, .12), 0 3px 0 rgba(92, 64, 51, .1);
}

.main-nav a,
.game-view-page .main-nav a {
  height: 50px;
  border: 1px solid #d0b89b;
  background: #f0e4d4;
  box-shadow: inset 0 1px 3px rgba(92, 64, 51, .09);
}

.main-nav a:hover,
.game-view-page .main-nav a:hover,
.main-nav a.active,
.game-view-page .main-nav a.active {
  border-color: #a78a6c;
  background: #d9c1a4;
  color: #663b27;
  box-shadow: inset 0 2px 5px rgba(92, 64, 51, .17);
}

.account-avatar {
  border-color: #5c4033;
  background: linear-gradient(145deg, #b7633d, #8e462b);
  color: #f5f1e8;
}

@media (max-width: 700px) {
  .main-nav .brand {
    width: 42px;
    height: 42px;
  }

  .main-nav .brand-logo,
  .game-view-page .main-nav .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

/* Keep game status details within the classic sand-and-clay palette. */
.game-card.game-done,
html[data-theme="dark"] .game-card.game-done {
  background: linear-gradient(155deg, #f5f1e8, #eadcc8);
}

.status-dot.is-done {
  background: #5c4033;
  box-shadow: 0 0 0 4px #ead9c3;
}

.status-dot:not(.is-done) {
  background: #a0522d;
  box-shadow: 0 0 0 4px #f2e3cd;
}

.seat-preview span {
  border-color: #c5b39d;
  background: #ead9c3;
  color: #5c4033;
}

.status-pill.void-pill {
  border-color: #b9a58c;
  background: #eadcc8;
  color: #725b47;
}

/* Let the Impact crest sit inside the navigation pill instead of reading as a separate badge. */
.main-nav .brand {
  width: 50px;
  height: 50px;
  border: 1px solid #b79a7e;
  border-radius: 999px;
  background: #d9c1a4;
  box-shadow: inset 0 2px 4px rgba(92,64,51,.12);
}

.main-nav .brand-logo,
.game-view-page .main-nav .brand-logo {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: lighten;
}

.main-nav a:hover,
.game-view-page .main-nav a:hover {
  border-color: #8b674b !important;
  background: #c4a17b !important;
  color: #4a2c1d !important;
  box-shadow: inset 0 2px 6px rgba(92, 64, 51, .22) !important;
}

/* Bring the top-left and top-right controls in line with the tactile main nav. */
.season-picker,
.account-trigger {
  border-color: #b79a7e;
  background: #e8d7c1;
  box-shadow: inset 0 2px 5px rgba(92, 64, 51, .12), 0 3px 0 rgba(92, 64, 51, .1);
}

.season-picker:hover,
.season-picker[aria-expanded="true"],
.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: #8b674b;
  background: #d9c1a4;
  box-shadow: inset 0 2px 6px rgba(92, 64, 51, .2), 0 3px 0 rgba(92, 64, 51, .1);
}

.season-caret,
.account-caret {
  position: relative;
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #b79a7e;
  background: #f0e4d4;
  color: #5c4033;
  font-size: 0;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.season-caret::before,
.account-caret::before {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.season-picker:hover .season-caret,
.season-picker[aria-expanded="true"] .season-caret,
.account-trigger:hover .account-caret,
.account-trigger[aria-expanded="true"] .account-caret {
  border-color: #8b674b;
  background: #c4a17b;
  color: #4a2c1d;
}

.season-picker:focus-visible,
.account-trigger:focus-visible {
  outline: 3px solid rgba(160, 82, 45, .32);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .season-caret,
  .account-caret {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
}

/* Player profile header: match the navigation type and give its content room. */
.profile-hero {
  padding: 28px 30px;
  border-radius: 18px;
}

.profile-hero .profile-heading,
.profile-hero .profile-heading h1,
.profile-hero .eyebrow {
  font-family: Manrope, sans-serif;
}

.profile-hero .profile-heading h1 {
  letter-spacing: -.02em;
}

@media (max-width: 700px) {
  .profile-hero {
    padding: 20px 18px;
    border-radius: 16px;
  }
}

/* Use the preview crest in the navigation, matching the logo mockup. */
.main-nav .brand-logo,
.game-view-page .main-nav .brand-logo {
  content: normal;
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
  mix-blend-mode: normal;
  box-shadow: none;
}

@media (max-width: 700px) {
  .main-nav .brand-logo,
  .game-view-page .main-nav .brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

/* Match the series page navigation width to the standings card on desktop. */
@media (min-width: 1001px) {
  .series-detail-page .topbar {
    width: min(calc(100% - 60px), 1740px);
  }

  .event-detail-page .topbar {
    /* Narrowed from 1740px; restore that value here to roll back. */
    width: min(calc(100% - 60px), 1340px);
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .series-detail-page .topbar {
    width: calc(100% - 44px);
  }
}

/* Keep the season selector and profile pill equal in height and on the same row. */
.season-picker,
.account-trigger {
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  align-self: center;
}

.account-trigger-label {
  line-height: 1.1;
}

.account-trigger-label b {
  font-size: 14px;
}

.account-trigger-label small {
  font-size: 11px;
}

/* Soft green emphasis for the series currently in progress. */
.series-row .arrow {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  font-size: 20px;
  line-height: 1;
}

.series-row-in-progress,
html[data-theme="dark"] .series-row-in-progress {
  border-color: #a9c7a8;
  background: #edf5e9;
  box-shadow: 0 2px 0 rgba(55, 105, 65, .08);
}

.series-row-in-progress:hover,
html[data-theme="dark"] .series-row-in-progress:hover {
  border-color: #7fa77f;
  background: #e5f0df;
  box-shadow: 0 4px 0 rgba(55, 105, 65, .12), 0 8px 16px rgba(55, 105, 65, .1);
}

.series-row-in-progress .series-icon,
.series-row-in-progress .arrow {
  background: #dcebd7;
  color: #39734c;
}

.series-row-in-progress .status-pill.pending {
  border-color: #9abd91;
  background: #e1efda;
  color: #376e45;
}

html[data-theme="dark"] .series-row-in-progress,
html[data-theme="dark"] .series-row-in-progress:hover {
  border-color: #486d50;
  background: #202f27;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}

html[data-theme="dark"] .series-row-in-progress .series-icon,
html[data-theme="dark"] .series-row-in-progress .arrow {
  background: #304b38;
  color: #a8d5aa;
}

html[data-theme="dark"] .series-row-in-progress .status-pill.pending {
  border-color: #557b5a;
  background: #2b4431;
  color: #b7dfb6;
}

@media (max-width: 700px) {
  .season-picker,
  .account-trigger {
    height: 42px;
    min-height: 42px;
  }

  .account-trigger-label b {
    font-size: 12px;
  }

  .account-trigger-label small {
    font-size: 10px;
  }
}
.series-created-date {
  color: #68503f;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.series-creator {
  color: #76502b;
  font-weight: 750;
}

.series-creator.is-mine,
.player-link.is-mine,
.game-nickname.is-mine,
.game-entry-name.is-mine,
.player-card b.is-mine {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #d2a653;
  border-radius: 7px;
  background: linear-gradient(135deg, #f8e7b7, #eed18c);
  box-shadow: inset 0 1px rgba(255, 255, 255, .75), 0 2px 5px rgba(122, 77, 26, .12);
  color: #70400f !important;
  font-weight: 850;
}

.game-view-page .game-nickname.is-mine {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.game-view-page:not(.game-edit-page) .game-nickname.is-mine {
  margin-left: -7px;
}

.player-link.is-mine:hover,
.game-nickname.is-mine:hover {
  border-color: #ad7627;
  background: #f6dfa5;
  color: #542d0b !important;
}

.wide-table .player-link.is-mine {
  margin-left: -8px;
}

.player-card b.is-mine {
  width: fit-content;
  max-width: 100%;
  margin: -2px -7px 1px;
}

.profile-heading h1.is-mine {
  color: #8a5319;
}

.seat-preview span.is-mine {
  position: relative;
  z-index: 1;
  border: 2px solid #a96d1d;
  background: linear-gradient(145deg, #f7dfa0, #e8bd61);
  box-shadow: 0 0 0 3px rgba(226, 184, 96, .24), 0 2px 5px rgba(80, 48, 13, .2);
  color: #542f0c;
  font-weight: 900;
  transform: translateY(-2px) scale(1.13);
}

html[data-theme="dark"] .series-creator.is-mine,
html[data-theme="dark"] .player-link.is-mine,
html[data-theme="dark"] .game-nickname.is-mine,
html[data-theme="dark"] .game-entry-name.is-mine,
html[data-theme="dark"] .player-card b.is-mine {
  border-color: #bf9142;
  background: linear-gradient(135deg, #604a27, #765a2c);
  color: #ffedbd !important;
}

html[data-theme="dark"] .seat-preview span.is-mine {
  border-color: #d3a44e;
  background: linear-gradient(145deg, #725726, #997332);
  color: #fff1c8;
}

html[data-theme="dark"] .profile-heading h1.is-mine {
  color: #f0c978;
}

@media (max-width: 700px) {
  .wide-table .player-link.is-mine {
    margin-left: -4px;
    padding-left: 3px;
  }

  .dashboard-page .page-shell {
    padding-top: 10px;
    padding-bottom: 22px;
  }

  .dashboard-page .page-heading {
    gap: 6px;
    margin-bottom: 9px;
  }

  .dashboard-page .page-heading .button {
    min-height: 35px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    box-shadow: 0 2px 0 rgba(92, 64, 51, .2);
  }

  .dashboard-page .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 10px;
  }

  .dashboard-page .metric {
    min-width: 0;
    min-height: 66px;
    gap: 2px;
    padding: 7px 7px;
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(92, 64, 51, .12), 0 4px 8px rgba(57, 36, 24, .07);
  }

  .dashboard-page .metric > span:first-child {
    min-height: 0;
    font-size: 9px;
    line-height: 1.15;
  }

  .dashboard-page .metric strong {
    font-size: 18px;
    line-height: 1;
  }

  .dashboard-page .metric a,
  .dashboard-page .metric .metric-note {
    font-size: 8px;
    line-height: 1.1;
  }

  .dashboard-page .section-card {
    padding: 11px 10px;
  }

  .player-profile-page .profile-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 10px;
  }

  .player-profile-page .profile-metrics .metric {
    min-width: 0;
    min-height: 66px;
    gap: 2px;
    padding: 7px;
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(92, 64, 51, .12), 0 4px 8px rgba(57, 36, 24, .07);
  }

  .player-profile-page .profile-metrics .metric > span:first-child {
    min-height: 0;
    font-size: 9px;
    line-height: 1.15;
  }

  .player-profile-page .profile-metrics .metric strong {
    font-size: 18px;
    line-height: 1;
  }

  .player-profile-page .profile-metrics .metric .metric-note {
    font-size: 8px;
    line-height: 1.1;
  }
}

/* Keep the desktop navigation inline; use a full-width dropdown on phones. */
.main-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-nav-trigger {
  display: none;
}

@media (max-width: 700px) {
  .main-nav,
  .game-view-page .main-nav {
    position: relative;
    z-index: 30;
    display: block;
    width: min(100%, 390px);
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .mobile-nav-trigger {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 11px;
    padding: 4px 10px;
    border: 2px solid #5c4033;
    border-radius: 999px;
    background: #f5f1e8;
    color: #5c4033;
    box-shadow: 0 4px 0 rgba(92, 64, 51, .14), 0 8px 15px rgba(57, 36, 24, .1);
    font: 750 15px Manrope, sans-serif;
    text-align: left;
    cursor: pointer;
  }

  .mobile-nav-trigger:focus-visible {
    outline: 3px solid #a0522d;
    outline-offset: 3px;
  }

  .mobile-nav-trigger img {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 2px solid #5c4033;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 0 rgba(92, 64, 51, .18);
  }

  .mobile-nav-label {
    flex: 1 1 auto;
    color: #5c4033;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: center;
  }

  .mobile-nav-caret {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-left: auto;
  }

  .mobile-nav-trigger[aria-expanded="true"] .mobile-nav-caret {
    transform: rotate(180deg);
  }

  .mobile-nav-trigger:hover .mobile-nav-caret,
  .mobile-nav-trigger[aria-expanded="true"] .mobile-nav-caret {
    border-color: #8b674b;
    background: #c4a17b;
    color: #4a2c1d;
  }

  .main-nav > .brand,
  .game-view-page .main-nav > .brand {
    display: none;
  }

  .main-nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 35;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 2px solid #5c4033;
    border-radius: 15px;
    background: #f5f1e8;
    box-shadow: 0 7px 0 rgba(92, 64, 51, .13), 0 14px 24px rgba(57, 36, 24, .16);
  }

  .main-nav.is-open .main-nav-links {
    display: grid;
  }

  .main-nav-links a,
  .game-view-page .main-nav-links a {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    border: 0;
    border-radius: 10px;
    color: #5c4033;
    font: 750 13px Manrope, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: normal;
  }

  .main-nav-links a:hover,
  .main-nav-links a.active,
  .game-view-page .main-nav-links a:hover,
  .game-view-page .main-nav-links a.active {
    background: #ead9c3;
    color: #7e3e23;
    text-decoration: none;
  }

  .main-nav-links a::after,
  .main-nav-links a:hover::after,
  .main-nav-links a.active::after {
    display: none;
    content: none;
  }
}

/* Keep the email-verification confirmation prominent and centered. */
.verification-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 24, 20, .62);
}

.notice.verification {
  position: relative;
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0;
  padding: 26px 58px 26px 26px;
  border: 2px solid #a9d8b6;
  border-radius: 16px;
  background: #eff9f1;
  color: #235c35;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  font-size: 16px;
  line-height: 1.65;
}

.notice-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font-size: 26px;
  line-height: 1;
}

.notice-close:hover,
.notice-close:focus-visible {
  background: rgba(35, 92, 53, .1);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.resend-verification-wrap {
  margin: 14px 0 0;
  text-align: center;
}

.resend-verification-button {
  min-height: 34px;
  max-width: 100%;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

html[data-theme="dark"] .notice.verification {
  border-color: #527c60;
  background: #20352a;
  color: #d6f2dc;
}

@media (max-width: 480px) {
  .verification-overlay { padding: 14px; }
  .notice.verification { padding: 24px 50px 24px 20px; font-size: 14px; }
}