/* ป้าย "ผู้พิชิต" บนหัวคนที่ได้รางวัลบอส 8 วิ (conqueror-crown.js · design-briefs/conqueror-crown-1018)
   ทุกชั้นคือภาพ (ริบบิ้น · ออร่า · ประกาย) — ตัวอักษร HTML ทับ · แอนิเมชันจำนวนรอบจำกัด ป้ายถูกถอดทิ้งที่ 8 วิ (ไม่สะสม · perf.md 4b)
   ขนาด: ผู้พิชิต (.me) ใหญ่กว่า · คนข้าง ๆ เล็กลง · จอเตี้ย (มือถือแนวนอน 430px) ใช้ค่าต่ำสุดของ clamp */
.label.cq-label { text-shadow: none; font: inherit; white-space: nowrap; }
.cq-label .cq-lift { will-change: transform; }
.cq-label .cq-wrap {
  --cq-w: clamp(108px, 17vh, 160px);
  position: relative; width: var(--cq-w); display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%;
  animation: cq-in .3s cubic-bezier(.2, 1.5, .45, 1) backwards, cq-breath 2.4s ease-in-out .3s 3, cq-out .5s ease-in 7.5s forwards;
}
.cq-label.me .cq-wrap { --cq-w: clamp(132px, 24vh, 220px); }

/* ออร่าแสงทองหลังป้าย — หมุนช้า + เต้นเบา ๆ (ภาพแยกชั้น ไม่ใช่สีวาด) */
.cq-label .cq-aura {
  position: absolute; z-index: 0; left: 50%; top: calc(var(--cq-w) * .3);
  width: calc(var(--cq-w) * 1.35); height: auto; aspect-ratio: 1; translate: -50% -50%; opacity: .9;
  animation: cq-spin 8s linear 1, cq-pulse 1.6s ease-in-out .3s 5 alternate;
}
.cq-label .cq-banner { position: relative; z-index: 1; width: 100%; line-height: 0; }
.cq-label .cq-banner > img { display: block; width: 100%; height: auto; }
/* ประกายวาบผ่านริบบิ้นสองครั้ง (ตอนเข้า + กลางทาง) — ตัดตามรูปภาพด้วย mask ภาพเดียวกัน */
.cq-label .cq-banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url('assets/ui/conqueror/banner.webp') center / 100% 100% no-repeat; mask: url('assets/ui/conqueror/banner.webp') center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 225, .6) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0; opacity: 0;
  animation: cq-glint 1s ease-out .35s, cq-glint-b 1s ease-out 4.2s;
}
.cq-label .cq-title {
  position: absolute; left: 18%; right: 18%; top: 44%; bottom: 27%; display: grid; place-items: center;
  font: 600 calc(var(--cq-w) * .125) / 1 var(--font-head, inherit); letter-spacing: .02em; color: #fff3c4;
  text-shadow: 0 1px 0 #6a3f0e, 0 -1px 0 #6a3f0e, 1px 0 0 #6a3f0e, -1px 0 0 #6a3f0e, 0 2px 3px rgba(20, 50, 52, .8);
}
html[lang="en"] .cq-label .cq-title { font-size: calc(var(--cq-w) * .108); letter-spacing: .04em; }
.cq-label .cq-sub {
  position: relative; z-index: 1; margin-top: calc(var(--cq-w) * -.04); padding: 2px 9px 3px; border-radius: 999px;
  font: 600 max(11px, calc(var(--cq-w) * .07)) / 1.15 var(--font-head, inherit); color: #fff6d8;
  background: rgba(30, 72, 75, .88); box-shadow: inset 0 0 0 1.5px #e8b64a, 0 1px 3px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 0 #1d3f42;
}
/* ประกาย 4 ดวงรอบป้าย */
.cq-label .cq-star { position: absolute; z-index: 2; width: calc(var(--cq-w) * .13); height: auto; opacity: 0; animation: cq-twinkle 1.6s ease-in-out 4; }
.cq-label .cq-star.s1 { left: 2%; top: 10%; animation-delay: .3s; }
.cq-label .cq-star.s2 { right: 0; top: 2%; animation-delay: .7s; width: calc(var(--cq-w) * .1); }
.cq-label .cq-star.s3 { left: 9%; top: 44%; animation-delay: 1.1s; width: calc(var(--cq-w) * .09); }
.cq-label .cq-star.s4 { right: 6%; top: 40%; animation-delay: .5s; }
.cq-label.cq-bye { opacity: 0; transition: opacity .25s; }

@keyframes cq-in { 0% { scale: .25; opacity: 0; } 60% { scale: 1.12; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes cq-breath { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes cq-out { to { opacity: 0; scale: .9; } }
@keyframes cq-spin { from { rotate: 0deg; } to { rotate: 110deg; } }
@keyframes cq-pulse { from { scale: .92; } to { scale: 1.06; } }
@keyframes cq-twinkle { 0%, 100% { opacity: 0; scale: .4; } 45% { opacity: 1; scale: 1; } }
@keyframes cq-glint { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }
@keyframes cq-glint-b { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) {
  .cq-label .cq-wrap { animation: cq-out .5s ease-in 7.5s forwards; }
  .cq-label .cq-aura, .cq-label .cq-star, .cq-label .cq-banner::after { animation: none; }
}
