:root {
  --field-900: #0b3f27;
  --field-800: #115a37;
  --field-700: #1a7a4b;
  --field-100: #eaf6ef;
  --field-050: #f5fbf8;

  --surface: #ffffff;
  --surface-alt: #f6fbf8;
  --ink: #12261a;
  --ink-soft: #3d5a4a;
  --line: #cfe2d5;
  --line-strong: #9bbfa6;

  --gold-500: #f0b429;
  --gold-600: #d79a12;
  --good-500: #1c9f5f;
  --warn-500: #c58a10;
  --bad-500: #8b5e6e;
  --danger-500: #b53939;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;

  --shadow-soft: 0 10px 24px rgba(11, 42, 27, 0.08);
  --shadow-strong: 0 18px 38px rgba(11, 42, 27, 0.14);

  --sans: "Source Sans 3", "Trebuchet MS", "Lucida Sans Unicode", "Tahoma", sans-serif;
  --font-heading: "Sora", "Trebuchet MS", "Verdana", sans-serif;
  --font-body: var(--sans);
  --font-mono: "IBM Plex Mono", "Consolas", "Liberation Mono", "Courier New", monospace;
  --score-label-tracking: 0.12em;
  --score-value-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  --club-accent: #1fb86a;
  --club-accent-rgb: 31, 184, 106;
  --club-accent-strong: #66e09b;
  --club-accent-soft: rgba(31, 184, 106, 0.18);
  --match-graphic-line: rgba(255, 255, 255, 0.055);
  --match-graphic-line-soft: rgba(255, 255, 255, 0.028);
  --match-graphic-mark: rgba(255, 255, 255, 0.08);
  --match-graphic-glow: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--field-050);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--field-050);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(130deg, var(--field-900) 0%, var(--field-700) 58%, #21925b 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, rgba(18, 85, 53, 0.2) 0 280px, transparent 280px);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.topbar {
  --topbar-bg: linear-gradient(130deg, rgba(6, 29, 18, 0.97), rgba(14, 79, 48, 0.96) 62%, rgba(27, 116, 70, 0.94));
  position: sticky;
  top: 0;
  z-index: 4000;
  display: flex;
  overflow: visible;
  isolation: isolate;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 2.4vw, 1.7rem);
  padding-top: calc(0.9rem + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--topbar-bg);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 30px rgba(5, 22, 14, 0.12);
}

.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * env(safe-area-inset-top));
  height: env(safe-area-inset-top);
  background: var(--topbar-bg);
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -4%, var(--match-graphic-glow), transparent 22%),
    radial-gradient(circle at 88% -6%, rgba(255, 255, 255, 0.14), transparent 20%),
    repeating-linear-gradient(180deg, var(--match-graphic-line-soft) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%);
  opacity: 0.26;
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand__name {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.brand__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 0.9rem;
}

.nav__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.nav__group--auth {
  align-items: center;
}

.nav__group--controls {
  padding: 0.28rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.nav__group--meta {
  opacity: 0.92;
  padding: 0.26rem 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav__group--meta .nav__link {
  font-size: 0.86rem;
  font-weight: 600;
}

.nav a,
.nav__link {
  color: #f2fff7;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--sans);
  cursor: pointer;
}

.nav a:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.nav a[aria-current="page"],
.nav__link[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(var(--club-accent-rgb), 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 rgba(4, 18, 11, 0.08);
}

.nav .btn {
  width: auto;
  padding: 0.36rem 0.65rem;
  font-size: 0.82rem;
  color: #f2fff7;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.nav .btn:hover {
  background: rgba(255, 255, 255, 0.21);
}

.authBlock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.authBlock__cta {
  display: flex;
  align-items: center;
}

.authBlock__signedIn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn--authPrimary {
  min-height: 2.2rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav__group--auth .btn--authPrimary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #f7fff9;
  background: linear-gradient(180deg, rgba(60, 182, 118, 0.95), rgba(28, 122, 74, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 18px rgba(10, 46, 30, 0.22);
}

.nav__group--auth .btn--authPrimary:hover {
  background: linear-gradient(180deg, rgba(70, 196, 128, 0.98), rgba(32, 136, 82, 0.98));
}

.nav__group--auth .btn--authPrimary:focus-visible {
  outline: none;
  border-color: rgba(216, 246, 228, 0.9);
  box-shadow:
    0 0 0 3px rgba(168, 230, 198, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 20px rgba(10, 46, 30, 0.24);
}

.accountButton {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0.28rem 0.7rem 0.28rem 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  color: #f2fff7;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.accountButton:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  transform: translateY(-1px);
}

.accountButton:active {
  transform: translateY(0);
}

.accountButton:focus-visible {
  outline: none;
  border-color: rgba(216, 246, 228, 0.9);
  box-shadow: 0 0 0 3px rgba(168, 230, 198, 0.25);
}

.accountButton--open {
  border-color: rgba(216, 246, 228, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.accountAvatar {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f3c859, #d79a12);
  color: #2d1f00;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 10px rgba(10, 46, 30, 0.2);
}

.accountLabel {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountChevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid rgba(242, 255, 247, 0.85);
  border-bottom: 2px solid rgba(242, 255, 247, 0.85);
  transform: translateY(-1px) rotate(45deg);
}

.accountMenu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 230px;
  max-width: min(340px, calc(100vw - 1rem));
  max-height: min(72vh, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid #cfe2d5;
  background: #f7fbf8;
  color: var(--ink);
  box-shadow: var(--shadow-strong);
  z-index: 1200;
}

.accountMenu__section {
  display: grid;
  gap: 0.2rem;
}

.accountMenu__status {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-soft);
}

.accountMenu__user {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.accountMenu__helper {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.accountMenu__signOut {
  margin-top: 0.65rem;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid #d1e0d7;
  background: linear-gradient(180deg, #f7faf8, #edf4f0);
  color: #1f4a32;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.accountMenu__signOut:hover {
  border-color: #b6cec0;
  background: linear-gradient(180deg, #ffffff, #edf6f1);
}

.accountMenu__signOut:focus-visible {
  outline: none;
  border-color: #5f9072;
  box-shadow: 0 0 0 3px rgba(83, 159, 110, 0.22);
}

.modePicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.16rem 0.2rem 0.16rem 0.56rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #f2fff7;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.modePicker:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.13));
}

.modePicker:focus-within {
  border-color: rgba(233, 250, 240, 0.88);
  box-shadow:
    0 0 0 3px rgba(182, 227, 201, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.modePicker::after {
  content: "";
  position: absolute;
  right: 0.74rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid rgba(242, 255, 247, 0.9);
  border-bottom: 2px solid rgba(242, 255, 247, 0.9);
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.modePicker__label {
  font-size: 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(239, 255, 246, 0.92);
  line-height: 1;
}

.modePicker__select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 52, 33, 0.42), rgba(12, 52, 33, 0.24));
  color: #f4fff9;
  padding: 0.34rem 1.7rem 0.35rem 0.62rem;
  min-height: 2rem;
  font-size: 0.84rem;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1;
  outline: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.modePicker__select:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: linear-gradient(180deg, rgba(13, 57, 35, 0.5), rgba(13, 57, 35, 0.32));
}

.modePicker__select:focus {
  border-color: rgba(238, 252, 244, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modePicker__select option {
  color: #143623;
  background: #f4fbf7;
}

.modePicker__select::-ms-expand {
  display: none;
}

.clubPicker {
  position: relative;
}

.clubPicker__toggle {
  min-height: 2rem;
  padding: 0.38rem 0.74rem;
}

.clubPicker__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 120;
  width: min(340px, calc(100vw - 1.4rem));
  max-height: min(65vh, 430px);
  overflow-y: auto;
  border: 1px solid #87af95;
  border-radius: 12px;
  background: #f7fdf9;
  box-shadow: 0 14px 28px rgba(9, 43, 27, 0.24);
  padding: 0.35rem;
  display: none;
}

.clubPicker.is-open .clubPicker__menu {
  display: block;
}

.clubPicker__menu .clubPicker__item {
  display: block;
  color: #1f5136;
  font-weight: 700;
  font-size: 0.84rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.44rem 0.5rem;
}

.clubPicker__menu .clubPicker__item + .clubPicker__item {
  margin-top: 0.1rem;
}

.clubPicker__menu .clubPicker__item:hover {
  border-color: #d0e5d8;
  background: #e4f2e9;
}

.clubPicker__menu .clubPicker__item[aria-current="page"] {
  border-color: #bfdcc8;
  background: #d4ebdc;
}

.wrap {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.4rem auto 3rem;
}

body[data-view="home"] #mainGameView {
  display: none;
}

body[data-view="main"] #homeView {
  display: none;
}

body[data-view="home"] #homeNavBtn {
  display: none;
}

body[data-view="home"] .nav__group--controls,
body[data-view="main"] .nav__group--controls {
  display: none;
}

.homeView {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.homeHero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  animation: rise-in 0.45s ease both;
}

.homeHero__panel {
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  color: #f7fffb;
  background: linear-gradient(145deg, rgba(5, 28, 18, 0.97), rgba(12, 72, 44, 0.94) 56%, rgba(24, 122, 74, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

.homeHero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.homeHero__lead {
  margin-top: 0.6rem;
  color: rgba(247, 255, 251, 0.9);
  font-size: 1.02rem;
}

.homeHero__sub {
  margin-top: 0.45rem;
  color: rgba(230, 246, 238, 0.92);
  font-size: 0.92rem;
}

.homeHero__tags {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.homeHeroTag {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(var(--club-accent-rgb), 0.08));
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 0 rgba(4, 18, 11, 0.08);
}

.homeAccount .eyebrow,
.homeCard .eyebrow {
  color: #4d6a59;
}

.homeAccount,
.homeCard,
.card,
.homeClubSelector,
.tableWrap {
  position: relative;
  isolation: isolate;
}

.homeAccount,
.homeCard,
.card,
.homeClubSelector {
  overflow: hidden;
}

.homeAccount::before,
.homeCard::before,
.card::before,
.homeClubSelector::before,
.tableWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.28%, rgba(15, 62, 38, 0.05) 49.28% 49.5%, transparent 49.5% 100%),
    repeating-linear-gradient(90deg, rgba(15, 62, 38, 0.03) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 34%);
  opacity: 0.34;
}

.homeClubSelector::before {
  opacity: 0.46;
}

.tableWrap::before {
  opacity: 0.28;
}

.homeAccount::after,
.homeCard::after,
.card::after,
.homeClubSelector::after,
.tableWrap::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  top: 0;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(var(--club-accent-rgb), 0.58), rgba(var(--club-accent-rgb), 0.12) 58%, transparent);
  pointer-events: none;
}

.homeCard--main::after {
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.86), rgba(240, 180, 41, 0.16) 62%, transparent);
}

.homeAccount > *,
.homeCard > *,
.card > *,
.homeClubSelector > *,
.tableWrap > * {
  position: relative;
  z-index: 1;
}

.homeAccount {
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.15rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--club-accent-rgb), 0.08), transparent 30%),
    linear-gradient(160deg, #fbfdfb, #edf5f0 70%, #e6f1ea);
  border: 1px solid #cfe1d4;
  box-shadow: 0 14px 28px rgba(12, 36, 24, 0.06);
  display: grid;
  gap: 0.65rem;
}

.homeAccount__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.homeAccount__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #1b3f2c;
  margin-top: 0.18rem;
}

.homeAccount__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.homeAccount__item {
  border: 1px solid #d8e7de;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 246, 0.96)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.05), rgba(255, 255, 255, 0));
  padding: 0.65rem 0.7rem;
}

.homeAccount__label {
  font-size: 0.7rem;
  color: #476453;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.homeAccount__value {
  margin-top: 0.12rem;
  font-family: var(--font-heading);
  font-size: 1.26rem;
  font-weight: 800;
  color: #193b28;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 14px rgba(17, 65, 43, 0.05);
  font-variant-numeric: tabular-nums;
}

.homeAccount__meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.homeAccount__actions {
  display: flex;
  justify-content: flex-end;
}

.homeHero__panel,
.hero__panel,
.playerCard__head,
.pageHero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.homeHero__panel > *,
.hero__panel > *,
.playerCard__head > *,
.pageHero > * {
  position: relative;
  z-index: 1;
}

.homeHero__panel::before,
.hero__panel::before,
.playerCard__head::before,
.pageHero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -2%, var(--match-graphic-glow), transparent 22%),
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(90deg, transparent 0 49.3%, var(--match-graphic-mark) 49.3% 49.52%, transparent 49.52% 100%),
    repeating-linear-gradient(90deg, var(--match-graphic-line) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(180deg, var(--match-graphic-line-soft) 0 1px, transparent 1px 118px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
  opacity: 0.3;
}

.homeHero__panel::before,
.hero__panel::before {
  background:
    radial-gradient(circle at 12% -2%, var(--match-graphic-glow), transparent 22%),
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.14), transparent 20%),
    repeating-linear-gradient(180deg, var(--match-graphic-line-soft) 0 1px, transparent 1px 118px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.homeHero__panel::after,
.hero__panel::after,
.playerCard__head::after,
.pageHero::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.18) 24%, rgba(var(--club-accent-rgb), 0.44) 68%, rgba(255, 255, 255, 0.06) 100%);
  opacity: 0.72;
  pointer-events: none;
}

