/* 현금 전용 꾸미기(js/cos-prem.js): 호외 1면 도장, 결말 카드 테두리, 와글 이름표, 상점 미리보기 */
.cos-hoyoe { position: absolute; right: 16px; top: 14px; width: 150px; z-index: 3; font-size: 14px; display: grid; gap: .25em; padding: .55em .6em .6em; background: #F4ECD8; color: #1E1A17; border: 2px solid #1E1A17; box-shadow: 3px 3px 0 rgba(0,0,0,.35); transform: rotate(-8deg); animation: hySpin .9s cubic-bezier(.2,.9,.3,1.1) .25s backwards; pointer-events: none; text-align: center; }
.cos-hoyoe .hy-mast { font: 800 .72em var(--head); letter-spacing: .08em; border-bottom: 2px solid #1E1A17; padding-bottom: .2em; color: #B3122A; }
.cos-hoyoe .hy-head { font: 900 1.7em/1.05 var(--head); letter-spacing: -.02em; }
.cos-hoyoe .hy-sub { font: 700 .74em var(--head); }
.cos-hoyoe .hy-lines { display: block; height: 1.6em; background: repeating-linear-gradient(#1E1A17 0 1px, transparent 1px 5px); opacity: .45; }
@keyframes hySpin { from { transform: rotate(-728deg) scale(.08); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(-8deg) scale(1); } }
.r-scene.cos-winprev .cos-hoyoe { width: 44%; right: 6%; top: 6%; font-size: 8px; border-width: 1px; }
@media (prefers-reduced-motion: reduce) { .cos-hoyoe { animation: none; } }

.cos-cardfr-box { position: relative; }
.cos-cardfr { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }

.wg-av.pic[data-fr] { position: relative; overflow: visible; }   /* 테두리가 사진 밖으로 나오게(사진은 둥글게 따로 자른다) */
.wg-av.pic[data-fr] img { border-radius: 50%; }
.wg-av .wg-fr { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); image-rendering: pixelated; pointer-events: none; }
.wg-pn b.wg-tag { color: var(--tag, inherit); background: var(--tagbg, transparent); padding: 0 5px; border-radius: 4px; }

.cos-showprev { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; padding: 10px; box-sizing: border-box; }
.cos-showprev.card .sc-img { width: 86%; aspect-ratio: 16 / 9; background: center / cover no-repeat; border-radius: 4px; }
.cos-showprev.card b { font: 800 12px var(--head); color: #F4E9D8; }
.cos-showprev.wagle { grid-auto-flow: column; justify-content: center; gap: 10px; background: #FFFFFF; border-radius: 10px; margin: 18px; width: auto; height: auto; }
.cos-showprev.wagle .wg-av { width: 44px; height: 44px; border-radius: 50%; display: block; }
.cos-showprev.wagle .wg-pn { display: grid; text-align: left; }
.cos-showprev.wagle .wg-pn small { font-size: 11px; color: #8A8178; }
.cos-thumb > .cos-rib, .cos-thumb > .cos-grade { z-index: 5; }   /* 도장·호외가 딱지를 덮지 않게 */
