/* ==========================================================================
   FM5 — ร้าน & แผง
   ส่วนขยายของ design system ใน css/style.css (ใช้ token ฟอนต์ ปุ่ม
   และมุมตัดทแยงชุดเดียวกัน) Mobile-first: ฐานที่ 360px ขยายตาม min-width
   ========================================================================== */

/* `hidden` ต้องชนะ `display` ของคลาส (เช่น .btn, .cc-link-btn) ไม่งั้นปุ่มที่ควรซ่อนจะยังโผล่ */
[hidden] {
  display: none !important;
}

:root {
  --cc-topbar-h: 56px;
  --cc-buybar-h: 72px;
  --cc-radius-line: rgba(255, 255, 255, 0.08);
  --cc-line-strong: rgba(255, 255, 255, 0.14);
  --cc-safe-top: env(safe-area-inset-top, 0px);
  --cc-safe-bottom: env(safe-area-inset-bottom, 0px);
  --cc-safe-left: env(safe-area-inset-left, 0px);
  --cc-safe-right: env(safe-area-inset-right, 0px);
  --cc-gutter: max(16px, var(--cc-safe-left));
}

.cc-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg-main);
}

.cc-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
}

.cc-skip:focus {
  left: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
}

.cc-main {
  flex: 1;
  width: 100%;
  padding-bottom: 24px;
  outline: none;
}

/* ไม่มี footer (โหมดฝัง) เนื้อหาต้องเว้นพื้นที่ให้แถบติดขอบล่าง */
.cc-embed .cc-main {
  padding-bottom: calc(var(--cc-buybar-h) + 24px + var(--cc-safe-bottom));
}

.cc-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem max(16px, var(--cc-safe-right)) 0 max(16px, var(--cc-safe-left));
}

.cc-narrow {
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   แถบด้านบน (กะทัดรัด ส่วน header ของเว็บไซต์ถูกซ่อนบนมือถือ แต่แถบนี้ไม่ซ่อน)
   -------------------------------------------------------------------------- */
.cc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--cc-safe-top);
  background: rgba(12, 12, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cc-radius-line);
}

.cc-topbar-row {
  height: var(--cc-topbar-h);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 max(12px, var(--cc-safe-right)) 0 max(12px, var(--cc-safe-left));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cc-brand {
  min-width: 0;
}

.cc-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cc-topbar-nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}

.cc-topbar-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-2);
  padding: 0.5rem 0;
}

.cc-topbar-nav a:hover {
  color: #fff;
}

/* หน้าปัจจุบัน — ขีดเส้นใต้สีฟ้าใต้ลิงก์ (ตั้ง aria-current จาก router) */
.cc-topbar-nav a[aria-current='page'] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--cyan-bright);
}

.cc-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cc-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  background: var(--bg-card);
  clip-path: var(--clip-game-sm);
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cc-icon-btn:active {
  background: var(--bg-elevated);
}

/* ไอคอนเติมเหรียญ/ลิงก์เมนูที่กำลังเปิดอยู่ */
.cc-topbar-actions .cc-icon-btn[aria-current='page'] {
  color: var(--cyan-bright);
  background: var(--bg-elevated);
}

/* ปุ่มเติมเหรียญ: ขยายตามจำนวนหลักเพื่อแสดงยอดคงเหลือข้างไอคอน */
.cc-coin-btn {
  width: auto;
  min-width: 44px;
  padding: 0 0.65rem;
  gap: 0.3rem;
}

.cc-coin-count {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--cyan-bright);
  white-space: nowrap;
}

.cc-danger {
  color: #f87171;
  background: transparent;
}

.cc-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--blue);
  border-radius: 9px;
}

.cc-embed [data-hide-embed] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.cc-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.cc-h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.cc-h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cc-sub {
  color: var(--text-2);
  font-size: 0.95rem;
}

.cc-text {
  color: var(--text-2);
  font-size: 0.93rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.cc-muted {
  color: var(--text-3);
  font-size: 0.85rem;
}

.cc-hint {
  color: var(--text-3);
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

.cc-eyebrow {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.cc-error {
  color: #f87171;
  font-size: 0.88rem;
}

.cc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9rem;
}

.cc-hero {
  padding: 0.5rem 0 0.25rem;
}

/* --------------------------------------------------------------------------
   หมวดหมู่ (ชิปเลื่อนแนวนอนได้ ไม่มี hover เป้าสัมผัส >= 40px)
   -------------------------------------------------------------------------- */
.cc-chips {
  position: sticky;
  top: calc(var(--cc-topbar-h) + var(--cc-safe-top));
  z-index: 20;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0.75rem calc(-1 * var(--cc-gutter)) 1rem;
  padding: 0.6rem var(--cc-gutter);
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.96) 70%, rgba(12, 12, 14, 0));
  min-height: 60px;
}

.cc-chips::-webkit-scrollbar {
  display: none;
}

.cc-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.95rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-2);
  background: var(--bg-card);
  clip-path: var(--clip-game-sm);
  white-space: nowrap;
}

.cc-chip svg {
  color: var(--blue);
}

.cc-chip.active {
  color: #fff;
  background: var(--blue);
}

.cc-chip.active svg {
  color: #fff;
}

/* --------------------------------------------------------------------------
   กริดสินค้า (2 คอลัมน์ที่ 360px การ์ดแบบกะทัดรัด)
   -------------------------------------------------------------------------- */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cc-section {
  margin-bottom: 0.5rem;
}

.cc-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--cc-gutter));
  padding: 0 var(--cc-gutter) 0.25rem;
}

.cc-rail::-webkit-scrollbar {
  display: none;
}

.cc-rail > * {
  scroll-snap-align: start;
}

.cc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-card);
  clip-path: var(--clip-game-card);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cc-card:active {
  transform: scale(0.985);
}

.cc-card-off {
  opacity: 0.6;
}

.cc-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
}

.cc-card-img img,
.cc-product-img img,
.cc-line-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background:
    radial-gradient(circle at 50% 40%, rgba(14, 165, 255, 0.14), transparent 65%),
    var(--bg-elevated);
}

