/* หน้า Misc — ใช้ชิ้นส่วนร่วมกับหน้า Stage (.sg-*) + ส่วนเฉพาะ (.ms-*) */
.ms-page { font-family: var(--gs-font, "Fredoka", "Noto Sans Thai", system-ui, sans-serif); display: grid; gap: 14px; max-width: 980px; margin: 0 auto; width: 100%; }
.ms-h1 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(28px, 4vw, 40px); color: #fff; -webkit-text-stroke: 7px #16121f; paint-order: stroke fill; }
.ms-h1 .ic { width: .9em; height: .9em; color: #7cc4ff; }
.ms-sub { margin: 4px 0 0; color: #a8a3b8; font-size: 14px; }
.ms-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-tabs:empty { display: none; }
.ms-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 12px; font: 700 15px var(--gs-font, inherit); color: #fff; cursor: pointer; border: 3px solid #ffffff22;
  background: linear-gradient(180deg, #4a4e57, #33363d); box-shadow: 0 4px 0 #0008, 0 0 0 2px #0c0d0f; -webkit-text-stroke: 4px #16121f; paint-order: stroke fill; }
.ms-tabs button img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.ms-tabs button.on { background: linear-gradient(180deg, #74f06c, #34c23e); border-color: #a8ffa0; }
.ms-tool { display: grid; gap: 14px; padding: 16px; background: #151619; border: 4px solid #0c0d0f; border-radius: 20px; box-shadow: 0 16px 36px #000a, inset 0 0 0 2px #2a2c31; color: #d7d2e2; }
.ms-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.ms-art { position: relative; width: 128px; height: 128px; border-radius: 20px; padding: 4px; background: linear-gradient(135deg, #ff8a7a, #ff2b2b 50%, #8c0b0b); box-shadow: 0 0 24px #ff3b3b55; }
.ms-art img, .ms-art > span { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; background: #0f1012; display: grid; place-items: center; }
.ms-art > span .ic { width: 48px; height: 48px; color: #ffe27a; }
.ms-glow { position: absolute; inset: -10px; border-radius: 26px; pointer-events: none; opacity: 0; background: conic-gradient(from 0deg, #ff4d4d, #ffd84d, #5dff7a, #4dd8ff, #b44dff, #ff4d4d); filter: blur(14px); z-index: -1; }
.ms-art.shiny { animation: ms-shine 1.4s ease-out; }
.ms-art.shiny .ms-glow { animation: ms-glow 1.4s ease-out; }
@keyframes ms-shine { 20% { transform: scale(1.08) rotate(-3deg); } 45% { transform: scale(1.02) rotate(2deg); } }
@keyframes ms-glow { 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(180deg); } }
.ms-info h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); color: #fff; -webkit-text-stroke: 6px #16121f; paint-order: stroke fill; }
.ms-desc { margin: 2px 0 6px; color: #a8a3b8; font-size: 13px; }
.ms-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 14px; color: #a8a3b8; }
.ms-rate > b { font-size: 26px; color: #ffe27a; -webkit-text-stroke: 5px #16121f; paint-order: stroke fill; }
.ms-rate span b { color: #ffe27a; }
.ms-rate em { font-style: normal; padding: 1px 8px; border-radius: 8px; background: #e0b44a22; color: #e0b44a; font-size: 12px; font-weight: 700; }
.ms-cost { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #a8a3b8; } .ms-cost b { color: #fff; } .ms-cost .ic { color: #ffd84d; }
.ms-tool .sg-ctrl > .sg-btn.gold { width: 100%; }
.ms-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.ms-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid #ff3b3b66; background: #0f1012; animation: ms-pop .3s var(--d, 0ms) cubic-bezier(.3, 1.4, .5, 1) both; }
.ms-cell img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.5); }
.ms-cell.sh { border-color: #ffe27a; box-shadow: 0 0 12px #ffe27a; }
.ms-cell.sh img { opacity: 1; filter: none; }
.ms-cell i { position: absolute; right: 2px; top: 2px; display: grid; color: #ffe27a; filter: drop-shadow(0 1px 1px #000); } .ms-cell i .ic { width: 14px; height: 14px; }
@keyframes ms-pop { from { opacity: 0; transform: scale(.6); } }
@media (max-width: 700px) {
  .ms-top { grid-template-columns: auto minmax(0, 1fr); }
  .ms-top .sg-acts { grid-column: 1 / -1; }
  .ms-art { width: 96px; height: 96px; }
  .ms-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ms-cell, .ms-art.shiny, .ms-art.shiny .ms-glow { animation: none; } }
