/* ปุ่มแพ็กคริสตัล (shop.mjs crystalPackHTML — ร้านค้า + หน้าล็อกอิน, 2026-11-30)
   ภาพแผ่นป้ายของผู้ใช้ assets/ui/crystal_pack1–4.webp (640×263, _sm 360) — คริสตัลอยู่ซ้าย ~30% ข้อความวางทับฝั่งขวา */
.cpacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.cpack { position: relative; display: block; width: 100%; aspect-ratio: 640 / 263; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 12px; transition: transform .12s ease, filter .12s ease; -webkit-tap-highlight-color: transparent; }
.cpack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.cpack:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.cpack:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.cpack:focus-visible { outline: 3px solid #fff3c4; outline-offset: 2px; }
.cpack:disabled { cursor: default; filter: grayscale(.5) brightness(.75); }
/* ตัวอักษรขยาย 2026-11-30 (ผู้ใช้ขอ: ตัวเลข/ตัวอักษรใหญ่ขึ้น — เดิม cn 7.4cqw/cu 3.2/cp 4.6/cm 2.6)
   ข้อความฝั่งขวาของป้าย (พื้นเหลืองส้ม) — ตัวเลขใหญ่ขาวขอบน้ำตาลเข้ม, ราคาในป้ายเข้ม */
.cpack .cbody { position: absolute; left: 36%; right: 7%; top: 13%; bottom: 13%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto;
  align-items: center; column-gap: 6px; text-align: left; pointer-events: none; }
.cpack .cn { grid-row: 1; grid-column: 1; font: 800 clamp(21px, 11cqw, 62px)/1 var(--font-display, "Kanit", system-ui, sans-serif); color: #fff;
  -webkit-text-stroke: clamp(1px, .4cqw, 1.6px) #6b2f00; paint-order: stroke fill; text-shadow: 0 2px 0 #7a3600, 0 3px 8px rgba(80,30,0,.45); letter-spacing: .01em; }
.cpack .cu { grid-row: 1; grid-column: 2; align-self: end; margin-bottom: .45em; font: 800 clamp(10px, 4.8cqw, 26px)/1 var(--font-display, "Kanit", system-ui, sans-serif); color: #4a1d00; }
.cpack .cp { grid-row: 2; grid-column: 1 / -1; justify-self: end; font: 800 clamp(13px, 6.4cqw, 34px)/1 var(--font-display, "Kanit", system-ui, sans-serif);
  color: #fff8e6; background: rgba(60,22,0,.82); border: 1px solid rgba(255,230,170,.55); border-radius: 999px; padding: .15em .5em .22em; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.cpack .cm { position: absolute; left: 0; bottom: 4px; font: 700 clamp(8.5px, 3.4cqw, 16px)/1.2 system-ui, sans-serif; color: #5a2400; background: rgba(255,250,235,.7);
  border-radius: 6px; padding: .1em .45em; }
.cpack { container-type: inline-size; }
/* มือถือ: 2 คอลัมน์ (2026-11-30 ผู้ใช้ขอ — 1 ปุ่มเต็มแถวกินจอยาวมาก) · ขนาดตัวอักษรตามความกว้างปุ่ม (cqw) จึงย่อตาม */
@media (max-width: 640px) { .cpacks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
/* ปุ่มใหญ่หีบสมบัติ (art 5 — แพ็ก 1,300, 2026-12-03 ผู้ใช้กำหนด): ขนาด = 4 แพ็กรวมกัน · PC แพ็กเล็ก 2×2 ซ้าย + ปุ่มใหญ่ขวา · มือถือปุ่มใหญ่อยู่ล่างเต็มแถว
   หีบอยู่ซ้าย ~50% ของภาพ → ข้อความเริ่มที่ 52% */
.cpack.big { aspect-ratio: 1706 / 649; align-self: center; }
.cpack.big .cbody { left: 52%; right: 6%; top: 18%; bottom: 18%; }
.cpack.big .cn { font-size: clamp(28px, 10cqw, 84px); }
.cpack.big .cu { font-size: clamp(12px, 4.4cqw, 34px); }
.cpack.big .cp { font-size: clamp(15px, 5.6cqw, 42px); }
@media (min-width: 641px) {
  .cpacks:has(.big) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cpacks .cpack.big { grid-column: 3 / 5; grid-row: 1 / 3; }
}
@media (max-width: 640px) { .cpacks .cpack.big { grid-column: 1 / -1; } }
/* ปุ่มแคบ (2 คอลัมน์บนมือถือ): ซ่อนป้าย "พร้อมเพย์เท่านั้น" (ทับราคา) — มีบอกในข้อความใต้ปุ่มแล้ว (.paynote หน้าล็อกอิน / หน้าต่างยืนยันในร้านค้า) */
@container (max-width: 260px) { .cpack .cm { display: none; } .cpack .cbody { column-gap: 3px; } }
