:root {
  --blue-outer: #2436c2;
  --blue-card: #1E40AF;
  --blue-row: rgb(15, 31, 90);
  --yellow: #ffd400;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}
@font-face {
    font-family: myFirstFont;
    src: url(../assets/fonts/Prompt-Regular.ttf);
}

@font-face {
    font-family: myFirstFontthin;
    src: url(../assets/fonts/Prompt-ExtraLight.ttf);
} 
@font-face {
    font-family: myFirstFontnew;
    src: url(../assets/fonts/Prompt-Regular.ttf);
}

* {
    font-family: myFirstFontnew;
} 

body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: myFirstFontnew;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.lotto-wrap {
  width: 100%;
  max-width: none;
}

.lotto-status {
  text-align: center;
  color: #4a4a4a;
  padding: 40px 0;
  font-size: 16px;
}

.lotto-status.error {
  color: #c0392b;
}

/* ---------- การ์ดหลักของแต่ละงวด ---------- */
.lotto-card {
  background: var(--blue-outer);
  border-radius: 50px;
  padding: 8px;
  margin-bottom: 0;

}

.lotto-title {
  background: var(--white);
  color: #000000;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  border-radius: 48px 48px 0 0;
  padding: 14px 12px;
  margin-bottom: 20px;
}

.lotto-number {
  text-align: center;
  color: var(--yellow);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 4px;
  margin: 8px 0 24px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.lotto-columns {
  display: flex;
  justify-content: space-between;
  text-align: center;
  color: var(--white);
  margin-bottom: 8px;
}

.lotto-columns .col {
  flex: 1;
}

.lotto-columns .label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.lotto-columns .value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- หัวข้อ "หวยย้อนหลัง" ---------- */
.history-heading {
  color: var(--white);
  font-size: 15px;
  margin: 4px 15px 12px;
}

/* ---------- การ์ดย่อยของงวดย้อนหลัง ---------- */
.history-card {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
}

.history-card .history-date {
  background: var(--white);
  color: var(--blue-row);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 16px;
}

.history-card .history-body {
  background: var(--blue-row);
  padding: 10px;
  display: flex;
  color: var(--white);
  text-align: center;
}

.history-card .history-body .col {
  flex: 1;
}

.history-card .history-body .label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.history-card .history-body .label.prize {
  color: var(--white);
}

.history-card .history-body .value {
  font-size: 16px;
  font-weight: 700;
}

.history-card .history-body .value.prize {
  color: var(--yellow);
}
#history-slot{
    width: 95%;
    margin: auto;
}

/* ---------- ปุ่มรีเฟรช ---------- */
.refresh-btn {
  display: block;
  margin: 0 auto 24px;
  background: var(--white);
  color: #1c2ba3;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 43, 163, 0.25);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 420px) {
  body {
    overflow: visible;
  }
  .lotto-number {
    font-size: 36px;
    letter-spacing: 2px;
  }
  .lotto-columns .value {
    font-size: 16px;
  }
}
