.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.gtt-day:focus-visible {
  outline: 3px solid rgba(31, 122, 69, .24);
  outline-offset: 3px;
}

.auth-body {
  display: grid;
  place-items: center;
}

.auth-layout {
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 70px;
  align-items: center;
  padding: 60px 0;
}

.auth-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0;
}

.auth-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(54px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -.062em;
}

.auth-copy p:last-child {
  max-width: 540px;
  color: var(--gtt-muted);
  font-size: 15px;
  line-height: 1.8;
}

.auth-card {
  border-radius: 30px;
  padding: 30px;
}

.auth-heading h2,
.settings-card h2 {
  margin: 0 0 24px;
  font-size: 29px;
  letter-spacing: -.04em;
}

.auth-field {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  color: var(--gtt-muted);
  font-size: 12px;
}

.auth-field input,
.compact-select select,
.games-toolbar select {
  min-height: 44px;
  border: 1px solid var(--gtt-line);
  border-radius: 13px;
  color: var(--gtt-text);
  background: rgba(255, 255, 255, .86);
  padding: 10px 12px;
}

.auth-field small,
.privacy-note {
  color: #7a857e;
  font-size: 10px;
  line-height: 1.5;
}

.privacy-note {
  margin: 18px 0 0;
}

.form-error {
  min-height: 19px;
  color: #a43232;
  font-size: 12px;
}

.form-error.is-success {
  color: var(--gtt-green);
}

.auth-submit {
  width: 100%;
  min-height: 46px;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--gtt-muted);
  font-size: 12px;
  text-align: center;
}

.auth-switch a,
.text-link {
  color: var(--gtt-green);
  font-weight: 700;
  text-decoration: none;
}

.cloud-state,
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(54, 128, 78, .09);
  border-radius: 999px;
  color: #42604c;
  background: rgba(233, 246, 237, .78);
  font-size: 12px;
  white-space: nowrap;
}

.cloud-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35aa63;
  box-shadow: 0 0 0 4px rgba(53, 170, 99, .11);
}

.compact-select select {
  min-height: 38px;
  padding-block: 6px;
}

.overview-card {
  margin-top: 30px;
}

.card-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.card-head h2,
.section-head h2 {
  margin: 5px 0 0;
  font-size: 31px;
  letter-spacing: -.04em;
}

.metric {
  text-align: right;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 30px;
  letter-spacing: -.035em;
}

.metric span {
  margin-top: 5px;
  color: var(--gtt-muted);
  font-size: 11px;
}

.section-block {
  margin-top: 68px;
}

.leaderboard {
  margin-top: 22px;
  padding: 8px 20px;
  border-radius: 24px;
}

.leader-row {
  display: grid;
  grid-template-columns: 52px minmax(150px, .9fr) minmax(180px, 1.2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 8px;
  border-bottom: 1px solid var(--gtt-line);
}

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

.leader-rank {
  font-size: 20px;
  font-weight: 800;
}

.leader-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leader-playing {
  color: var(--gtt-green);
  font-size: 12px;
}

.leader-duration {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.rank-change {
  margin-left: 5px;
  color: var(--gtt-muted);
  font-size: 10px;
}

.empty-message {
  margin: 0;
  padding: 30px 10px;
  color: var(--gtt-muted);
  text-align: center;
}

.games-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.games-toolbar select {
  min-height: 40px;
}

.cloud-games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.cloud-games[data-mode="quarter"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cloud-games[data-mode="month"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  min-width: 0;
  padding: 23px;
  border-radius: 24px;
}

.game-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.game-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #55aa73, #227447);
  font-weight: 800;
}

.game-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card small {
  display: block;
  margin-top: 4px;
  color: var(--gtt-muted);
}

.game-time {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 750;
}

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

.settings-card {
  overflow: visible;
}

.privacy-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  color: var(--gtt-muted);
  font-size: 12px;
  line-height: 1.6;
}

.privacy-toggle input {
  margin-top: 3px;
}

.danger-card {
  grid-column: 1 / -1;
}

.danger-card p {
  max-width: 720px;
  color: var(--gtt-muted);
  line-height: 1.7;
}

.settings-actions {
  display: flex;
  gap: 10px;
}

.danger-button {
  color: #9b3030;
  background: rgba(255, 238, 238, .82);
  border: 1px solid rgba(155, 48, 48, .1);
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 360px;
  padding: 12px 15px;
  border-radius: 13px;
  color: #fff;
  background: #1d3525;
  box-shadow: 0 14px 36px rgba(23, 46, 31, .2);
  font-size: 12px;
}

.toast.is-error {
  background: #783535;
}

@media (max-width: 920px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 32px 0 50px;
  }

  .auth-copy {
    min-height: 320px;
  }

  .auth-copy h1 {
    font-size: 58px;
  }

  .cloud-games[data-mode="month"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .auth-layout {
    width: calc(100% - 24px);
  }

  .auth-copy {
    min-height: auto;
    gap: 60px;
  }

  .auth-copy h1 {
    font-size: 45px;
  }

  .auth-card {
    padding: 23px;
    border-radius: 24px;
  }

  .cloud-state {
    max-width: 108px;
  }

  .cloud-state span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-head,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric {
    text-align: left;
  }

  .cloud-games[data-mode="quarter"],
  .cloud-games[data-mode="month"],
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .leader-row {
    grid-template-columns: 36px 1fr auto;
  }

  .leader-playing {
    grid-column: 2 / -1;
  }

  .games-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .games-toolbar .gtt-segmented {
    display: flex;
  }

  .games-toolbar .gtt-segmented button {
    flex: 1;
  }

  .danger-card {
    grid-column: auto;
  }
}
