/* v57.52 老玩家回饋卡 (feedback.js): the follow card's gold panel and jade/navy plates; the player's own numbers on three small plates, a 1–5
   row of gold coins, a paper-coloured box. The measured foot leaves the select actions below it; the docked 聊天室 keeps its own column. */
#fb{position:absolute;inset:0;z-index:20;display:grid;grid-template-rows:minmax(0,1fr);place-items:center;padding:calc(var(--top) + 12px) 16px var(--fb-foot,96px)}
#fb.hidden{display:none}
body.gchat-dock #fb{right:var(--gchat-w)}
.fb-scrim{position:absolute;inset:0;background:#06151dcc}
.fb-card{position:relative;width:min(100%,380px);min-height:0;max-height:100%;overflow:auto;touch-action:pan-y;overscroll-behavior:contain;padding:40px 14px 16px;border:20px solid transparent;border-image:url(ui/panel.webp) 16% fill/20px/0 stretch;border-image-source:image-set(url(ui/panel.avif) type("image/avif"),url(ui/panel.webp) type("image/webp"));filter:drop-shadow(0 12px 30px #000b);text-align:center}
.fb-badge{display:inline-block;margin:0 0 8px;padding:3px 12px;border-radius:999px;background:linear-gradient(#ffe9a8,#e0b452);color:#5a3300;font-size:12px;font-weight:900;letter-spacing:.12em;box-shadow:0 2px 0 #6b3f00}
#fb h2{margin:0 0 12px;font-size:23px;line-height:1.3;font-weight:900;font-style:italic;color:#ffe9a8;text-shadow:0 3px 0 #6b3f00,0 0 3px #000;overflow-wrap:anywhere}
.fb-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}
.fb-stat{padding:6px 4px;border:2px solid #c9a24a;border-radius:6px;background:#0c1f33cc}
.fb-stat b{display:block;font-size:22px;line-height:1.1;font-weight:900;color:#ffe9a8;font-variant-numeric:tabular-nums}
.fb-stat span{display:block;font-size:12px;font-weight:800;color:#cfe3ee}
#fb-text,.fb-thanks p{margin:0 0 14px;font-size:15px;line-height:1.6;color:var(--paper)}
.fb-form{display:flex;flex-direction:column;align-items:stretch;gap:6px;text-align:left}
.fb-ask{margin:4px 0 0;font-size:15px;font-weight:900;color:#ffe9a8}
.fb-scale{display:flex;justify-content:space-between;gap:6px}
.fb-dot{flex:1;min-width:0;height:44px;margin:0;padding:0;border:2px solid #c9a24a;border-radius:50%;aspect-ratio:1;max-width:48px;background:#0c1f33;color:#ffe9a8;font-size:18px;font-weight:900;touch-action:manipulation}
.fb-dot[aria-checked="true"]{background:radial-gradient(circle at 35% 30%,#fff4c8,#e0b452 60%,#a8741a);color:#3b2200;border-color:#fff4c8;transform:scale(1.08)}
.fb-ends{display:flex;justify-content:space-between;font-size:12px;font-weight:800;color:#cfe3ee}
#fb-box{width:100%;box-sizing:border-box;min-height:72px;resize:vertical;padding:8px 10px;border:2px solid #c9a24a;border-radius:6px;background:#fff8e6;color:#1d2a33;font:inherit;font-size:16px;line-height:1.5}
#fb-box::placeholder{color:#7d8790}
.fb-send{display:flex;align-items:center;justify-content:center;min-height:52px;margin-top:8px;padding:10px 18px;border:0;background:url(ui/btn-jade.webp) center/100% 100% no-repeat;color:#0c1f33;font-size:17px;font-weight:900;font-style:italic;text-shadow:0 1px 0 #ffffff99;filter:drop-shadow(0 5px 8px #020f19aa);touch-action:manipulation}
.fb-send:disabled{filter:grayscale(1) brightness(.7);cursor:default}
.fb-send:not(:disabled):active{transform:translateY(3px) scale(.98)}
.fb-hint{margin:0;font-size:12px;text-align:center;color:#cfe3ee}
.fb-hint.hidden{display:none}
.fb-thanks{padding:8px 0 0}
.fb-thanks .fb-send{width:100%}
.fb-x{position:absolute;top:0;right:0;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:0;background:url(ui/btn-navy.webp) center/100% 100% no-repeat;color:#ffe9a8;font-size:20px;font-weight:800;filter:drop-shadow(0 3px 6px #020f19aa)}
.fb-x:active{transform:scale(.97)}
#fb button:focus-visible,#fb-box:focus-visible{outline:2px solid #ffe9a8;outline-offset:3px}
#fb:not(.hidden){animation:fb-fade .22s ease-out}
#fb:not(.hidden) .fb-card{animation:fb-rise .26s cubic-bezier(.2,.8,.2,1)}
@keyframes fb-fade{from{opacity:0}}
@keyframes fb-rise{from{opacity:0;transform:translateY(18px)}}
@media(max-height:640px){.fb-card{padding:36px 10px 8px;border-width:12px;border-image-width:12px}#fb h2{font-size:19px;margin-bottom:6px}.fb-stats{margin-bottom:6px}.fb-stat b{font-size:18px}#fb-text{font-size:13px;line-height:1.45;margin-bottom:6px}#fb-box{min-height:52px}.fb-send{min-height:44px;font-size:15px}}
@media(prefers-reduced-motion:reduce){#fb:not(.hidden),#fb:not(.hidden) .fb-card{animation:none}.fb-dot[aria-checked="true"]{transform:none}}