.homeAccount__item,
.homeStatus,
.todayItem,
.heroMetric,
.stat,
.playerCard__summaryItem,
.resultCard {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 20px rgba(12, 36, 24, 0.04);
}

.homeAccount__item::before,
.homeStatus::before,
.todayItem::before,
.heroMetric::before,
.stat::before,
.playerCard__summaryItem::before,
.resultCard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--club-accent-rgb), 0.58), rgba(var(--club-accent-rgb), 0.12) 58%, transparent 100%);
  pointer-events: none;
}

.homeAccount__item > *,
.homeStatus > *,
.todayItem > *,
.heroMetric > *,
.stat > *,
.playerCard__summaryItem > *,
.resultCard > * {
  position: relative;
  z-index: 1;
}

.homeCards {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.homeCard {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.15rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--club-accent-rgb), 0.05), transparent 28%),
    linear-gradient(180deg, #ffffff, #f4f9f6 74%, #eef5f0);
  box-shadow: 0 14px 28px rgba(12, 36, 24, 0.05);
  display: grid;
  gap: 0.85rem;
}

.homeCard--main {
  border-color: #c2d8c9;
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 180, 41, 0.16), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #ffffff, #f2f8f3 76%, #ecf4ef);
}

.homeCard--club {
  border-color: #ccdcd2;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--club-accent-rgb), 0.1), transparent 32%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #ffffff, #f2f8f3 76%, #ebf4ee);
}

.homeCard--club .homeCard__meta {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  justify-content: center;
  text-align: center;
}

.homeCard__head {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 0.76rem;
  border-bottom: 1px solid rgba(15, 62, 38, 0.08);
}

.homeCard__title {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  color: #173a27;
  margin-top: 0.15rem;
}

.homeCard__lead {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.homeCard__meta {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #cadccf;
  background:
    linear-gradient(180deg, #ffffff, #f2f7f4),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(var(--club-accent-rgb), 0.06));
  font-size: 0.79rem;
  color: #446150;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 220px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 rgba(12, 36, 24, 0.03);
}

.homeClubReset {
  border: 1px solid #cfdfd4;
  border-radius: 13px;
  padding: 0.52rem 0.62rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 245, 0.96)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.08), rgba(255, 255, 255, 0));
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "label value"
    "meta value";
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.08rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(12, 36, 24, 0.04);
}

.homeClubReset__label {
  grid-area: label;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #436350;
}

.homeClubReset__value {
  grid-area: value;
  justify-self: end;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e4a33;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 14px rgba(17, 65, 43, 0.05);
}

.homeClubReset__meta {
  grid-area: meta;
  font-size: 0.75rem;
  color: #4f6e5d;
}

.homeStatusGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.homeStatus {
  border: 1px solid #d2e2d8;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 246, 0.96)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.05), rgba(255, 255, 255, 0));
  padding: 0.6rem 0.65rem;
  display: grid;
  gap: 0.2rem;
}

.homeStatus__label {
  font-size: 0.78rem;
  color: #2f5540;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.homeStatus__value {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 800;
  color: #1e4a33;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56), 0 8px 14px rgba(17, 65, 43, 0.05);
  font-variant-numeric: tabular-nums;
}

.homeStatus__sub {
  font-size: 0.82rem;
  color: #4f6e5d;
}

.homeStatus__timer {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #436552;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.homeCard__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.homeCard__actions .btn {
  flex: 1 1 160px;
}

.homeClubSelector {
  display: grid;
  gap: 0.5rem;
  padding: 0.72rem;
  border: 1px solid #d5e5db;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--club-accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, #fcfefc, #f1f7f3);
}

.homeClubGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}

.homeClubChip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--club-accent-rgb), 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--club-accent-rgb), 0.16)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.1), rgba(255, 255, 255, 0));
  color: #173726;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  line-height: 1.1;
  text-align: left;
  white-space: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(12, 36, 24, 0.04);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.homeClubChip::before {
  content: none;
}

.homeClubChip:hover {
  border-color: rgba(var(--club-accent-rgb), 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(var(--club-accent-rgb), 0.22)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.14), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 18px rgba(12, 36, 24, 0.08);
  transform: translateY(-1px);
}

.homeClubChip:focus-visible {
  outline: none;
  border-color: rgba(var(--club-accent-rgb), 0.58);
  box-shadow:
    0 0 0 3px rgba(var(--club-accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 18px rgba(12, 36, 24, 0.08);
}

.homeClubChip:active {
  border-color: rgba(var(--club-accent-rgb), 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--club-accent-rgb), 0.26)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.18), rgba(255, 255, 255, 0));
}

.homeClubChip--favorite {
  border-color: rgba(var(--club-accent-rgb), 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--club-accent-rgb), 0.3)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.18), rgba(255, 255, 255, 0));
  color: #122f20;
  box-shadow:
    inset 0 2px 0 rgba(var(--club-accent-rgb), 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 20px rgba(12, 36, 24, 0.06);
}

.homeClubChip--favorite:hover,
.homeClubChip--favorite:active {
  border-color: rgba(var(--club-accent-rgb), 0.66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(var(--club-accent-rgb), 0.36)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.22), rgba(255, 255, 255, 0));
}


.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
  animation: rise-in 0.45s ease both;
}

.hero__panel {
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  color: #f7fffb;
  background: linear-gradient(145deg, rgba(7, 31, 20, 0.95), rgba(13, 82, 50, 0.92) 58%, rgba(28, 132, 81, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-soft);
}

.hero__title {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  line-height: 1.18;
}

.hero__lead {
  margin-top: 0.65rem;
  color: rgba(247, 255, 251, 0.9);
}

.hero__tags {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.heroTag {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(var(--club-accent-rgb), 0.08));
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 0 rgba(4, 18, 11, 0.06);
}

.hero__stats {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 180, 41, 0.22), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 36%),
    linear-gradient(170deg, #fff7de, #ffe5a2);
  border: 1px solid #e3c47e;
  box-shadow: var(--shadow-soft);
}

.hero__stats::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.2%, rgba(111, 79, 8, 0.07) 49.2% 49.45%, transparent 49.45% 100%),
    repeating-linear-gradient(90deg, rgba(111, 79, 8, 0.055) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(180deg, rgba(111, 79, 8, 0.028) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 38%);
  opacity: 0.32;
}

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

.hero__stats h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  color: #5a3f01;
}

.heroMetricGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.52rem;
}

.heroMetric {
  border: 1px solid rgba(131, 91, 5, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76));
  border-radius: var(--radius-md);
  padding: 0.58rem 0.6rem;
}

.heroMetric__k {
  font-family: var(--sans);
  color: #6d4f08;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: var(--score-label-tracking);
  text-transform: uppercase;
}

.heroMetric__v {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.22rem;
  margin-top: 0.18rem;
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 14px rgba(111, 79, 8, 0.08);
  font-variant-numeric: tabular-nums;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--club-accent-rgb), 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #f4f9f6 74%, #eef5f0);
  box-shadow: 0 14px 28px rgba(12, 36, 24, 0.05);
  animation: rise-in 0.5s ease both;
}

.todayStrip {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.7), transparent 22%),
    linear-gradient(145deg, #eff6f2, #e1ece5 62%, #d9e6df);
  padding: 0.58rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 18px rgba(12, 36, 24, 0.04);
}

.todayStrip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.15%, rgba(20, 54, 37, 0.06) 49.15% 49.36%, transparent 49.36% 100%),
    repeating-linear-gradient(90deg, rgba(20, 54, 37, 0.042) 0 1px, transparent 1px 98px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 36%);
  opacity: 0.44;
}

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

.todayItem {
  border: 1px solid #dcebe2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 246, 0.96)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.04), rgba(255, 255, 255, 0));
  padding: 0.38rem 0.5rem;
}

.todayItem__k {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--score-label-tracking);
  color: #4f6d5b;
  font-family: var(--sans);
  text-transform: uppercase;
}

.todayItem__v {
  display: block;
  margin-top: 0.18rem;
  font-size: 1.18rem;
  color: #0f3221;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 16px rgba(17, 65, 43, 0.06);
  font-variant-numeric: tabular-nums;
}

#todayCountdownValue {
  font-family: var(--font-heading);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 16px rgba(17, 65, 43, 0.06);
}

.pageHero {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  color: #f7fffb;
  background: linear-gradient(132deg, rgba(8, 34, 22, 0.9), rgba(14, 83, 51, 0.84) 60%, rgba(28, 129, 78, 0.74));
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(247, 255, 251, 0.82);
}

.pageTitle {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin-top: 0.35rem;
}

.pageLead {
  margin-top: 0.55rem;
  color: rgba(247, 255, 251, 0.9);
}

.contentColumns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.sectionCard {
  padding: 1rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.sectionTitle {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: #143822;
  display: flex;
  align-items: center;
  gap: 0.56rem;
}

.sectionTitle::before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--club-accent-rgb), 0.86), rgba(var(--club-accent-rgb), 0.24));
  flex: 0 0 auto;
}

.sectionTitle::after {
  content: "";
  flex: 1 1 auto;
  min-width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 62, 38, 0.14), transparent);
}

.sectionText {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.sectionText + .sectionTitle,
.sectionText + .callout,
ul + .sectionTitle,
ol + .sectionTitle {
  margin-top: 0.8rem;
}

.callout {
  margin-top: 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid #d9c17c;
  background: #fff4d6;
  color: #614500;
  font-size: 0.9rem;
  padding: 0.56rem 0.65rem;
}

.label {
  display: block;
  margin-bottom: 0.32rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #2c503d;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.topbar .muted {
  color: rgba(242, 255, 247, 0.83);
}

.h2 {
  font-family: var(--font-heading);
  font-size: 1.24rem;
}

.inputRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: end;
}

.inputCol {
  position: relative;
}

.inputFlowHint {
  margin-top: 0.34rem;
  font-size: 0.78rem;
  color: #4f6d5d;
}

.actionsCol {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  align-items: center;
}

.actionsCol .btn {
  flex: 0 0 auto;
  min-width: 0;
}

.input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.78rem 0.9rem;
  font-size: 1rem;
  font-family: var(--sans);
  color: #102417;
  background: #fdfefc;
  outline: none;
}

