body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(circle at top, #111, #000);
  color: #fff;
}

.container{
  max-width:1200px;
  margin: 0 auto;
  /* padding: 16px; */
}


.score-wrap {
  grid-template-columns: 1fr;   /* เหลือคอลัมน์เดียว */
  justify-items: center;        /* จัด item ในกริดให้อยู่กลาง */
}

.side-title {
  text-align: center;
  margin-bottom: 10px;
  color: #ffb300;
  letter-spacing: 3px;
}


td:nth-child(2) {
  text-align: left;
  padding-left: 24px;
}

.title {
  text-align: center;
  color: #ffb300;
  text-shadow: 0 0 15px rgba(255,180,0,.8);
  margin-bottom: 30px;
}

.score-card {
  background: linear-gradient(180deg,#1a1a1a,#0c0c0c);
  border: 1px solid #ffb300;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255,180,0,.2);
  overflow: hidden;
  width: min(620px, 92vw);      /* กำหนดความกว้างการ์ดให้พอดี */
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #ffb300;
  color: #000;
}

th, td {
  padding: 14px;
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: 0.3s;
}

tbody tr:hover {
  background: rgba(255,180,0,.1);
  transform: scale(1.01);
}

.score {
  color: #9900CC;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(100, 1, 255, 1);
}

tbody tr {
  animation: fadeIn 0.4s ease forwards;
}

.rank {
  font-size: 22px;
  font-weight: 800;
}

.rank-1 {
  background: linear-gradient(90deg,#ffd70030,#000);
}
.rank-2 {
  background: linear-gradient(90deg,#c0c0c030,#000);
}
.rank-3 {
  background: linear-gradient(90deg,#cd7f3230,#000);
}

.score {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
}

.score.red {
  color: #ff3b3b;
  text-shadow: 0 0 12px rgba(255,60,60,.9);
}

.score.blue {
  color: #2dd9ff;
  text-shadow: 0 0 12px rgba(45,217,255,.9);
}

.score-animate {
  animation: scorePop 0.8s ease;
}

@keyframes scorePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}


.event-title {
  text-align: center;
  margin-bottom: 30px;
}

.event-main {
  font-size: 82px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffb300;
  text-shadow:
    0 0 10px rgba(255,180,0,0.6),
    0 0 25px rgba(255,120,0,0.9);
}

.event-sub {
  font-size: 62px;
  margin-top: 6px;
  color: #ffffff;
  letter-spacing: 4px;
  opacity: 0.85;
}


/* ===== TOP 3 BOOST ===== */
.rank-1 td {
  font-size: 20px;
  font-weight: 900;
}

.rank-1 .score {
  font-size: 40px;
}

.rank-2 .score,
.rank-3 .score {
  font-size: 36px;
}

.rank-1 {
  box-shadow: 0 0 25px rgba(255,215,0,.7);
}

.rank-2 {
  box-shadow: 0 0 18px rgba(200,200,200,.5);
}

.rank-3 {
  box-shadow: 0 0 15px rgba(205,127,50,.5);
}
