#collection-screen, #home-screen { background: #101014; }
#collection-screen .brand-row { flex-basis: 58px; }
.collection-brand-icon { opacity: .75; }
.collection-intro { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px 20px; }
.collection-intro h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.3; font-weight: 800; }
.collection-intro p { margin: 0; color: #b3b3bf; font-size: 12px; line-height: 1.5; }
.collection-progress { flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.collection-progress > strong { color: #b7ff2a; font-size: 32px; line-height: 1; font-weight: 850; }
.collection-progress > span { color: #b3b3bf; font-size: 13px; }
.collection-progress small { display: block; color: #b3b3bf; margin-top: 7px; font-size: 10px; }
.collection-filters { display: grid; flex: 0 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 20px; padding: 3px; background: #24242b; border-radius: 8px; }
.collection-filters button { min-height: 44px; padding: 0 3px; border-radius: 5px; color: #b3b3bf; background: transparent; font-size: 12px; font-weight: 600; }
.collection-filters button[aria-selected="true"] { color: #101014; background: #b7ff2a; }
.collection-list-tools { display: flex; align-items: center; justify-content: space-between; flex: 0 0 43px; padding: 0 23px; font-size: 11px; color: #b3b3bf; }
.collection-list-tools label { display: flex; align-items: center; gap: 6px; min-height: 43px; cursor: pointer; }
.collection-list-tools input { margin: 0; width: 16px; height: 16px; accent-color: #b7ff2a; }
.collection-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 10px; scrollbar-width: thin; scrollbar-color: #474751 transparent; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.collection-item { display: flex; min-width: 0; flex-direction: column; padding: 0 10px 13px; color: #f7f7f2; background: #1c1c21; border: 1px solid #37373f; border-radius: 8px; text-align: left; }
.collection-item:focus-visible { outline: 2px solid #b7ff2a; outline-offset: -2px; }
.collection-item[hidden], .collection-empty[hidden], .collection-detail[hidden], .collection-mystery[hidden], .collection-discoverer[hidden], .collection-first[hidden], .collection-recipe[hidden] { display: none; }
.collection-tile-art { display: block; position: relative; width: 100%; aspect-ratio: 1.1; margin-bottom: 8px; }
.collection-number { position: absolute; left: 0; top: 10px; font-size: 8px; color: #90909f; z-index: 1; font-variant-numeric: tabular-nums; }
.collection-tile-art > img { position: absolute; inset: 20px 5px 19px; width: calc(100% - 10px); height: calc(100% - 39px); object-fit: contain; }
.collection-tile-state { position: absolute; left: 0; right: 0; bottom: 0; color: #b8c6ab; font-size: 9px; text-align: center; }
.collection-item-name { display: block; font-size: 14px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.collection-item-note { display: block; font-size: 10px; line-height: 1.5; color: #a6a6b3; margin-top: 4px; }
.collection-item.is-hidden-friend { border-color: #70516b; }
.collection-item.is-hidden-friend .collection-item-note { color: #f9a0ca; }
.is-locked .collection-tile-art > img, .is-silhouette { filter: brightness(0) invert(.38); }
.collection-mystery { position: absolute; inset: 0; display: grid; place-items: center; color: #e1dee5; font-size: 28px; font-weight: 850; }
.is-locked .collection-tile-state { color: #9d96a6; }
.collection-end { margin: 20px 0 8px; text-align: center; color: #858591; font-size: 11px; line-height: 1.6; }
.collection-empty { min-height: 300px; padding: 26px 0; text-align: center; }
.collection-empty > img { width: 120px; height: 130px; object-fit: contain; }
.collection-empty h3 { font-size: 20px; margin: 12px 0 8px; }
.collection-empty p { font-size: 12px; color: #b3b3bf; }
.collection-empty button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; background: #b7ff2a; color: #101014; border-radius: 8px; padding: 0 18px; font-size: 13px; font-weight: 700; }
.collection-empty button .icon { width: 20px; height: 20px; filter: brightness(0); }
#collection-screen .tabs, #home-screen .tabs { margin-top: 0; }
.collection-detail { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: #06060aa8; }
.collection-sheet { display: flex; flex-direction: column; width: 100%; max-height: calc(100% - 24px); border-radius: 8px 8px 0 0; background: #202026; box-shadow: 0 -10px 35px #0005; }
.collection-sheet-header { display: flex; flex: 0 0 49px; align-items: center; justify-content: space-between; padding: 0 12px 0 22px; border-bottom: 1px solid #36363f; }
.collection-sheet-header > span { font-size: 11px; color: #f9a0ca; }
.collection-sheet-header button { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; }
.collection-sheet-header .icon { width: 20px; height: 20px; }
.collection-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 20px; scrollbar-width: thin; }
.collection-detail-stage { position: relative; height: 174px; }
.collection-detail-art { position: absolute; inset: 10px 0 2px; margin: 0 auto; width: 220px; max-width: calc(100% - 40px); height: calc(100% - 12px); object-fit: contain; transform-origin: 50% 90%; }
.collection-detail-art:not(.is-silhouette) { animation: collection-idle 3.4s ease-in-out infinite; }
.collection-detail-art.art-radish { animation-name: collection-float; }
.collection-detail-art.art-spring { animation-name: camp-spring; }
.collection-detail-art.is-silhouette { animation: none; }
.collection-detail-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.collection-detail-heading h3 { margin: 0; font-size: 24px; line-height: 1.35; }
.collection-detail-heading > span { font-size: 11px; line-height: 1.5; color: #b7ff2a; }
.collection-detail-story { font-size: 13px; line-height: 1.8; color: #d3d1db; margin: 10px 0 14px; }
.collection-discoverer { margin: 17px -22px; padding: 16px 22px; border-left: 3px solid #f9a0ca; background: #2e2530; }
.collection-discoverer-heading { display: flex; align-items: center; gap: 10px; }
.collection-discoverer-heading img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.collection-discoverer-heading small { display: block; margin-bottom: 4px; font-size: 10px; color: #c9afc7; }
.collection-discoverer-heading strong { font-size: 12px; }
.collection-discoverer > p { color: #f5e1ee; font-size: 14px; font-weight: 600; line-height: 1.85; margin: 12px 0 2px; }
.collection-discoverer button { display: flex; align-items: center; gap: 6px; background: transparent; min-height: 44px; padding: 0; color: #f9a0ca; font-size: 11px; }
.collection-discoverer button .icon { width: 18px; height: 18px; }
.collection-first, .collection-clue { padding-top: 13px; margin-top: 13px; border-top: 1px solid #3b3b44; }
.collection-first > span, .collection-clue > span { color: #a9a6b4; font-size: 10px; }
.collection-first time { float: right; font-size: 10px; color: #b5b1bd; line-height: 20px; }
.collection-first p, .collection-clue p { font-size: 12px; line-height: 1.8; margin: 7px 0 0; color: #d5d2dd; }
.collection-recipe { margin-top: 18px; padding-top: 16px; border-top: 1px solid #41414b; }
.collection-recipe header { display: flex; align-items: center; gap: 12px; }
.collection-recipe header > img { width: 62px; height: 62px; object-fit: contain; }
.collection-recipe small { font-size: 10px; color: #b3b3bf; }
.collection-recipe h4 { font-size: 16px; margin: 5px 0 0; }
.collection-recipe ul { list-style: none; margin: 13px 0 0; padding: 0; }
.collection-recipe li { display: flex; align-items: center; gap: 9px; min-height: 44px; border-bottom: 1px solid #35353e; font-size: 12px; }
.collection-recipe li > img { width: 32px; height: 32px; object-fit: contain; }
.collection-recipe li > strong { margin-left: auto; color: #b7ff2a; font-size: 12px; font-variant-numeric: tabular-nums; }
.collection-recipe li.is-short > strong { color: #f9a0ca; }
.collection-sheet-actions { flex: 0 0 auto; padding: 14px 22px 25px; border-top: 1px solid #3b3b44; }
.collection-sheet-actions > p { margin: 0 0 11px; font-size: 12px; line-height: 1.6; color: #f9a0ca; }
.collection-sheet-actions > p:empty { display: none; }
.collection-sheet-actions > button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 8px 10px; border-radius: 8px; color: #101014; background: #b7ff2a; font-size: 16px; font-weight: 750; }
.collection-sheet-actions .icon { width: 24px; height: 24px; filter: brightness(0); }
.collection-sheet-actions > button:disabled { background: #414149; color: #b3b3bf; cursor: default; }
.collection-sheet-actions > button:disabled .icon { filter: none; opacity: .5; }
.home-header { padding: 3px 24px 16px; flex: 0 0 auto; }
.home-header h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
.home-header p { margin: 0; color: #f9a0ca; font-size: 12px; line-height: 1.5; }
.home-scene { position: relative; isolation: isolate; flex: 1 1 auto; min-height: 230px; overflow: hidden; background: #899675; }
.home-object { position: absolute; padding: 0; min-width: 44px; min-height: 44px; background: transparent; }
.home-object[hidden] { display: none; }
.home-object img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 90%; filter: drop-shadow(2px 5px 3px #15151e4d); animation: collection-idle 4s ease-in-out infinite; }
.home-object:focus-visible { outline: 1px solid #fff; border-radius: 8px; }
.home-object-amu { left: 36%; top: 63%; width: 28%; height: 32%; z-index: 5; }
.home-workout-art { display: block; position: relative; width: 100%; aspect-ratio: 1; filter: drop-shadow(2px 5px 3px #15151e4d); }
.home-object-amu img { display: block; animation: none; filter: none; }
.home-workout-motion { display: none; position: absolute; inset: 0; background-size: 4900% 100%; background-repeat: no-repeat; animation: home-workout-curl 3.2s steps(48) infinite; }
.home-workout-ready img { visibility: hidden; }
.home-workout-ready .home-workout-motion { display: block; }
/* The strip ends with a duplicate first frame for an exact 48-step loop. */
@keyframes home-workout-curl { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .home-workout-ready img { visibility: visible; }
  .home-workout-ready .home-workout-motion { display: none; }
}
.home-object-radish { left: 8%; top: 24%; width: 24%; height: 28%; z-index: 2; }
.home-object-radish img { animation-name: collection-float; }
.home-object-anu { left: 67%; top: 34%; width: 24%; height: 28%; z-index: 3; }
.home-object-fountain { left: 2%; top: 54%; width: 34%; height: 31%; z-index: 3; }
.home-object-chair { left: 66%; top: 65%; width: 29%; height: 29%; z-index: 4; }
.home-object-sign { left: 66%; top: 4%; width: 24%; height: 24%; z-index: 2; }
.home-footer { flex: 0 0 auto; padding: 11px 22px 12px; }
.home-footer p { font-size: 11px; text-align: center; color: #b3b3bf; line-height: 1.5; margin: 0 0 9px; }
.home-welcome { padding-left: 11px; margin-bottom: 13px; border-left: 2px solid #f9a0ca; }
.home-welcome strong { display: block; color: #f9a0ca; font-size: 14px; line-height: 1.5; font-weight: 650; }
.home-welcome p { margin: 4px 0 0; color: #d1d1d9; font-size: 12px; text-align: left; line-height: 1.6; }
.home-footer > button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; width: 100%; border-radius: 8px; background: #292930; border: 1px solid #4c4c56; color: #f7f7f2; font-size: 14px; font-weight: 600; }
.home-footer .icon { width: 21px; height: 21px; }
@keyframes collection-idle { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg) translateY(-2px); } }
@keyframes collection-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.paused :is(#collection-screen, #home-screen) *, .document-hidden :is(#collection-screen, #home-screen) *, :is(#collection-column, #home-column)[hidden] * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { :is(#collection-screen, #home-screen) * { animation: none !important; } }
@media (max-height: 740px) {
  body.export #collection-screen .brand-row { flex-basis: 50px; }
  body.export .collection-intro { padding-top: 4px; padding-bottom: 14px; }
  body.export .collection-intro h2 { font-size: 23px; }
  body.export .collection-detail-stage { height: 142px; }
  body.export .home-header { padding-bottom: 10px; }
  body.export .home-header h2 { font-size: 21px; }
  body.export .home-scene { min-height: 190px; }
}
@media (max-height: 620px) {
  body.export :is(#collection-screen, #home-screen) .statusbar { flex-basis: 36px; }
  body.export :is(#collection-screen, #home-screen) .island { display: none; }
  body.export .collection-intro h2 { font-size: 21px; }
  body.export .collection-intro { padding-left: 20px; padding-right: 20px; }
  body.export .collection-progress > strong { font-size: 29px; }
  body.export .collection-detail-stage { height: 128px; }
  body.export .collection-sheet-actions { padding-top: 10px; padding-bottom: 18px; }
  body.export .home-scene { min-height: 175px; }
  body.export .home-header h2 { font-size: 19px; }
}
