/* Focused UX refinements. All selectors are excluded from the pet world. */
.ui-refresh .wd-header {
  height: 72px;
  gap: 8px;
}
.ui-refresh .wd-header-actions {
  gap: 6px;
}
.ui-refresh .wd-my-games {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid #e6deef;
  background: #fff;
  border-radius: 20px;
  padding: 0 10px;
  color: #6e557f;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.ui-refresh .wd-my-games svg {
  width: 17px;
  height: 17px;
}
.ui-refresh .wd-my-games b {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 50%;
  background: #ede2f8;
  color: #8056ab;
  font-size: 9px;
}
.ui-refresh .wd-wallet {
  min-height: 40px;
}
.ui-refresh .wd-intro h1 {
  font-size: 26px;
}
.ui-refresh .wd-intro {
  margin: 14px 0 18px;
}
.ui-refresh .wd-core-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 7px;
}
.ui-refresh .wd-core-shortcuts > button {
  min-height: 78px;
  padding: 13px 11px;
  flex-wrap: nowrap;
}
.ui-refresh .wd-core-shortcuts > button > span:nth-child(2) {
  flex-basis: auto;
}
.ui-refresh .wd-core-shortcuts b:last-child {
  position: static;
}
.ui-refresh .wd-core-shortcuts strong {
  font-size: 15px;
}
.ui-refresh .wd-core-shortcuts small {
  font-size: 10px;
}
.ui-refresh .wd-home-focused .wd-section {
  margin-top: 22px;
}
.ui-refresh .wd-home-focused .wd-quest-preview {
  margin-top: 20px;
  padding: 14px;
}
.ui-refresh .wd-quest-preview.ready {
  border-color: #e9dab7;
  background: #fffcf5;
}
.ui-refresh .gold {
  background: #fff0c9;
  color: #b18530;
}
.ui-refresh .wd-quest-preview strong {
  font-size: 13px;
}
.ui-refresh .wd-quest-preview small {
  font-size: 11px;
  margin-bottom: 5px;
  color: #796a86;
}
.ui-refresh .wd-clear-banner {
  padding: 20px;
  min-height: 166px;
}
.ui-refresh .wd-clear-banner h2 {
  font-size: 23px;
  max-width: 53%;
  line-height: 1.1;
}
.ui-refresh .wd-clear-banner p {
  font-size: 11px;
  max-width: 53%;
  line-height: 1.5;
}
.ui-refresh .wd-clear-banner .wd-eyebrow {
  font-size: 8px;
  max-width: 56%;
  letter-spacing: 0.06em;
}
/* A game grid is visible above the fold; filter controls expand only on request. */
.ui-refresh .wd-catalog-focused .catalog-toggle {
  margin: 1px 0 18px;
}
.ui-refresh .wd-catalog-focused .wd-intro {
  margin: 0 0 15px;
}
.ui-refresh .wd-catalog-focused .wd-intro h1 {
  margin: 0;
  font-size: 25px;
}
.ui-refresh .wd-audiences {
  margin-bottom: 12px;
}
.ui-refresh .wd-audiences > button {
  font-size: 11px;
  padding: 8px 13px;
}
.ui-refresh .wd-search-tools {
  position: relative;
  margin-bottom: 5px;
}
.ui-refresh .wd-search-tools > .wd-search {
  margin-right: 104px;
  height: 44px;
  padding: 0 12px;
  border-radius: 13px;
}
.ui-refresh .wd-search-tools > .wd-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ui-refresh .wd-search-tools .wd-filters {
  margin: 0;
  color: #5c456d;
}
.ui-refresh .wd-search-tools .wd-filters > summary,
.ui-refresh .wd-favorite-filter {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e5dced;
  border-radius: 13px;
  background: #fff;
  color: #9278a7;
  list-style: none;
  cursor: pointer;
}
.ui-refresh .wd-favorite-filter {
  right: 52px;
}
.ui-refresh .wd-search-tools .wd-filters > summary:after {
  content: none;
}
.ui-refresh .wd-search-tools summary::-webkit-details-marker {
  display: none;
}
.ui-refresh .wd-search-tools summary svg,
.ui-refresh .wd-favorite-filter svg {
  width: 20px;
  height: 20px;
}
.ui-refresh .wd-favorite-filter.on {
  background: #eee4f8;
  color: #8858b8;
  border-color: #cdb5e4;
}
.ui-refresh .wd-favorite-filter.on svg {
  fill: currentColor;
}
.ui-refresh .wd-search-tools summary > b {
  position: absolute;
  right: -3px;
  top: -4px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  font-size: 9px;
  background: #8b63b9;
  color: #fff;
  border-radius: 50%;
  border: 2px solid var(--wd-bg);
}
.ui-refresh .wd-filter-panel {
  padding: 12px 0 1px;
}
.ui-refresh .wd-filter-grid {
  padding: 14px;
  border-radius: 17px;
}
.ui-refresh .wd-filter-grid label {
  font-size: 11px;
}
.ui-refresh .wd-filter-grid select {
  font-size: 12px;
  min-height: 41px;
}
.ui-refresh .wd-filter-actions {
  margin: 9px 0 5px;
}
.ui-refresh .wd-filter-actions button {
  min-height: 40px;
  font-size: 12px;
  padding: 8px 16px;
}
.ui-refresh .wd-filter-actions button:last-child {
  background: #8356bc;
  border-color: #8356bc;
  color: #fff;
}
.ui-refresh .wd-selected-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 2px;
}
.ui-refresh .wd-selected-filters > button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #dfd0eb;
  border-radius: 20px;
  background: #efe6f7;
  color: #785492;
  font-size: 10px;
}
.ui-refresh .wd-selected-filters > button > span {
  margin-left: 6px;
  color: #9c7fb0;
}
.ui-refresh .wd-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 41px;
  margin: 2px 0 4px;
  color: #877591;
  font-size: 11px;
}
.ui-refresh .wd-results-summary b {
  margin-left: 5px;
  color: #9e8cab;
  font-size: 10px;
  font-weight: 650;
}
.ui-refresh .wd-results-summary > button {
  font-size: 10px;
  border: 0;
  background: none;
  color: #8a66a2;
  padding: 8px 0;
}
.ui-refresh .wd-catalog-focused .wd-catalog-grid {
  gap: 12px 10px;
}
.ui-refresh .wd-catalog-focused .wd-catalog-copy p {
  font-size: 11px;
  line-height: 1.5;
  min-height: 49px;
  color: #77677f;
}
.ui-refresh .wd-catalog-focused .wd-catalog-copy h3 {
  font-size: 15px;
  line-height: 1.25;
}
.ui-refresh .wd-catalog-focused .wd-catalog-meta {
  font-size: 10px;
  color: #8b7599;
}
.ui-refresh .wd-catalog-focused .wd-catalog-copy > .wd-eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0;
  color: #947da3;
}
.ui-refresh .wd-catalog-focused .wd-card-actions {
  gap: 7px;
  margin-top: 11px;
  padding-top: 0;
  border: 0;
}
.ui-refresh .wd-catalog-focused .wd-card-play {
  min-height: 41px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #eee4f8;
  color: #79509c;
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 8px;
  white-space: nowrap;
}
.ui-refresh .wd-catalog-focused .wd-card-play svg {
  width: 15px;
  height: 15px;
}
.ui-refresh .wd-catalog-focused .wd-card-info {
  display: grid;
  place-items: center;
  width: 33px;
  min-width: 33px;
  height: 41px;
  border: 1px solid #ede5f3;
  background: #fff;
  color: #a189af;
  border-radius: 11px;
  padding: 0;
}
.ui-refresh .wd-card-info svg {
  width: 18px;
  height: 18px;
}
.ui-refresh .wd-favorite {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 7px;
  display: grid;
  place-items: center;
  background: #fffdf5e8;
}
.ui-refresh .wd-favorite svg {
  width: 19px;
  height: 19px;
}
.ui-refresh .wd-favorite.on svg {
  fill: currentColor;
}
.ui-refresh .tests .wd-favorite {
  width: 31px;
  height: 31px;
  padding: 5px;
  right: 7px;
  top: 7px;
  background: #fff;
}
.ui-refresh .wd-catalog-focused .tests .wd-card-actions {
  margin-top: 10px;
}
.ui-refresh .wd-catalog-focused .tests .wd-card-play {
  justify-content: space-between;
  background: #f3edf9;
  min-height: 38px;
  padding: 9px 12px;
}
.ui-refresh .wd-catalog-focused .tests .wd-catalog-copy p {
  min-height: 0;
}
.ui-refresh .wd-catalog-focused .tests .wd-catalog-copy h3 {
  padding-right: 22px;
  font-size: 14px;
}
.ui-refresh .wd-catalog-focused .tests .wd-catalog-copy {
  min-width: 0;
}
.ui-refresh .wd-game-details > .wd-cover {
  width: 100px;
  height: 100px;
  margin-bottom: 18px;
}
.ui-refresh .wd-game-details > .wd-eyebrow {
  font-size: 10px;
  text-align: center;
}
.ui-refresh .wd-game-details h2 {
  text-align: center;
  margin-top: 7px;
}
.ui-refresh .wd-game-details > p {
  font-size: 13px;
  color: #766380;
}
.ui-refresh .wd-how-to {
  padding: 16px;
  background: #f3edf9;
  border: 1px solid #e8dcf0;
  border-radius: 17px;
  margin: 18px 0;
}
.ui-refresh .wd-how-to h3 {
  font-size: 13px;
  margin: 0 0 9px;
}
.ui-refresh .wd-how-to p {
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
  color: #80658f;
}
.ui-refresh .wd-game-details .wd-save-note {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #987ea8;
}
.ui-refresh .wd-save-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ui-refresh .mode-close {
  width: 40px;
  height: 40px;
  z-index: 1;
}
.ui-refresh .quiz-preview-method {
  border-top: 1px solid #eadff2;
  padding: 13px 0 4px;
  margin: 12px 0;
  color: #89679f;
  font-size: 11px;
}
.ui-refresh .quiz-preview-method p {
  font-size: 11px !important;
  line-height: 1.6;
}
/* Active work and waiting are distinct. No zero-record list for a new account. */
.ui-refresh .wd-activity-item + .wd-activity-item,
.ui-refresh .wd-activity-item + .wd-activity-row,
.ui-refresh .wd-activity-row + .wd-activity-item {
  border-top: 1px solid #f0ebf5;
}
.ui-refresh .wd-activity-item > .wd-activity-row {
  padding-bottom: 12px;
}
.ui-refresh .wd-activity-row > b {
  font-size: 10px;
  font-weight: 750;
  color: #9776aa;
  white-space: nowrap;
}
.ui-refresh .wd-activity-row strong {
  font-size: 13px;
}
.ui-refresh .wd-activity-row small {
  font-size: 11px;
}
.ui-refresh .wd-activity-row small:last-child {
  font-size: 10px;
}
.ui-refresh .wd-invite-again {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 26px);
  min-height: 37px;
  margin: 0 13px 13px;
  border: 0;
  border-radius: 10px;
  background: #f0e7f8;
  color: #82569e;
  font-size: 11px;
  font-weight: 750;
}
.ui-refresh .wd-invite-again svg {
  width: 16px;
  height: 16px;
}
.ui-refresh .wd-activity-focused .wd-page-top {
  padding-bottom: 18px;
}
.ui-refresh .wd-activity-focused .wd-tabs {
  margin-top: 0;
}
.ui-refresh .wd-activity-focused .wd-tabs button > span {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #f2ebf8;
  color: #9d83ac;
}
.ui-refresh .wd-activity-focused .wd-section {
  margin-top: 22px;
}
/* One useful empty state replaces the banner + empty panel + repeated CTA stack. */
.ui-refresh .wd-friends-focused .wd-intro {
  margin: 12px 0 19px;
}
.ui-refresh .wd-friends-empty {
  border: 1px solid #e6dbef;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  padding: 0 18px 20px;
  text-align: center;
}
.ui-refresh .wd-friends-art {
  height: 142px;
  margin: 0 -18px 21px;
  background: #e6dbf5 url("/weduel-covers.webp") right bottom/auto 400%
    no-repeat;
  mask-image: linear-gradient(#000 70%, transparent);
}
.ui-refresh .wd-friends-empty h2 {
  font-size: 23px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.ui-refresh .wd-friends-empty > p {
  color: #83708f;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.ui-refresh .wd-friends-empty .wd-action-pair {
  margin: 20px 0;
}
.ui-refresh .wd-action-pair > button {
  font-size: 12px;
  min-height: 43px;
}
.ui-refresh .wd-invite-steps {
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid #eee7f3;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 13px;
}
.ui-refresh .wd-invite-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #8b7699;
}
.ui-refresh .wd-invite-steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #f0e7f8;
  border-radius: 9px;
  font-size: 10px;
  color: #a17bbd;
}
.ui-refresh .wd-intro h1 > small {
  font-size: 14px;
  margin-left: 5px;
  color: #a58fb1;
  font-weight: 600;
}
.ui-refresh .wd-friend-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eee5f8;
  border: 1px solid #e4d8ef;
  border-radius: 19px;
  padding: 17px;
}
.ui-refresh .wd-friend-identity h2 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.ui-refresh .wd-friend-identity p {
  font-size: 10px;
  margin: 0;
  color: #8f729f;
}
.ui-refresh .wd-friend-no-results {
  font-size: 12px;
  color: #8e779a;
  padding: 20px 8px;
  text-align: center;
}
.ui-refresh .wd-friends-focused .wd-friend-list {
  margin-top: 12px;
}
.ui-refresh .wd-profile-focused .wd-intro {
  margin: 10px 0 18px;
}
.ui-refresh .wd-profile-focused .wd-identity {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0 12px;
  padding: 18px 16px;
  border-radius: 21px;
  text-align: left;
  align-items: center;
}
.ui-refresh .wd-profile-focused .wd-avatar.large {
  grid-column: 1;
  grid-row: 1/4;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 18px;
  font-size: 23px;
  border-width: 2px;
}
.ui-refresh .wd-profile-focused .wd-identity h2 {
  grid-column: 2;
  grid-row: 1;
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}
.ui-refresh .wd-profile-focused .wd-level-badge {
  grid-column: 3;
  grid-row: 1;
  white-space: nowrap;
  font-size: 9px;
  padding: 5px 8px;
}
.ui-refresh .wd-profile-focused .wd-xp {
  grid-column: 2/4;
  grid-row: 2;
  margin: 13px 0 6px;
}
.ui-refresh .wd-profile-focused .wd-identity > small {
  grid-column: 2/4;
  grid-row: 3;
  font-size: 9px;
  color: #9172a0;
}
.ui-refresh .wd-profile-focused .wd-stats {
  padding: 16px 0;
}
.ui-refresh .wd-profile-focused .wd-stats b {
  font-size: 21px;
}
.ui-refresh .wd-profile-focused .wd-stats span {
  font-size: 10px;
}
.ui-refresh .wd-profile-focused .wd-section {
  margin-top: 23px;
}
.ui-refresh .wd-profile-focused .wd-menu > button {
  padding: 14px;
}
.ui-refresh .wd-profile-focused .wd-menu small {
  font-size: 11px;
}
/* Real loading/error recovery instead of an empty viewport or a partial, misleading home. */
.ui-refresh .wd-boot {
  min-height: 85dvh;
  max-width: 390px;
  margin: auto;
  padding: 54px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  color: #675276;
}
.ui-refresh .wd-boot-brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  gap: 9px;
  align-items: center;
}
.ui-refresh .wd-boot-brand > span {
  color: #9b6ace;
  font-size: 43px;
}
.ui-refresh .wd-boot > p {
  font-size: 13px;
  color: #917b9f;
  line-height: 1.6;
  margin: 0;
}
.ui-refresh .wd-boot-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  opacity: 0.8;
}
.ui-refresh .wd-boot-preview > i {
  display: block;
  grid-column: 1/-1;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(120deg, #eadef6, #f1eafa);
}
.ui-refresh .wd-boot-preview > div {
  height: 70px;
  border-radius: 17px;
  background: #eee7f6;
}
.ui-refresh .wd-boot-preview > div:last-child {
  display: none;
}
.ui-refresh .wd-boot-error h1 {
  font-size: 25px;
  margin: 0;
  line-height: 1.2;
}
.ui-refresh .wd-boot-error .wd-empty-mark {
  margin: 10px 0 0;
  font-size: 30px;
}
.ui-refresh .wd-boot-error .wd-primary {
  align-self: start;
  min-height: 44px;
}
.ui-refresh button[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}
@media (min-width: 560px) {
  .ui-refresh .wd-catalog-focused .wd-intro h1 {
    font-size: 29px;
  }
  .ui-refresh .wd-my-games {
    padding-inline: 13px;
    font-size: 12px;
  }
  .ui-refresh .wd-profile-focused .wd-identity {
    padding: 22px;
  }
  .ui-refresh .wd-friends-empty {
    max-width: 480px;
    margin: auto;
  }
}
@media (max-width: 359px) {
  .ui-refresh .wd-header {
    height: 66px;
  }
  .ui-refresh .wd-my-games {
    padding: 0 10px;
  }
  .ui-refresh .wd-my-games > span {
    display: none;
  }
  .ui-refresh .wd-brand {
    font-size: 22px !important;
  }
  .ui-refresh .wd-core-shortcuts > button {
    padding: 11px 9px;
    min-height: 72px;
  }
  .ui-refresh .wd-core-shortcuts strong {
    font-size: 13px;
  }
  .ui-refresh .wd-core-shortcuts small {
    font-size: 9px;
  }
  .ui-refresh .wd-catalog-focused .wd-intro h1 {
    font-size: 23px;
  }
  .ui-refresh .wd-catalog-focused .catalog-toggle {
    margin-bottom: 15px;
  }
  .ui-refresh .wd-audiences > button {
    font-size: 10px;
    padding: 8px 11px;
  }
  .ui-refresh .wd-catalog-focused .wd-catalog-copy h3 {
    font-size: 13px;
  }
  .ui-refresh .wd-catalog-focused .wd-catalog-copy p {
    font-size: 10px;
    min-height: 45px;
  }
  .ui-refresh .wd-catalog-focused .wd-catalog-copy > .wd-eyebrow {
    font-size: 8px;
  }
  .ui-refresh .wd-catalog-focused .wd-card-info {
    width: 29px;
    min-width: 29px;
  }
  .ui-refresh .wd-catalog-focused .wd-card-play {
    font-size: 10px;
    padding: 9px 5px;
    gap: 4px;
  }
  .ui-refresh .wd-catalog-focused .tests .wd-catalog-copy h3 {
    font-size: 13px;
  }
  .ui-refresh .wd-catalog-focused .tests .wd-catalog-copy p {
    min-height: 0;
    font-size: 10px;
  }
  .ui-refresh .wd-activity-row > b {
    font-size: 9px;
  }
  .ui-refresh .wd-activity-row strong {
    font-size: 12px;
  }
  .ui-refresh .wd-friends-empty {
    padding-inline: 14px;
  }
  .ui-refresh .wd-friends-art {
    margin-inline: -14px;
    height: 125px;
  }
  .ui-refresh .wd-profile-focused .wd-identity {
    grid-template-columns: 47px minmax(0, 1fr);
    gap: 0 10px;
    padding: 16px 13px;
  }
  .ui-refresh .wd-profile-focused .wd-avatar.large {
    width: 47px;
    height: 47px;
  }
  .ui-refresh .wd-profile-focused .wd-identity h2 {
    font-size: 17px;
  }
  .ui-refresh .wd-profile-focused .wd-level-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 7px;
  }
  .ui-refresh .wd-profile-focused .wd-xp {
    grid-column: 1/3;
    grid-row: 4;
  }
  .ui-refresh .wd-profile-focused .wd-identity > small {
    grid-column: 1/3;
    grid-row: 5;
  }
}
.ui-refresh .wd-invite-steps li {
  color: #7d6989;
}
.ui-refresh .wd-activity-row small {
  color: #82688f;
}
.ui-refresh .wd-friend-identity p {
  color: #7f638e;
}
.ui-refresh .wd-header-actions {
  min-width: 0;
}
.ui-refresh .wd-header .wd-wallet {
  min-width: 0;
  max-width: 110px;
  padding-inline: 9px;
  flex: 0 1 auto;
}
.ui-refresh .wd-header .wd-wallet > b {
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.15;
  min-width: 0;
}
.ui-refresh .wd-my-games,
.ui-refresh .wd-brand {
  flex-shrink: 0;
}
/* The generated atlas has unequal row heights. Use safe square windows inside each
   illustration, rather than leaking the panorama into the third game row. */
.ui-refresh .wd-cover {
  background-size: 329.090909% 438.787879%;
}
.wd-toast {
  max-width: calc(100vw - 32px);
  width: max-content;
  white-space: normal;
  line-height: 1.5;
  font-size: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  padding: 12px 16px;
  background: #352743;
  z-index: 300;
  pointer-events: none;
}