.input:focus {
  border-color: #57996f;
  box-shadow: 0 0 0 3px rgba(83, 159, 110, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a47209;
  border-radius: var(--radius-md);
  padding: 0.67rem 0.74rem;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  color: #2d1f00;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

#submitGuessBtn,
#copyShareBtn {
  font-family: var(--sans);
}

.btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn--locked,
.btn--locked:hover,
.btn--locked:active {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn--ghost {
  color: #1b4b30;
  background: linear-gradient(180deg, #ecf8f0, #dceddf);
  border-color: #92ba9f;
}

.btn--clearSecondary {
  color: #35604a;
  border-color: #bfd5c8;
  background: linear-gradient(180deg, #f7fbf9, #edf4ef);
  box-shadow: none;
}

.btn--clearSecondary:hover {
  border-color: #aec7ba;
  background: linear-gradient(180deg, #fbfdfc, #eef6f1);
  filter: none;
}

.btn--clearSecondary:focus-visible {
  outline: none;
  border-color: #78a48b;
  box-shadow: 0 0 0 3px rgba(83, 159, 110, 0.2);
}

.btn--sharePrimary {
  min-height: 2.5rem;
  border-radius: var(--radius-md);
  border-color: #2f6f49;
  background: linear-gradient(180deg, #4d9868, #336f4b);
  color: #f4fcf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(20, 66, 43, 0.14);
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn--sharePrimary:hover {
  filter: none;
  border-color: #285f3f;
  background: linear-gradient(180deg, #4f9f6c, #2f6946);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 9px 18px rgba(20, 66, 43, 0.2);
}

.btn--sharePrimary:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 7px rgba(20, 66, 43, 0.16);
}

.btn--sharePrimary:focus-visible {
  outline: none;
  border-color: #5ba27a;
  box-shadow:
    0 0 0 3px rgba(83, 159, 110, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(20, 66, 43, 0.2);
}

.modalCloseBtn {
  min-height: 2.4rem;
  min-width: 84px;
  padding: 0.52rem 0.9rem;
  border-radius: var(--radius-md);
  border-color: #bdcfc1;
  background: linear-gradient(180deg, #fdfefd, #eef4f0);
  color: #314f3e;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.dialog__head .modalCloseBtn {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;
}

.modalCloseBtn:hover {
  filter: none;
  border-color: #9fb8a7;
  background: linear-gradient(180deg, #ffffff, #edf4ef);
  color: #274838;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 6px 14px rgba(26, 56, 39, 0.11);
}

.modalCloseBtn:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 2px 6px rgba(26, 56, 39, 0.08);
}

.modalCloseBtn:focus-visible {
  outline: none;
  border-color: #5f9072;
  box-shadow:
    0 0 0 3px rgba(83, 159, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 7px 14px rgba(26, 56, 39, 0.12);
}

.nav .btn.btn--ghost {
  color: #f2fff7;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.error {
  min-height: 1.25rem;
  margin-top: 0.32rem;
  color: var(--danger-500);
  font-size: 0.9rem;
  font-weight: 700;
}

.endStateMessage {
  margin-top: 0.32rem;
  border: 1px solid #d8e8de;
  border-radius: var(--radius-md);
  background: #f5faf7;
  color: #1c4b31;
  padding: 0.44rem 0.56rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.easyHints {
  margin-top: 0.65rem;
  border: 1px solid #dbe9df;
  border-radius: var(--radius-md);
  background: #f6faf8;
  padding: 0.65rem 0.7rem 0.7rem;
}

.easyHints__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  flex-wrap: wrap;
}

.easyHints__title {
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: var(--sans);
  font-weight: 600;
  color: #2d523f;
}

.easyHints__credits {
  font-family: var(--sans);
  color: #2b4c3a;
  font-size: 0.82rem;
  font-weight: 600;
}

.easyHints__actions {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.easyHints__status {
  font-size: 0.82rem;
}

.easyHintList {
  margin-top: 0.46rem;
  display: grid;
  gap: 0.34rem;
}

.easyHintItem {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.42rem 0.5rem;
}

.easyHintItem__k {
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: var(--sans);
  font-weight: 600;
  color: #3f5e4e;
}

.easyHintItem__v {
  margin-top: 0.1rem;
  font-size: 0.92rem;
  color: #173a27;
  font-weight: 600;
}

.easyNameClue {
  margin-top: 0.5rem;
  border: 1px solid #cfe1d6;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 184, 106, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #eff7f2);
  padding: 0.58rem 0.62rem 0.64rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.easyNameClue[data-complete="true"] {
  border-color: #b9d7c4;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 184, 106, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, #edf7f0);
}

.easyNameClue__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.28rem 0.6rem;
}

.easyNameClue__label {
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f5b45;
}

.easyNameClue__meta {
  font-size: 0.76rem;
  color: #557462;
}

.easyNameClue__value {
  margin-top: 0.34rem;
  color: #153826;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.96rem + 0.45vw, 1.14rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.todaysPlayer {
  margin-top: 0.8rem;
  border: 1px solid #dbe9df;
  border-radius: var(--radius-lg);
  background: #f6faf8;
  padding: 0.65rem 0.7rem 0.7rem;
}

.todaysPlayer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}

.todaysPlayer__title {
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  font-weight: 600;
  color: #2f5741;
}

.todaysPlayer__subtitle {
  font-size: 0.78rem;
  color: #4f6c5c;
}

.todaysPlayer__tableWrap {
  margin-top: 0.35rem;
}

.ac {
  margin-top: 0.42rem;
  border: 1px solid #ccddd2;
  border-radius: var(--radius-md);
  background: #fcfefc;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: none;
  max-height: min(48vh, 320px);
  overflow-y: auto;
}

.ac__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-bottom: 1px solid #ebf3ee;
  padding: 0.74rem 0.78rem;
  min-height: 3rem;
  cursor: pointer;
}

.ac__item:last-child {
  border-bottom: 0;
}

.ac__item:hover,
.ac__item[aria-selected="true"] {
  background: #e3f1e8;
}

.ac__item--active {
  background: #e3f1e8;
  box-shadow: inset 3px 0 0 #5d9477;
}

.ac__item:active {
  background: #d9ecdf;
}

.ac__meta {
  color: #5d7d6a;
  font-size: 0.82rem;
  font-family: var(--sans);
  text-align: right;
}

.tableWrap {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: linear-gradient(180deg, #fbfdfc, #eef5f0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 22px rgba(12, 36, 24, 0.04);
}

.resultsMobile {
  display: none;
  margin-top: 0.55rem;
}

.resultCard {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f5faf7 72%, #eef6f1);
  box-shadow: var(--shadow-soft);
  padding: 0.62rem 0.64rem;
  display: grid;
  gap: 0.52rem;
}

.resultCard + .resultCard {
  margin-top: 0.52rem;
}

.resultCard--answer {
  border-color: #bcd7c6;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 184, 106, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff, #eef7f1);
}

.resultCard--empty {
  padding: 0.7rem;
}

.resultCard__emptyText {
  color: #4f6c5c;
  font-size: 0.86rem;
}

.resultCard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.52rem;
}

.resultCard__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #173726;
}

.resultCard__sub {
  margin-top: 0.16rem;
  font-size: 0.8rem;
  color: #567766;
}

.resultCard__meta {
  border: 1px solid #cddfd4;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffffff, #eef6f1),
    linear-gradient(90deg, rgba(var(--club-accent-rgb), 0.08), rgba(255, 255, 255, 0));
  color: #365843;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.resultCard__grid {
  display: grid;
  gap: 0.45rem;
}

.resultCard__item {
  display: grid;
  gap: 0.2rem;
}

.resultCard__k {
  font-size: 0.74rem;
  font-family: var(--sans);
  font-weight: 600;
  color: #446352;
  display: flex;
  align-items: center;
  min-height: 1.15rem;
}

.resultCard__k--withSolvedReminder {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.resultCard__kLabel {
  min-width: 0;
  flex: 1 1 auto;
}

.resultCard__solvedReminder {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  max-width: min(70%, 240px);
  min-width: 0;
  margin-left: auto;
  border: 1px solid #86d3ab;
  border-radius: 999px;
  background: linear-gradient(180deg, #ecfaf2, #ddf5e8);
  color: #24563d;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.18;
  padding: 0.2rem 0.55rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resultCard__help {
  gap: 0.24rem;
}

.resultCard__help .th__label {
  line-height: 1.25;
}

.resultCard__item .tile {
  min-height: 44px;
}

.resultsHead {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 0.42rem;
  border-bottom: 1px solid rgba(15, 62, 38, 0.08);
}

.resultsHead__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--score-label-tracking);
  font-family: var(--sans);
  font-weight: 700;
  color: #2f5741;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resultsHead__title::before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--club-accent-rgb), 0.86), rgba(var(--club-accent-rgb), 0.22));
  flex: 0 0 auto;
}

.resultsHead__title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 62, 38, 0.14), transparent);
}

.resultsHint {
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1200px;
  background: transparent;
}

.th {
  position: sticky;
  top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #edf6ef, #e3efe7);
  color: #305740;
  text-align: left;
  overflow: visible;
  border-bottom: 1px solid #d4e4da;
  padding: 0.6rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--sans);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.th__help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.th__label {
  display: inline-flex;
  align-items: center;
}

.infoIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid #9db9a9;
  background: linear-gradient(180deg, #f3faf6, #e4efe9);
  color: #2c533f;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.infoIcon--inline {
  pointer-events: none;
  margin: 0 0.2rem;
  vertical-align: middle;
}

.infoIcon:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.infoIcon:active {
  transform: translateY(0);
}

.infoIcon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(83, 159, 110, 0.24);
}

.infoTooltip {
  display: none;
}

.floatingInfoTooltip {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(8px);
  width: max-content;
  max-width: 260px;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(164, 210, 181, 0.35);
  background: rgba(12, 30, 21, 0.94);
  color: #f4faf7;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 10px 22px rgba(6, 18, 12, 0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 5000;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.floatingInfoTooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(50% + var(--tooltip-arrow-offset, 0px));
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(12, 30, 21, 0.94) transparent;
}

.floatingInfoTooltip.is-top {
  transform: translateY(-8px);
}

.floatingInfoTooltip.is-top::before {
  top: auto;
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-color: rgba(12, 30, 21, 0.94) transparent transparent transparent;
}

.floatingInfoTooltip.floatingInfoTooltip--show {
  opacity: 1;
  transform: translateY(0);
}

.floatingInfoTooltip.floatingInfoTooltip--touch {
  z-index: 5200;
}

.floatingInfoTooltip.floatingInfoTooltip--closing {
  opacity: 0;
  transform: translateY(6px);
}

.floatingInfoTooltip.is-top.floatingInfoTooltip--closing {
  transform: translateY(-6px);
}

@media (hover: none), (pointer: coarse) {
  .floatingInfoTooltip.floatingInfoTooltip--touch {
    max-width: min(280px, calc(100vw - 0.9rem));
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
}

.th--name {
  min-width: 220px;
}

td {
  border-bottom: 1px solid #eef5f0;
  padding: 0.57rem 0.62rem;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  text-align: center;
  padding: 1rem 0.7rem;
  color: #547161;
}

.cellName {
  font-weight: 700;
}

.cellSub {
  margin-top: 0.24rem;
  font-size: 0.78rem;
  color: #567766;
  font-family: var(--sans);
}

.tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 0.5rem 0.55rem;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  justify-content: center;
}

.tile__mark {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #2f4a3a;
}

.tile__val {
  font-size: 0.84rem;
  color: #163423;
  line-height: 1.22;
  font-variant-numeric: tabular-nums;
}

.tile--g {
  border-color: #86d3ab;
  background: #e6f8ee;
}

.tile--y {
  border-color: #e9cb79;
  background: #fff6de;
}

.tile--x {
  border-color: #cfbac2;
  background: #f8f1f4;
}

.tile--ref {
  border-color: #c8d6cd;
  background: #eef3ef;
}

.footnote {
  margin-top: 0.75rem;
}

.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #f7fbf8, #eef5f0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  color: #486556;
  font-size: 0.84rem;
}

.legend--compact {
  font-size: 0.78rem;
  gap: 0.3rem 0.5rem;
  padding: 0.3rem 0.55rem;
}

.legend--compact .pill {
  padding: 0.14rem 0.42rem;
  font-size: 0.7rem;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.legend__label {
  font-weight: 600;
  color: #385242;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c8ddd0;
  padding: 0.24rem 0.58rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 246, 0.96)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(var(--club-accent-rgb), 0.05));
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #244535;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 rgba(12, 36, 24, 0.03);
}

.pill--g {
  border-color: #76c99f;
  background:
    linear-gradient(180deg, #f1fbf5, #ddf2e7),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(28, 159, 95, 0.1));
  color: #185436;
}

.pill--y {
  border-color: #d8b95f;
  background:
    linear-gradient(180deg, #fffaf0, #ffefc2),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(197, 138, 16, 0.1));
  color: #694907;
}

.pill--x {
  border-color: #cfbac2;
  background:
    linear-gradient(180deg, #fbf6f7, #f2e4ea),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(139, 94, 110, 0.08));
  color: #653845;
}

.pill--plain {
  border-color: #adc5b4;
  background:
    linear-gradient(180deg, #f7fbf8, #e7f2eb),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(var(--club-accent-rgb), 0.04));
  color: #305240;
}

.emptySilhouetteRow td {
  padding-top: 0.45rem;
  padding-bottom: 0.58rem;
}

.emptySilhouette {
  height: 10px;
  width: 74%;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef5f0, #e2ede6);
}

.emptySilhouette--long {
  width: 86%;
}

.cellEnter {
  transform-origin: 50% 20%;
  animation: tile-enter 220ms ease both;
  animation-delay: var(--enter-delay, 0ms);
}

.footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.3rem 0.2rem 0.1rem;
  font-size: 0.86rem;
}

.footerFeedback a {
  color: #1f5b39;
  border-bottom: 1px dotted #7ea891;
}

.footerFeedback a:hover {
  border-bottom-style: solid;
}

.links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  line-height: 1.2;
  padding: 0.05rem 0;
  color: #1f5b39;
  font-weight: 600;
  font-size: 0.84rem;
  border-bottom: 1px dotted #7ea891;
}

.links a:hover {
  border-bottom-style: solid;
}

.links a:focus-visible {
  outline: 2px solid rgba(31, 91, 57, 0.28);
  outline-offset: 2px;
  border-bottom-style: solid;
}

.dialog {
  width: min(720px, calc(100% - 1.2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.95rem;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-strong);
}

.dialogPanel {
  width: 100%;
}

.dialog--onboarding {
  width: min(560px, calc(100% - 1.2rem));
  padding: 1.1rem 1.15rem 1.2rem;
}

.dialog--playerCard {
  width: min(860px, calc(100% - 1.2rem));
  padding: 0;
  overflow: hidden;
}

.dialog::backdrop {
  background: rgba(4, 24, 15, 0.5);
}

.dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

#statsDialog .dialog__head {
  align-items: center;
}

#statsDialog #resultLine {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 26rem);
  margin: 0;
  padding: 0.34rem 0.78rem 0.38rem;
  border-radius: 999px;
  border: 1px solid #9cc8af;
  background:
    linear-gradient(180deg, rgba(239, 253, 245, 0.96), rgba(219, 243, 229, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(0, 0, 0, 0));
  color: #1b5a38;
  font-size: clamp(0.98rem, 1.45vw, 1.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 4px 12px rgba(18, 73, 46, 0.08);
}

.onboarding__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.onboarding__lead {
  margin-top: 0.25rem;
}

.onboarding__body {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.onboarding__hint {
  margin-top: -0.2rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.onboarding__error {
  min-height: 1.1rem;
  color: var(--danger-500);
  font-size: 0.88rem;
  font-weight: 700;
}

.onboarding__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.2rem;
}

.onboarding__status {
  min-height: 1.1rem;
}

.onboarding__status--error {
  color: var(--danger-500);
  font-weight: 700;
}

.onboarding__select {
  appearance: none;
  background:
    linear-gradient(180deg, #fdfefc, #f2f8f3),
    linear-gradient(45deg, transparent 50%, #6d8779 50%),
    linear-gradient(135deg, #6d8779 50%, transparent 50%);
  background-position:
    0 0,
    calc(100% - 1.1rem) 50%,
    calc(100% - 0.85rem) 50%;
  background-size:
    100% 100%,
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.input--error {
  border-color: var(--danger-500);
  box-shadow: 0 0 0 3px rgba(181, 57, 57, 0.18);
}

.playerCard__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem 0.75rem;
  background: linear-gradient(140deg, #072819 0%, #105a36 56%, #1d8654 100%);
  color: #f4fff9;
}

.playerCard__headMeta {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.playerCard__statusRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.08rem;
}

.playerCard__titleRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.62rem;
  row-gap: 0.34rem;
  min-width: 0;
}

.playerCard__resultMessage {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: fit-content;
  max-width: min(100%, 32ch);
  margin: 0;
  padding: 0.36rem 0.8rem 0.38rem;
  border-radius: 12px;
  border: 1px solid rgba(219, 246, 230, 0.5);
  background: linear-gradient(180deg, rgba(6, 42, 27, 0.7), rgba(4, 29, 19, 0.44));
  color: rgba(244, 255, 249, 0.96);
  font-size: clamp(0.86rem, 1.55vw, 0.96rem);
  font-weight: 800;
  letter-spacing: 0.018em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px rgba(1, 14, 9, 0.2);
}

.playerCard__resultMessage[data-result-tone="win"] {
  border-color: rgba(196, 242, 214, 0.64);
  background: linear-gradient(180deg, rgba(7, 49, 31, 0.72), rgba(5, 36, 23, 0.5));
}

.playerCard__resultMessage[data-result-tone="loss"] {
  border-color: rgba(222, 238, 190, 0.58);
  background: linear-gradient(180deg, rgba(37, 51, 30, 0.7), rgba(26, 37, 22, 0.5));
  color: rgba(246, 255, 238, 0.96);
}

.playerCard__resultMessage[hidden] {
  display: none;
}

.playerCard__modeTag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  color: rgba(244, 255, 249, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.playerCard__name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  letter-spacing: 0.01em;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.playerCard__club {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.1rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 18, 11, 0.2);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 255, 249, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.playerCard__body {
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, #ffffff, #f5faf7);
}

.playerCard__hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--club-accent-rgb), 0.18), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fbfefd, #eef6f1);
  padding: 0.75rem 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.playerCard__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.15%, rgba(18, 73, 46, 0.06) 49.15% 49.36%, transparent 49.36% 100%),
    repeating-linear-gradient(90deg, rgba(18, 73, 46, 0.04) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(180deg, rgba(18, 73, 46, 0.024) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 38%);
  opacity: 0.36;
}

.playerCard__hero::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  top: 0;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(var(--club-accent-rgb), 0.72), rgba(var(--club-accent-rgb), 0.12) 58%, transparent);
  pointer-events: none;
}

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

.playerCard__solveLine {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  letter-spacing: -0.03em;
  color: #163d29;
}

.playerCard__flexLine {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.playerCard__scoreBox {
  position: relative;
  overflow: hidden;
  min-width: 132px;
  border: 1px solid rgba(12, 57, 35, 0.12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0 0, rgba(var(--club-accent-rgb), 0.24), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(6, 30, 19, 0.98), rgba(10, 55, 35, 0.94));
  padding: 0.55rem 0.7rem;
  text-align: center;
  box-shadow: 0 18px 28px rgba(11, 42, 27, 0.18);
}

.playerCard__scoreBox::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--club-accent-strong), rgba(var(--club-accent-rgb), 0.12) 62%, transparent);
  pointer-events: none;
}

.playerCard__scoreBox::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%);
  opacity: 0.22;
  pointer-events: none;
}

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

.playerCard__scoreLabel {
  font-size: 0.68rem;
  color: rgba(245, 251, 248, 0.74);
  font-weight: 700;
  letter-spacing: var(--score-label-tracking);
  text-transform: uppercase;
}

.playerCard__scoreValue {
  font-family: var(--font-heading);
  font-size: 2.18rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #f8fcfa;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.playerCard__scoreSub {
  font-size: 0.76rem;
  color: rgba(245, 251, 248, 0.72);
}

.playerCard__summary {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.playerCard__summaryItem {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4faf7);
  border-radius: var(--radius-md);
  padding: 0.56rem 0.64rem;
}

.playerCard__summaryLabel {
  font-size: 0.68rem;
  color: #567264;
  font-weight: 700;
  letter-spacing: var(--score-label-tracking);
  text-transform: uppercase;
}

.playerCard__summaryValue {
  margin-top: 0.18rem;
  font-size: 1.14rem;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: var(--score-value-shadow);
  color: #1b3f2c;
}

.playerCard__facts {
  margin-top: 0.95rem;
}

.playerCard__factsTitle {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f4f36;
  margin-bottom: 0.45rem;
}

.playerCard__factsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.playerCard__fact {
  border: 1px solid #d6e7dc;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f6fbf8);
  padding: 0.45rem 0.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.playerCard__factLabel {
  font-size: 0.68rem;
  color: #567264;
  font-weight: 700;
  letter-spacing: var(--score-label-tracking);
  text-transform: uppercase;
}

.playerCard__factValue {
  margin-top: 0.12rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1b3f2c;
}

.playerCard__actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.playerCard__actions .btn {
  flex: 1 1 auto;
}

.updatesLog {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.updateEntry {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  padding: 0.6rem 0.68rem;
}

.updateEntry__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.updateEntry__version {
  font-family: var(--font-heading);
  color: #1e4f33;
}

.updateEntry__meta {
  font-size: 0.84rem;
  color: #4b6a59;
}

.updateEntry__items {
  margin-top: 0.45rem;
  color: #2b4e3b;
}

.updateEntry__description {
  margin-top: 0.45rem;
  color: #2b4e3b;
  font-size: 0.92rem;
}

.updatesLog__empty {
  margin-top: 0.2rem;
}

.grid {
  margin-top: 0.82rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.statsHeadline {
  margin-top: 0.7rem;
}

.statsActions {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4faf7);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.6rem;
}

.stat--headline {
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 184, 106, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 34%),
    linear-gradient(160deg, #f7fffc, #e6f3ec);
  border-color: #bcd3c6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stat__k {
  font-size: 0.68rem;
  color: #567264;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: var(--score-label-tracking);
}

.stat__v {
  margin-top: 0.18rem;
  font-size: 1.24rem;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56), 0 8px 14px rgba(17, 65, 43, 0.05);
}

.stat__v--headline {
  font-size: 2.28rem;
  letter-spacing: -0.06em;
}

.stat__meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.clubStats {
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.clubStats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.clubStats__title {
  display: flex;
  flex-direction: column;
}

.clubStats__title .label {
  margin-bottom: 0.15rem;
}

.clubStats__total {
  font-size: 0.78rem;
}

.clubStats__select {
  min-width: 200px;
}

.clubStats__grid {
  margin-top: 0.6rem;
}

.clubStats__status {
  margin-top: 0.35rem;
}

.shareBox {
  margin-top: 0.8rem;
}

.sharePreviewMeta {
  margin-bottom: 0.34rem;
}

.sharePreviewLabel {
  margin: 0 0 0.12rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #355943;
}

.sharePreviewHint {
  font-size: 0.82rem;
  color: #4f6b5b;
}

.textarea {
  width: 100%;
  margin-top: 0.28rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.64rem 0.72rem;
  min-height: 132px;
  font-family: var(--font-mono);
  color: #163624;
  background: #fdfefc;
  resize: vertical;
}

#shareText,
.shareTextPreview {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre;
  tab-size: 16;
  line-height: 1.36;
  border-color: #9cbca8;
  background: linear-gradient(180deg, #fdfefc, #f3faf6);
}

.shareActions {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.5rem;
}

.shareActions .btn {
  min-height: 2.5rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}

#shareDialog {
  width: min(620px, calc(100% - 1rem));
  max-height: calc(100vh - 1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1rem 0.95rem;
  border-color: #bfd7c7;
  background: linear-gradient(180deg, #ffffff, #f7fcf9);
}

#shareDialog::backdrop {
  background: rgba(6, 24, 15, 0.44);
  backdrop-filter: blur(3px);
}

#shareDialog .dialog__head {
  align-items: flex-start;
  gap: 0.9rem;
}

#shareDialog .h2 {
  font-size: 1.14rem;
}

#shareDialog .muted {
  font-size: 0.88rem;
  color: #4a6757;
}

.shareDialogIntro {
  margin: 0.72rem 0 0;
}

.shareSection {
  margin-top: 0.9rem;
  padding: 0.86rem;
  border: 1px solid #d7e6da;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdfb, #eef5f0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.shareSection__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.shareSection__label {
  margin: 0;
  font-size: 0.7rem;
  color: #2f5140;
  letter-spacing: var(--score-label-tracking);
  text-transform: uppercase;
  font-weight: 700;
}

.shareSection__hint {
  margin-top: 0.14rem;
  font-size: 0.84rem;
  color: #50695a;
}

.shareCardPreview {
  position: relative;
  overflow: hidden;
  width: min(100%, 280px);
  aspect-ratio: 9 / 16;
  margin: 0.68rem auto 0.1rem;
  border: 1px solid #d6e4d8;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 184, 106, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fcf9, #edf5f0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 40px rgba(11, 26, 18, 0.1);
}

.shareCardPreview__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #08111a;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 1201px) {
  .shareCardPreview {
    display: none;
  }
}

.shareStatsSelector {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.shareStatsSelector .btn {
  width: 100%;
  border-radius: 18px;
  border-color: #b8cec0;
  background: linear-gradient(180deg, #f9fcfa, #edf5f0);
  color: #1f4d33;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.shareStatsSelector .btn.is-active {
  background: linear-gradient(180deg, #f5fbf7, #e4efe9);
  border-color: #9fbeaa;
  color: #1f4d33;
  box-shadow: inset 0 2px 0 rgba(var(--club-accent-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.shareStatsClubRow {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.4rem;
}

.shareStatsEmpty {
  font-size: 0.85rem;
  color: #4f6b5b;
}

#shareStatsDialog .h2 {
  font-size: 1.14rem;
}

#shareStatsDialog .muted {
  font-size: 0.88rem;
  color: #4a6757;
}

.sharePrimaryActions {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.52rem;
}

.shareSocialActions {
  margin-top: 0.52rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

#shareDialog .sharePrimaryActions .btn,
#shareDialog .shareSocialActions .btn,
#shareStatsDialog .sharePrimaryActions .btn,
#shareStatsDialog .shareSocialActions .btn {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.56rem 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

#shareDialog .shareSocialActions .btn,
#shareStatsDialog .shareSocialActions .btn {
  background: linear-gradient(180deg, #edf7f1, #e1f0e8);
  border-color: #9fbeaa;
  color: #1f4d33;
}

#copyStatus {
  margin-top: 0.28rem;
}

.shareToast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 12px);
  background: rgba(12, 30, 21, 0.94);
  color: #f4faf7;
  border: 1px solid rgba(164, 210, 181, 0.35);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.86rem;
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.shareToast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shareCard {
  position: fixed;
  top: 0;
  left: -12000px;
  width: 540px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  --share-card-accent: #1fb86a;
  --share-card-accent-soft: rgba(31, 184, 106, 0.22);
  --share-card-accent-strong: #66e09b;
  --share-card-glow: rgba(31, 184, 106, 0.16);
}

.shareCard[data-mode="hard"],
.shareCard__frame[data-mode="hard"] {
  --share-card-accent: #f0b429;
  --share-card-accent-soft: rgba(240, 180, 41, 0.22);
  --share-card-accent-strong: #ffd36b;
  --share-card-glow: rgba(240, 180, 41, 0.16);
}

.shareCard[data-mode="clubcipher"],
.shareCard__frame[data-mode="clubcipher"] {
  --share-card-accent: #4d8ef7;
  --share-card-accent-soft: rgba(77, 142, 247, 0.22);
  --share-card-accent-strong: #a7c6ff;
  --share-card-glow: rgba(77, 142, 247, 0.16);
}

.shareCard__frame[data-mode="clubcipher"][data-club-key] {
  --share-card-accent: var(--club-accent);
  --share-card-accent-soft: var(--club-accent-soft);
  --share-card-accent-strong: var(--club-accent-strong);
  --share-card-glow: rgba(var(--club-accent-rgb), 0.18);
}

.shareCard__frame {
  --share-card-content-gap: 14px;
  --share-card-hero-padding: 18px;
  --share-card-status-main-size: 2.74rem;
  --share-card-status-sub-size: 0.74rem;
  --share-card-mini-stat-min-height: 88px;
  --share-card-path-section-pad-top: 16px;
  --share-card-path-section-pad-bottom: 15px;
  --share-card-path-section-pad-x: 16px;
  --share-card-path-section-gap: 0.68rem;
  --share-card-section-label-size: 0.73rem;
  --share-card-path-gap: 0.36rem;
  --share-card-path-row-pad-y: 0.36rem;
  --share-card-path-row-pad-x: 0.42rem;
  --share-card-path-row-gap: 0.58rem;
  --share-card-attempt-size: 28px;
  --share-card-attempt-font-size: 0.72rem;
  --share-card-cell-gap: 0.34rem;
  --share-card-cell-radius: 10px;
  --share-card-cell-aspect: 1;
  --share-card-footer-pad-top: 18px;
  --share-card-footer-pad-bottom: 16px;
  --share-card-footer-pad-x: 18px;
  --share-card-footer-gap: 16px;
  --share-card-cta-font-size: 1.36rem;
  --share-card-cta-min-height: 34px;
  --share-card-cta-max-width: 300px;
  position: relative;
  width: 540px;
  height: 960px;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 12%, var(--share-card-glow), transparent 32%),
    radial-gradient(circle at 86% 18%, var(--share-card-accent-soft), transparent 24%),
    radial-gradient(circle at 50% 104%, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, #07110d 0%, #071412 40%, #050b12 100%);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.42);
  color: #f5fbf8;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.shareCard[data-path-density="compact"] .shareCard__frame,
.shareCard__frame[data-path-density="compact"] {
  --share-card-content-gap: 12px;
  --share-card-hero-padding: 16px;
  --share-card-status-main-size: 2.56rem;
  --share-card-status-sub-size: 0.7rem;
  --share-card-mini-stat-min-height: 84px;
  --share-card-path-section-pad-top: 14px;
  --share-card-path-section-pad-bottom: 13px;
  --share-card-path-section-pad-x: 14px;
  --share-card-path-section-gap: 0.56rem;
  --share-card-section-label-size: 0.7rem;
  --share-card-path-gap: 0.3rem;
  --share-card-path-row-pad-y: 0.3rem;
  --share-card-path-row-pad-x: 0.38rem;
  --share-card-path-row-gap: 0.5rem;
  --share-card-attempt-size: 26px;
  --share-card-attempt-font-size: 0.68rem;
  --share-card-cell-gap: 0.28rem;
  --share-card-cell-radius: 9px;
  --share-card-cell-aspect: 1.14;
  --share-card-footer-pad-top: 16px;
  --share-card-footer-pad-bottom: 14px;
  --share-card-footer-pad-x: 16px;
  --share-card-footer-gap: 12px;
  --share-card-cta-font-size: 1.22rem;
  --share-card-cta-min-height: 30px;
  --share-card-cta-max-width: 280px;
}

.shareCard[data-path-density="tight"] .shareCard__frame,
.shareCard__frame[data-path-density="tight"] {
  --share-card-content-gap: 11px;
  --share-card-hero-padding: 15px;
  --share-card-status-main-size: 2.4rem;
  --share-card-status-sub-size: 0.66rem;
  --share-card-mini-stat-min-height: 80px;
  --share-card-path-section-pad-top: 12px;
  --share-card-path-section-pad-bottom: 11px;
  --share-card-path-section-pad-x: 12px;
  --share-card-path-section-gap: 0.48rem;
  --share-card-section-label-size: 0.68rem;
  --share-card-path-gap: 0.24rem;
  --share-card-path-row-pad-y: 0.24rem;
  --share-card-path-row-pad-x: 0.32rem;
  --share-card-path-row-gap: 0.44rem;
  --share-card-attempt-size: 24px;
  --share-card-attempt-font-size: 0.64rem;
  --share-card-cell-gap: 0.22rem;
  --share-card-cell-radius: 8px;
  --share-card-cell-aspect: 1.24;
  --share-card-footer-pad-top: 14px;
  --share-card-footer-pad-bottom: 12px;
  --share-card-footer-pad-x: 14px;
  --share-card-footer-gap: 10px;
  --share-card-cta-font-size: 1.08rem;
  --share-card-cta-min-height: 26px;
  --share-card-cta-max-width: 260px;
}

.shareCard[data-path-density="ultra"] .shareCard__frame,
.shareCard__frame[data-path-density="ultra"] {
  --share-card-content-gap: 10px;
  --share-card-hero-padding: 14px;
  --share-card-status-main-size: 2.26rem;
  --share-card-status-sub-size: 0.62rem;
  --share-card-mini-stat-min-height: 76px;
  --share-card-path-section-pad-top: 10px;
  --share-card-path-section-pad-bottom: 10px;
  --share-card-path-section-pad-x: 10px;
  --share-card-path-section-gap: 0.42rem;
  --share-card-section-label-size: 0.66rem;
  --share-card-path-gap: 0.2rem;
  --share-card-path-row-pad-y: 0.19rem;
  --share-card-path-row-pad-x: 0.28rem;
  --share-card-path-row-gap: 0.38rem;
  --share-card-attempt-size: 22px;
  --share-card-attempt-font-size: 0.6rem;
  --share-card-cell-gap: 0.18rem;
  --share-card-cell-radius: 7px;
  --share-card-cell-aspect: 1.34;
  --share-card-footer-pad-top: 12px;
  --share-card-footer-pad-bottom: 10px;
  --share-card-footer-pad-x: 12px;
  --share-card-footer-gap: 9px;
  --share-card-cta-font-size: 0.98rem;
  --share-card-cta-min-height: 22px;
  --share-card-cta-max-width: 240px;
}

.shareCard[data-path-density="nano"] .shareCard__frame,
.shareCard__frame[data-path-density="nano"] {
  --share-card-content-gap: 9px;
  --share-card-hero-padding: 13px;
  --share-card-status-main-size: 2.14rem;
  --share-card-status-sub-size: 0.58rem;
  --share-card-mini-stat-min-height: 70px;
  --share-card-path-section-pad-top: 8px;
  --share-card-path-section-pad-bottom: 8px;
  --share-card-path-section-pad-x: 8px;
  --share-card-path-section-gap: 0.36rem;
  --share-card-section-label-size: 0.62rem;
  --share-card-path-gap: 0.16rem;
  --share-card-path-row-pad-y: 0.14rem;
  --share-card-path-row-pad-x: 0.22rem;
  --share-card-path-row-gap: 0.32rem;
  --share-card-attempt-size: 18px;
  --share-card-attempt-font-size: 0.52rem;
  --share-card-cell-gap: 0.12rem;
  --share-card-cell-radius: 6px;
  --share-card-cell-aspect: 1.48;
  --share-card-footer-pad-top: 10px;
  --share-card-footer-pad-bottom: 8px;
  --share-card-footer-pad-x: 10px;
  --share-card-footer-gap: 8px;
  --share-card-cta-font-size: 0.88rem;
  --share-card-cta-min-height: 20px;
  --share-card-cta-max-width: 220px;
}

.shareCard__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 86% -2%, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(90deg, transparent 0 49.4%, rgba(255, 255, 255, 0.055) 49.4% 49.62%, transparent 49.62% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 116px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0, transparent 42%);
  opacity: 0.18;
}

.shareCard__frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 9px;
  pointer-events: none;
  background: linear-gradient(180deg, var(--share-card-accent-strong), var(--share-card-accent));
}

.shareCard__content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--share-card-content-gap);
}

.shareCard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shareCard__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.shareCard__logo {
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    linear-gradient(180deg, var(--share-card-accent-strong), var(--share-card-accent));
  color: #08120d;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 18px rgba(0, 0, 0, 0.18);
}

.shareCard__logoImg {
  position: relative;
  z-index: 1;
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.shareCard__logoFallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08120d;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.shareCard__logoImg[hidden],
.shareCard__logoFallback[hidden] {
  display: none !important;
}

.shareCard__brandName {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #f8fcfa;
}

.shareCard__brandSub {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 251, 248, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shareCard__mode {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 0.62rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, var(--share-card-accent-strong), var(--share-card-accent));
  color: #f9fffb;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 22px rgba(0, 0, 0, 0.14);
}

.shareCard__hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  padding: var(--share-card-hero-padding);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 100% 0%, var(--share-card-glow), transparent 30%),
    linear-gradient(180deg, rgba(7, 21, 18, 0.88), rgba(4, 10, 16, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shareCard__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.35%, rgba(255, 255, 255, 0.06) 49.35% 49.57%, transparent 49.57% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 54px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%);
  opacity: 0.28;
}

.shareCard__hero::after {
  content: "";
  position: absolute;
  inset: auto -42px -34px auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--share-card-glow), transparent 68%);
  opacity: 0.5;
  pointer-events: none;
}

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