.cc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.75rem 0.85rem;
  flex: 1;
}

.cc-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cc-card-desc {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* หมายเหตุบนการ์ด: วันสิ้นสุดโปรโมชัน / สต็อกเหลือน้อย */
.cc-card-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  color: var(--text-3);
}

.cc-card-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.cc-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 12, 14, 0.82);
  padding: 0.2rem 0.5rem;
  clip-path: var(--clip-game-sm);
}

.cc-tag-sale {
  background: var(--emerald);
}

.cc-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cc-price strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.cc-price-old {
  font-size: 0.75rem;
  color: var(--text-3);
}

.cc-price-lg strong {
  font-size: 1.7rem;
}

.cc-price-lg .cc-price-old {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   ป้ายสถานะ (badge) และสถานะต่าง ๆ
   -------------------------------------------------------------------------- */
.cc-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  clip-path: var(--clip-game-sm);
  white-space: nowrap;
}

.cc-badge-amber { color: #fbbf24; background: rgba(245, 158, 11, 0.14); }
.cc-badge-emerald { color: #34d399; background: rgba(16, 185, 129, 0.14); }
.cc-badge-red { color: #f87171; background: rgba(239, 68, 68, 0.14); }
.cc-badge-muted { color: var(--text-2); background: rgba(255, 255, 255, 0.06); }
.cc-badge-blue { color: var(--cyan-bright); background: rgba(14, 165, 255, 0.14); }

.cc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-3);
}

.cc-dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
.cc-dot-emerald { background: var(--emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.cc-dot-red { background: var(--red); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }

.cc-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem;
}

.cc-state h3 {
  font-size: 1.1rem;
}

.cc-state p {
  color: var(--text-2);
  font-size: 0.92rem;
  max-width: 36ch;
}

.cc-state-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(14, 165, 255, 0.1);
  clip-path: var(--clip-game-sm);
}

.cc-state-error,
.cc-state-red { color: #f87171; background: rgba(239, 68, 68, 0.1); }
.cc-state-emerald { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.cc-state-amber { color: #fbbf24; background: rgba(245, 158, 11, 0.12); }
.cc-state-muted { color: var(--text-2); background: rgba(255, 255, 255, 0.06); }

/* Skeleton (โครงโหลด) */
.cc-skel {
  background: linear-gradient(110deg, var(--bg-card) 8%, var(--bg-elevated) 18%, var(--bg-card) 33%);
  background-size: 200% 100%;
  animation: imgSkeletonShimmer 1.6s infinite linear;
}

.cc-skeleton-card {
  pointer-events: none;
}

.cc-skel-line {
  height: 12px;
  margin: 0.4rem 0;
  width: 85%;
}

.cc-skel-short {
  width: 45%;
}

.cc-skel-block {
  height: 260px;
  margin-top: 1rem;
  clip-path: var(--clip-game-card);
}

.cc-skel-chips {
  min-height: 60px;
}

@media (prefers-reduced-motion: reduce) {
  .cc-skel {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   แผง (panel) ฟอร์ม และปุ่มเสริม
   -------------------------------------------------------------------------- */
.cc-panel {
  background: var(--bg-card);
  clip-path: var(--clip-game-card);
  padding: 1.1rem 1rem 1.2rem;
  margin-top: 0.85rem;
  border: 0;
  min-width: 0;
}

.cc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cc-row-between {
  justify-content: space-between;
  align-items: center;
}

.cc-full {
  width: 100%;
  margin-top: 0.85rem;
}

.cc-link-btn {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 0 0.25rem;
}

.cc-input,
.cc-select,
.cc-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 16px; /* ป้องกันการซูมอัตโนมัติบน iOS */
  color: var(--text-1);
  background: var(--bg-main);
  border: 1px solid var(--cc-line-strong);
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease;
}

.cc-input:focus,
.cc-select:focus,
.cc-textarea:focus {
  border-color: var(--blue);
}

.cc-textarea {
  min-height: 110px;
  resize: vertical;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ปุ่มของเว็บไซต์แบบไม่พึ่ง hover สำหรับจอสัมผัส (ยังคงเอฟเฟกต์ไว้บนเดสก์ท็อป) */
@media (hover: none) {
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

.btn {
  min-height: 44px;
}

.btn-sm {
  min-height: 40px;
}

/* --------------------------------------------------------------------------
   หน้าสินค้า
   -------------------------------------------------------------------------- */
.cc-product {
  display: grid;
  gap: 1rem;
}

.cc-product-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  clip-path: var(--clip-game-card);
  background: var(--bg-elevated);
}

.cc-product-price {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}

.cc-facts {
  display: grid;
  gap: 1px;
  background: var(--cc-radius-line);
  clip-path: var(--clip-game-sm);
}

.cc-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-card);
  font-size: 0.88rem;
}

.cc-facts dt {
  color: var(--text-3);
}

.cc-facts dd {
  color: var(--text-1);
  font-weight: 600;
  text-align: right;
}

.cc-block {
  margin-top: 1.2rem;
}

.cc-benefits {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.cc-benefits li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.92rem;
}

.cc-benefits svg {
  color: var(--emerald);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cc-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  font-weight: 600;
}

.cc-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-main);
  clip-path: var(--clip-game-sm);
}

.cc-stepper-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  background: var(--bg-elevated);
}

.cc-stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cc-stepper-value {
  min-width: 2.5rem;
  text-align: center;
  font-family: var(--font-hud);
  font-weight: 700;
}

/* แถบซื้อติดขอบล่าง: อยู่ในระยะนิ้วโป้งเสมอ เคารพ safe area */
.cc-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--cc-buybar-h);
  padding: 0.7rem max(16px, var(--cc-safe-right)) calc(0.7rem + var(--cc-safe-bottom)) max(16px, var(--cc-safe-left));
  background: rgba(14, 14, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cc-radius-line);
}

.cc-buybar-total {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: auto;
  min-width: 0;
}

