/* 装扮（outfits.js）：盖在卡通形象上的平面小图、名牌样式。网站和原型是同一份 */
.ofit {
  position: relative;
  display: inline-block;
  flex: none;
  line-height: 0;
  vertical-align: middle;
}

.ofit > :first-child { position: relative; }

/* 帽子往下压一点，戴在头顶上 */
.ofit-layer .ofit-hat { transform: translateY(5px); }

.ofit-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* 戴了头像框：原来的白边去掉，让框露出来 */
.ofit-framed > .avatar,
.ofit-framed > .face { box-shadow: none !important; }

/* 名牌样式：跟在名字那一格上 */
.oplate {
  display: inline-block;
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 999px;
  line-height: 1.5;
}

.oplate.plate-gold {
  background: linear-gradient(#fff6d2, #f4cd62);
  color: #6b4a0c !important;
  box-shadow: inset 0 0 0 1px #d39c2a, 0 1px 2px rgba(120, 80, 10, 0.3);
}

.oplate.plate-sakura {
  background: linear-gradient(#fff0f4, #ffc9d7);
  color: #9b2c4f !important;
  box-shadow: inset 0 0 0 1px #f39ab5;
}

.oplate.plate-sakura::before { content: "✿ "; color: #ff7aa0; }

.oplate.plate-night {
  background:
    radial-gradient(circle at 18% 30%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 65%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 46% 20%, rgba(255, 255, 255, 0.8) 0 0.8px, transparent 1.2px),
    linear-gradient(#2b3b78, #18224a);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px #4a5ca8;
}

.oplate.plate-night::before { content: "★ "; color: #ffd23f; }

/* 装扮商店里的小样子 */
.pv .ofit { width: 64px; height: 64px; }
.pv .ofit .pv-face,
.pv .pv-face.avatar { width: 64px; height: 64px; }
.pv-plate .oplate { font-size: 14px; font-weight: 600; }
.pv-effect { background: radial-gradient(ellipse at 50% 40%, #3f7a5a, #23463a 80%) !important; color: #fff; }
.pv-effect b { font-size: 26px; line-height: 1; }
.pv-hat, .pv-glasses, .pv-scarf, .pv-frame, .pv-sticker { overflow: visible !important; }
.pv-hat .ofit { margin-top: 16px; }
.pv .ofit .ofit-layer { overflow: visible; }
.pv-big { height: 120px !important; margin: 4px 0 8px; }
.pv-big .ofit, .pv-big .ofit .pv-face { width: 84px; height: 84px; }
.pv-big.pv-hat .ofit { margin-top: 24px; }

/* 口碑小牌子（ADR-0172）：网站别的页在 home.css 里也有同样一份；牌桌座位、原型用这一份 */
.kb.new, .kb.good, .kb.best {
  display: inline-block;
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ece6dc;
  color: #6f675d;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.kb.good { background: #e6f0e4; color: #3d6b37; }
.kb.best { background: #f4ead2; color: #8a6418; }