.shareCard__heroCopy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.shareCard__statusBlock {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.shareCard__status,
.shareCard__statusMain {
  font-family: var(--font-heading);
  font-size: var(--share-card-status-main-size);
  line-height: 0.93;
  letter-spacing: -0.04em;
  color: #f8fcfa;
  text-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.shareCard[data-status="missed"] .shareCard__status,
.shareCard[data-status="missed"] .shareCard__statusMain,
.shareCard__frame[data-status="missed"] .shareCard__status,
.shareCard__frame[data-status="missed"] .shareCard__statusMain {
  color: #ff8b95;
}

.shareCard__statusSub {
  font-size: var(--share-card-status-sub-size);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 251, 248, 0.78);
}

.shareCard__statusSub::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 1px;
  margin-right: 0.45rem;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

.shareCard__puzzle {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.44rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.25;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 251, 248, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shareCard__club {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.34rem;
  padding: 0.4rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    var(--share-card-accent-soft);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 251, 248, 0.9);
}

.shareCard__streak {
  position: relative;
  overflow: hidden;
  flex: 0 0 132px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 100% 0%, var(--share-card-glow), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 12px 14px 11px;
}

.shareCard__streak::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--share-card-accent-strong), var(--share-card-accent));
  opacity: 0.95;
}

.shareCard__streakLabel {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 251, 248, 0.78);
}

