/* One diary: discoveries, medals and favorites are separate destinations. */
.kids-page.achievements-hub {
  --conquests-gold: #b28231;
  --conquests-ink: #4b2e1e;
  --collection-teal: #087f83;
  --collection-edge: #d7b47c;
  --collection-paper: linear-gradient(125deg, #fff9ec, #ffedcf 70%, #f5dfbb);
  --collection-lift: inset 0 2px 0 #fffef6, inset 0 0 0 1px #fff8e6a6, 0 3px 5px #b18b4d24;
  width: 100%;
  max-width: 720px;
  min-height: 240px;
  gap: 11px;
  color: var(--conquests-ink);
  position: relative;
  isolation: isolate;
}
.kids-page.achievements-hub.notebook-page {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}
.achievements-hub .kids-heading { min-height: 40px; }
.achievements-hub .kids-heading h1 { font-size: clamp(28px, 4vw, 36px); }
.achievements-hub .kids-heading h1 > .icon { width: 30px; height: 30px; color: #ba8d39; }
.achievements-hub .achievement-tabs { flex-shrink: 0; padding: 4px; min-height: 52px; }
.achievements-hub .achievement-tabs button { min-height: 44px; font-size: 16px; }
.achievements-hub .achievement-tabs .active {
  background: linear-gradient(130deg, #31b6b8, #208a9b 42%, #266b88 85%);
  box-shadow: inset 0 2px #b5f1df99, 0 2px 0 #2c6574;
}
.conquests-summary {
  display: flex; align-items: center; gap: 16px;
  min-height: 132px; padding: 12px 20px 12px 10px;
  border: 1px solid #e0c99c; border-radius: 25px;
  background: radial-gradient(ellipse at 6% 30%, #fbe9a477, transparent 45%), linear-gradient(130deg, #fffdf3, #fff2d9 65%, #f6e4c5);
  box-shadow: inset 0 2px #fffef8, 0 3px 1px #be9a5540;
}
.conquests-journal { position: relative; flex: 0 0 105px; display: block; height: 100px; }
.conquests-journal > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 4px #8c652b2a); transform: rotate(-7deg); }
.conquests-journal > span {
  position: absolute; bottom: 0; right: 0; display: grid; place-items: center;
  width: 39px; height: 39px; border: 3px double #c39237; border-radius: 50%;
  color: #98601e; background: linear-gradient(135deg, #fff7b9, #f4ca61 55%, #eaa13a);
  box-shadow: inset 0 2px #fffacb, 0 3px 2px #99652135;
}
.conquests-journal > span .icon { width: 25px; height: 25px; }
.conquests-summary > div { min-width: 0; flex: 1; }
.conquests-summary strong { display: block; font: 600 clamp(24px, 3.5vw, 31px)/1.15 var(--heading); }
.conquests-summary .progress { margin: 10px 0 8px; height: 10px; }
.conquests-summary .progress > span { min-width: 0; background: linear-gradient(95deg, #76e0cb, #25b7bf 52%, #328cb0); }
.conquests-summary p { margin: 0; font-size: 12px; color: #73775f; font-weight: 800; line-height: 1.5; }
.conquests-shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.conquests-shelf-heading h2 { margin: 0; font: 600 23px/1.1 var(--heading); }
.conquests-favorite-filter {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border: 1px solid #d9bd8a; border-radius: 16px;
  color: #8e6a31; background: linear-gradient(125deg, #fffdf3, #fbe8be);
  font-weight: 900; font-size: 13px; box-shadow: inset 0 2px #fff9e8;
}
.conquests-favorite-filter .icon { width: 20px; height: 20px; }
.conquests-favorite-filter.active { border-color: #c49438; color: #805015; background: linear-gradient(125deg, #fff3b7, #f9cd6b 60%, #f4b65b); }
.achievements-hub.notebook-page .book-grid { grid-auto-rows: minmax(88px, auto); }
.achievements-hub.notebook-page .album-book { min-height: 88px; grid-template-columns: 62px minmax(0, 1fr) 34px; gap: 3px 12px; padding: 9px 5px; }
.achievements-hub.notebook-page .book-cover,
.achievements-hub.notebook-page .book-cover .illustrated-icon { width: 62px; height: 60px; }
.achievements-hub.notebook-page .album-book > strong { font-size: 22px; }
.achievements-hub.notebook-page .album-book > .book-discovery-count { font-size: 12px; }
.achievements-hub.notebook-page .album-book > .book-row-arrow { width: 32px; height: 32px; }
.achievements-hub.notebook-page .album-book.complete > .book-row-arrow { color: #a06b20; border: 3px double #d3a747; background: linear-gradient(140deg, #fff4b4, #f2c35d, #e4a447); }
.achievements-hub.notebook-page .album-book.complete .book-complete { color: #9f6b1e; background: #ffeca0; border-color: #c7973b; }
.achievements-hub.notebook-page .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(132px, 1fr); }
.achievements-hub .phrase-tile { padding: 15px 10px 12px; gap: 8px; }
.achievements-hub .phrase-tile .tile-phrase { font-family: var(--heading); font-weight: 500; font-size: 19px; line-height: 1.2; }
.achievements-hub .tile-author { display: block; color: #7b775e; font-size: 11px; line-height: 1.2; }
.achievements-hub .tile-number { color: #a6792d; }
.achievements-hub .tile-number .icon { width: 24px; height: 24px; }
.achievements-hub .album-banner { min-height: 102px; }
.achievements-hub .album-banner strong { font-size: 25px; }
.achievements-hub .album-banner .album-emblem { width: 55px; height: 55px; }
.conquests-latest { margin: 0; padding: 1px 8px; color: #8a8268; font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conquests-latest > span:first-child { font-weight: 900; }
.conquests-discover-poems { min-height: 44px; padding: 6px 8px; border: 0; background: none; color: #3d8285; font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.kids-page.achievements-hub.achievements-page { grid-template-rows: auto auto minmax(120px, 1fr) auto auto; }
.achievements-hub .conquests-medal-summary {
  flex-direction: row; justify-content: center; gap: 18px;
  padding: 12px 18px; min-height: 150px; text-align: left;
  border: 0; background: radial-gradient(ellipse at 30% 45%, #fff0b3aa, transparent 70%);
}
.achievements-hub .conquests-medal-summary > img { width: 160px; height: 160px; max-height: 24vh; flex: 0 0 145px; }
.achievements-hub .conquests-medal-summary > div { flex: 0 1 300px; }
.achievements-hub .conquests-medal-summary strong { font-size: clamp(28px, 4vw, 36px); margin: 8px 0; }
.achievements-hub .conquests-medal-summary .spotlight-eyebrow { font-size: 10px; letter-spacing: .07em; }
.achievements-hub .conquests-medal-summary .conquests-seal-count { font-size: 12px; margin-top: 10px; color: #a57b2b; font-weight: 900; }
.achievements-hub .next-achievement { min-height: 98px; }
.achievements-hub .awards-library { min-height: 0; }
.achievements-hub .awards-library > summary { min-height: 48px; }
.achievements-hub.achievements-page:has(.awards-library[open]) { grid-template-rows: auto auto auto minmax(0, 1fr); }
.achievements-hub.achievements-page:has(.awards-library[open]) .conquests-medal-summary { display: none; }
.achievements-hub .awards-library[open] { overflow: auto; overscroll-behavior: contain; padding: 0 3px 10px; scrollbar-width: none; }
.achievements-hub .awards-library .award-grid { height: auto; overflow: visible; grid-template-rows: none; grid-auto-rows: minmax(112px, auto); padding-bottom: 10px; }
.conquests-award-group { margin: 12px 4px 6px; font: 600 23px/1.2 var(--heading); }
.conquests-award-explainer { font-size: 12px; color: #7d7b64; margin: 0 4px 12px; }
.achievements-hub .kids-empty { grid-column: 1 / -1; min-height: 160px; }
@media (max-width: 600px) {
  .kids-page.achievements-hub { gap: 9px; }
  .achievements-hub .achievement-tabs button { font-size: 15px; }
  .conquests-summary { min-height: 112px; gap: 10px; padding: 8px 12px 8px 6px; border-radius: 22px; }
  .conquests-journal { flex-basis: 82px; height: 85px; }
  .conquests-journal > span { width: 31px; height: 31px; }
  .conquests-journal > span .icon { width: 21px; height: 21px; }
  .conquests-summary strong { font-size: 25px; }
  .conquests-summary p { font-size: 10px; }
  .conquests-shelf-heading h2 { font-size: 22px; }
  .achievements-hub.notebook-page .album-book > strong { font-size: 21px; }
  .achievements-hub .conquests-medal-summary { gap: 8px; padding-inline: 6px; }
  .achievements-hub .conquests-medal-summary > img { width: 112px; height: 130px; flex-basis: 112px; }
  .achievements-hub .conquests-medal-summary > div { flex: 1; }
  .achievements-hub .conquests-medal-summary strong { font-size: 30px; }
  .achievements-hub .conquests-medal-summary > div > span { font-size: 12px; }
  .achievements-hub .conquests-medal-summary .spotlight-eyebrow { font-size: 9px; }
}
@media (max-height: 700px) {
  .kids-page.achievements-hub { gap: 6px; }
  .conquests-summary { min-height: 90px; }
  .conquests-journal { flex-basis: 65px; height: 67px; }
  .conquests-summary .progress { margin-block: 6px; height: 7px; }
  .conquests-summary strong { font-size: 23px; }
  .achievements-hub .achievement-tabs { min-height: 48px; padding: 2px; }
  .achievements-hub .conquests-medal-summary { min-height: 105px; }
  .achievements-hub .conquests-medal-summary > img { width: 87px; height: 90px; flex-basis: 87px; }
  .achievements-hub .conquests-medal-summary strong { font-size: 26px; margin-block: 4px; }
  .achievements-hub .conquests-medal-summary .conquests-seal-count { margin-top: 5px; }
  .achievements-hub .next-achievement { min-height: 82px; }
  .conquests-latest { display: none; }
}
@media (prefers-reduced-motion: reduce) { .achievements-hub button { transition: none; } }

/* ORIGINAL APPROVED PIXELS, not regenerated illustrations or a screenshot UI.
   Sources: identity/footer-tabs-2026-10-16/{mobile,desktop}-collection.png.
   Each background window below selects an illustration-only source rectangle.
   The source's title, 53-counter, progress bars, checks and buttons never enter
   these windows. Actual discovery totals and controls remain the existing DOM. */
.achievements-hub::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../assets/expedition/study-collection-desktop.png") center top / 100% auto no-repeat;
  mask-image: linear-gradient(90deg, #000 0 17%, transparent 19% 81%, #000 83% 100%);
}
body:is([data-screen="collection"], [data-screen="trophies"]) .game-header {
  position: relative;
  z-index: 1;
}
.achievements-hub .conquests-summary,
.achievements-hub .album-banner,
.achievements-hub .next-achievement,
.achievements-hub .phrase-tile {
  border: 1px solid var(--collection-edge);
  background: var(--collection-paper);
  box-shadow: var(--collection-lift);
}
.achievements-hub .conquests-summary {
  min-height: 166px;
  gap: 24px;
  padding: 14px 22px 14px 14px;
  border-radius: 25px;
}
.achievements-hub .conquests-journal {
  flex: 0 0 180px;
  width: 180px;
  height: auto;
  aspect-ratio: 230 / 176;
  border: 1px solid #caa16c;
  border-radius: 17px 12px 14px 18px;
  background-color: #f1dcad;
  /* Desktop journal's left illustrated page: x824 y16 w230 h176. */
  background-image: url("../assets/expedition/study-collection-desktop.png");
  background-size: 671.739130% 578.409091%;
  background-position: 62.661597% 1.900238%;
  background-repeat: no-repeat;
  box-shadow: 0 4px 0 #b48b5840, 0 8px 14px #8c642329;
}
.achievements-hub .conquests-journal > img { display: none; }
.achievements-hub .conquests-journal > span {
  bottom: -5px;
  right: -13px;
  width: 56px;
  height: 73px;
  border: 0;
  border-radius: 12px;
  /* Desktop ribbon and medal: x1174 y58 w107 h139. */
  background: url("../assets/expedition/study-collection-desktop.png") 81.641168% 6.598407% / 1443.925234% 732.374101% no-repeat;
  box-shadow: 0 3px 5px #9d6d3333;
}
.achievements-hub .conquests-journal > span > .icon { display: none; }
.achievements-hub .conquests-summary strong { color: var(--conquests-ink); }
.achievements-hub .conquests-summary .progress {
  height: 11px;
  border: 1px solid #d5b88d;
  background: linear-gradient(#ddc7a3, #e8d8b8);
  box-shadow: inset 0 1px 2px #a37c3920;
}
.achievements-hub .conquests-summary .progress > span {
  background: linear-gradient(100deg, #25aeb0, #078f94 50%, #087b81);
}
.achievements-hub .achievement-tabs {
  border-color: var(--collection-edge);
  background: linear-gradient(130deg, #ffedcf, #f8dfb8 70%, #efd3a7);
  box-shadow: inset 0 2px #fff6e2, 0 2px 4px #a77f4322;
}
.achievements-hub .achievement-tabs button { color: #77502e; }
.achievements-hub .achievement-tabs .active {
  color: #fffdf2;
  border: 1px solid #087d83;
  background: linear-gradient(120deg, #20a8ad, #078a90 55%, #08717a);
  box-shadow: inset 0 2px #a8e5d75c, 0 2px #0a626b66;
}
.achievements-hub .conquests-favorite-filter {
  border-color: var(--collection-edge);
  background: var(--collection-paper);
  box-shadow: var(--collection-lift);
}
.achievements-hub.notebook-page .book-grid { gap: 10px; padding: 2px 3px 10px; }
.achievements-hub.notebook-page .album-book {
  min-height: 98px;
  grid-template-columns: 112px minmax(0, 1fr) 32px;
  gap: 4px 14px;
  padding: 10px;
  border: 1px solid var(--collection-edge);
  border-radius: 20px;
  background: var(--collection-paper);
  box-shadow: var(--collection-lift);
}
.achievements-hub.notebook-page .album-book > strong { color: var(--conquests-ink); }
.achievements-hub.notebook-page .album-book > .book-discovery-count { color: #7d715f; }
.achievements-hub.notebook-page .album-book .book-cover {
  width: 112px;
  height: 64px;
  display: grid;
  place-items: center;
}
.achievements-hub.notebook-page .album-book:is([data-album-theme="books"], [data-album-theme="bible"], [data-album-theme="sea"]) .book-cover {
  height: auto;
  aspect-ratio: 229 / 120;
  border-radius: 12px;
  background-image: url("../assets/expedition/study-collection-desktop.png");
  background-repeat: no-repeat;
  box-shadow: 0 3px 5px #8a5c2929;
}
.achievements-hub.notebook-page .album-book:is([data-album-theme="books"], [data-album-theme="bible"], [data-album-theme="sea"]) .book-cover > .illustrated-icon { visibility: hidden; }
/* Desktop row illustrations: x343, y405/539/675, w229, h118/120/120. */
.achievements-hub [data-album-theme="books"] .book-cover { aspect-ratio: 229 / 118; background-size: 674.672489% 862.711864%; background-position: 26.063830% 45%; }
.achievements-hub [data-album-theme="bible"] .book-cover { background-size: 674.672489% 848.333333%; background-position: 26.063830% 60.022272%; }
.achievements-hub [data-album-theme="sea"] .book-cover { background-size: 674.672489% 848.333333%; background-position: 26.063830% 75.167038%; }
.achievements-hub .conquests-medal-summary::before {
  content: "";
  flex: 0 0 124px;
  width: 124px;
  height: 161px;
  border-radius: 18px;
  background: url("../assets/expedition/study-collection-desktop.png") 81.641168% 6.598407% / 1443.925234% 732.374101% no-repeat;
  box-shadow: 0 7px 12px #9c712033;
  pointer-events: none;
}
.achievements-hub .conquests-medal-summary > img { display: none; }
.achievements-hub .next-achievement-copy strong { color: var(--conquests-ink); }
@media (max-width: 760px) {
  .achievements-hub::before {
    height: min(75vw, 430px);
    background-image: linear-gradient(180deg, transparent 58%, var(--screen-cream, #faf5e8)), url("../assets/expedition/study-collection-mobile.png");
    background-size: 100% 100%, 100% auto;
    mask-image: linear-gradient(90deg, #000 0 18%, transparent 21% 95%, #000 97% 100%);
  }
  .achievements-hub .kids-heading { padding-inline: 8px; border-radius: 13px; background: linear-gradient(90deg, #fff7e6f0, #fff7e6b3 65%, transparent); }
  .achievements-hub .kids-heading h1 { color: var(--conquests-ink); }
  .achievements-hub .conquests-summary { min-height: 124px; gap: 18px; padding: 10px 13px 10px 9px; }
  .achievements-hub .conquests-journal {
    flex-basis: 106px;
    width: 106px;
    height: auto;
    aspect-ratio: 214 / 163;
    border-radius: 14px;
    /* Mobile illustrated chart: x230 y286 w214 h163. */
    background-image: url("../assets/expedition/study-collection-mobile.png");
    background-size: 398.598131% 1131.288344%;
    background-position: 35.993740% 17.013682%;
  }
  .achievements-hub .conquests-journal > span {
    width: 43px;
    height: 43px;
    right: -10px;
    border-radius: 50%;
    /* Complete clean temple seal: x501 y322 w163 h160; 53 starts below. */
    background-image: url("../assets/expedition/study-collection-mobile.png");
    background-size: 523.312883% 1152.5%;
    background-position: 72.608696% 19.121140%;
  }
  .achievements-hub.notebook-page .album-book { grid-template-columns: 83px minmax(0, 1fr) 28px; min-height: 98px; gap: 3px 10px; padding: 9px; }
  .achievements-hub.notebook-page .album-book .book-cover { width: 83px; height: 69px; }
  .achievements-hub.notebook-page .album-book:is([data-album-theme="books"], [data-album-theme="bible"], [data-album-theme="sea"]) .book-cover { height: auto; aspect-ratio: 227 / 177; background-image: url("../assets/expedition/study-collection-mobile.png"); }
  /* Mobile row illustrations: x46/45/45, y910/1126/1345, w224/227/227. */
  .achievements-hub [data-album-theme="books"] .book-cover { aspect-ratio: 224 / 177; background-size: 380.803571% 1041.807910%; background-position: 7.313196% 54.589082%; }
  .achievements-hub [data-album-theme="bible"] .book-cover { aspect-ratio: 227 / 181; background-size: 375.770925% 1018.784530%; background-position: 7.188498% 67.708960%; }
  .achievements-hub [data-album-theme="sea"] .book-cover { background-size: 375.770925% 1041.807910%; background-position: 7.188498% 80.683863%; }
  .achievements-hub .conquests-medal-summary::before {
    flex-basis: 108px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background-image: url("../assets/expedition/study-collection-mobile.png");
    background-size: 523.312883% 1152.5%;
    background-position: 72.608696% 19.121140%;
  }
}
@media (max-width: 350px) {
  .achievements-hub .conquests-summary { gap: 13px; padding-inline: 8px; }
  .achievements-hub .conquests-journal { flex-basis: 79px; width: 79px; height: auto; }
  .achievements-hub.notebook-page .album-book { grid-template-columns: 65px minmax(0, 1fr) 26px; gap: 3px 8px; }
  .achievements-hub.notebook-page .album-book .book-cover { width: 65px; height: 62px; }
  .achievements-hub.notebook-page .album-book > strong { font-size: 19px; }
}
@media (max-height: 700px) {
  .achievements-hub .conquests-summary { min-height: 96px; padding-block: 7px; }
  .achievements-hub .conquests-journal { flex-basis: 75px; width: 75px; height: auto; }
  .achievements-hub .conquests-medal-summary::before { flex-basis: 76px; width: 76px; height: 76px; }
  .achievements-hub .conquests-summary strong { font-size: 23px; }
}

/* The journal grows with its contents. Square legacy slots cannot protrude
   over later rows and hide their own centered illustration and copy. The
   document owns scrolling; there is no clipped, one-screen inner shelf. */
body:is([data-screen="collection"], [data-screen="trophies"])
  .kids-page.achievements-hub {
  height: auto;
  min-height: 240px;
  grid-template-rows: none;
  grid-auto-rows: auto;
  align-content: start;
  overflow: visible;
  gap: 16px;
  padding-block: 8px calc(var(--play-dock-height, 110px) + 24px);
}
.achievements-hub .kids-grid,
.achievements-hub.notebook-page .page-grid,
.achievements-hub .awards-library[open],
.achievements-hub .awards-library .award-grid {
  height: auto;
  max-height: none;
  overflow: visible;
  grid-template-rows: none;
  grid-auto-rows: minmax(min-content, auto);
  align-content: start;
  align-items: stretch;
}
.achievements-hub.notebook-page .page-grid {
  gap: 12px;
  padding: 3px 3px 10px;
  grid-auto-rows: auto;
}
.achievements-hub .album-slot.phrase-tile {
  aspect-ratio: auto;
  min-height: 174px;
  height: auto;
  align-self: stretch;
  padding: 28px 16px 18px;
  gap: 10px;
  border-radius: 18px;
  overflow: visible;
  color: var(--relic-ink, #053f43);
}
.achievements-hub .phrase-tile .tile-phrase,
.achievements-hub .phrase-tile .tile-caption,
.achievements-hub .phrase-tile > strong {
  position: relative;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.achievements-hub .phrase-tile .tile-caption {
  color: #716244;
  font: 700 13px/1.4 var(--body);
}
.achievements-hub .phrase-tile > strong {
  color: var(--relic-ink, #053f43);
  font: 600 19px/1.18 var(--heading);
}
.achievements-hub .tile-number { top: 9px; left: 12px; }

/* Three independent paper tabs. Selection belongs to a destination and has
   its own gold marker; there is no moving switch or shared sliding thumb. */
.achievements-hub .achievement-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.achievements-hub .achievement-tabs button[role="tab"] {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 9px 14px;
  border: 1px solid #caa360;
  border-radius: 15px 15px 8px 8px;
  color: #6a4c2c;
  background: linear-gradient(160deg, #fff9e8, #f7e0ad 83%);
  box-shadow: inset 0 2px #fffdf0, inset 0 -2px #d3ae6e44, 0 3px #b6874240;
  font: 600 16px/1.15 var(--heading);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.achievements-hub .achievement-tabs button[role="tab"] .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.achievements-hub .achievement-tabs button[role="tab"][aria-selected="true"] {
  color: #fff9e8;
  border-color: #176c72;
  background: linear-gradient(177deg, #20b9b3, #00868a 24%, #00616a 100%);
  box-shadow: inset 0 2px #a4f1dc99, inset 0 -2px #004e5780, 0 3px #8d682e66;
}
.achievements-hub .achievement-tabs button[role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 4px;
  height: 4px;
  border-radius: 5px;
  background: linear-gradient(#fff0ac, #f6c35b);
  box-shadow: 0 1px #a4752c;
}
.achievements-hub .achievement-tabs button[role="tab"]:active { transform: translateY(2px); }
.achievements-hub #achievement-panel { display: grid; gap: 16px; min-width: 0; }
.achievements-hub :is(button[role="tab"], .locked-card, .category-mode):focus-visible {
  outline: 3px solid #087d84;
  outline-offset: 4px;
}

/* A locked discovery remains visibly present and can explain its lock by
   touch or keyboard. It never advertises individual phrase play. */
.achievements-hub .phrase-tile.locked-card {
  cursor: not-allowed;
  opacity: 1;
  border-style: solid;
  border-color: #d0ae71;
  background: radial-gradient(ellipse at 50% 25%, #fffbe9 0%, #faedcf 65%, #f0d9ac);
  box-shadow: inset 0 2px #fffdf2, inset 0 0 0 3px #fff7df80, 0 3px #b68d4a40;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.achievements-hub .collection-lock {
  display: block;
  width: 72px;
  height: 78px;
  flex: 0 0 auto;
  object-fit: contain;
  transform-origin: 50% 68%;
  filter: drop-shadow(0 5px 3px #84602630);
  transition: transform 180ms cubic-bezier(.2,.8,.25,1), filter 180ms ease;
}
.achievements-hub .locked-card:active { transform: translateY(2px) scale(.99); }
.achievements-hub .locked-card.lock-feedback {
  border-color: #b27c26;
  box-shadow: inset 0 2px #fffdf2, inset 0 0 0 3px #ffdc7b, 0 3px #b68d4a55;
}
.achievements-hub .locked-card.lock-feedback .collection-lock {
  animation: collection-lock-rattle 460ms cubic-bezier(.2,.7,.25,1) both;
}
@keyframes collection-lock-rattle {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: translateY(-3px) rotate(-9deg) scale(1.08); }
  40% { transform: rotate(8deg) scale(1.06); }
  60% { transform: rotate(-5deg) scale(1.03); }
  80% { transform: rotate(3deg); }
}
#collection-lock-status {
  min-height: 22px;
  margin: 0;
  padding-inline: 4px;
  color: #5e654c;
  font: 800 13px/1.45 var(--body);
}
.achievements-hub .album-readonly-hint {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #dbbd82;
  border-radius: 15px;
  color: #5d654f;
  background: #fff8e5e8;
  font: 700 14px/1.45 var(--body);
}
.achievements-hub .tile-awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 10px;
  color: #996a24;
  font: 800 12px/1.3 var(--body);
}
.achievements-hub .tile-awards > span { display: inline-flex; align-items: center; gap: 4px; }
.achievements-hub .tile-awards .icon { width: 20px; height: 20px; flex: 0 0 auto; }

.achievements-hub .category-challenge {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #cba260;
  border-radius: 22px;
  color: var(--relic-ink, #053f43);
  background: radial-gradient(ellipse at 90% 0, #f7d78b66, transparent 70%), var(--collection-paper);
  box-shadow: inset 0 2px #fffdf0, inset 0 0 0 3px #fff8dd88, 0 4px #b58b4940;
}
.achievements-hub .category-challenge :is(h2, h3, p) { margin: 0; }
.achievements-hub details.category-challenge { display: block; padding: 0; }
.achievements-hub .category-challenge > summary {
  display: flex; align-items: center; gap: 10px; min-height: 64px;
  padding: 12px 16px; cursor: pointer; list-style: none;
}
.achievements-hub .category-challenge > summary::-webkit-details-marker { display: none; }
.achievements-hub .category-challenge > summary > span { min-width: 0; flex: 1; }
.achievements-hub .category-challenge > summary strong { display: block; font: 600 18px/1.2 var(--heading); }
.achievements-hub .category-challenge > summary small { display: block; margin-top: 3px; font: 800 12px/1.3 var(--body); color: #716244; }
.achievements-hub .category-challenge > summary > .icon { flex: 0 0 24px; }
.achievements-hub .category-challenge[open] > summary > .icon:last-child { rotate: 90deg; }
.achievements-hub .category-challenge-content { display: grid; gap: 14px; padding: 4px 18px 18px; }
.achievements-hub .category-challenge :is(h2, h3) { font: 600 25px/1.15 var(--heading); }
.achievements-hub .category-challenge p { color: #5b6758; font: 700 14px/1.45 var(--body); }
.achievements-hub .category-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}
.achievements-hub .category-summary > :is(img, .collection-lock) { width: 65px; height: 70px; }
.achievements-hub .category-summary > div { flex: 1 1 180px; min-width: 0; }
.achievements-hub .category-summary strong { display: block; font: 600 23px/1.15 var(--heading); }
.achievements-hub .category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: #755a30;
  font: 800 13px/1.35 var(--body);
}
.achievements-hub .category-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.achievements-hub .category-stats .icon { width: 20px; height: 20px; }
.achievements-hub .category-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.achievements-hub .category-mode {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 7px;
  padding: 13px 14px;
  border: 2px solid #ca9e4e;
  border-radius: 17px;
  color: #fff9e6;
  background: linear-gradient(177deg, #16b7af, #00838a 23%, #005a63);
  box-shadow: inset 0 2px #a0e7d480, inset 0 0 0 1px #fff0b444, 0 3px #88632c88;
  font: 600 18px/1.2 var(--heading);
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.achievements-hub .category-mode .icon { width: 24px; height: 24px; flex: 0 0 auto; }
.achievements-hub .category-mode :is(small, .mode-caption) { flex-basis: 100%; color: #e0f0d5; font: 800 12px/1.35 var(--body); }
.achievements-hub .category-mode:active { transform: translateY(2px) scale(.99); }
.achievements-hub .category-mode[aria-disabled="true"] {
  cursor: not-allowed;
  color: #78653f;
  border-color: #cab184;
  background: linear-gradient(150deg, #fff8e6, #edd9ad);
  box-shadow: inset 0 2px #fffcef, 0 3px #b18b4a33;
}
.achievements-hub .category-mode[aria-disabled="true"] :is(small, .mode-caption) { color: #786b50; }
@media (hover: hover) and (pointer: fine) {
  .achievements-hub .achievement-tabs button[role="tab"]:hover,
  .achievements-hub .category-mode:not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
    box-shadow: inset 0 2px #fff8dba0, 0 5px #a1793e66, 0 8px 14px #8a633b20;
  }
  .achievements-hub .locked-card:hover .collection-lock {
    transform: translateY(-3px) rotate(-4deg) scale(1.05);
    filter: drop-shadow(0 7px 4px #aa793445);
  }
  .achievements-hub .locked-card:hover { box-shadow: inset 0 2px #fffdf2, inset 0 0 0 3px #ffe5a3, 0 4px #b68d4a55; }
}
@media (max-width: 420px) {
  body:is([data-screen="collection"], [data-screen="trophies"]) .kids-page.achievements-hub { gap: 12px; }
  .achievements-hub .achievement-tabs { gap: 6px; }
  .achievements-hub .achievement-tabs button[role="tab"] {
    min-height: 62px;
    flex-direction: column;
    gap: 4px;
    padding: 8px 3px 12px;
    font-size: 14px;
  }
  .achievements-hub .achievement-tabs button[role="tab"] .icon { width: 19px; height: 19px; }
  .achievements-hub.notebook-page .page-grid { gap: 9px; }
  .achievements-hub .album-slot.phrase-tile { min-height: 170px; padding: 26px 10px 16px; }
  .achievements-hub .phrase-tile > strong { font-size: 18px; }
  .achievements-hub .phrase-tile .tile-phrase { font-size: 18px; }
  .achievements-hub .phrase-tile .tile-caption { font-size: 12px; }
  .achievements-hub .category-challenge { padding: 16px 13px; }
  .achievements-hub .category-mode-grid { gap: 9px; }
  .achievements-hub .category-mode { padding: 12px 8px; font-size: 17px; }
}
@media (max-width: 350px) {
  .achievements-hub .achievement-tabs button[role="tab"] { font-size: 13px; }
  .achievements-hub .category-mode-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .achievements-hub :is(button[role="tab"], .locked-card, .collection-lock, .category-mode) { transition: none; }
  .achievements-hub .locked-card.lock-feedback .collection-lock { animation: none; }
}

/* With "Ver selos e medalhas" open, kids-collection.css made the library a
   scroll container (overflow:auto, overscroll contained) with no range of its
   own, so a finger swipe that started on a seal or medal never reached the
   page and the tiles under the footer were unreachable. The library grows
   with its content; the page scrolls. */
.achievements-hub.achievements-page:has(.awards-library[open]) .awards-library {
  overflow: visible;
  overscroll-behavior: auto;
}