.cc-buybar-total span {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-buybar-total strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.cc-buybar-cta {
  flex: 0 1 auto;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
}

.cc-buybar-cart {
  min-height: 48px;
  width: 52px;
  padding: 0;
}

/* --------------------------------------------------------------------------
   ตะกร้า ตรวจสอบคำสั่งซื้อ และรายการคำสั่งซื้อ
   -------------------------------------------------------------------------- */
.cc-lines,
.cc-orders,
.cc-review-items,
.cc-accounts-list {
  list-style: none;
}

.cc-lines {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cc-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  background: var(--bg-card);
  clip-path: var(--clip-game-sm);
}

.cc-line-img {
  width: 64px;
  height: 64px;
  overflow: hidden;
  clip-path: var(--clip-game-sm);
}

.cc-line-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cc-line-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cc-line-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.cc-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  clip-path: var(--clip-game-card);
}

.cc-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.93rem;
}

.cc-summary-total {
  border-top: 1px solid var(--cc-radius-line);
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  font-size: 1.05rem;
}

.cc-review-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.93rem;
  color: var(--text-2);
}

.cc-review-items li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cc-accounts {
  display: grid;
  gap: 0.5rem;
}

.cc-radio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-main);
  cursor: pointer;
  clip-path: var(--clip-game-sm);
}

.cc-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-radio-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  flex-shrink: 0;
}

.cc-radio input:checked + .cc-radio-mark {
  border-color: var(--blue);
  background: radial-gradient(circle, var(--blue) 45%, transparent 50%);
}

.cc-radio input:focus-visible + .cc-radio-mark {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
}

.cc-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cc-status-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.cc-countdown {
  font-family: var(--font-hud);
  font-weight: 700;
  color: var(--text-1);
}

.cc-qr {
  width: min(240px, 100%);
  margin: 1rem auto;
  padding: 10px;
  background: #fff;
  clip-path: var(--clip-game-sm);
}

.cc-qr img {
  width: 100%;
  height: auto;
  display: block;
}

.cc-copy {
  background: var(--bg-main);
  padding: 0.7rem;
  clip-path: var(--clip-game-sm);
}

.cc-copy-code {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--text-2);
  word-break: break-all;
  max-height: 4.2em;
  overflow: hidden;
}

.cc-result {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.cc-result .cc-h2 {
  margin: 0.35rem 0 0;
}

.cc-delivery {
  box-shadow: inset 3px 0 0 var(--text-3);
}

.cc-delivery.cc-result-emerald { box-shadow: inset 3px 0 0 var(--emerald); }
.cc-delivery.cc-result-amber { box-shadow: inset 3px 0 0 var(--amber); }
.cc-delivery.cc-result-red { box-shadow: inset 3px 0 0 var(--red); }

.cc-orders {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cc-order-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--bg-card);
  clip-path: var(--clip-game-sm);
}

.cc-order-row > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.cc-order-row > div:first-child .cc-muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-order-row-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.cc-chevron {
  color: var(--text-3);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   บัญชีและการเข้าสู่ระบบ
   -------------------------------------------------------------------------- */
.cc-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.cc-login .cc-h2 {
  margin: 0.25rem 0 0;
}

.cc-google-slot {
  min-height: 44px;
  margin-top: 0.5rem;
}

.cc-dev-login {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--cc-line-strong);
}

.cc-code {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: var(--bg-main);
  clip-path: var(--clip-game-sm);
}

.cc-code code {
  font-family: var(--font-hud);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan-bright);
}

.cc-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cc-profile > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cc-profile .cc-muted {
  overflow-wrap: anywhere;
}

.cc-avatar-lg {
  width: 52px;
  height: 52px;
  object-fit: cover;
  clip-path: var(--clip-game-sm);
  flex-shrink: 0;
}

.cc-accounts-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cc-radius-line);
}

.cc-accounts-list li:last-child {
  border-bottom: 0;
}

.cc-accounts-list li > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cc-accounts-list svg {
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Toast และการเชื่อมต่อ
   -------------------------------------------------------------------------- */
.cc-toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--cc-buybar-h) + 16px + var(--cc-safe-bottom));
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 0.5rem;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}

