* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* พื้นหลังทั้งหน้า */
body {
  margin: 0;
  min-height: 100vh;
  color: #f1f5ff;
  background-color: #080b18;
  background-image:
    radial-gradient(ellipse at 12% 12%, #22d3ee40, transparent 38%),
    radial-gradient(ellipse at 88% 18%, #a855f75c, transparent 42%),
    radial-gradient(ellipse at 80% 92%, #ec489948, transparent 42%),
    linear-gradient(145deg, #080b18, #16112e 55%, #090b19);
}

/* ให้พื้นหลังต่อเนื่องผ่านส่วนโลโก้ แต่เก็บขอบนีออนไว้ */
.โลโก้ {
  background: transparent;
}

/* พื้นหลังของส่วนโลโก้ */
.โลโก้ {
  display: grid;
  place-items: center;
  padding: clamp(32px, 7vw, 72px) 20px;
  border-radius: 28px;
}

/* กรอบกระจกขอบทอง */
#โลโก้ {
  position: relative;
  width: min(180px, 100%);
  box-sizing: border-box;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #f4ce8766;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff24, #ffffff06);
  box-shadow: 0 16px 36px #0006, 0 0 32px #f9cf7826;
}

#โลโก้ img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ประกายแสงพาดผ่านกรอบ */
#โลโก้::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    #fff1c966 50%,
    transparent 65%
  );
  transform: translateX(-100%);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #โลโก้::after {
    transition: transform 650ms ease;
  }

  #โลโก้:hover::after {
    transform: translateX(100%);
  }
}

.ผู้เล่น {
  box-sizing: border-box;
  width: min(100%, 360px);
  margin: 2px auto;
  padding: 20px 20px;
  text-align: center;
  color: #f8fafc;
  border: 1px solid #f4ce8755;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top, #e9bc5726, transparent 65%),
    linear-gradient(145deg, #1b2741, #0b1120);
  box-shadow: 0 16px 36px #0005, 0 0 24px #f9cf781a;
}

.ผู้เล่น p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #e2e8f0;
  font-size: 1rem;
}

.ผู้เล่น p::before {
  content: "";
  flex: 0 0 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80bb;
}

#ผู้เล่น {
  color: #ffe4a3;
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: 0 0 20px #f9cf7855;
  overflow-wrap: anywhere;
}

.ผู้เล่น-คำอธิบาย {
  display: block;
  margin-top: 8px;
  color: #b7c4d8;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: no-preference) {
  .ผู้เล่น {
    animation: player-card-in 450ms ease-out both;
  }

  @keyframes player-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* จัดปุ่มให้อยู่กึ่งกลาง */
.สมัครสมาชิก {
  display: flex;
  justify-content: center;
  padding: 20px 16px;
}

/* ปุ่มสีทอง */
#สมัครสมาชิก {
  position: relative;
  width: min(100%, 320px);
  min-height: 56px;
  overflow: hidden;
  padding: 14px 28px;

  border: 1px solid #fff0b5;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff2bc, #f5cc69 48%, #dfa63a);
  color: #2d1b06;

  font: inherit;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 #ffffffa0,
    0 5px 0 #95601d,
    0 10px 26px #e9b74c55;

  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* แถบประกายแสง */
#สมัครสมาชิก::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 35%,
    #ffffff88 50%,
    transparent 65%
  );
  transform: translateX(-100%);
}

@media (hover: hover) {
  #สมัครสมาชิก:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 1px 0 #ffffffa0,
      0 8px 0 #95601d,
      0 14px 32px #e9b74c77;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #สมัครสมาชิก:hover::after {
    transform: translateX(100%);
    transition: transform 600ms ease;
  }
}

#สมัครสมาชิก:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #95601d, 0 5px 14px #e9b74c44;
}

#สมัครสมาชิก:focus-visible {
  outline: 3px solid #fff0b5;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  #สมัครสมาชิก {
    transition: none;
  }

  #สมัครสมาชิก:hover,
  #สมัครสมาชิก:active {
    transform: none;
  }
}

.แอดไลน์ {
  display: flex;
  justify-content: center;
  padding: 12px 16px 20px;
}

#แอดไลน์ {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 320px);
  min-height: 56px;
  padding: 14px 28px;

  border: 1px solid #afffd1;
  border-radius: 999px;
  background: linear-gradient(135deg, #b2ffcc, #42e889 48%, #10b967);
  color: #062d1b;

  font: inherit;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 #ffffffa0,
    0 5px 0 #087345,
    0 10px 26px #27d77b55;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* ไอคอนแชต วาดด้วย CSS ไม่ต้องโหลดรูปเพิ่ม */
#แอดไลน์::before {
  content: "";
  flex: 0 0 22px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(
    0 8%, 100% 8%, 100% 75%, 46% 75%,
    17% 100%, 17% 75%, 0 75%
  );
}

@media (hover: hover) {
  #แอดไลน์:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 1px 0 #ffffffa0,
      0 8px 0 #087345,
      0 14px 32px #27d77b77;
  }
}

