/* Wrap the Awkward Gift — 本游戏自己的样式(前缀 bfg-wag-)。共用组件在 static/bfg.css「GAME UI KIT」一段。
   一屏 = 顶栏 / .bfg-wag-head 礼物名 + 时间条(先看一眼,再 8 秒)/ .bfg-wag-scene 桌面画布(在这里拖纸)/ .bfg-wag-line 5 件进度 / .bfg-wag-dock 合身度 %。 */
.wag .bfg-ftop{background:var(--floor);border-bottom:2px solid var(--ink);padding-bottom:4px;min-height:58px}
.bfg-wag-head{flex:none;padding:8px 16px 0;display:grid;gap:4px}
.bfg-wag-head .bfg-an{display:none}
.bfg-wag-head .bfg-fq{font-size:min(6.4vw,26px);font-size:min(6.4cqw,26px);margin:0;line-height:1.1}
.bfg-wag-quirk{margin:0;font:500 13px/1.35 var(--mono);color:var(--mute);min-height:1.35em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bfg-wag-bar{height:10px;border:2px solid var(--ink);border-radius:6px;overflow:hidden;background:#fff;margin-top:3px}
.bfg-wag-bar i{display:block;height:100%;background:var(--cobalt);transform-origin:left center}
.peek .bfg-wag-bar i{background:var(--mari)}
.urgent .bfg-wag-bar i{background:#F45D22}
.bfg-wag-scene{flex:1;min-height:150px;position:relative;margin:4px 0 0;overflow:hidden;touch-action:none}
.bfg-wag-scene canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}
.bfg-wag-scene.out{transform:translateX(70%);opacity:0;transition:transform .26s ease-in,opacity .26s ease-in}
.bfg-wag-scene.in{animation:bfg-wag-in .26s ease-out}
@keyframes bfg-wag-in{from{transform:translateX(-60%);opacity:0}}
.bfg-wag-line{flex:none;list-style:none;margin:6px 10px 0;padding:6px 4px;display:grid;grid-template-columns:repeat(5,1fr);gap:2px;
  border:2px solid var(--ink);border-radius:10px;background:var(--tint)}
.bfg-wag-line li{display:grid;justify-items:center;gap:2px;min-width:0}
.bfg-wag-line i{width:22px;height:22px;border-radius:4px;border:2px dashed var(--grey,#CFCBC4);display:block}
.bfg-wag-line small{font:600 10.5px/1.1 var(--mono);color:var(--mute)}
.bfg-wag-line li.now i{border:2px solid var(--ink);background:#fff}
.bfg-wag-line li.ok i{border:2px solid var(--ink);background:linear-gradient(90deg,transparent 40%,var(--mari) 40% 60%,transparent 60%),#F45D22}
.bfg-wag-line li.no i{border:2px solid var(--ink);background:repeating-linear-gradient(45deg,#F45D22 0 4px,#fff 4px 7px);opacity:.55}
.bfg-wag-line li.now small,.bfg-wag-line li.ok small{color:var(--ink)}
.bfg-wag-dock{flex:none;padding:6px 12px 12px;display:grid;gap:8px}
.bfg-wag-st{margin:0;display:flex;align-items:center;gap:12px;justify-content:center;min-height:48px}
.bfg-wag-st b{font:900 34px/1 var(--disp);letter-spacing:-.02em;min-width:2.6em;text-align:right}
.bfg-wag-st span{font:600 13px/1.3 var(--mono);max-width:19em}
.bfg-fs .bfg-wag-dock .bfg-btn{min-height:64px;font-size:22px}
.bfg-wag-sc{margin:0;display:flex;align-items:baseline;gap:10px;justify-content:center}
.bfg-wag-sc b{font:900 44px/1 var(--disp);letter-spacing:-.02em}
.bfg-wag-sc span{font:600 14px/1.25 var(--mono);max-width:15em}
/* 招牌瞬间:开灯后盖章 */
.bfg-wag-stamp{position:absolute;left:50%;top:14%;transform:translate(-50%,-50%) rotate(-6deg) scale(1.7);opacity:0;pointer-events:none;z-index:5;
  font:900 20px/1 var(--mono);letter-spacing:.05em;padding:8px 14px;border:3px solid var(--ink);border-radius:10px;background:#fff;color:var(--ink);white-space:nowrap}
.bfg-wag-stamp.on{opacity:1;transform:translate(-50%,-50%) rotate(-6deg) scale(1);transition:transform .26s cubic-bezier(.2,.9,.3,1.3),opacity .12s}
.bfg-wag-stamp.ok{background:var(--mari)}
.bfg-wag-stamp.no{background:#F45D22}
.bfg-wag-wait{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:16px}
.bfg-wag-caps{display:grid;gap:10px;justify-items:start;font:600 15px/1.35 var(--mono)}
@media (max-height:640px){.bfg-wag-quirk{display:none}.bfg-wag-line small{display:none}.bfg-wag-line i{width:18px;height:18px}}
@media (prefers-reduced-motion:reduce){.bfg-wag-scene.out,.bfg-wag-scene.in,.bfg-wag-stamp.on{animation:none;transition:none}}