.shareCard__streakValue {
  position: relative;
  z-index: 1;
  margin-top: 0.3rem;
  font-family: var(--font-heading);
  font-size: 2.66rem;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #f8fcfa;
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

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

.shareCard__miniStat {
  position: relative;
  overflow: hidden;
  min-height: var(--share-card-mini-stat-min-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 12px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shareCard__miniStat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%);
  pointer-events: none;
}

.shareCard__miniStat--accent {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 100% 0%, var(--share-card-glow), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.025);
}

.shareCard__miniLabel {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 251, 248, 0.76);
}

.shareCard__miniValue {
  position: relative;
  z-index: 1;
  margin-top: 0.32rem;
  font-family: var(--font-heading);
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f8fcfa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shareCard__pathSection {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  overflow: hidden;
  padding:
    var(--share-card-path-section-pad-top)
    var(--share-card-path-section-pad-x)
    var(--share-card-path-section-pad-bottom);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 16% 0%, var(--share-card-glow), transparent 34%),
    linear-gradient(90deg, transparent 0 49.25%, rgba(255, 255, 255, 0.04) 49.25% 49.48%, transparent 49.48% 100%),
    radial-gradient(circle at 88% 104%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: var(--share-card-path-section-gap);
}

.shareCard__pathSection::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 52px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.015), transparent 38%);
  pointer-events: none;
}