.cc-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(22, 22, 26, 0.98);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  clip-path: var(--clip-game-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cc-toast.show {
  opacity: 1;
  transform: none;
}

.cc-toast-ok svg { color: var(--emerald); }
.cc-toast-error svg { color: #f87171; }

.cc-offline {
  position: fixed;
  top: calc(var(--cc-topbar-h) + var(--cc-safe-top));
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(40, 28, 6, 0.95);
}

.cc-offline[hidden] {
  display: none;
}

.cc-footer {
  padding: 1.5rem 16px calc(var(--cc-buybar-h) + 1.5rem + var(--cc-safe-bottom));
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
}

.cc-footer a {
  text-decoration: underline;
}

.cc-noscript {
  padding: 2rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   แท็บเล็ตและเดสก์ท็อป
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .cc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .cc-rail {
    grid-auto-columns: 40%;
  }

  .cc-card-body {
    padding: 0.85rem 0.95rem 1rem;
  }

  .cc-container {
    padding-top: 1.5rem;
  }
}

@media (min-width: 900px) {
  :root {
    --cc-topbar-h: 64px;
  }

  .cc-topbar-nav {
    display: flex;
  }

  .cc-topbar-actions {
    margin-left: 1.25rem;
  }

  .cc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cc-rail {
    grid-auto-columns: calc(25% - 0.75rem);
  }

  .cc-card:hover {
    background: var(--bg-card-hover);
  }

  .cc-product {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .cc-product-img {
    position: sticky;
    top: calc(var(--cc-topbar-h) + 1.5rem);
    aspect-ratio: 4 / 3;
  }

  /* บนเดสก์ท็อป แถบซื้อจะอยู่ในลำดับเนื้อหาปกติของหน้า ต่อจากเนื้อหาทันที */
  .cc-buybar {
    position: static;
    margin-top: 1.25rem;
    clip-path: var(--clip-game-card);
    border-top: 0;
    padding: 0.9rem 1rem;
    background: var(--bg-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cc-product-info .cc-buybar {
    margin: 1rem 0 1.25rem;
  }

  .cc-product-info .cc-qty-row {
    margin-top: 0.75rem;
  }

  .cc-main {
    padding-bottom: 48px;
  }

  .cc-footer {
    padding-bottom: 1.5rem;
  }

  .cc-toasts {
    bottom: 32px;
  }
}

/* --------------------------------------------------------------------------
   หน้าเติมเงิน (MyCity) — ผู้เล่นที่ผูกไว้ + แพ็กเกจเหรียญ
   -------------------------------------------------------------------------- */
.cc-players {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

/* ขั้นตอนการเอารหัสจากในเกม (แสดงเมื่อยังไม่มีผู้เล่นที่ผูกไว้) */
.cc-topup-steps {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.cc-topup-steps li::marker {
  color: var(--blue);
  font-family: var(--font-hud);
  font-weight: 700;
}

.cc-topup-steps strong {
  color: var(--text-1);
}

/* ยอดเหรียญคงเหลือของผู้เล่นที่เลือกอยู่ */
.cc-topup-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--cc-line-strong);
  color: var(--text-2);
  font-size: 0.85rem;
}

.cc-topup-balance strong {
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-bright);
}

/* `display` ข้างบนจะทับกฎ [hidden] ของเบราว์เซอร์ จึงต้องปิดเองเมื่อยังไม่มีข้อมูล */
.cc-topup-balance[hidden] {
  display: none;
}

.cc-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  background: var(--bg-elevated);
  min-height: 52px;
  cursor: pointer;
}

.cc-player input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: none;
}

.cc-player-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.cc-player-main strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.cc-player-balance {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  color: var(--blue);
  white-space: nowrap;
}

.cc-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cc-package {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  text-align: left;
  padding: 0.9rem 0.85rem 1rem;
  background: var(--bg-card);
  clip-path: var(--clip-game-card);
  color: var(--text-1);
  font: inherit;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cc-package:hover {
  background: var(--bg-elevated);
}

.cc-package:active {
  transform: scale(0.985);
}

.cc-package:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cc-package-coins {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-1);
}

.cc-package-coins small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  margin-left: 0.3rem;
}

.cc-package-name {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cc-package-price {
  margin-top: auto;
  padding-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-2);
}

.cc-code-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: stretch;
}

.cc-code-form .cc-input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-hud);
}

.cc-code-form .btn {
  flex: none;
}

/* กล่องยืนยันผูกบัญชีที่แทนฟอร์มรหัส: ให้กว้างเต็มแถวแทนที่จะถูกบีบเป็น flex item */
.cc-code-form > .cc-panel {
  flex: 1 1 100%;
  min-width: 0;
}

