:root {
  color-scheme: light;
  --ink: #18312e;
  --ink-soft: #526560;
  --forest: #193f39;
  --forest-bright: #285f55;
  --forest-pale: #e7f0eb;
  --paper: #f8f4e9;
  --paper-deep: #eee6d4;
  --card: #fffdf8;
  --line: #ded7c8;
  --gold: #e4a936;
  --gold-dark: #9d6810;
  --gold-pale: #fbefce;
  --brick: #b95536;
  --brick-pale: #f7e4dc;
  --danger: #a43e31;
  --success: #2f7055;
  --shadow-sm: 0 2px 8px rgba(40, 50, 39, .07);
  --shadow-md: 0 16px 44px rgba(40, 50, 39, .11);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --content-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 22%, rgba(228, 169, 54, .12), transparent 24rem),
    radial-gradient(circle at 93% 75%, rgba(54, 112, 89, .09), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button, a, input { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(228, 169, 54, .48);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  z-index: 20;
  display: flex;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand strong { font-weight: 800; }

.brand-mark {
  width: 36px;
  height: 36px;
  overflow: visible;
  fill: var(--gold);
  filter: drop-shadow(0 2px 2px rgba(108, 70, 8, .15));
}

.brand-mark-road {
  fill: none;
  stroke: var(--forest);
  stroke-linecap: round;
  stroke-width: 3;
}

.brand-mark-settlement { fill: var(--forest); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-user {
  max-width: 260px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  display: flex;
  width: 100%;
  flex: 1;
}

.auth-view {
  display: grid;
  width: min(calc(100% - 40px), 1050px);
  margin: auto;
  padding: 46px 0 76px;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .78fr);
  gap: clamp(52px, 9vw, 110px);
}

.auth-story { position: relative; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}

.auth-story h1 {
  max-width: 630px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 5.5vw, 4.7rem);
  font-weight: 700;
  line-height: .98;
}

.auth-intro {
  max-width: 560px;
  margin-bottom: 27px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.feature-list {
  display: grid;
  margin: 27px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.feature-list strong, .feature-list small { display: block; }
.feature-list strong { font-size: .92rem; }
.feature-list small { color: var(--ink-soft); font-size: .8rem; }

.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(25, 63, 57, .13);
  border-radius: 50%;
  color: var(--forest);
  background: rgba(255, 253, 248, .65);
  font-size: 1.05rem;
  font-weight: 800;
}

.hex-scene {
  position: absolute;
  z-index: -1;
  top: -56px;
  right: -28px;
  width: 260px;
  height: 270px;
  opacity: .38;
  pointer-events: none;
}

.hex {
  position: absolute;
  width: 98px;
  height: 108px;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  background: var(--paper-deep);
}

.hex::after {
  position: absolute;
  inset: 5px;
  clip-path: inherit;
  background: rgba(255, 253, 248, .58);
  content: "";
}

.hex-one { top: 0; left: 80px; background: var(--gold); }
.hex-two { top: 79px; left: 20px; background: #7d9b79; }
.hex-three { top: 79px; left: 140px; background: #b76949; }
.hex-four { top: 158px; left: 80px; background: #a79f72; }
.hex-five { top: 0; left: 200px; background: var(--line); }

.card {
  border: 1px solid rgba(91, 92, 74, .14);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow-md);
}

.auth-card {
  width: 100%;
  padding: 12px 30px 32px;
}

.auth-tabs {
  display: grid;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}

.auth-tab {
  position: relative;
  border: 0;
  padding: 15px 8px 13px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
}

.auth-tab::after {
  position: absolute;
  right: 10%;
  bottom: -1px;
  left: 10%;
  height: 2px;
  border-radius: 4px 4px 0 0;
  background: var(--forest);
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .18s ease, transform .18s ease;
}

.auth-tab.is-active { color: var(--forest); }
.auth-tab.is-active::after { opacity: 1; transform: scaleX(1); }

.form-heading { margin-bottom: 22px; }

.form-heading h2 {
  margin-bottom: 5px;
  font-size: 1.8rem;
}

.form-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.field {
  position: relative;
  margin-bottom: 17px;
}

.field label,
.participants-fieldset legend {
  display: block;
  margin-bottom: 7px;
  font-size: .79rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  height: 47px;
  border: 1px solid #cfc8ba;
  border-radius: var(--radius-sm);
  padding: 0 13px;
  color: var(--ink);
  background: #fffefa;
  font-size: .91rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:hover { border-color: #aaa494; }

.field input:focus {
  border-color: var(--forest-bright);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(40, 95, 85, .12);
}

.field input::placeholder { color: #989990; }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: .72rem;
}

.form-error {
  margin: -2px 0 14px;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--danger);
  background: #fae9e5;
  font-size: .78rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }

.button-primary {
  color: #fffdf8;
  background: var(--forest);
  box-shadow: 0 5px 12px rgba(25, 63, 57, .18);
}

.button-primary:hover:not(:disabled) { background: #22564d; box-shadow: 0 7px 18px rgba(25, 63, 57, .22); }

.button-quiet {
  border: 1px solid var(--line);
  color: var(--forest);
  background: rgba(255, 253, 248, .6);
}

.button-quiet:hover:not(:disabled) { background: var(--card); }
.button-small { min-height: 36px; padding: 0 13px; font-size: .78rem; }
.button-full { width: 100%; }

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

.button.is-loading { color: transparent; pointer-events: none; }

.button.is-loading::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: spin .7s linear infinite;
}

.header-avatar {
  width: 32px;
  height: 32px;
  font-size: .62rem;
}


.notification-menu {
  position: relative;
}

.notification-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, .65);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
  border-color: rgba(40, 95, 85, .3);
  color: var(--forest);
  background: var(--forest-pale);
}

.notification-button:focus-visible,
.notification-close:focus-visible,
.notification-read-button:focus-visible,
.notification-toolbar button:focus-visible {
  outline: 3px solid rgba(228, 169, 54, .45);
  outline-offset: 2px;
}

.notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 19px;
  height: 19px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: 0 4px;
  place-items: center;
  color: #fff;
  background: var(--danger);
  font-size: .56rem;
  font-weight: 850;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 90px));
  overflow: hidden;
  border: 1px solid rgba(25, 63, 57, .15);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 20px 55px rgba(25, 45, 40, .2);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.notification-panel-header {
  display: flex;
  min-height: 75px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(125deg, var(--forest-pale), #fffefa 70%);
}

.notification-panel-header .eyebrow {
  margin-bottom: 2px;
  font-size: .57rem;
}

.notification-panel-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.notification-close {
  display: grid;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 0;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
}

.notification-close:hover { color: var(--ink); background: rgba(25, 63, 57, .08); }

.notification-toolbar {
  display: flex;
  min-height: 43px;
  border-bottom: 1px solid var(--line);
  padding: 8px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .65rem;
}

.notification-toolbar button,
.notification-read-button {
  border: 0;
  padding: 4px;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.notification-toolbar button:disabled,
.notification-read-button:disabled {
  cursor: default;
  opacity: .45;
}

.notification-content {
  min-height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-loading,
.notification-empty {
  display: grid;
  min-height: 180px;
  padding: 25px;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--ink-soft);
  text-align: center;
  font-size: .72rem;
}

.notification-empty > span {
  display: grid;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  place-items: center;
  color: var(--forest);
  background: var(--forest-pale);
  font-weight: 850;
}

.notification-empty strong { color: var(--ink); font-size: .8rem; }
.notification-empty p { margin: 0; }
.notification-empty.is-error > p { color: var(--danger); }

.notification-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding: 14px 15px;
  align-items: start;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 10px;
  background: #fffefa;
}

.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { background: var(--forest-pale); }

.notification-event-icon {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  place-items: center;
  color: var(--forest);
  background: rgba(40, 95, 85, .1);
  font-size: .72rem;
  font-weight: 900;
}

.notification-event-icon.is-game_disputed {
  color: var(--danger);
  background: rgba(159, 69, 56, .11);
}

.notification-event-icon.is-game_confirmed {
  color: var(--success);
  background: rgba(45, 111, 69, .11);
}

.notification-copy { min-width: 0; }
.notification-copy > strong { display: block; margin-bottom: 3px; font-size: .74rem; }
.notification-copy > p { margin: 0 0 8px; color: var(--ink-soft); font-size: .67rem; line-height: 1.45; }

.notification-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .59rem;
}

.notification-actor {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.notification-actor .avatar { width: 20px; height: 20px; font-size: .43rem; }
.notification-actor > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-meta time { flex: none; }
.notification-read-button { align-self: start; font-size: .59rem; white-space: nowrap; }

.dashboard {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 38px 0 76px;
}

.dashboard-heading {
  display: flex;
  margin-bottom: 25px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-heading h1 {
  margin-bottom: 5px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.dashboard-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .92rem;
}

.profile-summary {
  position: relative;
  display: grid;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 25px 28px;
  align-items: center;
  grid-template-columns: minmax(230px, 1fr) minmax(430px, 1.35fr);
  box-shadow: var(--shadow-sm);
}

.profile-summary::after {
  position: absolute;
  top: -76px;
  right: -58px;
  width: 200px;
  height: 220px;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  background: rgba(228, 169, 54, .08);
  content: "";
  pointer-events: none;
}

.identity-block {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.identity-block h2 {
  overflow: hidden;
  margin-bottom: 1px;
  font-size: 1.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-block p {
  overflow: hidden;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .81rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  overflow: hidden;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--gold-pale);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.avatar-large {
  width: 55px;
  height: 55px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar[data-variant="1"] { color: #763f2c; background: var(--brick-pale); }
.avatar[data-variant="2"] { color: var(--success); background: #deeee3; }
.avatar[data-variant="3"] { color: #516a93; background: #e2e8f2; }
.avatar[data-variant="4"] { color: #74598e; background: #ece5f1; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  display: flex;
  min-width: 0;
  min-height: 60px;
  border-left: 1px solid var(--line);
  padding: 0 24px;
  flex-direction: column;
  justify-content: center;
}

.stat-label {
  margin-bottom: 1px;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.stat small { color: var(--ink-soft); font-size: .66rem; }
.stat-featured strong { color: var(--gold-dark); }

.confirmations-panel {
  margin-bottom: 22px;
  border-color: rgba(228, 169, 54, .4);
  padding: 26px 28px;
  background:
    linear-gradient(125deg, rgba(251, 239, 206, .55), rgba(255, 253, 248, .96) 42%),
    var(--card);
}

.confirmations-heading {
  align-items: flex-start;
}

.confirmations-heading > div > p:last-child {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.confirmation-count {
  flex: none;
  border-radius: 99px;
  padding: 6px 10px;
  color: #fff;
  background: var(--brick);
  font-size: .7rem;
  font-weight: 800;
}

.confirmations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 13px;
}

.confirmation-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(228, 169, 54, .48);
  border-radius: 16px;
  padding: 17px;
  gap: 13px;
  background: #fffefa;
  box-shadow: 0 5px 18px rgba(58, 61, 44, .07);
}

.confirmation-card.is-disputed {
  border-color: rgba(185, 85, 54, .55);
  background: linear-gradient(145deg, #fffefa, rgba(247, 228, 220, .62));
}

.confirmation-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-status {
  display: inline-flex;
  width: max-content;
  border-radius: 99px;
  padding: 4px 7px;
  color: var(--gold-dark);
  background: var(--gold-pale);
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-status.is-disputed {
  color: var(--danger);
  background: var(--brick-pale);
}

.game-status.is-confirmed {
  color: var(--success);
  background: var(--forest-pale);
}

.confirmation-countdown {
  color: var(--ink-soft);
  font-size: .66rem;
  font-weight: 700;
  text-align: right;
}

.submitted-winner {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.submitted-winner .avatar {
  width: 47px;
  height: 47px;
  font-size: .85rem;
}

.submitted-winner > div {
  min-width: 0;
}

.submitted-winner span,
.submitted-winner strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submitted-winner span {
  color: var(--ink-soft);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.submitted-winner strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.confirmation-explanation {
  min-height: 36px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .7rem;
}

.confirmation-progress {
  display: grid;
  gap: 6px;
}

.confirmation-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .64rem;
}

.confirmation-progress strong {
  color: var(--forest);
  font-size: .68rem;
}

.confirmation-progress progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: var(--paper-deep);
  accent-color: var(--gold);
}

.confirmation-progress progress::-webkit-progress-bar {
  border-radius: 99px;
  background: var(--paper-deep);
}

.confirmation-progress progress::-webkit-progress-value {
  border-radius: 99px;
  background: var(--gold);
}

.confirmation-progress progress::-moz-progress-bar {
  border-radius: 99px;
  background: var(--gold);
}

.confirmation-card.is-disputed .confirmation-progress progress {
  accent-color: var(--brick);
}

.current-vote {
  margin: -2px 0 0;
  color: var(--forest);
  font-size: .68rem;
  font-weight: 750;
}

.confirmation-actions {
  display: grid;
  gap: 13px;
}

.confirmation-confirm {
  width: 100%;
  min-height: 41px;
}

.different-winner {
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 11px 0 0;
}

.different-winner legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 750;
}

.winner-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 6px;
}

.winner-choice {
  display: grid;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 7px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  text-align: left;
}

.winner-choice:hover:not(:disabled),
.winner-choice.is-selected {
  border-color: rgba(40, 95, 85, .42);
  background: var(--forest-pale);
}

.winner-choice:disabled {
  cursor: default;
  opacity: .66;
}

.winner-choice .avatar {
  width: 27px;
  height: 27px;
  font-size: .53rem;
}

.winner-choice > span {
  overflow: hidden;
  font-size: .7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-choice > strong {
  display: grid;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-pale);
  font-size: .61rem;
}

.submission-help {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: .65rem;
  text-align: center;
}

.dashboard-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, .92fr) minmax(365px, 1.08fr);
  gap: 22px;
}

.panel {
  overflow: visible;
  padding: 25px;
  box-shadow: var(--shadow-sm);
}

.game-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.matches-panel { grid-column: 1; }

.panel-heading {
  display: flex;
  margin-bottom: 21px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading .eyebrow { margin-bottom: 3px; }

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover { color: var(--forest); background: var(--forest-pale); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.icon-button.is-spinning svg { animation: spin .8s linear infinite; }

.player-count {
  border-radius: 99px;
  padding: 5px 9px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: .72rem;
  font-weight: 750;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.leaderboard-table th {
  border-bottom: 1px solid var(--line);
  padding: 0 5px 9px;
  color: var(--ink-soft);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.leaderboard-table th:first-child { width: 37px; }
.leaderboard-table th:last-child { width: 65px; text-align: right; }

.leaderboard-table td {
  height: 58px;
  border-bottom: 1px solid rgba(222, 215, 200, .72);
  padding: 8px 5px;
  vertical-align: middle;
}

.leaderboard-table tr:last-child td { border-bottom: 0; }
.leaderboard-table tr.is-current { background: linear-gradient(90deg, transparent, rgba(251, 239, 206, .52), transparent); }

.rank-number {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .82rem;
  text-align: center;
}

.rank-number.is-podium { color: var(--gold-dark); font-size: 1rem; font-weight: 800; }

.player-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.player-cell-copy { min-width: 0; }

.player-cell strong,
.player-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-cell strong { font-size: .82rem; }
.player-cell small { color: var(--ink-soft); font-size: .69rem; }

.rating-cell {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .98rem;
  font-weight: 750;
  text-align: right;
}

.optional-label {
  margin-left: 4px;
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 600;
}

.quick-play {
  display: grid;
  margin-bottom: 21px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 21px;
  gap: 16px;
}

.quick-play-section {
  min-width: 0;
}

.quick-play-heading {
  display: flex;
  margin-bottom: 8px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.quick-play-heading span {
  font-size: .75rem;
  font-weight: 750;
}

.quick-play-heading small {
  color: var(--ink-soft);
  font-size: .64rem;
}

.favourite-players,
.recent-lineups {
  display: flex;
  overflow-x: auto;
  padding: 2px 2px 7px;
  gap: 8px;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.favourite-chip {
  display: grid;
  min-width: 172px;
  max-width: 210px;
  min-height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 8px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  color: var(--ink);
  background: #fffefa;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.favourite-chip:hover:not(:disabled) {
  border-color: rgba(228, 169, 54, .75);
  background: var(--gold-pale);
  transform: translateY(-1px);
}

.favourite-chip:disabled {
  cursor: default;
  opacity: .58;
}

.favourite-chip .avatar {
  width: 33px;
  height: 33px;
  font-size: .65rem;
}

.favourite-chip-copy,
.favourite-chip-copy strong,
.favourite-chip-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favourite-chip-copy strong { font-size: .75rem; }
.favourite-chip-copy small { color: var(--ink-soft); font-size: .63rem; }

.favourite-chip-action {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  place-items: center;
  color: var(--forest);
  background: var(--forest-pale);
  font-size: .8rem;
  font-weight: 800;
}

.lineup-card {
  display: grid;
  min-width: 250px;
  min-height: 60px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 9px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  color: var(--ink);
  background: #fffefa;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.lineup-card:hover {
  border-color: rgba(40, 95, 85, .4);
  background: var(--forest-pale);
  transform: translateY(-1px);
}

.lineup-avatars {
  display: flex;
  min-width: 38px;
  padding-left: 6px;
}

.lineup-avatars .avatar,
.lineup-more {
  display: grid;
  width: 29px;
  height: 29px;
  margin-left: -7px;
  border: 2px solid #fffefa;
  place-items: center;
  font-size: .55rem;
}

.lineup-more {
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-weight: 800;
}

.lineup-card:hover .lineup-avatars .avatar,
.lineup-card:hover .lineup-more {
  border-color: var(--forest-pale);
}

.lineup-copy,
.lineup-copy strong,
.lineup-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-copy strong { font-size: .74rem; }
.lineup-copy small { color: var(--ink-soft); font-size: .62rem; }

.lineup-action {
  color: var(--forest);
  font-size: .62rem;
  font-weight: 800;
  white-space: nowrap;
}

.quick-play-empty {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 11px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  background: rgba(248, 244, 233, .46);
  font-size: .67rem;
}

.quick-play-empty > span:first-child {
  color: var(--gold-dark);
  font-size: 1rem;
}

.quick-play-loading {
  display: block;
  width: 180px;
  height: 49px;
  border-radius: 11px;
  background: linear-gradient(90deg, #eee9dc 20%, #f8f4e9 50%, #eee9dc 80%);
  background-size: 250% 100%;
  animation: shimmer 1.5s ease infinite;
}
.input-with-icon { position: relative; }

.input-with-icon svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-linecap: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input { padding-right: 42px; padding-left: 40px; }

.search-spinner {
  position: absolute;
  top: calc(50% - 8px);
  right: 14px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.search-field { z-index: 5; }

.search-results {
  position: absolute;
  z-index: 10;
  top: 76px;
  right: 0;
  left: 0;
  max-height: 235px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  background: var(--card);
  box-shadow: 0 15px 30px rgba(32, 48, 42, .16);
}

.search-result {
  display: grid;
  width: 100%;
  border-radius: 8px;
  padding: 3px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  background: transparent;
}

.search-result:hover,
.search-result:focus-within,
.search-result.is-focused { background: var(--forest-pale); }

.search-result-option {
  display: flex;
  min-width: 0;
  border: 0;
  padding: 6px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result-copy { min-width: 0; flex: 1; }
.search-result-copy strong, .search-result-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-copy strong { font-size: .8rem; }
.search-result-copy small { color: var(--ink-soft); font-size: .69rem; }
.search-result-rating { color: var(--gold-dark); font-size: .7rem; font-weight: 800; }

.search-message {
  margin: 0;
  padding: 14px 12px;
  color: var(--ink-soft);
  font-size: .77rem;
  text-align: center;
}

.participants-fieldset {
  min-width: 0;
  margin: 24px 0 22px;
  border: 0;
  padding: 0;
}

.participants-fieldset legend { padding: 0; }

.participants {
  display: grid;
  gap: 9px;
}

.participant {
  display: grid;
  min-height: 59px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  align-items: center;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  background: #fffefa;
  transition: border-color .15s ease, background-color .15s ease;
}

.participant:has(input:checked) {
  border-color: rgba(228, 169, 54, .78);
  background: var(--gold-pale);
}

.winner-radio {
  position: relative;
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
}

.winner-radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.winner-radio span {
  display: block;
  width: 19px;
  height: 19px;
  border: 1.5px solid #a9aa9f;
  border-radius: 50%;
  background: white;
}

.winner-radio input:focus-visible + span { outline: 3px solid rgba(228, 169, 54, .48); outline-offset: 2px; }
.winner-radio input:checked + span { border: 5px solid var(--gold); }

.participant-copy { min-width: 0; }
.participant-copy strong, .participant-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participant-copy strong { font-size: .82rem; }
.participant-copy small { color: var(--ink-soft); font-size: .69rem; }

.you-tag {
  margin-left: 5px;
  border-radius: 99px;
  padding: 2px 5px;
  color: var(--success);
  background: var(--forest-pale);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: .55rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.participant-actions {
  display: flex;
  min-width: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.favourite-toggle,
.remove-player {
  display: grid;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.favourite-toggle {
  font-size: 1.08rem;
}

.favourite-toggle:hover,
.favourite-toggle.is-favourite {
  color: var(--gold-dark);
  background: var(--gold-pale);
}

.favourite-toggle:disabled {
  cursor: wait;
  opacity: .5;
}

.search-favourite {
  margin-right: 2px;
}

.remove-player {
  font-size: 1.05rem;
}

.remove-player:hover { color: var(--danger); background: var(--brick-pale); }

.matches-list {
  display: grid;
  gap: 0;
}

.match-row {
  display: grid;
  min-height: 68px;
  border-bottom: 1px solid rgba(222, 215, 200, .72);
  padding: 10px 2px;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
}

.match-row:last-child { border-bottom: 0; }

.match-trophy {
  display: grid;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-pale);
  font-size: .85rem;
}

.match-row.is-pending .match-trophy {
  color: var(--gold-dark);
  background: var(--gold-pale);
}

.match-row.is-disputed .match-trophy {
  color: var(--danger);
  background: var(--brick-pale);
  font-weight: 850;
}

.match-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.match-meta .game-status {
  padding: 3px 6px;
  font-size: .5rem;
}

.match-copy { min-width: 0; }
.match-copy strong, .match-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-copy strong { font-size: .78rem; }
.match-copy small { color: var(--ink-soft); font-size: .67rem; }

.match-time {
  color: var(--ink-soft);
  font-size: .64rem;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  min-height: 190px;
  padding: 25px;
  place-items: center;
  align-content: center;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 10px;
  border-radius: 50%;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-pale);
  font-size: 1.1rem;
}

.empty-state strong { margin-bottom: 3px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
.empty-state p { max-width: 260px; margin-bottom: 0; font-size: .75rem; }

.inline-error {
  border-radius: 10px;
  padding: 13px;
  color: var(--danger);
  background: #fae9e5;
  font-size: .77rem;
  text-align: center;
}

.skeleton-list { display: grid; gap: 11px; }

.skeleton-list span {
  display: block;
  height: 46px;
  border-radius: 9px;
  background: linear-gradient(90deg, #eee9dc 20%, #f8f4e9 50%, #eee9dc 80%);
  background-size: 250% 100%;
  animation: shimmer 1.5s ease infinite;
}

.site-footer {
  display: flex;
  min-height: 66px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7a817b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.settings-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(90vh, 900px);
  border: 0;
  border-radius: 22px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 28px 80px rgba(19, 39, 35, .28);
}

.settings-dialog::backdrop {
  background: rgba(19, 35, 32, .55);
  backdrop-filter: blur(4px);
}

.settings-shell {
  overflow: hidden;
  max-height: min(90vh, 900px);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 22px;
  background: var(--paper);
}

.settings-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 17px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(12px);
}

.settings-header .eyebrow { margin-bottom: 2px; }
.settings-header h2 { margin-bottom: 0; font-size: 1.65rem; }

.settings-close {
  display: grid;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--ink-soft);
  background: white;
  cursor: pointer;
  font-size: 1.25rem;
}

.settings-close:hover {
  color: var(--danger);
  background: var(--brick-pale);
}

.settings-loading {
  display: flex;
  min-height: 230px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .82rem;
}

.settings-loading .search-spinner {
  position: static;
  flex: none;
}

.settings-loading.is-error {
  color: var(--danger);
}

.settings-content {
  display: grid;
  max-height: calc(min(90vh, 900px) - 82px);
  overflow-y: auto;
  padding: 20px;
  gap: 15px;
}

.settings-section {
  border: 1px solid rgba(91, 92, 74, .14);
  border-radius: 16px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

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

.settings-section-heading h3 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.settings-section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .7rem;
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-avatar-preview {
  width: 76px;
  height: 76px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.avatar-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.file-button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.visually-hidden:focus-visible + .button,
.file-button:has(+ .visually-hidden:focus-visible) {
  outline: 3px solid rgba(228, 169, 54, .48);
  outline-offset: 2px;
}

.settings-help {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .64rem;
}

.notification-options {
  display: grid;
  margin: 0 0 17px;
  border: 0;
  padding: 0;
  gap: 7px;
}

.notification-options legend {
  margin-bottom: 7px;
  padding: 0;
  font-size: .74rem;
  font-weight: 750;
}

.notification-options label {
  display: grid;
  min-height: 53px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  background: #fffefa;
  cursor: pointer;
}

.notification-options label:has(input:checked) {
  border-color: rgba(40, 95, 85, .34);
  background: var(--forest-pale);
}

.notification-options input {
  width: 17px;
  height: 17px;
  accent-color: var(--forest);
}

.notification-options strong,
.notification-options small {
  display: block;
}

.notification-options strong {
  font-size: .72rem;
}

.notification-options small {
  color: var(--ink-soft);
  font-size: .62rem;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.settings-status {
  margin: 0 0 12px;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: .7rem;
}

.settings-status.is-success {
  color: var(--success);
  background: var(--forest-pale);
}

.settings-status.is-error {
  color: var(--danger);
  background: var(--brick-pale);
}

.toast-region {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100% - 40px));
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  padding: 13px 15px;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 32px rgba(25, 45, 40, .22);
  font-size: .78rem;
  pointer-events: auto;
  animation: toast-in .25s ease both;
}

.toast::before { color: #f2c25f; content: "●"; font-size: .7rem; }
.toast.is-error { background: #843b31; }
.toast.is-error::before { color: #ffd0c7; }
.toast.is-leaving { animation: toast-out .2s ease both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .auth-view { grid-template-columns: 1fr; gap: 38px; }
  .auth-story { max-width: 680px; text-align: center; }
  .auth-intro { margin-right: auto; margin-left: auto; }
  .feature-list { grid-template-columns: 1fr 1fr; text-align: left; }
  .hex-scene { right: -10px; opacity: .25; }
  .auth-card { width: min(100%, 480px); margin: 0 auto; }

  .profile-summary { grid-template-columns: 1fr; gap: 22px; }
  .stat-grid { border-top: 1px solid var(--line); padding-top: 20px; }
  .stat:first-child { border-left: 0; }

  .dashboard-grid { grid-template-columns: 1fr; }
  .game-panel, .matches-panel { grid-column: 1; grid-row: auto; }
  .game-panel { grid-row: 1; }
}

@media (max-width: 600px) {
  .site-header { width: min(calc(100% - 28px), var(--content-width)); min-height: 66px; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 31px; height: 31px; }
  .header-user { display: none; }
  .header-avatar { display: none; }
  .header-actions { gap: 6px; }
  .button-small { min-height: 34px; }

  .notification-button { width: 34px; height: 34px; }
  .notification-panel {
    position: fixed;
    top: 72px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100dvh - 80px);
    border-radius: 14px;
  }
  .notification-item { padding: 13px 12px; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 8px; }
  .notification-read-button { padding-right: 0; }
  .auth-view { width: min(calc(100% - 28px), 1050px); padding: 34px 0 45px; gap: 30px; }
  .auth-story h1 { font-size: clamp(2.35rem, 13vw, 3.3rem); }
  .auth-intro { font-size: .95rem; }
  .feature-list { display: none; }
  .hex-scene { top: -30px; right: -35px; transform: scale(.75); }
  .auth-card { border-radius: 18px; padding: 8px 20px 24px; }

  .dashboard { width: min(calc(100% - 28px), var(--content-width)); padding: 27px 0 45px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading h1 { font-size: 2.25rem; }
  .record-game-shortcut { display: none; }

  .profile-summary { padding: 20px; }
  .confirmations-panel { padding: 20px; }
  .settings-dialog { width: calc(100% - 16px); max-height: 96vh; border-radius: 17px; }
  .settings-shell { max-height: 96vh; border-radius: 17px; }
  .settings-header { min-height: 72px; padding: 13px 17px; }
  .settings-content { max-height: calc(96vh - 72px); padding: 11px; gap: 10px; }
  .settings-section { padding: 16px; }
  .settings-field-grid { grid-template-columns: 1fr; gap: 0; }
  .avatar-editor { align-items: flex-start; }
  .settings-avatar-preview { width: 66px; height: 66px; }
  .avatar-editor-actions { flex-direction: column; align-items: stretch; }
  .avatar-editor-actions .button { width: 100%; }
  .confirmations-heading { margin-bottom: 16px; }
  .confirmations-heading > div > p:last-child { max-width: 250px; }
  .confirmation-card { padding: 14px; }
  .confirmation-countdown { max-width: 130px; }
  .winner-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stat { padding: 0 12px; }
  .stat strong { font-size: 1.45rem; }
  .stat-label { font-size: .59rem; }
  .identity-block h2 { font-size: 1.3rem; }

  .dashboard-grid { gap: 14px; }
  .panel { border-radius: 18px; padding: 20px; }
  .leaderboard-panel, .matches-panel { padding-right: 16px; padding-left: 16px; }

  .participant { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .favourite-chip { min-width: 158px; }
  .lineup-card { min-width: 225px; }
  .lineup-action { display: none; }
  .quick-play-heading small { font-size: .6rem; }

  .site-footer { min-height: 58px; }
  .toast-region { right: 14px; bottom: 14px; width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 420px) {
  .brand > span { display: none; }
}