#แอดไลน์:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #087345, 0 5px 14px #27d77b44;
}

#แอดไลน์:focus-visible {
  outline: 3px solid #afffd1;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  #แอดไลน์ {
    transition: none;
  }

  #แอดไลน์:hover,
  #แอดไลน์:active {
    transform: none;
  }
}

/* กรอบหลัก */
.รายการถอนเงิน {
  box-sizing: border-box;
  width: min(540px, calc(100% - 24px));
  margin: 24px auto;
  padding: clamp(14px, 4vw, 24px);
  border: 1px solid #4ee9a24d;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top right, #24c79529, transparent 60%),
    linear-gradient(145deg, #17283b, #0a1420);
  color: #f0f8ff;
  box-shadow: 0 14px 32px #0005;
}

.รายการถอนเงิน > h3 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #8bffc533;
  color: #dcfff0;
  font-size: 1.15rem;
}

#รายการถอนเงิน {
  display: grid;
  gap: 8px;
}

/* การ์ดแต่ละรายการ: ใช้คลาสเดียวกับที่ JS สร้าง */
#รายการถอนเงิน .รายการถอนเงิน-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid #ffffff1a;
  border-inline-start: 3px solid #4ee9a2;
  border-radius: 14px;
  background: linear-gradient(110deg, #14293a, #0c1b29);
  overflow-wrap: anywhere;
}

.รายการถอนเงิน .ข้อมูลผู้ถอน {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.รายการถอนเงิน .รูปธนาคาร {
  display: block;
  flex: 0 0 38px;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid #a6f7d3;
  border-radius: 11px;
  background: #f8fafc;
}

.รายการถอนเงิน .ข้อมูลผู้ถอน strong {
  display: block;
  font-size: 0.875rem;
}

.รายการถอนเงิน .ข้อมูลผู้ถอน small {
  display: block;
  margin-top: 3px;
  color: #b2c5d6;
  font-size: 0.75rem;
}

.รายการถอนเงิน .ยอดถอน {
  margin-inline-start: auto;
  text-align: end;
}

.รายการถอนเงิน .จำนวนเงินถอน {
  display: block;
  color: #8bffc5;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.รายการถอนเงิน .โอนสำเร็จ {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid #8bffc53d;
  border-radius: 999px;
  background: #8bffc514;
  color: #b8ffda;
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  #รายการถอนเงิน .รายการถอนเงิน-item {
    animation: ถอนเงินเลื่อนเข้า 280ms ease-out both;
  }
}

@keyframes ถอนเงินเลื่อนเข้า {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ใช้กับแถวที่มีคลาส .แถวถอนเงิน */
@media (prefers-reduced-motion: no-preference) {
  .แถวถอนเงิน {
    animation: รายการเข้า 300ms ease-out both;
  }
}

@keyframes รายการเข้า {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* กรอบทองสองชั้น */
.แจ็คพอตรวม {
  box-sizing: border-box;
  width: min(540px, calc(100% - 32px));
  margin: 24px auto;
  padding: clamp(16px, 5vw, 28px);
  border: 1px solid #d9af5b;
  border-radius: 26px;

  background:
    radial-gradient(ellipse at top, #bb874c44, transparent 65%),
    repeating-linear-gradient(135deg, transparent 0 8px, #ffffff05 8px 9px),
    linear-gradient(155deg, #202d48, #0b1120 75%);

  color: #f8fafc;
  text-align: center;
  box-shadow:
    inset 0 0 0 5px #0a1020,
    inset 0 0 0 6px #d9af5b44,
    0 14px 32px #0006,
    0 0 24px #d9af5b26;
}

.แจ็คพอตรวม h2 {
  margin: 0 0 16px;
  color: #fff0c7;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
}

/* ช่องแสดงยอดหลัก */
.แจ็คพอตรวม .มูลค่ารวม {
  padding: 18px 10px;
  border: 1px solid #d9af5b55;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, #b987332e, transparent 78%),
    #080e1c;
}

.แจ็คพอตรวม #ยอดแจ็คพอต {
  display: block;
  margin-top: 6px;
  color: #ffe19a;
  font-size: clamp(1.6rem, 8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-shadow: 0 0 22px #ffc85a66;
}

/* ช่องสถิติด้านล่าง */
.แจ็คพอตรวม .สถิติแจ็คพอต {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.แจ็คพอตรวม .สถิติ {
  padding: 12px 8px;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  background: #ffffff0a;
  overflow-wrap: anywhere;
}

.แจ็คพอตรวม .มูลค่ารวม > span,
.แจ็คพอตรวม .สถิติ > span {
  display: block;
  color: #c3cee2;
  font-size: 0.875rem;
}

.แจ็คพอตรวม .สถิติ > b {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.แจ็คพอตรวม #รางวัลสูงสุด {
  color: #90ffca;
}

@media (max-width: 360px) {
  .แจ็คพอตรวม .สถิติแจ็คพอต {
    grid-template-columns: 1fr;
  }
}