.cc-topup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (min-width: 600px) {
  .cc-packages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   เลือกวิธีชำระเงิน + โอนผ่านธนาคาร (แนบสลิป)
   -------------------------------------------------------------------------- */
.cc-methods {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.cc-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: left;
  background: var(--bg-main);
  border: 1px solid var(--cc-line-strong);
  color: var(--text-1);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cc-method:hover:not(:disabled),
.cc-method:focus-visible:not(:disabled) {
  border-color: var(--blue);
}

.cc-method:active:not(:disabled) {
  transform: scale(0.995);
}

.cc-method:disabled {
  opacity: 0.55;
  cursor: progress;
}

.cc-method strong {
  font-size: 1.02rem;
}

.cc-slip-amount {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--bg-main);
  border-left: 3px solid var(--blue);
}

.cc-slip-amount small {
  color: var(--text-2);
  font-size: 0.82rem;
}

.cc-slip-amount strong {
  font-family: var(--font-hud);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.cc-slip-bank {
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.cc-slip-bank > div {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.cc-slip-bank dt {
  color: var(--text-2);
  font-size: 0.86rem;
  flex: none;
}

.cc-slip-bank dd {
  margin: 0;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cc-slip-bank code {
  font-family: var(--font-hud);
  letter-spacing: 0.04em;
}

.cc-slip-bank .cc-link-btn {
  min-height: auto;
  margin-left: 0.5rem;
  font-size: 0.82rem;
}

.cc-slip-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.cc-slip-label {
  font-size: 0.86rem;
  color: var(--text-2);
  margin-top: 0.35rem;
}

.cc-slip-form input[type='file'] {
  padding: 0.55rem;
  font-size: 0.92rem;
}

.cc-slip-form input[type='file']::file-selector-button {
  margin-right: 0.6rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--cc-line-strong);
  background: var(--bg-card);
  color: var(--text-1);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

@media (min-width: 600px) {
  .cc-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   หีบรายวัน (#/daily) — โปสเตอร์อีเวนต์ตามภาพอ้างอิง
   ประกาศตัวแปร --dly-* เฉพาะหน้านี้ เพราะ theme-fm5.css โหลดทีหลังและเขียน
   --blue/--cyan เป็นสีแดง และตั้ง --clip-game-* เป็น none
   -------------------------------------------------------------------------- */
.cc-daily {
  --dly-coral: #ee6666;
  --dly-magenta: #dd3399;
  --dly-violet: #9922ee;
  --dly-yellow: #ffff99;
  --dly-yellow-hi: #ffffaa;
  --dly-yellow-lo: #fdf08a;
  --dly-yellow-edge: #ffbb55;
  --dly-gold-hi: #fff3c4;
  --dly-gold-1: #f8d880;
  --dly-gold-2: #f8d050;
  --dly-gold-3: #e8b048;
  --dly-gold-4: #e8a040;
  --dly-ink: #1a0f06;
  --dly-ink-2: #4a3210;
  --dly-olive: #6b4a08;
  --dly-azure: #4488ff;
  --dly-azure-card: #2c63cf;
  --dly-azure-card-done: #2a5fc9;
  --dly-azure-card-off: #27549f;
  --dly-lime-hi: #8ae95c;
  --dly-lime: #66dd44;
  --dly-lime-mid: #4fbf31;
  --dly-lime-low: #3fa622;
  --dly-lime-deep: #2f8f1b;
  --dly-red: #dd4422;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 960px;
}

/* ข้อความสำหรับตัวอ่านหน้าจอเท่านั้น (ยังไม่มี utility กลางในโปรเจกต์) */
.cc-daily-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* live region กลางสำหรับประกาศเปลี่ยนหน้า — มองไม่เห็นแต่ตัวอ่านหน้าจออ่านได้ */
.cc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- โปสเตอร์ ---------- */
.cc-daily-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(70% 60% at 16% 8%, rgba(60, 10, 4, 0.34) 0%, rgba(60, 10, 4, 0) 72%),
    radial-gradient(120% 105% at 78% 118%, rgba(221, 51, 153, 0.95) 0%, rgba(187, 34, 187, 0.55) 38%, rgba(187, 34, 187, 0) 70%),
    radial-gradient(90% 80% at 100% 0%, #9922ee 0%, rgba(153, 34, 238, 0) 62%),
    radial-gradient(130% 120% at 0% 0%, #ff7a63 0%, #ee6666 46%, rgba(238, 102, 102, 0) 80%),
    linear-gradient(102deg, #ee6666 0%, #e0527a 30%, #c93fae 62%, #9922ee 100%);
  box-shadow:
    0 24px 48px -24px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.cc-daily-banner.is-solo {
  display: block;
  padding-bottom: 18px;
}

/* ---------- หัวโปสเตอร์ ---------- */
.cc-daily-head {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 62px;
}

.cc-daily-title {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

.cc-daily-title-en {
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  /* ปล่อยให้ขึ้นบรรทัดใหม่ได้: ที่ 320px + ฟอนต์ขยาย 150–200% คำเดียวจะกว้างกว่าช่อง
     ถ้า nowrap ไว้ ปลายคำจะมุดใต้ป้ายสตรีค/ถูกขอบโปสเตอร์ตัด */
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 7.4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* แผ่นเงามืดเฉพาะหลังตัวอักษร: ทอง #f8d050 บนปะการังตรง ๆ ได้คอนทราสต์เพียง ~2:1
   เงามืดนี้ดันขึ้นเป็น ~5:1 โดยไม่ทิ้งความสดของโปสเตอร์ */
.cc-daily-title-en::before {
  content: '';
  position: absolute;
  inset: -0.08em -0.16em;
  z-index: -1;
  border-radius: 0.35em;
  background: radial-gradient(75% 120% at 30% 45%, rgba(48, 8, 4, 0.55), rgba(48, 8, 4, 0) 72%);
  pointer-events: none;
}

/* ชั้นเส้นขอบดำ: วาดก่อนแล้วให้ชั้นไล่สีทองทับ (ถ้าเบราว์เซอร์ไม่รองรับจะซ่อนชั้นนี้) */
.cc-daily-title-out {
  display: none;
}

@supports (-webkit-text-stroke: 1px #000) {
  .cc-daily-title-out {
    display: block;
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.22em var(--dly-ink);
    filter: drop-shadow(0 0.05em 0 rgba(60, 16, 4, 0.45));
  }
}

.cc-daily-title-fill {
  position: relative;
  color: var(--dly-gold-2);
}

/* เงาข้อความใช้ได้เฉพาะตอนที่ตัวอักษรยังทึบ — ถ้าใช้คู่กับ background-clip:text
   (ตัวอักษรโปร่งใส) เงาจะโผล่เป็นปื้นดำทะลุตัวอักษร จึงแยกมาไว้ใน fallback เท่านั้น */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .cc-daily-title-fill {
    text-shadow:
      0 2px 0 var(--dly-ink),
      2px 0 0 var(--dly-ink),
      -2px 0 0 var(--dly-ink),
      0 -2px 0 var(--dly-ink);
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cc-daily-title-fill {
    background: linear-gradient(180deg, #fff3c4 0%, #f8d880 16%, #f8d050 48%, #e8b048 74%, #e8a040 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
  }
}

/* Windows High Contrast / forced-colors: ระบบจะลบ background ของตัวอักษร
   แต่ไม่แทน -webkit-text-fill-color: transparent ทำให้ตัวอักษรทองหายทั้งหัวเรื่อง
   จึงวาดด้วยสีระบบ และซ่อนชั้นเส้นขอบที่ใช้สีตายตัว (น้ำตาลเข้มมองไม่เห็นบนพื้นดำ) */
@media (forced-colors: active) {
  .cc-daily-title-fill {
    background: none !important;
    -webkit-text-fill-color: CanvasText !important;
    color: CanvasText !important;
    text-shadow: none !important;
  }
  .cc-daily-title-out {
    display: none !important;
  }
}

.cc-daily-sub {
  margin: 6px 0 0;
  max-width: 46ch;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: #2c0b12;
}

/* ป้ายสตรีคมุมขวาบน */
.cc-daily-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 52px;
  padding: 4px 6px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #e04a26 0%, #c33a1a 62%, #9e2b10 100%);
  border: 2.5px solid #7a1d0c;
  box-shadow: 0 4px 0 #7a1d0c, inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.cc-daily-badge-ic {
  display: grid;
  place-items: center;
  line-height: 0;
}

.cc-daily-badge-n {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

/* ---------- การ์ดรางวัลวันนี้ (เหลืองอ่อน) ---------- */
.cc-daily-today {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 16px 14px 14px;
  text-align: center;
  color: #241703;
  border: 3px solid var(--dly-yellow-edge);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #ffffaa 0%, #ffff99 55%, #fdf08a 100%);
  box-shadow:
    inset 0 0 0 2px rgba(74, 50, 16, 0.12),
    0 12px 22px -14px rgba(40, 10, 40, 0.6);
}

/* เส้นขีด ๆ แบบวาดมือ ในการ์ด */
.cc-daily-today::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(120, 80, 16, 0.32);
  border-radius: 14px;
  pointer-events: none;
}

.cc-daily-today-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--dly-olive);
}

.cc-daily-today-art {
  display: grid;
  place-items: center;
  margin: 2px 0;
}

.cc-daily-today-art svg {
  max-width: 100%;
  height: auto;
}

.cc-daily-today-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  color: #241703;
}

.cc-daily-today-value strong {
  font-size: clamp(1.8rem, 7vw, 2.4rem);
}

.cc-daily-today-value span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--dly-olive);
}

.cc-daily-today-meta {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #5b4510;
}

.cc-daily-today-name {
  margin: 0;
  font-size: 0.74rem;
  color: #5b4510;
}

.cc-daily-today-stats {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #5b4510;
}

.cc-daily-today-title {
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--dly-gold-2);
  color: #3a2a00;
  font-size: 0.68rem;
  font-weight: 700;
}

.cc-daily-today-chip {
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #3f3f14;
  color: #ffe9a8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cc-daily-today-chip.is-ready {
  background: #2f7a14;
  color: #f2ffe8;
}

.cc-daily-today-chip.is-warn {
  background: #7a3a00;
  color: #fff1e6;
}

/* ---------- แผงรางวัล 7 วัน (ฟ้า) ---------- */
.cc-daily-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 16% -10%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 58%),
    linear-gradient(165deg, #5b95ff 0%, #4488ff 38%, #3a72e8 74%, #2c63cf 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    0 14px 28px -18px rgba(20, 50, 140, 0.65);
}

.cc-daily-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(9, 26, 74, 0.42);
}

.cc-daily-h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.cc-daily-panel-cycle {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #eaf1ff;
  white-space: nowrap;
}

.cc-daily-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(84px, 23.5vw, 112px);
  gap: 8px;
  margin: 0;
  /* ต้องเผื่อขอบริงทองของ .is-today (3px) + translateY(-2px): overflow-x:auto ยังตัดแนวตั้งด้วย
     ถ้า padding บางเกิน รিংด้านบน/ล่างจะถูกตัดหาย */
  padding: 6px 4px 10px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cc-daily-track::-webkit-scrollbar {
  display: none;
}

.cc-daily-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 9px 5px 8px;
  text-align: center;
  color: #fff;
  background: var(--dly-azure-card);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  scroll-snap-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.cc-daily-day.is-done {
  background: var(--dly-azure-card-done);
  border-color: #b6ff86;
}

.cc-daily-day.is-off {
  background: var(--dly-azure-card-off);
  border-color: rgba(255, 255, 255, 0.6);
  border-style: dashed;
  color: #dbe6ff;
}

.cc-daily-day.is-big {
  border-color: var(--dly-gold-2);
}

/* วันปัจจุบันถูกไฮไลต์เสมอ (ก่อนและหลังรับ) เพื่อให้ตัวเลื่อน/ตัวอ่านหน้าจอตามทัน
   สถานะ "รับแล้ว" ยังอ่านออกจากขอบเขียว + เครื่องหมายถูกด้านใน */
.cc-daily-day.is-today {
  position: relative;
  color: #241703;
  background: #fffdf2;
  border-color: #fff;
  box-shadow:
    0 0 0 3px var(--dly-gold-2),
    0 10px 20px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.cc-daily-day.is-done.is-today {
  color: #eafff5;
  background: linear-gradient(180deg, #2e7d68 0%, #1f5c4c 100%);
  border-color: #b6ff86;
}

.cc-daily-day.is-today:not(.is-done) .cc-daily-day-n,
.cc-daily-day.is-today:not(.is-done) .cc-daily-label {
  color: #4a4a1c;
}

.cc-daily-day.is-today:not(.is-done) .cc-daily-coins {
  color: #241703;
}

.cc-daily-day.is-today:not(.is-done) .cc-daily-day-icon {
  color: #a06a00;
}

.cc-daily-day.is-today .cc-daily-day-icon {
  color: #b6ff86;
}

.cc-daily-day-n {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  color: #e8f0ff;
}

.cc-daily-day-icon {
  display: grid;
  place-items: center;
  margin: 1px 0;
  color: #ffd76a;
}

.cc-daily-day.is-done .cc-daily-day-icon {
  color: #b6ff86;
}

.cc-daily-coins {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
}

.cc-daily-label {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.6rem;
  line-height: 1.3;
  color: #e8f0ff;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cc-daily-day .cc-badge {
  margin-top: 2px;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.55rem;
}

.cc-daily-day .cc-badge-muted {
  color: #eaf1ff;
  background: rgba(9, 26, 74, 0.55);
}

.cc-daily-day .cc-daily-today-chip {
  margin: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--dly-gold-2);
  color: #241703;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---------- โซนรับรางวัล ---------- */
.cc-daily-claim-zone {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cc-daily-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fffcf0;
  border: 2px solid rgba(40, 16, 0, 0.32);
  color: #241703;
  font-size: 0.88rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
}

.cc-daily-player > svg {
  flex: none;
  color: #6b4a08;
}

.cc-daily-player > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
  /* ชื่อตัวละคร/ข้อความยาวต้องตัดบรรทัดได้ ไม่ดันกล่องจนล้นขอบจอ */
  overflow-wrap: anywhere;
}

.cc-daily-player .cc-muted {
  font-size: 0.8rem;
  color: #4a4a1c;
}

.cc-daily-player .cc-select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  font-size: 16px;
  color: #241703;
  border-radius: 10px !important;
  background: #ffffff !important;
  border-color: rgba(80, 50, 10, 0.4) !important;
}

.cc-daily-player .cc-select:focus {
  border-color: var(--dly-yellow-edge) !important;
  box-shadow: 0 0 0 3px rgba(255, 187, 85, 0.45) !important;
}

/* ริงโฟกัสของเบราว์เซอร์เป็นสีขาว/ฟ้า ซึ่งจมกับพื้นครีมของกล่องนี้
   ให้วงนอกเป็นน้ำตาลเข้ม (ตัดกับ #fffcf0 ~12:1) ส่วนริงทองด้านในยังบอกโฟกัสแบบเดียวกับปุ่มอื่น */
.cc-daily-player .cc-select:focus-visible {
  outline: 2px solid #1a0f06;
  outline-offset: 2px;
}

/* ปุ่มเปิดหีบแบบ 3 มิติสไตล์ภาพอ้างอิง */
.cc-daily .cc-daily-claim {
  width: 100%;
  min-height: 58px;
  padding: 8px 20px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border: 2px solid var(--dly-lime-deep);
  border-radius: 18px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(10, 40, 4, 0.5);
  /* แถบสีเข้มกลางปุ่ม (ไม่จาง): ตัวอักษรขาวครอบคลุมทุกตำแหน่งของข้อความ
     ขาวบน #4fbf31 ล้วนได้ ~2.55:1 — แถบนี้ทำให้โซนตัวอักษรได้ ≥4:1 แม้ที่ขอบบน/ล่าง */
  background:
    linear-gradient(
      180deg,
      rgba(10, 60, 6, 0) 12%,
      rgba(10, 60, 6, 0.5) 20%,
      rgba(10, 60, 6, 0.5) 80%,
      rgba(10, 60, 6, 0) 88%
    ),
    radial-gradient(70% 130% at 50% 55%, rgba(10, 60, 6, 0.42), rgba(10, 60, 6, 0) 72%),
    linear-gradient(180deg, #8ae95c 0%, #6fdf49 20%, #4fbf31 52%, #3fa622 78%, #2f8f1b 100%);
  box-shadow:
    0 6px 0 #449922,
    0 14px 22px -12px rgba(20, 70, 10, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}

.cc-daily .cc-daily-claim:hover:not(:disabled) {
  filter: brightness(1.06);
}

.cc-daily .cc-daily-claim:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 #449922,
    0 8px 14px -10px rgba(20, 70, 10, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cc-daily .cc-daily-claim.is-loading {
  filter: brightness(0.94);
}

.cc-daily .cc-daily-claim:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  color: #263026;
  text-shadow: none;
  border-color: #6d7a68;
  background: linear-gradient(180deg, #b7c2b2 0%, #a3afa0 55%, #93a08f 100%);
  box-shadow:
    0 4px 0 #6d7a68,
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cc-daily-note {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f6b2e;
  font-size: 0.8rem;
  font-weight: 600;
}

.cc-daily-note.is-warn {
  background: #fff4d6;
  color: #7a4a00;
}

.cc-daily-time {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 8, 20, 0.4);
  color: #f4f0ff;
  font-size: 0.78rem;
}

.cc-daily-countdown {
  font-family: var(--font-label);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.cc-daily-countdown.is-ready {
  color: #b9ff9e;
}

/* ---------- แถบคำคมขาว (มุมล่างซ้าย) ---------- */
.cc-daily-quote {
  position: relative;
  z-index: 1;
  margin: 4px -16px -16px;
  padding: 20px 18px 16px;
  color: #0b0b0b;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 72%, #fff8e0 100%);
  /* ขอบตัดเฉียงเป็นระยะตายตัว ไม่ใช่ % ของความสูง: ถ้าใช้ % เมื่อฟอนต์ขยาย
     ความสูงกล่องเพิ่มแต่ระยะเผื่อบรรทัดแรกคงที่ ขอบเฉียงจะกัดตัวอักษร */
  clip-path: polygon(0 14px, 100% 0, 100% 100%, 0 100%);
}

.cc-daily-quote-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.cc-daily-quote-en {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 500;
  color: #5f5f5f;
}

.cc-daily-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #0b0b0b;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- สถานะอื่น ๆ ---------- */
.cc-daily-notlinked .cc-state {
  border-radius: 16px;
}

.cc-card.cc-daily-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
}

.cc-daily-history {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-daily-history li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 0;
  border-bottom: 1px solid var(--cc-radius-line);
  font-size: 0.85rem;
}

.cc-daily-history li:last-child {
  border-bottom: 0;
}

.cc-daily-history li > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-daily-history li > strong {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: #34d399;
}

.cc-daily .cc-skel-block {
  height: 240px;
  margin-top: 0;
  border-radius: 20px;
}

/* วงแหวนโฟกัสขาว + เงาเข้ม: เห็นชัดบนทุกพื้นของโปสเตอร์ */
.cc-daily :focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(10, 8, 16, 0.55);
}

.cc-daily .cc-daily-track:focus-visible {
  outline-offset: 3px;
}

/* ---------- เดสก์ท็อป: เรียงตามภาพอ้างอิง ---------- */
@media (min-width: 900px) {
  .cc-daily-banner {
    display: grid;
    grid-template-columns: minmax(228px, 0.78fr) minmax(0, 1.72fr);
    grid-template-areas:
      'head head'
      'today panel'
      'quote claim';
    align-items: start;
    gap: 18px 20px;
    padding: 24px;
  }

  .cc-daily-banner.is-solo {
    display: block;
  }

  .cc-daily-head {
    grid-area: head;
    padding-right: 96px;
  }

  .cc-daily-badge {
    top: 20px;
    right: 20px;
    min-width: 58px;
    padding: 5px 8px;
    border-radius: 16px;
  }

  .cc-daily-badge-n {
    font-size: 1.2rem;
  }

  .cc-daily-today {
    grid-area: today;
    align-self: stretch;
    justify-content: center;
    padding: 22px 18px;
  }

  .cc-daily-panel {
    grid-area: panel;
    align-self: stretch;
  }

  .cc-daily-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    padding: 0;
  }

  .cc-daily-day {
    scroll-snap-align: none;
  }

  .cc-daily-claim-zone {
    grid-area: claim;
    align-self: end;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
  }

  .cc-daily-quote {
    grid-area: quote;
    align-self: end;
    margin: 0 0 -24px -24px;
    /* 26px: ขอบตัดเฉียงระยะตายตัว เสมอกับระยะเผื่อบรรทัดแรก — ฟอนต์ขยายแล้วไม่กัดตัวอักษร */
    padding: 26px 22px 18px 24px;
    clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-daily *,
  .cc-daily *::before,
  .cc-daily *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   ส่วนเสริมของหน้าร้าน: เหรียญบนการ์ด, ตะกร้าที่มีของหมด, แบนเนอร์แจ้งเตือน
   -------------------------------------------------------------------------- */

/* ป้าย "แนะนำ" อยู่มุมขวา ส่วน "โปรโมชั่น" อยู่มุมซ้าย — ของลดราคาที่เป็นของแนะนำเห็นได้ทั้งคู่ */
.cc-tag-featured {
  left: auto;
  right: 0.5rem;
  color: #14120a;
  background: var(--amber);
}

.cc-card-coins {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
}

.cc-line-coins {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
}

.cc-line-old {
  opacity: 0.6;
}

/* รายการที่หมดสต็อกยังอยู่ในตะกร้า แต่บอกชัดว่าใช้ไม่ได้ */
.cc-line-off {
  position: relative;
  opacity: 0.7;
}

.cc-line-off::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: var(--clip-game-sm);
}

.cc-discount-value {
  color: var(--emerald);
}

/* แถบแจ้งเตือนบนเนื้อหา — ใช้ทั้งหน้าแรก (รอชำระเงิน) และตะกร้า (ของหมด) */
.cc-notice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.9rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-1);
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--amber);
  clip-path: var(--clip-game-sm);
}

.cc-notice > span {
  flex: 1;
  min-width: 0;
}

.cc-notice-link {
  color: var(--text-1);
  text-decoration: none;
}

.cc-notice-link:hover {
  background: rgba(245, 158, 11, 0.16);
}

.cc-category-banner {
  margin: 0.85rem 0 0.35rem;
  overflow: hidden;
  clip-path: var(--clip-game-card);
  background: var(--bg-card);
  max-height: 220px;
}

.cc-category-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* เวลารีเซ็ตจริงของหีบรายวัน — ต่อท้ายตัวนับ ไม่แย่งจอ */
.cc-daily-reset-at {
  white-space: nowrap;
  opacity: 0.85;
}

.cc-daily-history-empty {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

/* รายละเอียดย่อยใต้ชื่อสินค้าในสรุปคำสั่งซื้อ (ราคาต่อหน่วย × จำนวน, ระยะเวลา) */
.cc-line-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ตารางข้อมูลคำสั่งซื้อ (วิธีชำระเงิน/สถานะ/เวลา) */
.cc-order-meta {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cc-radius-line);
}

.cc-order-meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.cc-order-meta li strong {
  color: var(--text-1);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

/* รหัสบัญชีเกม/รายการชำระเงิน — แสดงแบบโค้ดบรรทัดเดียว */
.cc-account-id {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--text-2);
  background: var(--bg-card, rgba(140, 178, 211, 0.08));
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* แถบความคืบหน้าการส่งมอบ */
.cc-delivery-progress {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
}

.cc-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(140, 178, 211, 0.16);
  overflow: hidden;
}

.cc-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--emerald);
  transition: width 0.4s ease;
}

/* รายการคำสั่งซื้อ: แถวลิงก์ + ปุ่มยกเลิกใต้แถว */
.cc-order-item {
  display: grid;
  gap: 0.25rem;
}

.cc-order-item > .cc-order-row {
  display: flex;
}

.cc-order-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.85rem 0.15rem;
}

