/* v13 (DESIGN_V13.md): tester feedback — wardrobe order, endless mode, mines difficulty, earned today, viewer */

/* §7 wardrobe: one rarity per row group, worn item framed in place */
.wd-rar { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; margin: 6px 2px -2px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--rc); }
.wd-rar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.wd-rar:first-child { margin-top: 0; }
.wd-cell.worn .item-art { box-shadow: 0 0 0 2px var(--amber), 0 0 14px rgba(226, 166, 91, .45); }

/* §1/§2/§8 games sheet: card = cover + text + two buttons (Play · ∞ Endless) */
.gm-card { cursor: pointer; }
.gm-txt .gm-reward { margin-top: 6px; }
.gm-foot { gap: 6px; justify-content: flex-start; }
.gm-play, .gm-endless { border: 0; font-family: inherit; cursor: pointer; }
.gm-endless { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800;
  color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--line-strong); }
.gm-endless b { font-size: 17px; line-height: 1; color: #bff0d3; font-weight: 800; }
.gm-endless:active, .gm-play:active { transform: scale(.96); }
.gm-best { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--amber); }
.gm-best .ic { width: 13px; height: 13px; }
.gm-cover.drawn { background: #22342a; }
.gm-cover.drawn::after { display: none; }
.gm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gm-cover-plane { background-color: #8fb5a6; }
.gv-title .gv-inf { color: #bff0d3; font-weight: 800; margin-left: 2px; }

/* §2 mines difficulty picker */
.mines-pick-sheet h2 { margin-right: 44px; }
.mn-diffs { display: grid; gap: 8px; padding-bottom: 6px; }
.mn-diff { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 16px;
  background: var(--panel-raise); border: 1px solid var(--line); }
.mn-diff:active { background: rgba(255, 255, 255, .08); }
.md-grid { width: 46px; height: 46px; flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.md-grid i { border-radius: 2px; background: #7fb35c; }
.d-medium .md-grid i:nth-child(3n) { background: #c8402e; }
.d-hard .md-grid i:nth-child(2n) { background: #c8402e; }
.d-easy .md-grid i:nth-child(5n) { background: #c8402e; }
.md-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.md-txt b { font-size: 16px; font-weight: 800; }
.md-txt small { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.md-mult { display: flex; flex-direction: column; align-items: flex-end; font-size: 20px; font-weight: 800; color: var(--amber); }
.md-mult small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #bff0d3; }
.md-mult .jade-svg, .md-mult .jade-img { width: 14px; height: 14px; }

/* §1 endless result */
.gv-card.endless .gv-score { font-size: 18px; font-weight: 800; color: var(--text); }

/* §4 plane */
.game-plane { background: #a9c8bb; }
.game-plane .gv-body { padding: 0; }
.plane-g { position: absolute; inset: 0; }
.plane-cv { display: block; width: 100%; height: 100%; touch-action: none; }

/* §5 panda close-up viewer */
.viewer { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; overflow: hidden; touch-action: none;
  background: radial-gradient(90% 70% at 50% 45%, rgba(48, 70, 52, .96), rgba(8, 12, 10, .98)); opacity: 0; transition: opacity .28s var(--ease-out); }
.viewer.on { opacity: 1; }
.vw-glow { position: absolute; width: 90vmin; height: 90vmin; border-radius: 50%; background: radial-gradient(circle, rgba(226, 166, 91, .22), transparent 65%); pointer-events: none; }
.vw-stage { position: relative; width: min(92vw, 520px); aspect-ratio: 1; transition: transform .12s ease-out; will-change: transform; }
.vw-stage .pfig { animation: breathe 4.2s ease-in-out infinite; }
.vw-name { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 96px); text-align: center; pointer-events: none; }
.vw-name b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.vw-name small { font-size: 13px; font-weight: 600; color: var(--text-2); }
.vw-tools { position: absolute; left: 50%; bottom: calc(var(--sab) + 28px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 6px; border-radius: 99px; background: rgba(10, 14, 11, .7); border: 1px solid var(--line-strong); }
.vw-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--panel-raise); border: 1px solid var(--line); }
.vw-btn .ic { width: 20px; height: 20px; }
.vw-z { min-width: 40px; text-align: center; font-weight: 800; }
.vw-x { position: absolute; top: calc(var(--sat) + 14px); right: calc(14px + var(--tg-right)); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: rgba(10, 14, 11, .7); border: 1px solid var(--line-strong); }
.vw-x .ic { width: 18px; height: 18px; }
/* card buttons: two equal-ish columns that always fit the text column */
.gm-card .gm-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px; width: 100%; }
.gm-card .gm-play, .gm-card .gm-endless { justify-content: center; min-width: 0; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.gm-card .gm-endless { font-size: 12px; gap: 4px; }
.gm-card .gm-endless b { font-size: 16px; }

/* ================================================================== v13.1: motion everywhere (transform/opacity, 150–350 ms) */
@keyframes v131-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes v131-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes v131-bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* staggered appear of cards and list rows (first 8 get a delay, the rest come with the last) */
.gm-card, .task, .adm-row, .home-card, .wd-cell, .help-item, .pack, .mn-diff, .adm-card, .fr-table tr, .top-row, .home-list > * {
  animation: v131-in .3s var(--ease-out) both;
}
:is(.gm-list, .free-list .tasks, .adm-list, .home-list, .wd-grid, .help-list, .packs, .mn-diffs, .adm-cards) > :nth-child(2) { animation-delay: .03s; }
:is(.gm-list, .free-list .tasks, .adm-list, .home-list, .wd-grid, .help-list, .packs, .mn-diffs, .adm-cards) > :nth-child(3) { animation-delay: .06s; }
:is(.gm-list, .free-list .tasks, .adm-list, .home-list, .wd-grid, .help-list, .packs, .mn-diffs, .adm-cards) > :nth-child(4) { animation-delay: .09s; }
:is(.gm-list, .free-list .tasks, .adm-list, .home-list, .wd-grid, .help-list, .packs, .mn-diffs, .adm-cards) > :nth-child(5) { animation-delay: .12s; }
:is(.gm-list, .free-list .tasks, .adm-list, .home-list, .wd-grid, .help-list, .packs, .mn-diffs, .adm-cards) > :nth-child(6) { animation-delay: .15s; }
:is(.gm-list, .free-list .tasks, .adm-list, .home-list, .wd-grid, .help-list, .packs, .mn-diffs, .adm-cards) > :nth-child(7) { animation-delay: .18s; }
:is(.gm-list, .free-list .tasks, .adm-list, .home-list, .wd-grid, .help-list, .packs, .mn-diffs, .adm-cards) > :nth-child(n+8) { animation-delay: .21s; }

/* press feedback on every tappable control */
.tk-btn, .chip-btn, .pp-link, .hud-ic, .rank, .jade-pill, .tr-pill, .gm-play, .gm-endless, .mn-diff, button.adm-row, .home-card.mine, .hc-btn,
.mn-mode, .adm-tab, .adm-seg button, .vw-btn, .gv-x, .sheet-x, .wd-cell, .pack, .nav-btn, .bar-btn, .bar-main, .quit-link {
  transition: transform .14s var(--ease), background-color .2s, color .2s, opacity .2s;
}
:is(.tk-btn, .chip-btn, .pp-link, .hud-ic, .rank, .jade-pill, .tr-pill, .gm-play, .gm-endless, .mn-diff, button.adm-row, .home-card.mine, .hc-btn,
.mn-mode, .adm-tab, .adm-seg button, .vw-btn, .gv-x, .sheet-x, .wd-cell, .pack, .quit-link):active:not(:disabled) { transform: scale(.95); }

/* bottom nav: the active pill and its indicator slide in */
#bar .nav-btn { transition: transform .14s var(--ease), background-color .25s var(--ease-out), color .25s; }
#bar .nav-btn:active { transform: scale(.92); }
#bar .nav-btn::after { content: ''; position: absolute; top: 3px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 9px;
  background: var(--amber); transform: scaleX(0); opacity: 0; transition: transform .25s var(--ease-out), opacity .2s; }
#bar .nav-btn.on::after { transform: scaleX(1); opacity: 1; }
#bar .nav-btn .ic { transition: color .25s, transform .25s var(--ease-out); }

/* numbers: a small bump whenever a game score / counter changes */
.gv-stat.bump .gv-chip { animation: v131-bump .3s var(--ease-out); }
.gv-chip.pts .ic { color: var(--amber); }

/* wardrobe: the freshly worn item pops; result & reward pop already animate (gv-pop) */
.wd-cell.worn .item-art { animation: v131-pop .35s var(--ease-out); }
.wd-worn { animation: v131-pop .35s var(--ease-out); }

/* screen transitions: leaving the valley / catalog / solo fades the app out before the reload */
#app { transition: opacity .22s var(--ease); }
body.leaving #app { opacity: 0; }
.home { transform: translateY(8px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.home.on { transform: none; }

/* mines difficulty picker: options rise in one by one; the chosen one pulses, the others fade */
.mn-diffs.picked .mn-diff:not(.chosen) { opacity: .35; transform: scale(.97); transition: opacity .2s, transform .2s; }
.mn-diff.chosen { border-color: var(--amber); background: var(--amber-soft); animation: v131-pop .32s var(--ease-out); }
.mn-diff.chosen .md-txt b { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .gm-card, .task, .adm-row, .home-card, .wd-cell, .help-item, .pack, .mn-diff, .adm-card, .home-list > * { animation: none !important; }
  body.leaving #app { transition: none; }
}

/* ================================================================== v13.2 */
/* responsive camera: a blurred copy of the valley behind the canvas fills the edges on wide screens */
#stage { background: #16231a; }
#stage::before { content: ''; position: absolute; inset: -40px; background: url('../assets/bg/reserve.webp') center 72% / cover no-repeat;
  filter: blur(22px) brightness(.55) saturate(.85); pointer-events: none; }
#stage canvas { position: relative; z-index: 1; }
body.night #stage::before { filter: blur(22px) brightness(.32) saturate(.7) hue-rotate(10deg); }

/* tap-zoom: the panda card is compact so the close-up above it stays visible */
.card .view-big { display: none; }
.card.compact .bars, .card.compact .social-hint, .card.compact .chips { display: none; }
.card.compact .portrait { width: 64px; height: 64px; border-radius: 14px; }
.card.compact .card-head { gap: 10px; align-items: center; }
.card.compact .ident .name { font-size: 19px; }
.card.compact .id-links { gap: 0 10px; }
.card.compact .id-links .pp-link { margin-top: 3px; font-size: 11.5px; }
.card.compact .qring { width: 56px; height: 56px; }
.card.compact .view-big { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin: 10px 0 2px;
  border-radius: 14px; font-weight: 800; font-size: 15px; color: var(--text); background: rgba(0, 0, 0, .28); border: 1px solid var(--line-strong);
  transition: transform .14s var(--ease), background-color .2s; }
.card.compact .view-big .ic { width: 20px; height: 20px; color: var(--amber); }
.card.compact .view-big:active { transform: scale(.97); background: var(--amber-soft); }
.card.compact .actions { margin-top: 8px; }
/* close-up: the scene above the compact card stays interactive (pan, pinch, tap the ground to leave) */
body.pz #backdrop { opacity: 0 !important; pointer-events: none !important; }
/* v13.3 fitted clothing: an overlay image with exactly the panda image's box */
.pfig .wimg { position: absolute; left: 6%; bottom: 6%; width: 88%; height: 88%; object-fit: contain; object-position: 50% 100%; pointer-events: none; }
/* v15b: room above the head for a tall hat in small clipped frames */
.wd-preview .pfig.tall .pimg, .wd-preview .pfig.tall .wimg, .portrait .pfig.tall .pimg, .portrait .pfig.tall .wimg,
.v-portrait .pfig.tall .pimg, .v-portrait .pfig.tall .wimg { height: 70%; }

/* v13.4: the shell can't be scrolled at all — not by scrollIntoView, focus or the keyboard (overflow: clip is not a
   scroll container; hidden stays as the fallback for old WebViews, where the JS guard in ui.js resets it). */
html, body { position: fixed; inset: 0; width: 100%; height: 100%; }
#app, #sheets { overflow: hidden; overflow: clip; }

/* v14: AdsGram Task («partner tasks, ads») — a card like our tasks; the SDK component reads the CSS vars */
.adtask-sec[hidden], .adt-body[hidden], .adt-note[hidden] { display: none; }
adsgram-task.adt {
  display: block; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--panel-raise); border: 1px solid var(--line);
  color: var(--text); font-family: inherit;
  --adsgram-task-font-size: 14px; --adsgram-task-icon-size: 38px; --adsgram-task-icon-title-gap: 10px;
  --adsgram-task-icon-border-radius: 11px; --adsgram-task-button-width: 92px;
}
.adt-btn { cursor: pointer; user-select: none; -webkit-user-select: none; }
.adt-btn.adt-done { color: var(--text-3); background: transparent; border-color: var(--line) !important; cursor: default; }
.adt-mock .adt-sub { color: var(--text-3); font-weight: 600; }
.adt-note { margin: 0; padding: 12px 4px; text-align: center; color: var(--text-3); font-weight: 600; font-size: 13px; line-height: 1.4; }

/* v15 §2: skin placeholder until the recoloured art exists (classic sprite + hue filter) */
.pfig.skin-ph .pimg { filter: var(--skin-filter, none); }

/* ---------------------------------------------------------------- v15 §2: wheel tabs, skin case, collection */
.w-tabs { display: flex; gap: 4px; padding: 4px; margin: 4px 0 10px; border-radius: 13px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.w-tabs[hidden] { display: none; }
.w-tabs button { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font: inherit; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.w-tabs button .ic { width: 17px; height: 17px; }
.w-tabs button.on { background: var(--panel-raise); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.w-tabs button.on .ic { color: var(--amber); }
.wheel-sheet .case-pane[hidden], .wheel-sheet .wheel-pane[hidden], .wheel-sheet .w-lead[hidden] { display: none; }

.sc-stage { --rc: rgba(236, 226, 205, .25); position: relative; height: 236px; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 80% at 50% 70%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), var(--panel-raise);
  border: 1px solid color-mix(in srgb, var(--rc) 45%, var(--line)); transition: border-color .3s; }
.sc-glow { position: absolute; left: 50%; bottom: 30px; width: 60%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(8px); }
.sc-fig { position: absolute; inset: 8px 12% 34px; }
.sc-fig .pfig { position: absolute; inset: 0; }
.sc-name { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; align-items: baseline; gap: 8px; font-size: 14px; }
.sc-name small { font-weight: 700; font-size: 12px; }
.sc-actions { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; margin: 8px 0 2px; }
.sc-worn, .sc-locked { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--text-2); }
.sc-worn .ic, .sc-locked .ic { width: 16px; height: 16px; color: var(--amber); }
.sc-open { width: 100%; margin-top: 4px; }
.sc-open .ic { width: 20px; height: 20px; }
.sc-open[hidden] { display: none; }
.sc-open.poor { opacity: .7; }
.sc-hint { text-align: center; color: var(--text-3); font-size: 12.5px; font-weight: 600; margin: 8px 0 0; line-height: 1.4; }
.sc-hint.done { color: var(--amber); font-size: 14px; font-weight: 800; padding: 10px 0; }
.shop-sec .sc-count { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--text-3); }

.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sk-card { --rc: var(--line-strong); position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px;
  border-radius: 14px; background: var(--panel-raise); border: 1px solid var(--line); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--rc) 70%, transparent);
  color: var(--text); font: inherit; min-width: 0; }
.sk-card.sel { border-color: var(--amber); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--rc) 70%, transparent), 0 0 0 1px var(--amber); }
.sk-card .sk-n { font-size: 11.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-card.locked .sk-n { color: var(--text-3); }
.sk-on { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #1b140c; }
.sk-on .ic { width: 12px; height: 12px; }
.sk-thumb { position: relative; width: 64px; height: 56px; display: grid; place-items: center; }
.sk-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sk-thumb.ph img { filter: var(--skin-filter, none); }
.sk-thumb.locked img { filter: brightness(0) opacity(.35); }
.sk-thumb.locked b { position: absolute; font-size: 22px; font-weight: 800; color: var(--text-2); }
.sc-odds { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 4px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.sc-odds b { color: var(--text-2); }
.sc-odds span { display: inline-flex; align-items: center; gap: 5px; }
.sc-odds i { width: 8px; height: 8px; border-radius: 50%; }

/* the reel (CS-style): cards slide under a centre marker and slow down on the prize */
.sc-reel { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.sc-reel[hidden] { display: none; }
.sc-strip { display: flex; gap: 8px; padding: 0 8px; will-change: transform; }
.sc-strip .rc { --rc: var(--line-strong); flex: none; width: 96px; height: 132px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, var(--panel-raise)), var(--panel-raise)); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent);
  box-shadow: inset 0 -4px 0 var(--rc); font-size: 11.5px; font-weight: 700; color: var(--text); }
.sc-strip .rc .sk-thumb { width: 78px; height: 74px; }
.sc-strip .rc.win { transform: scale(1.06); box-shadow: inset 0 -4px 0 var(--rc), 0 0 22px color-mix(in srgb, var(--rc) 70%, transparent); transition: transform .3s var(--ease-out), box-shadow .3s; }
.sc-mark { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; transform: translateX(-50%); background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px var(--amber); }
.sc-mark::before, .sc-mark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 7px solid transparent; }
.sc-mark::before { top: -4px; border-top-color: var(--amber); }
.sc-mark::after { bottom: -4px; border-bottom-color: var(--amber); }

/* the prize reveal */
.sc-reveal { --rc: var(--amber); position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; background: rgba(6, 9, 7, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.sc-reveal[hidden] { display: none; }
.sc-reveal.on { opacity: 1; }
.sr-card { width: min(320px, 100%); padding: 16px 16px 14px; border-radius: 20px; text-align: center; background: #18201a;
  border: 2px solid var(--rc); box-shadow: 0 0 34px color-mix(in srgb, var(--rc) 45%, transparent), inset 0 0 40px color-mix(in srgb, var(--rc) 14%, transparent);
  transform: scale(.92); transition: transform .35s var(--ease-out); }
.sc-reveal.on .sr-card { transform: none; }
.sr-new { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); }
.sr-fig { position: relative; height: 200px; margin: 6px 0 4px; }
.sr-fig .pfig { position: absolute; inset: 0; }
.sr-name { display: block; font-size: 19px; font-weight: 800; }
.sr-rar { display: block; margin-top: 2px; font-weight: 700; color: var(--rc); }
.sr-btns { display: flex; gap: 8px; margin-top: 14px; }
.sr-btns .big-btn { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- v17 §2: player feedback */
.hud-ic.fb-ic .ic { width: 17px; height: 17px; }
#loader.fb-under { z-index: 9; }                 /* the feedback sheet (z 11) opens above the error screen */
.loader-inner .fb-report { color: var(--text-2); background: none; border: 0; font: inherit; font-weight: 700; font-size: 14px;
  margin-top: 14px; padding: 8px 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 226, 205, .35); }

.fb-big { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 12px 12px 12px 12px; text-align: left; font: inherit; color: var(--text);
  border-radius: 16px; border: 1px solid rgba(226, 166, 91, .45); background: linear-gradient(180deg, rgba(226, 166, 91, .16), rgba(226, 166, 91, .06)); }
.fb-big .fbb-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #1b140c; background: linear-gradient(180deg, #ebb46c, var(--amber)); }
.fb-big .fbb-ic .ic { width: 22px; height: 22px; }
.fb-big .fbb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fb-big .fbb-t b { font-size: 15.5px; }
.fb-big .fbb-t small { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.fb-big > .ic { width: 18px; height: 18px; color: var(--amber); flex: none; }
.fb-big:active { transform: scale(.99); }

.fb-sheet .fb { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.fb h2 .ic { width: 22px; height: 22px; color: var(--amber); }
.fb-body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.fb-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-kind { height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-raise); color: var(--text-2); font: inherit; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.fb-kind .fk-e { font-size: 17px; line-height: 1; }
.fb-kind.on { color: var(--text); border-color: var(--amber); background: var(--amber-soft); box-shadow: 0 0 0 1px var(--amber) inset; }
.fb-field { position: relative; display: block; }
.fb-text { display: block; width: 100%; box-sizing: border-box; min-height: 128px; resize: vertical; padding: 12px 12px 26px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .22); color: var(--text); font: inherit; font-size: 15px; line-height: 1.45; user-select: text; -webkit-user-select: text; }
.fb-text:focus { outline: none; border-color: var(--amber); }
.fb-text::placeholder { color: var(--text-3); }
.fb-count { position: absolute; right: 10px; bottom: 7px; font-size: 11.5px; font-weight: 700; color: var(--text-3); pointer-events: none; }
.fb-count.warn { color: var(--amber); }
.fb-row { display: flex; gap: 8px; }
.fb-attach[hidden] { display: none; }
.fb-attach { height: 38px; }
.fb-preview { position: relative; align-self: flex-start; max-width: 62%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); }
.fb-preview[hidden] { display: none; }
.fb-preview img { display: block; max-width: 100%; max-height: 180px; object-fit: contain; }
.fb-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .6); }
.fb-x .ic { width: 15px; height: 15px; }
.fb-tech { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fb-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.fb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-check i { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.fb-check input:checked + i { background: var(--amber); border-color: var(--amber); }
.fb-check input:checked + i::after { content: ""; width: 9px; height: 5px; border: 2px solid #1b140c; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.fb-check input:focus-visible + i { outline: 2px solid var(--amber); outline-offset: 2px; }
.fb-more { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--amber); }
.fb-more::after { content: " ▾"; }
.fb-more.open::after { content: " ▴"; }
.fb-tech-list { margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.fb-tech-list[hidden] { display: none; }
.fb-tech-list dt { color: var(--text-3); font-weight: 700; }
.fb-tech-list dd { margin: 0; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.fb-err { color: #f0a08b; font-size: 13px; font-weight: 600; text-align: center; min-height: 0; }
.fb-err:empty { display: none; }
.fb-send { width: 100%; }
.fb-send.busy { opacity: .7; }
.fb-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 8px 8px; gap: 4px; animation: fb-in .5s var(--ease-out) both; }
.fb-thanks .big-btn { margin-top: 14px; min-width: 160px; }
.fb-heart { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #f3a3a3; background: radial-gradient(circle, rgba(243, 163, 163, .22), transparent 70%);
  animation: fb-heart 1.6s ease-in-out .3s infinite; }
.fb-heart .ic { width: 40px; height: 40px; fill: currentColor; }
@keyframes fb-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fb-heart { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .fb-thanks, .fb-heart { animation: none; } }

/* admin «Отзывы» */
.fb-filter { flex-wrap: wrap; }
.fbl { display: flex; flex-direction: column; gap: 10px; }
.fbc { padding: 12px; border-radius: 14px; background: var(--panel-raise); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.fbc.st-new { border-color: rgba(226, 166, 91, .5); }
.fbc.st-done, .fbc.st-rejected { opacity: .78; }
.fbc-head { display: flex; align-items: center; gap: 8px; }
.fbc-kind { font-size: 18px; line-height: 1; }
.fbc-head small { margin-left: auto; color: var(--text-3); font-weight: 600; font-size: 12px; }
.fbc-badge.new { color: var(--amber); }
.fbc-badge.done { color: #8fd3a8; }
.fbc-badge.rejected { color: #f0a08b; }
.fbc-who { font-size: 12.5px; color: var(--text-2); font-weight: 600; word-break: break-word; }
.fbc-text { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; }
.fbc-ctx { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.fbc-ctx dt { color: var(--text-3); font-weight: 700; }
.fbc-ctx dd { margin: 0; color: var(--text-2); word-break: break-word; }
.fbc-errs { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.fbc-img img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--line); }
.fbc-img:empty { display: none; }
.fbc > .chip-btn { align-self: flex-start; }
.fbc-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.fbc-st.on { border-color: var(--amber); color: var(--amber); opacity: 1; }
.fbc-line { display: flex; gap: 6px; align-items: flex-start; }
.fbc-line .adm-in { flex: 1; min-width: 0; }
.fbc-line .chip-btn { height: 38px; }
.fbc-reply { resize: vertical; min-height: 38px; font: inherit; }
.fbc-amt { max-width: 110px; }

/* v15c: the item's back layer (ring interior, far arc) lies under the panda image — no drop shadow on it */
.pfig .eq.eqb { filter: none; }
/* v15d: redrawn item patches (sprite pixel space, positioned by anchors.js) */
.pfig .ptimg { position: absolute; pointer-events: none; max-width: none; }
/* v15c: the panda card thumbnail frames the head with its clothes (anchors.js frameHead sets the box) */
.portrait .pfig.pf-head { animation: none; }
/* v15c: the figure is measured right after its box changes (anchors.js) — never let it transition (with reduced motion
   app.css gives every element a tiny transition-duration, so a resized figure reported its old size) */
.pfig, .pfig * { transition-property: none !important; }
