/* Home keeps its illustrated identity. Explore is a tight, moving game mosaic. */
.home-daily.plush-hero {
  height: auto;
  aspect-ratio: 2.5;
  min-height: 300px;
  max-height: 420px;
  border-radius: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px #ead8bd;
}
.home-daily .world-backdrop {
  object-position: center 55%;
}
.home-daily .world-wash {
  background: linear-gradient(90deg, #ffdaadbb, transparent 61%);
}
.home-daily .world-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
}
.home-daily .daily-chip {
  font-size: 11px;
  padding: 10px 15px;
  letter-spacing: 1px;
}
.home-daily .daily-chip b {
  font-size: 10px;
}
.home-daily .world-copy h2 {
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.8px;
  max-width: 440px;
  margin: 25px 0 20px;
}
.home-daily .candy-button {
  font-size: 18px;
  border: 2px solid #fff3c1;
  border-radius: 22px;
  min-height: 65px;
  min-width: 250px;
  margin-top: 15px;
  padding: 16px 23px;
  box-shadow:
    0 7px #c99c4e,
    inset 0 1px #fff5d6;
}
.home-daily .candy-button span {
  font-size: 22px;
}
.home-daily-progress {
  margin-top: 13px;
  font-size: 11px;
  font-weight: 800;
  color: #825b3e;
}
.home-party {
  width: 100%;
  min-height: 80px;
  margin: 0 0 38px;
  padding: 12px 23px;
  border-radius: 23px;
}
.home-party b {
  font-size: 20px;
}
.home-party small {
  font-size: 13px;
}
.home-party .party-mini-icon {
  width: 55px;
  height: 55px;
  margin: 0;
}
.explore-library {
  container-type: inline-size;
  min-width: 0;
}
.explore-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.explore-heading h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.1px;
  margin: 0;
}
.explore-heading h2 {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.7px;
}
.explore-heading button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.explore-heading svg {
  width: 17px;
  height: 17px;
}
.explore-feed-link {
  background: #e8deee;
  color: #705983;
  border: 1px solid #ded1e6;
  box-shadow: 0 3px #d7c7df;
  border-radius: 14px;
  min-height: 43px;
  padding: 10px 14px;
}
.explore-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eee8df;
  border: 1px solid #e8dfd2;
  border-radius: 13px;
  padding: 0 13px;
  margin-bottom: 14px;
  height: 46px;
}
.explore-search svg {
  width: 20px;
  height: 20px;
  color: #9c8978;
  flex-shrink: 0;
}
.explore-search input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: #493a30;
}
.explore-search:focus-within {
  outline: 2px solid #b49ac4;
  outline-offset: 2px;
}
.explore-library .discover-filters {
  gap: 7px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0 0 5px;
}
.explore-library .discover-filters button {
  border-radius: 10px;
  min-height: 39px;
  padding: 8px 15px;
  font-size: 13px;
  background: #fffcf7;
  border-color: #ded6cb;
  color: #6c5a49;
}
.explore-library .discover-filters button.active {
  background: #5e6950;
  color: #fff9ee;
  border-color: #5e6950;
  box-shadow: 0 2px #46503b;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: calc((100cqw - 8px) / 3);
  gap: 4px;
  overflow: hidden;
  border-radius: 14px;
}
.explore-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: color-mix(in srgb, var(--tile-color) 30%, #f5e9d6);
}
.explore-tile.explore-tall {
  grid-row: span 2;
}
.explore-tile[hidden] {
  display: none;
}
.explore-launch {
  position: relative;
  display: block;
  border: 0;
  background: none;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  overflow: hidden;
  color: #44372f;
  touch-action: manipulation;
}
.explore-launch:focus-visible {
  outline: 4px solid #825f9a;
  outline-offset: -4px;
  z-index: 3;
}
.explore-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 42px 12px 12px;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.4px;
  font-weight: 900;
  background: linear-gradient(transparent, #fff7e6db);
  pointer-events: none;
}
.explore-share {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #544334;
  z-index: 2;
}
.explore-share:before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  background: #fff8e7cc;
  box-shadow: 0 1px 3px #4e372819;
}
.explore-share svg {
  width: 15px;
  height: 15px;
  position: relative;
}
.explore-empty {
  padding: 40px 10px;
  text-align: center;
  color: #907b66;
  font-size: 15px;
}
.home-preview-grid .explore-tall {
  grid-row: auto;
}
.home-feed-cta {
  width: 100%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  background: #e6ecd9;
  color: #536041;
  border: 1px solid #d4dec1;
  border-radius: 17px;
  padding: 17px;
  box-shadow: 0 3px #c9d3b4;
}
.home-feed-cta svg {
  width: 20px;
  height: 20px;
}
.home-feed-cta svg:last-child {
  margin-left: auto;
}
.home-feed-cta svg:first-child {
  margin-right: auto;
}
@media (max-width: 720px) {
  .discovery-shell .main {
    padding-top: 17px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 100px;
  }
  .discovery-shell .topbar {
    margin-bottom: 19px;
  }
  .home-daily.plush-hero {
    aspect-ratio: auto;
    height: 262px;
    min-height: 0;
    border-radius: 24px;
    margin-bottom: 20px;
  }
  .home-daily .world-backdrop {
    object-position: 64% center;
  }
  .home-daily .world-wash {
    background: linear-gradient(
      90deg,
      #ffdab5dd 0%,
      #ffd9b59c 34%,
      transparent 68%
    );
  }
  .home-daily .world-copy {
    padding: 19px 17px;
    justify-content: flex-start;
  }
  .home-daily .daily-chip {
    font-size: 8px;
    letter-spacing: 0.6px;
    padding: 7px 9px;
    gap: 8px;
  }
  .home-daily .daily-chip b {
    font-size: 8px;
  }
  .home-daily .world-copy h2 {
    font-size: 29px;
    line-height: 1.07;
    letter-spacing: -1.1px;
    max-width: 190px;
    margin: 24px 0 16px;
  }
  .home-daily .candy-button {
    font-size: 13px;
    border-radius: 16px;
    min-width: 172px;
    min-height: 49px;
    padding: 10px 12px;
    gap: 13px;
    margin-top: 6px;
    box-shadow: 0 5px #c99c4e;
  }
  .home-daily .candy-button span {
    font-size: 17px;
  }
  .home-daily-progress {
    font-size: 9px;
    margin-top: 10px;
  }
  .home-party {
    min-height: 70px;
    margin-bottom: 29px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 20px;
  }
  .home-party b {
    font-size: 15px;
  }
  .home-party small {
    font-size: 11px;
  }
  .home-party .party-mini-icon {
    width: 42px;
    height: 47px;
  }
  .home-party > svg {
    width: 18px;
  }
  .explore-heading {
    margin-bottom: 14px;
    gap: 7px;
  }
  .explore-heading h1 {
    font-size: 28px;
  }
  .explore-heading h2 {
    font-size: 23px;
  }
  .explore-heading button {
    font-size: 12px;
  }
  .explore-feed-link {
    padding: 9px 11px;
    min-height: 40px;
    border-radius: 12px;
  }
  .explore-grid {
    gap: 3px;
    grid-auto-rows: calc((100cqw - 6px) / 3);
    border-radius: 8px;
  }
  .explore-label {
    font-size: 13px;
    padding: 18px 6px 8px 7px;
    letter-spacing: -0.3px;
  }
  .explore-share {
    right: 0;
    top: 0;
  }
  .explore-share:before {
    inset: 10px;
  }
  .explore-share svg {
    width: 13px;
    height: 13px;
  }
  .explore-library .discover-filters button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .home-feed-cta {
    font-size: 14px;
    padding: 14px;
    margin-top: 15px;
  }
  .discovery-shell .mobile-nav {
    left: 10px;
    right: 10px;
    padding: 5px;
    gap: 1px;
    border-radius: 21px;
    height: 65px;
  }
  .discovery-shell .mobile-nav button {
    font-size: 9px;
    padding: 6px 2px;
    border-radius: 15px;
  }
  .discovery-shell .mobile-nav svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 359px) {
  .home-daily.plush-hero {
    height: 248px;
  }
  .home-daily .world-copy h2 {
    font-size: 26px;
    max-width: 162px;
  }
  .home-daily .world-copy {
    padding: 17px 13px;
  }
  .home-daily .candy-button {
    font-size: 12px;
    min-width: 158px;
  }
  .home-party b {
    font-size: 13px;
  }
  .home-party small {
    font-size: 10px;
  }
  .explore-label {
    font-size: 12px;
  }
  .explore-heading button {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .explore-tile * {
    animation: none !important;
    transition: none !important;
  }
}
/* Embedded games use their own viewport: keep the board ahead of decorative chrome. */
.embedded .round-context .rival-strip {
  display: none;
}
.embedded .round-context .level-band {
  margin-bottom: 5px;
  font-size: 10px;
  gap: 5px;
}
.embedded .play-page .level-chip {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 10px;
}
.embedded .play-page .screen {
  padding: 6px 12px 12px;
}
.embedded .play-page .word-board:not(#merge-board) {
  width: min(100%, 310px, 60dvh);
  margin: 0 auto;
  padding: 8px 8px 12px;
  gap: 6px;
  border-radius: 18px;
}
.embedded .play-page .word-board .letter {
  min-height: 0;
  aspect-ratio: 1;
  font-size: 24px;
}
.embedded .play-page .word-input {
  margin-top: 12px;
  min-height: 35px;
  padding: 5px;
  font-size: 17px;
}
.embedded .play-page .found-words {
  max-height: 30px !important;
  min-height: 18px !important;
}
.embedded .play-page .word-tools {
  margin-top: 6px;
  gap: 7px;
}
.embedded .play-page .word-tools button {
  min-height: 40px;
  padding: 8px 12px;
}
.embedded .play-page .game-content > h1 {
  font-size: 23px;
  margin: 7px 0;
}
.embedded .play-page .game-content > .eyebrow {
  display: none;
}
.haptics-toggle {
  margin-top: 20px;
  font-size: 13px;
}
.haptics-toggle:disabled {
  opacity: 0.65;
  cursor: default;
}
.embedded .play-page .word-board:not(#merge-board) {
  width: min(100%, 270px, 48dvh);
}
.embedded .play-page .word-tools {
  margin-top: 3px;
}
.embedded .play-page .word-board:not(#merge-board) {
  width: min(100%, 270px, 46dvh);
}
.cluster-hint {
  display: block;
  margin: 15px auto 0;
  font-size: 12px;
  min-height: 44px;
  padding: 9px 15px;
}
.cluster-hint:disabled {
  opacity: 0.4;
  cursor: default;
}
.creator-waitlist {
  margin: 23px 0 0;
  padding: 24px;
  border: 1px solid #ddcfe7;
  border-radius: 25px;
  background: #eee5f2;
  box-shadow: 0 4px #dbcee3;
  text-align: left;
}
.creator-waitlist-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}
.creator-wand {
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #9374a5;
  border-radius: 17px;
  background: #f9f0fb;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  box-shadow: 0 3px #dac5df;
}
.creator-eyebrow {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: #a18ba7;
}
.creator-waitlist h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  line-height: 1.1;
  margin: 6px 0;
  color: #594460;
}
.creator-waitlist > p {
  font-size: 13px;
  line-height: 1.55;
  color: #8b7494;
  margin: 15px 0;
}
.creator-waitlist form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.creator-waitlist input {
  min-width: 140px;
  flex: 1;
  background: #fffbf5;
  border: 1px solid #dacddc;
  border-radius: 13px;
  min-height: 47px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  color: #594460;
}
.creator-waitlist input:focus {
  outline: 2px solid #a483b5;
  outline-offset: 2px;
}
.creator-waitlist button {
  min-height: 47px;
  border-radius: 13px;
  padding: 12px 16px;
  background: #9673ab;
  border: 1px solid #b697c6;
  color: #fff8ff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px #79578b;
}
.creator-waitlist button:disabled {
  opacity: 0.6;
}
.creator-waitlist .creator-notice {
  font-size: 10px;
  margin: 11px 0 0;
}
.creator-waitlist [role="status"] {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0;
}
.creator-waitlist [role="status"]:empty {
  display: none;
}
.creator-waitlist form[hidden] {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.tennis-shot-options {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 9px 0;
}
.tennis-shot-options button {
  flex: 1;
  min-height: 44px;
  font-size: 12px;
  border-radius: 13px;
}
.tennis-shot-options button[aria-pressed="true"] {
  background: #b79ac8;
  color: #fffaf5;
  border-color: #cdb6dc;
  box-shadow: 0 3px #9472a8;
}
@media (max-width: 720px) {
  .creator-waitlist {
    padding: 19px 16px;
    margin-top: 19px;
  }
  .creator-waitlist h2 {
    font-size: 21px;
  }
  .creator-wand {
    width: 43px;
    height: 45px;
    font-size: 27px;
  }
  .creator-waitlist-heading {
    gap: 10px;
  }
  .creator-waitlist form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .creator-waitlist input {
    width: 100%;
    box-sizing: border-box;
  }
  .creator-waitlist button {
    text-align: center;
  }
}

.fandom-section {
  margin-top: 24px;
}
.fandom-section h2 {
  font-size: 25px;
  margin: 0 0 15px;
  letter-spacing: -0.7px;
}
.fan-note {
  display: block;
  color: #957f70;
  margin: 14px 0 0;
  font-size: 11px;
}
.fandom-search-item[hidden] {
  display: none;
}
.result-hint-cost {
  color: #8b6b50;
  font-size: 13px;
  margin: -3px 0 12px;
  text-align: center;
}

@media (max-width: 540px) {
  .cluster-word.long-word {
    font-size: 10px;
    letter-spacing: -0.2px;
    padding-inline: 2px;
  }
}
@media (max-width: 350px) {
  .cluster-word.long-word {
    font-size: 8.5px;
  }
}
/* Keep the full Clusters interaction, including paid help, inside a phone feed. */
.embedded .play-page[data-playing="groups"] .game-content,
.embedded .play-page[data-playing="groupshard"] .game-content {
  margin-top: 6px;
}
.embedded .puzzle-brief {
  margin: 0 0 12px;
  font-size: 14px;
}
.embedded .play-page .cluster-grid {
  gap: 6px;
  margin-bottom: 12px;
}
.embedded .play-page .cluster-word,
.embedded .play-page .solved-group {
  min-height: 48px;
  height: min(11dvh, 60px);
  padding: 5px 2px;
}
.embedded .play-page #mistakes {
  margin: 10px 0 13px;
  font-size: 11px;
}
.embedded .play-page .cluster-actions button {
  min-height: 42px;
  padding: 7px 4px;
}
.embedded .cluster-hint {
  min-height: 42px;
  margin-top: 10px;
  padding: 8px 13px;
  font-size: 12px;
}
.embedded #group-clue {
  margin: 10px 0;
  font-size: 11px;
}
@media (max-width: 360px) {
  .pf-heading h1 {
    white-space: normal;
    font-size: 18px;
    line-height: 1.1;
  }
}

/* Fandom editions are first-class tiles in the main Discover stream. */
.explore-fandom .fandom-card {
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.explore-fandom .fandom-art {
  position: absolute;
  inset: 0 0 17%;
  height: 83%;
  aspect-ratio: auto;
}
.explore-fandom .fandom-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 9px;
  background: linear-gradient(transparent, #fff7e6db);
}
.explore-fandom .fandom-card-info small,
.explore-fandom .fandom-card-play {
  display: none;
}
.explore-fandom .fandom-card-info b {
  max-width: 100%;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.fandom-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  border-radius: 20px;
  background: #fbf2ffd9;
  color: #795c8c;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 900;
  pointer-events: none;
}
@media (max-width: 540px) {
  .explore-fandom .fandom-card-info {
    padding: 16px 6px 7px;
  }
  .explore-fandom .fandom-card-info b,
  .explore-fandom .fandom-kpop-hunters .fandom-card-info b {
    font-size: 12px;
    line-height: 1.12;
  }
  .fandom-badge {
    font-size: 7px;
    padding: 3px 5px;
    top: 5px;
    left: 5px;
  }
}
