/* Discoveries share the site palette and respect motion preferences. */
.rest-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px dashed var(--skin-line, #dce4ce);
  padding-top: 8px;
  margin-top: 10px;
}
.rest-cat > svg { width: 132px; height: 86px; flex: 0 0 auto; }
.rest-cat-body image { display: none; }
html:not([data-site-style="cyber"]):not([data-site-style="sketch"]) .rest-cat-body image[data-art-style="classic"],
html[data-site-style="cyber"] .rest-cat-body image[data-art-style="cyber"],
html[data-site-style="sketch"] .rest-cat-body image[data-art-style="sketch"] { display: block; }
.rest-cat p { margin: 0; min-width: 0; }
.rest-cat strong { display: block; color: var(--skin-text, #687b50); font-size: var(--type-12, 12px); }
.rest-cat p > span { display: block; color: var(--skin-muted, #7b886a); font-size: var(--type-10, 10px); line-height: 1.6; margin-top: 5px; }
.motion-enabled #workout.is-inview .rest-cat-body { animation: cat-breathe 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.motion-enabled #workout.is-inview .rest-cat-snooze { animation: cat-snooze 5s ease-in-out infinite; }
@keyframes cat-breathe { 50% { transform: scaleY(1.045); } }
@keyframes cat-snooze { 50% { transform: translateY(-3px); opacity: .5; } }
.secret-drawer {
  position: relative;
  margin: 21px 8px 0;
  border: 1.5px solid var(--skin-line, #d7dfc8);
  border-radius: var(--shape-12, 12px);
  background: var(--skin-soft, #edf0e3);
  box-shadow: 0 4px 0 var(--skin-depth, #d4ddc5);
}
.secret-drawer summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 16px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  color: var(--skin-text, #687b50);
  font-size: var(--type-11, 11px);
}
.secret-drawer summary::-webkit-details-marker { display: none; }
.secret-drawer summary > svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .3s; }
.secret-drawer[open] summary > svg { transform: rotate(180deg); }
.secret-drawer-handle { width: 29px; height: 8px; border: 2px solid var(--skin-art-gold-mid, #bda977); border-top: 0; border-radius: 0 0 5px 5px; }
.secret-drawer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid var(--skin-line, #d7dfc8);
  border-radius: 0 0 var(--shape-12, 12px) var(--shape-12, 12px);
  padding: 15px 12px 18px;
  background: var(--skin-paper, #fffaf0);
}
.secret-drawer-treasure { width: 135px; flex: 0 0 auto; }
.secret-drawer-treasure svg { display: block; width: 100%; height: auto; }
.secret-drawer-note { min-width: 0; }
.secret-drawer-note > span { display: block; font-size: var(--type-7, 7px); letter-spacing: 1px; color: var(--skin-muted, #8b967c); }
.secret-drawer-note strong { display: block; font-size: var(--type-15, 15px); color: var(--skin-text, #687b50); margin-top: 6px; }
.secret-drawer-note p { font-size: var(--type-11, 11px); line-height: 1.6; color: var(--skin-text, #687b50); margin: 7px 0; }
.secret-drawer-note small { font-size: var(--type-8, 8px); color: var(--skin-muted, #8b967c); }
.motion-enabled .secret-drawer[open] .secret-drawer-content { animation: drawer-open .55s var(--ease) both; }
@keyframes drawer-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 460px) {
  .rest-cat { gap: 6px; }
  .rest-cat > svg { width: 108px; height: 76px; }
  .secret-drawer-content { flex-direction: column; gap: 0; text-align: center; }
  .secret-drawer-treasure { width: 145px; }
  .secret-drawer-note > span { letter-spacing: .6px; }
}

.motion-paused :is(.rest-cat, .secret-drawer, .finger-toast, .note-secret, .weight-secret-dialog, .lucky-day-dialog, .collector-dialog),
.motion-paused :is(.rest-cat, .secret-drawer, .finger-toast, .note-secret, .weight-secret-dialog, .lucky-day-dialog, .collector-dialog) * {
  animation: none !important;
  transition: none !important;
}

.finger-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(360px, calc(100% - 28px));
  padding: 13px 18px;
  border: 1.5px solid var(--skin-line, #d7dfc8);
  border-radius: var(--shape-17, 17px);
  background: var(--skin-surface, #fffef9);
  box-shadow: 0 4px 0 var(--skin-depth, #d4ddc5), 0 10px 30px rgb(var(--skin-depth-rgb, 70 90 45) / .1);
  color: var(--skin-text, #607948);
  pointer-events: none;
}
.finger-toast-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: var(--shape-12, 12px); background: var(--skin-soft, #edf0e3); }
.finger-toast-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.finger-toast > span:last-child { min-width: 0; }
#finger-message { display: block; font-size: var(--type-12, 12px); line-height: 1.5; color: var(--skin-muted, #7b886a); }
.finger-toast.is-complete .finger-toast-icon { background: var(--skin-art-green-light, #e1edcf); }
.note-secret {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 20px;
  margin-top: 18px;
  border: 1.5px dashed var(--skin-art-gold-mid, #cfb579);
  border-radius: var(--shape-12, 12px);
  background: var(--skin-paper, #fff9e9);
  box-shadow: 0 4px 0 var(--skin-depth, #ece4cb);
}
.note-secret > div { min-width: 0; }
.note-secret-emblem { width: 48px; height: 58px; position: relative; flex: 0 0 auto; display: grid; place-items: center; color: var(--skin-art-gold-mid, #b19758); }
.note-secret-emblem svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.note-secret-emblem > span { position: absolute; top: -3px; right: -2px; font-size: 20px; }
.note-secret-label { display: block; font-size: var(--type-8, 8px); letter-spacing: 1.3px; color: var(--skin-muted, #8b967c); }
.note-secret strong { display: block; margin-top: 7px; font-size: var(--type-16, 16px); line-height: 1.4; color: var(--skin-text, #687b50); }
.note-secret p { margin: 9px 0 0; font-size: var(--type-12, 12px); line-height: 1.7; color: var(--skin-muted, #7b886a); }
.note-secret-signature { display: block; margin-top: 12px; font-size: var(--type-13, 13px); font-weight: 600; color: var(--skin-text, #687b50); }
@media (max-width: 460px) {
  .note-secret { flex-direction: column; align-items: flex-start; gap: 5px; padding: 18px; }
  .note-secret-emblem { height: 47px; }
}

:is(.weight-secret-dialog, .lucky-day-dialog, .collector-dialog) {
  width: calc(100% - 36px);
  max-width: 400px;
  max-height: calc(100dvh / var(--site-scale) - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 32px 24px 25px;
  border: 1.5px solid var(--skin-line, #d7dfc8);
  border-radius: var(--shape-24, 24px);
  background: var(--skin-surface, #fffef9);
  box-shadow: 0 6px 0 var(--skin-depth, #d4ddc5);
  color: var(--skin-text, #607948);
  text-align: center;
}
:is(.weight-secret-dialog, .lucky-day-dialog, .collector-dialog)::backdrop { background: rgb(var(--skin-deep-rgb, 38 58 47) / .55); backdrop-filter: blur(7px); }
:is(.weight-secret-dialog, .lucky-day-dialog, .collector-dialog)[open] { animation: dialog-in .35s var(--spring); }
.weight-secret-close, .lucky-day-close, .collector-close { position: absolute; right: 12px; top: 11px; }
.weight-secret-label, .lucky-day-label, .collector-label { display: block; font-size: var(--type-8, 8px); letter-spacing: 1.4px; color: var(--skin-muted, #8b967c); }
.weight-secret-art { width: 128px; height: 128px; display: grid; place-items: center; margin: 24px auto 15px; border-radius: 50%; background: var(--skin-paper, #fff9e9); }
.weight-secret-art img { display: none; width: 128px; height: 128px; object-fit: contain; }
html:not([data-site-style="cyber"]):not([data-site-style="sketch"]) .weight-secret-art img[data-art-style="classic"],
html[data-site-style="cyber"] .weight-secret-art img[data-art-style="cyber"],
html[data-site-style="sketch"] .weight-secret-art img[data-art-style="sketch"] { display: block; }
.weight-secret-reading { display: inline-block; padding: 5px 11px; border: 1px dashed var(--skin-art-gold-mid, #cfb579); border-radius: var(--shape-7, 7px); font-size: var(--type-11, 11px); color: var(--skin-text, #607948); }
:is(.weight-secret-dialog, .lucky-day-dialog, .collector-dialog) h2 { font-size: var(--type-25, 25px); line-height: 1.25; letter-spacing: -.5px; margin-top: 16px; }
:is(.weight-secret-dialog, .lucky-day-dialog, .collector-dialog) p { font-size: var(--type-12, 12px); line-height: 1.6; margin-top: 13px; color: var(--skin-muted, #7b886a); }
:is(.weight-secret-dialog, .lucky-day-dialog, .collector-dialog) .button { width: 100%; min-height: 44px; margin-top: 25px; font-size: var(--type-12, 12px); }

.weight-secret-art [hidden] { display: none !important; }

.lucky-day-trigger { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border-radius: inherit; font: inherit; color: inherit; }
.lucky-day-trigger:not(:disabled):hover { background: var(--skin-soft, #f0f5e9); color: var(--skin-accent, #628547); }
.lucky-day-number { display: grid; place-items: center; width: 104px; height: 104px; margin: 24px auto 15px; border-radius: 50%; background: var(--skin-paper, #fff9e9); color: var(--skin-art-gold-mid, #baa16a); font-size: var(--type-64, 64px); line-height: 1; font-weight: 700; }

.collector-dialog h2 { margin-top: 16px; }

.collector-art { width: 144px; height: 180px; margin: 18px auto 8px; }
.collector-art img { display: none; width: 100%; height: 100%; object-fit: contain; }
html:not([data-site-style="cyber"]):not([data-site-style="sketch"]) .collector-art img[data-art-style="classic"],
html[data-site-style="cyber"] .collector-art img[data-art-style="cyber"],
html[data-site-style="sketch"] .collector-art img[data-art-style="sketch"] { display: block; }
.collector-medal-name { display: block; color: var(--skin-art-gold-mid, #baa16a); font-size: var(--type-10, 10px); }