.shareCard__pathSection::after {
  content: "";
  position: absolute;
  left: var(--share-card-path-section-pad-x);
  right: var(--share-card-path-section-pad-x);
  top: 0;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--share-card-accent-strong), rgba(255, 255, 255, 0.04) 62%, transparent);
  pointer-events: none;
}

.shareCard__sectionLabel {
  position: relative;
  z-index: 1;
  font-size: var(--share-card-section-label-size);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--share-card-accent-strong);
}

.shareCard__path {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--share-card-path-gap);
}

.shareCard__pathRow {
  padding: var(--share-card-path-row-pad-y) var(--share-card-path-row-pad-x);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(4, 12, 18, 0.34), rgba(2, 8, 13, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: var(--share-card-attempt-size) minmax(0, 1fr);
  align-items: center;
  gap: var(--share-card-path-row-gap);
}

.shareCard__attempt {
  width: var(--share-card-attempt-size);
  height: var(--share-card-attempt-size);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.12), rgba(255, 255, 255, 0));
  color: rgba(245, 251, 248, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--share-card-attempt-font-size);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.shareCard__cells {
  display: grid;
  gap: var(--share-card-cell-gap);
}

.shareCard__cell {
  position: relative;
  aspect-ratio: var(--share-card-cell-aspect);
  border-radius: var(--share-card-cell-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 12px rgba(0, 0, 0, 0.14);
}

.shareCard__cell--g {
  background: linear-gradient(180deg, #31a766, #1d7344);
}

.shareCard__cell--y {
  background: linear-gradient(180deg, #e0ad33, #9f6e12);
}

.shareCard__cell--x {
  background: linear-gradient(180deg, #b64f5c, #742935);
}

.shareCard__cellArrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fcfa;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.shareCard__cellArrowSvg {
  width: 13px;
  height: 13px;
  display: block;
  color: inherit;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
  shape-rendering: geometricPrecision;
}

.shareCard__empty {
  min-height: 92px;
  border-radius: 18px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 251, 248, 0.76);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shareCard__footer {
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0 0, var(--share-card-glow), transparent 26%),
    linear-gradient(135deg, rgba(12, 22, 34, 0.98), rgba(7, 14, 22, 0.99));
  padding: var(--share-card-footer-pad-top) var(--share-card-footer-pad-x) var(--share-card-footer-pad-bottom);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--share-card-footer-gap);
}

.shareCard__footer::after {
  content: "";
  position: absolute;
  left: var(--share-card-footer-pad-x);
  right: var(--share-card-footer-pad-x);
  top: 0;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--share-card-accent-strong), rgba(255, 255, 255, 0.04) 62%, transparent);
  pointer-events: none;
}

.shareCard__footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.05), transparent 36%);
  pointer-events: none;
}