.cc-order-failed-hint {
  font-size: 0.76rem;
  color: var(--red);
}

/* คำเตือนต่อบรรทัดในหน้าตรวจสอบคำสั่งซื้อ (สต็อก/ลิมิต) */
.cc-line-warn {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--amber);
}

/* ข้อมูลผู้เล่นและแพ็กเกจในหน้าเติมเหรียญ */
.cc-player-status {
  font-size: 0.76rem;
  color: var(--red);
}

.cc-package-desc {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

.cc-package-meta {
  font-size: 0.72rem;
  color: var(--text-3);
}

.cc-package-price .cc-line-old {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   ไอเท็มในแพ็ก (หน้ารายละเอียดสินค้า) + รูปของรางวัลหีบรายวัน
   -------------------------------------------------------------------------- */
.cc-contents {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.cc-content-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem;
  background: var(--bg-elevated);
  clip-path: var(--clip-game-sm);
  min-width: 0;
}

.cc-content-img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--bg-card);
  clip-path: var(--clip-game-sm);
}

.cc-content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-content-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cc-content-info strong {
  color: var(--text-1);
  overflow-wrap: anywhere;
}

/* รูปของรางวัลที่แอดมินอัปโหลด — แทนไอคอน/ภาพเหรียญเริ่มต้น */
.cc-daily-day-img {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
}

.cc-daily-day-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-daily-today-art img {
  max-width: 128px;
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   ไอคอนจากฟอนต์ของเกม (Real City iconfont) — ใช้แสดงไอเท็ม/ชุด/รถในกระเป๋า
   ไฟล์ฟอนต์ถูกคัดลอกไว้ที่ /assets/fonts/rc-icons.woff2 (same-origin, CSP ผ่าน)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'rc-icons';
  src: url('/assets/fonts/rc-icons.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

.rc-icon {
  font-family: 'rc-icons' !important;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.rc-icon-water::before { content: '\f1a1'; }
.rc-icon-food::before { content: '\f13d'; }
.rc-icon-shield::before { content: '\f181'; }
.rc-icon-tshirt::before { content: '\f19c'; }
.rc-icon-legs::before { content: '\f151'; }
.rc-icon-shoes::before { content: '\f182'; }
.rc-icon-minerals::before { content: '\f160'; }
.rc-icon-bullet::before { content: '\f116'; }
.rc-icon-car::before { content: '\f11d'; }
.rc-icon-backpack::before { content: '\f1d8'; }
.rc-icon-warehouse::before { content: '\f1d8'; }
.rc-icon-box::before { content: '\f115'; }
