:root {
  --bg-body: #f4f7f6;
  --bg-card: #ffffff;
  --c-primary: #1976d2;
  --c-secondary: #1976d2;
  --c-accent: #ffb300;
  --c-success: #0f9d58;
  --c-danger: #d32f2f;
  --text-main: #202124;
  --text-muted: #5f6368;
  --bg-header: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --bg-btn: linear-gradient(45deg, #ff512f, #dd2476);
  --txt-running: linear-gradient(90deg, #d81b60, #1976d2, #ffb300);
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-title: 24px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-btn: 30px;
  --border-line: 1px solid #eeeeee;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-header: 0 4px 10px rgba(0,0,0,0.15);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 10px 8px;
  text-align: center;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 20px;
  text-align: left;
}

p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 15px;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  padding: 12px 0;
  box-shadow: var(--shadow-header);
}

.top-bar h1 {
  margin: 0;
  font: 800 var(--fs-title) 'Montserrat', sans-serif;
  color: #fff;
  text-transform: uppercase;
}

.top-bar h2 {
  color: var(--c-secondary);
  font-size: 14px;
  margin-top: 5px;
  font-weight: 400;
}

.card-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 12px 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--c-secondary);
}

.title-head {
  background: var(--bg-header);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  font: 800 var(--fs-lg) 'Montserrat', sans-serif;
  margin-top: 0;
  text-transform: uppercase;
}

.txt-lg {
  font-size: var(--fs-xl);
  font-weight: 900;
  margin: 5px 0;
}

.txt-md {
  font-size: 16px;
  margin: 5px 0;
  font-weight: 700;
  color: var(--text-main);
}

.txt-sm {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.color-primary {
  color: var(--c-primary);
}

.btn-gradient {
  display: inline-block;
  background: var(--bg-btn);
  color: #fff !important;
  cursor: pointer;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(221, 36, 118, 0.3);
  margin: 10px 0;
  transition: transform 0.2s;
}

.btn-gradient:active {
  transform: scale(0.95);
}

.btn-action {
  background: #fff;
  border: 2px solid #eee;
  padding: 10px 20px;
  color: var(--text-main);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-action.full-width {
  width: 100%;
  margin: 10px 0;
}

.lucky-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(55, 27, 216, 0.2);
  margin: 15px 0;
  border: 0 solid var(--c-secondary);
  overflow: hidden;
}

.lucky-box h4 {
  margin: 0 0 10px;
  color: var(--c-primary);
  font-size: var(--fs-lg);
  text-transform: uppercase;
}

.lucky-box p {
  font-size: var(--fs-title);
  font-weight: 900;
  margin: 0;
  color: var(--text-main);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
}

table, th, td {
  border: 1px solid rgba(3, 169, 244, 0.3);
}

thead, .tr {
  background: var(--bg-header);
  color: #fff;
  text-shadow: none;
}

thead th {
  padding: 10px;
  font-size: 13px;
  font-weight: bold;
}

tbody td {
  background-color: #fff;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 700;
  text-align: center;
}

thead tr th:first-child {
  width: 100px;
}

tbody td:nth-child(3n+2) {
  border-right-width: 0;
  font-size: 13px;
}

tbody td:nth-child(3n+3) {
  border-left-width: 0;
  border-right-width: 0;
  font-size: 20px;
}

tbody td:nth-child(3n+4) {
  border-left-width: 0;
  font-size: 13px;
}

@media only screen and (max-width: 770px) {
  tbody td {
    font-size: 11px;
  }

  tbody td:nth-child(3n+3) {
    font-size: 16px;
  }
}