.shareCard__cta {
  position: relative;
  z-index: 1;
  max-width: var(--share-card-cta-max-width);
  display: flex;
  align-items: center;
  min-height: var(--share-card-cta-min-height);
  font-family: var(--font-heading);
  font-size: var(--share-card-cta-font-size);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: #f8fcfa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shareCard__url {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-top: 0;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 251, 248, 0.78);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="broncos"],
.homeClubChip[data-key="broncos"] {
  --club-accent: #7a1633;
  --club-accent-rgb: 122, 22, 51;
  --club-accent-strong: #d17b93;
  --club-accent-soft: rgba(122, 22, 51, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="raiders"],
.homeClubChip[data-key="raiders"] {
  --club-accent: #7ab93e;
  --club-accent-rgb: 122, 185, 62;
  --club-accent-strong: #a8df74;
  --club-accent-soft: rgba(122, 185, 62, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="bulldogs"],
.homeClubChip[data-key="bulldogs"] {
  --club-accent: #245dd3;
  --club-accent-rgb: 36, 93, 211;
  --club-accent-strong: #80aaf8;
  --club-accent-soft: rgba(36, 93, 211, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="sharks"],
.homeClubChip[data-key="sharks"] {
  --club-accent: #0f98b7;
  --club-accent-rgb: 15, 152, 183;
  --club-accent-strong: #69d1ea;
  --club-accent-soft: rgba(15, 152, 183, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="dolphins"],
.homeClubChip[data-key="dolphins"] {
  --club-accent: #d74a60;
  --club-accent-rgb: 215, 74, 96;
  --club-accent-strong: #f28c9c;
  --club-accent-soft: rgba(215, 74, 96, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="titans"],
.homeClubChip[data-key="titans"] {
  --club-accent: #2f9bd6;
  --club-accent-rgb: 47, 155, 214;
  --club-accent-strong: #86d2f8;
  --club-accent-soft: rgba(47, 155, 214, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="sea-eagles"],
.homeClubChip[data-key="sea-eagles"] {
  --club-accent: #721d35;
  --club-accent-rgb: 114, 29, 53;
  --club-accent-strong: #cb7189;
  --club-accent-soft: rgba(114, 29, 53, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="storm"],
.homeClubChip[data-key="storm"] {
  --club-accent: #6b59cc;
  --club-accent-rgb: 107, 89, 204;
  --club-accent-strong: #ae9cf7;
  --club-accent-soft: rgba(107, 89, 204, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="knights"],
.homeClubChip[data-key="knights"] {
  --club-accent: #cc364c;
  --club-accent-rgb: 204, 54, 76;
  --club-accent-strong: #f17c8e;
  --club-accent-soft: rgba(204, 54, 76, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="cowboys"],
.homeClubChip[data-key="cowboys"] {
  --club-accent: #8f7b31;
  --club-accent-rgb: 143, 123, 49;
  --club-accent-strong: #d7bf68;
  --club-accent-soft: rgba(143, 123, 49, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="eels"],
.homeClubChip[data-key="eels"] {
  --club-accent: #b88a2f;
  --club-accent-rgb: 184, 138, 47;
  --club-accent-strong: #e4bc68;
  --club-accent-soft: rgba(184, 138, 47, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="panthers"],
.homeClubChip[data-key="panthers"] {
  --club-accent: #101010;
  --club-accent-rgb: 16, 16, 16;
  --club-accent-strong: #7e7e7e;
  --club-accent-soft: rgba(16, 16, 16, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="rabbitohs"],
.homeClubChip[data-key="rabbitohs"] {
  --club-accent: #0f6b3c;
  --club-accent-rgb: 15, 107, 60;
  --club-accent-strong: #5ac188;
  --club-accent-soft: rgba(15, 107, 60, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="dragons"],
.homeClubChip[data-key="dragons"] {
  --club-accent: #cb454d;
  --club-accent-rgb: 203, 69, 77;
  --club-accent-strong: #f08a90;
  --club-accent-soft: rgba(203, 69, 77, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="roosters"],
.homeClubChip[data-key="roosters"] {
  --club-accent: #d13f48;
  --club-accent-rgb: 209, 63, 72;
  --club-accent-strong: #f1878d;
  --club-accent-soft: rgba(209, 63, 72, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="tigers"],
.homeClubChip[data-key="tigers"] {
  --club-accent: #d47c2c;
  --club-accent-rgb: 212, 124, 44;
  --club-accent-strong: #efb16d;
  --club-accent-soft: rgba(212, 124, 44, 0.18);
}

:is(body, .shareCard, .shareCard__frame)[data-club-key="warriors"],
.homeClubChip[data-key="warriors"] {
  --club-accent: #2f6fd0;
  --club-accent-rgb: 47, 111, 208;
  --club-accent-strong: #83b0f6;
  --club-accent-soft: rgba(47, 111, 208, 0.18);
}

body[data-club-key] #clubPuzzleLabel {
  border-color: rgba(var(--club-accent-rgb), 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    rgba(var(--club-accent-rgb), 0.14);
  color: #173826;
}

body[data-club-key] .hero__stats {
  box-shadow: inset 0 3px 0 rgba(var(--club-accent-rgb), 0.34), var(--shadow-soft);
}

body[data-club-key] .playerCard__modeTag,
body[data-club-key] .playerCard__club {
  border-color: rgba(var(--club-accent-rgb), 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(var(--club-accent-rgb), 0.16);
}

@keyframes rise-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes tile-enter {
  from {
    opacity: 0;
    transform: rotateX(-8deg) translateY(6px);
  }

  to {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .card,
  .cellEnter {
    animation: none !important;
  }
}

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

  .homeCards {
    grid-template-columns: 1fr;
  }

  .homeAccount__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .inputRow {
    grid-template-columns: 1fr;
  }

  .actionsCol {
    justify-content: flex-start;
  }

  .contentColumns {
    grid-template-columns: 1fr;
  }

  .todayStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .playerCard__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playerCard__factsGrid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .homeView {
    gap: 0.96rem;
    margin-bottom: 1rem;
  }

  .homeHero {
    gap: 0.72rem;
  }

  .homeHero__panel {
    padding: 1.02rem 0.92rem;
  }

  .homeHero__title {
    font-size: clamp(1.34rem, 6vw, 1.62rem);
    letter-spacing: 0.065em;
  }

  .homeHero__lead {
    margin-top: 0.46rem;
    font-size: 0.93rem;
    line-height: 1.34;
  }

  .homeHero__sub {
    margin-top: 0.34rem;
    font-size: 0.84rem;
    line-height: 1.32;
  }

  .homeHero__tags {
    margin-top: 0.64rem;
    gap: 0.36rem;
  }

  .homeHeroTag {
    padding: 0.22rem 0.54rem;
    font-size: 0.71rem;
  }

  .homeAccount {
    padding: 0.9rem;
    gap: 0.54rem;
  }

  .homeAccount__head {
    gap: 0.52rem;
  }

  .homeAccount__title {
    font-size: 0.98rem;
    margin-top: 0.12rem;
  }

  .homeAccount__grid {
    grid-template-columns: 1fr;
  }

  .homeAccount__item {
    padding: 0.56rem 0.6rem;
  }

  .homeAccount__meta {
    font-size: 0.8rem;
  }

  .homeAccount__actions {
    justify-content: stretch;
  }

  .homeAccount__actions .btn {
    width: 100%;
    min-height: 2.56rem;
  }

  .homeCards {
    gap: 0.74rem;
  }

  .homeCard {
    padding: 0.92rem 0.9rem;
    gap: 0.68rem;
  }

  .card {
    padding: 1rem 0.92rem;
  }

  .homeCard__head {
    gap: 0.56rem;
  }

  .homeCard__title {
    font-size: 1.03rem;
    margin-top: 0.08rem;
  }

  .homeCard__lead {
    margin-top: 0.28rem;
    font-size: 0.87rem;
    line-height: 1.34;
  }

  .homeCard__meta {
    max-width: none;
    font-size: 0.76rem;
  }

  .homeClubReset {
    padding: 0.5rem 0.56rem;
  }

  .homeClubReset__value {
    font-size: 1.02rem;
  }

  .homeStatusGrid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .homeStatus {
    padding: 0.54rem 0.58rem;
  }

  .homeStatus__value {
    font-size: 1.02rem;
  }

  .homeStatus__sub {
    font-size: 0.78rem;
  }

  .homeStatus__timer {
    font-size: 0.74rem;
  }

  .homeCard__actions {
    gap: 0.48rem;
  }

  .homeCard__actions .btn {
    width: 100%;
    min-height: 2.66rem;
  }

  .homeClubSelector {
    gap: 0.56rem;
    padding: 0.62rem;
  }

  .homeClubGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
  }

  .homeClubChip {
    min-height: 2.72rem;
    padding: 0.56rem 0.74rem;
    font-size: 0.82rem;
    line-height: 1.2;
    border-radius: 16px;
  }

  .homeClubChip:hover {
    transform: none;
  }

  .homeClubChip:active {
    border-color: rgba(var(--club-accent-rgb), 0.54);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--club-accent-rgb), 0.28)),
      linear-gradient(135deg, rgba(var(--club-accent-rgb), 0.18), rgba(255, 255, 255, 0));
  }

  .hero {
    gap: 0.76rem;
    margin-bottom: 0.95rem;
  }

  .hero__panel {
    padding: 1rem 0.9rem;
  }

  .hero__title {
    font-size: clamp(1.22rem, 5.4vw, 1.52rem);
    line-height: 1.2;
  }

  .hero__lead {
    margin-top: 0.52rem;
    font-size: 0.9rem;
    line-height: 1.36;
  }

  .hero__tags {
    margin-top: 0.62rem;
    gap: 0.36rem;
  }

  .heroTag {
    font-size: 0.71rem;
    padding: 0.22rem 0.54rem;
  }

  .hero__stats {
    padding: 0.92rem 0.9rem;
  }

  .hero__stats h2 {
    margin-bottom: 0.52rem;
    font-size: 0.98rem;
  }

  .heroMetricGrid {
    gap: 0.46rem;
  }

  .heroMetric {
    padding: 0.52rem 0.56rem;
  }

  .heroMetric__k {
    font-size: 0.71rem;
  }

  .heroMetric__v {
    font-size: 1.02rem;
  }

  .todayStrip {
    gap: 0.46rem;
    margin-bottom: 0.66rem;
    padding: 0.5rem;
  }

  .todayItem {
    padding: 0.34rem 0.44rem;
  }

  .todayItem__k {
    font-size: 0.68rem;
  }

  .todayItem__v {
    font-size: 0.92rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.56rem;
    padding: 0.66rem clamp(0.62rem, 3.6vw, 0.94rem) 0.7rem;
    padding-top: calc(0.66rem + env(safe-area-inset-top));
  }

  .brand {
    width: 100%;
    gap: 0.18rem;
  }

  .brand__name {
    font-size: clamp(1.02rem, 5.2vw, 1.16rem);
    letter-spacing: 0.06em;
  }

  .brand__meta {
    gap: 0.36rem;
  }

  .topbar .muted {
    font-size: 0.76rem;
  }

  .wrap {
    width: calc(100% - 1.1rem);
    margin-top: 0.66rem;
  }

  .inputRow {
    gap: 0.66rem;
  }

  .input {
    min-height: 2.9rem;
    padding: 0.84rem 0.9rem;
  }

  .inputFlowHint {
    margin-top: 0.3rem;
    font-size: 0.76rem;
  }

  .ac {
    margin-top: 0.38rem;
    border-radius: 12px;
  }

  .ac__item {
    min-height: 3.2rem;
    padding: 0.82rem 0.8rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.44rem 0.58rem;
  }

  .nav__group {
    width: 100%;
    gap: 0.38rem 0.46rem;
  }

  .nav__group--meta {
    gap: 0.36rem 0.42rem;
  }

  .nav__group--auth {
    justify-content: flex-end;
  }

  .nav a,
  .nav__link {
    min-height: 2.65rem;
    padding: 0.52rem 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav .btn {
    min-height: 2.65rem;
    padding: 0.5rem 0.86rem;
    font-size: 0.86rem;
  }

  .nav__group--controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.26rem;
    gap: 0.42rem;
  }

  .nav__group--controls::-webkit-scrollbar {
    display: none;
  }

  .nav__group--controls > * {
    flex: 0 0 auto;
  }

  .authBlock,
  .authBlock__cta {
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  .authBlock__signedIn {
    justify-content: flex-end;
    width: 100%;
  }

  .actionsCol {
    justify-content: flex-end;
  }

  .btn--authPrimary {
    min-height: 2.7rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .accountButton {
    min-height: 2.72rem;
    padding: 0.4rem 0.9rem 0.4rem 0.46rem;
    font-size: 0.88rem;
    gap: 0.5rem;
    max-width: min(100%, calc(100vw - 1rem));
  }

  .accountAvatar {
    width: 1.72rem;
    height: 1.72rem;
    font-size: 0.78rem;
  }

  .accountMenu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    width: clamp(240px, 82vw, 320px);
    min-width: min(230px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    max-height: min(72vh, 380px);
  }

  .modePicker {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    min-height: 2.65rem;
    padding: 0.24rem 0.3rem 0.24rem 0.66rem;
  }

  .modePicker__label {
    font-size: 0.74rem;
  }

  .modePicker__select {
    min-height: 2.2rem;
    font-size: 0.88rem;
    padding: 0.4rem 1.72rem 0.4rem 0.66rem;
  }

  .clubPicker__menu {
    left: 0;
    right: auto;
    width: min(92vw, 340px);
  }

  .heroMetricGrid {
    grid-template-columns: 1fr;
  }

  .floatingInfoTooltip {
    max-width: 220px;
  }

  .tableWrap--results,
  .tableWrap--answer {
    display: none;
  }

  .resultsMobile {
    display: block;
  }

  .resultCard__solvedReminder {
    display: inline-flex;
  }

  .resultsMobile[hidden] {
    display: none !important;
  }

  .resultsHint {
    display: none;
  }

  .infoIcon:not(.infoIcon--inline) {
    position: relative;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  .infoIcon:not(.infoIcon--inline)::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid #9db9a9;
    background: linear-gradient(180deg, #f3faf6, #e4efe9);
    transform: translate(-50%, -50%);
  }

  .infoIcon:not(.infoIcon--inline) > span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.62rem;
  }

  .resultCard__k .infoIcon:not(.infoIcon--inline) {
    width: 1.45rem;
    height: 1.45rem;
  }

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

  #shareDialog[open],
  #shareStatsDialog[open],
  #updatesDialog[open] {
    position: fixed;
    left: 0.36rem;
    right: 0.36rem;
    bottom: 0.36rem;
    margin: 0;
    width: auto;
    max-height: calc(100vh - 0.72rem);
    max-height: calc(100dvh - 0.72rem);
    padding: 0.92rem 0.9rem calc(0.96rem + env(safe-area-inset-bottom));
    border-radius: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
  }

  #statsDialog[open] {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0.36rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
  }

  #statsDialog[open] .dialogPanel--stats {
    width: 100%;
    max-width: min(720px, calc(100vw - 0.72rem));
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0.92rem 0.9rem calc(0.96rem + env(safe-area-inset-bottom));
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-strong);
  }

  #onboardingDialog[open] {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0.36rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
  }

  #onboardingDialog[open] .dialogPanel--onboarding {
    width: 100%;
    max-width: min(560px, calc(100vw - 0.72rem));
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0.98rem 0.9rem calc(0.96rem + env(safe-area-inset-bottom));
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-strong);
  }

  #statsDialog .dialog__head,
  #shareDialog .dialog__head,
  #shareStatsDialog .dialog__head,
  #updatesDialog .dialog__head {
    gap: 0.72rem;
    margin-bottom: 0.18rem;
  }

  #statsDialog .h2,
  #shareDialog .h2,
  #shareStatsDialog .h2,
  #updatesDialog .h2,
  #onboardingDialog .h2 {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  #statsDialog .muted,
  #shareDialog .muted,
  #shareStatsDialog .muted,
  #updatesDialog .muted,
  #onboardingDialog .muted {
    font-size: 0.84rem;
  }

  #statsDialog .modalCloseBtn,
  #shareDialog .modalCloseBtn,
  #shareStatsDialog .modalCloseBtn,
  #updatesDialog .modalCloseBtn {
    min-height: 2.72rem;
    min-width: 88px;
    padding: 0.56rem 0.9rem;
    font-size: 0.82rem;
  }

  #statsDialog .statsHeadline {
    margin-top: 0.58rem;
  }

  #statsDialog .grid.statsGrid {
    margin-top: 0.66rem;
    gap: 0.52rem;
  }

  #statsDialog .clubStats {
    margin-top: 0.76rem;
    padding-top: 0.54rem;
  }

  #statsDialog .statsActions {
    margin-top: 0.64rem;
  }

  #statsDialog .statsActions .btn {
    width: 100%;
    min-height: 2.7rem;
  }

  #updatesDialog .updatesLog {
    margin-top: 0.62rem;
  }

  #updatesDialog .updateEntry {
    padding: 0.62rem 0.64rem;
  }

  #onboardingDialog .onboarding__body {
    margin-top: 0.72rem;
    gap: 0.56rem;
  }

  #onboardingDialog .onboarding__hint {
    margin-top: -0.12rem;
    font-size: 0.8rem;
  }

  #onboardingDialog .onboarding__actions {
    margin-top: 0.25rem;
  }

  #onboardingDialog .onboarding__actions .btn {
    width: 100%;
    min-height: 2.72rem;
  }

  #onboardingDialog .onboarding__status {
    margin-top: 0.1rem;
  }

  #shareDialog[open] {
    padding-top: 0.9rem;
    scrollbar-gutter: auto;
  }

  #shareDialog .shareDialogIntro {
    margin-top: 0.62rem;
  }

  #shareDialog .shareSection {
    margin-top: 0.76rem;
    border-radius: 20px;
    padding: 0.74rem;
  }

  #shareDialog .shareCardPreview {
    transform: none;
  }

  #shareDialog .shareCardPreview__img {
    width: 100%;
    max-width: 100%;
  }

  #shareDialog .shareTextPreview,
  #shareStatsDialog .shareTextPreview {
    min-height: 142px;
    resize: none;
  }

  #shareDialog .sharePrimaryActions,
  #shareStatsDialog .sharePrimaryActions {
    margin-top: 0.62rem;
    gap: 0.46rem;
  }

  #shareDialog .shareSocialActions,
  #shareStatsDialog .shareSocialActions {
    margin-top: 0.46rem;
    gap: 0.44rem;
  }

  #shareDialog .sharePrimaryActions .btn,
  #shareDialog .shareSocialActions .btn,
  #shareStatsDialog .sharePrimaryActions .btn,
  #shareStatsDialog .shareSocialActions .btn {
    min-height: 2.72rem;
  }

  #shareStatsDialog .shareStatsSelector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem;
  }

  .dialog--playerCard[open] {
    width: calc(100% - 0.72rem);
    max-height: calc(100vh - 0.72rem);
    max-height: calc(100dvh - 0.72rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .dialog--playerCard[open] .playerCard__head {
    flex: 0 0 auto;
  }

  .dialog--playerCard[open] .playerCard__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1.15rem + env(safe-area-inset-bottom));
  }

  .dialog--playerCard[open] #playerCardStatus.pill--g {
    color: #0f4a2f;
    border-color: rgba(171, 226, 194, 0.95);
    background: rgba(235, 251, 242, 0.96);
  }

  .playerCard__head {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-top: 1.08rem;
    padding-right: 6.2rem;
  }

  .dialog--playerCard #closePlayerCardBtn.modalCloseBtn {
    position: absolute;
    top: 0.7rem;
    right: 0.78rem;
    margin: 0;
    min-height: 2.2rem;
    min-width: 78px;
    z-index: 2;
  }

  .dialog--playerCard .playerCard__name {
    margin-top: 0;
  }

  .dialog--playerCard .playerCard__titleRow {
    column-gap: 0.5rem;
    row-gap: 0.3rem;
  }

  .dialog--playerCard .playerCard__club {
    margin-top: 0.18rem;
  }

  .playerCard__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .playerCard__summary {
    grid-template-columns: 1fr;
  }

  .playerCard__actions .btn {
    width: 100%;
  }

  .sharePrimaryActions {
    grid-template-columns: 1fr;
  }

  .shareSocialActions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shareSection {
    padding: 0.76rem;
  }

  .shareCardPreview {
    width: min(100%, 300px);
    margin-top: 0.58rem;
  }

}

@media (max-width: 520px) {
  .homeHero__panel {
    padding: 0.92rem 0.82rem;
  }

  .homeHero__title {
    font-size: clamp(1.24rem, 7vw, 1.48rem);
  }

  .homeHero__tags {
    margin-top: 0.56rem;
  }

  .homeAccount {
    padding: 0.82rem 0.8rem;
  }

  .homeCards {
    gap: 0.64rem;
  }

  .homeCard {
    padding: 0.84rem 0.8rem;
  }

  .card {
    padding: 0.92rem 0.84rem;
  }

  .homeCard--main .homeCard__lead + .homeCard__lead {
    display: none;
  }

  .homeClubReset {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "value"
      "meta";
    justify-items: start;
    gap: 0.14rem;
  }

  .homeClubReset__value {
    justify-self: start;
  }

  .homeClubGrid {
    gap: 0.46rem;
  }

  .homeClubSelector {
    padding: 0.56rem;
  }

  .homeClubChip {
    min-height: 2.66rem;
    padding: 0.52rem 0.72rem;
    font-size: 0.82rem;
  }

  .hero__panel {
    padding: 0.9rem 0.82rem;
  }

  .hero__stats {
    padding: 0.84rem 0.8rem;
  }

  .resultCard__k--withSolvedReminder {
    gap: 0.42rem;
  }

  .resultCard__solvedReminder {
    max-width: min(62%, 210px);
    font-size: 0.62rem;
    padding: 0.18rem 0.5rem;
  }

  #shareDialog[open],
  #shareStatsDialog[open],
  #updatesDialog[open] {
    left: 0.28rem;
    right: 0.28rem;
    bottom: 0.28rem;
    padding: 0.84rem 0.78rem calc(0.86rem + env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  #updatesDialog[open] {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: min(calc(100vw - 2rem), 380px);
    max-width: 380px;
    margin: 0;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  #statsDialog[open] {
    padding: 0.28rem;
  }

  #statsDialog[open] .dialogPanel--stats {
    max-width: min(720px, calc(100vw - 0.56rem));
    border-radius: 20px;
    padding: 0.84rem 0.78rem calc(0.86rem + env(safe-area-inset-bottom));
  }

  #onboardingDialog[open] {
    padding: 0.28rem;
  }

  #onboardingDialog[open] .dialogPanel--onboarding {
    max-width: min(560px, calc(100vw - 0.56rem));
    border-radius: 20px;
    padding: 0.84rem 0.78rem calc(0.86rem + env(safe-area-inset-bottom));
  }

  #statsDialog .modalCloseBtn,
  #shareDialog .modalCloseBtn,
  #shareStatsDialog .modalCloseBtn,
  #updatesDialog .modalCloseBtn {
    min-height: 2.62rem;
    min-width: 82px;
    padding: 0.52rem 0.78rem;
  }

  #shareDialog .shareSection {
    padding: 0.68rem;
    border-radius: 18px;
  }

  #shareDialog .shareCardPreview {
    transform: none;
  }

  #shareDialog .shareCardPreview__img {
    width: 100%;
  }

  #shareDialog[open] {
    top: 0.28rem;
    right: 0.28rem;
    bottom: 0.28rem;
    left: 0.28rem;
    margin: 0;
    width: auto;
    max-width: none;
    min-width: 0;
    height: calc(100dvh - 0.56rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: none;
    padding: 0.76rem 0.72rem calc(0.78rem + env(safe-area-inset-bottom));
  }

  #shareDialog .dialog__head {
    flex: 0 0 auto;
  }

  #shareDialog .shareDialogBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #shareStatsDialog .shareStatsSelector {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0.6rem 0.56rem 0.62rem;
    padding-top: calc(0.6rem + env(safe-area-inset-top));
  }

  .nav {
    gap: 0.38rem 0.5rem;
  }

  .nav__group--meta .nav__link {
    min-height: 2.56rem;
    padding: 0.5rem 0.68rem;
    font-size: 0.84rem;
  }

  .inputRow {
    gap: 0.56rem;
  }

  .ac__item {
    min-height: 3.05rem;
    padding: 0.78rem 0.74rem;
  }

  .accountButton {
    padding-right: 0.74rem;
  }

  .accountLabel {
    display: inline;
  }

  .shareSocialActions {
    grid-template-columns: 1fr;
  }

  #shareDialog[open] {
    top: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
    left: 0.35rem;
    margin: 0;
    width: auto;
    max-width: none;
    min-width: 0;
    height: calc(100dvh - 0.7rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: none;
    padding: 0.8rem 0.78rem calc(0.82rem + env(safe-area-inset-bottom));
  }

  #shareDialog .dialog__head {
    flex: 0 0 auto;
  }

  #shareDialog .shareDialogBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #shareDialog .shareCardPreview {
    width: min(88%, 260px);
    margin-top: 0.5rem;
  }

  .wrap {
    margin-top: 0.24rem;
  }

  .topbar {
    gap: 0.22rem;
    padding: 0.36rem 0.46rem;
    padding-top: calc(0.36rem + env(safe-area-inset-top));
  }

  .brand {
    gap: 0.03rem;
  }

  .brand__name {
    font-size: clamp(0.94rem, 4.6vw, 1.04rem);
    letter-spacing: 0.05em;
  }

  .brand__meta {
    gap: 0.18rem;
  }

  .topbar .muted {
    font-size: 0.66rem;
    line-height: 1.1;
  }

  .brand__meta .pill {
    padding: 0.1rem 0.36rem;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  .brand__meta .muted {
    display: none;
  }

  .nav {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.28rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav.nav--accountMenuOpen {
    overflow: visible;
  }

  .nav__group {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.22rem;
  }

  .nav__group--meta {
    flex-wrap: nowrap;
    gap: 0.22rem;
  }

  .nav__group--auth {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .nav a,
  .nav__link {
    min-height: 2.08rem;
    padding: 0.32rem 0.58rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .nav__group--meta .nav__link {
    min-height: 2.08rem;
    padding: 0.32rem 0.58rem;
    font-size: 0.76rem;
  }

  .nav .btn {
    min-height: 2.08rem;
    padding: 0.3rem 0.62rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .nav__group--controls {
    width: auto;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0.12rem;
    gap: 0.22rem;
  }

  .authBlock,
  .authBlock__cta,
  .authBlock__signedIn {
    width: auto;
    justify-content: flex-end;
    gap: 0.22rem;
  }

  .btn--authPrimary {
    min-height: 2.08rem;
    padding: 0.32rem 0.72rem;
    font-size: 0.78rem;
  }

  .accountButton {
    min-height: 2.08rem;
    padding: 0.26rem 0.62rem 0.26rem 0.34rem;
    font-size: 0.76rem;
    gap: 0.32rem;
    max-width: none;
  }

  .accountAvatar {
    width: 1.38rem;
    height: 1.38rem;
    font-size: 0.66rem;
  }

  .modePicker {
    min-height: 2.08rem;
    gap: 0.24rem;
    padding: 0.14rem 0.18rem 0.14rem 0.42rem;
  }

  .modePicker__label {
    font-size: 0.62rem;
  }

  .modePicker__select {
    min-height: 1.82rem;
    font-size: 0.76rem;
    padding: 0.24rem 1.36rem 0.24rem 0.5rem;
  }
}

@media (max-width: 430px) {
  .homeView {
    gap: 0.82rem;
  }

  .homeHero__tags .homeHeroTag:last-child {
    display: none;
  }

  .homeClubGrid {
    grid-template-columns: 1fr;
    gap: 0.44rem;
  }

  .homeClubChip {
    min-height: 2.84rem;
    padding: 0.58rem 0.84rem;
    font-size: 0.88rem;
    border-radius: 14px;
  }

  .hero__panel .hero__lead + .hero__lead {
    display: none;
  }

  .clubcipherPage .hero__panel .hero__lead + .hero__lead {
    display: block;
  }

  .hero__tags .heroTag:last-child {
    display: none;
  }

  #snapshotLabel,
  #clubMetaLabel {
    display: none;
  }
}

@media (max-width: 720px) {
  body::before {
    top: calc(env(safe-area-inset-top) + 0.34rem);
  }

  body::after {
    inset: calc(env(safe-area-inset-top) + 0.34rem) 0 0;
  }

  .topbar {
    margin: calc(env(safe-area-inset-top) + 0.34rem) clamp(0.56rem, 2.8vw, 0.9rem) 0;
    top: calc(env(safe-area-inset-top) + 0.34rem);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    padding-top: clamp(0.34rem, 1.2vw, 0.56rem);
    box-shadow: var(--shadow-soft);
  }

  .brand {
    padding-top: 1px;
  }

  .brand__name {
    line-height: 1.08;
  }

  .topbar::before {
    content: none;
  }
}
