/* ------------------------------------------------------------
 * stats.css
 * - 통계 탭 전용
 * ------------------------------------------------------------ */

.online-latest-head{
  margin-bottom:18px;
}

.online-draw-showcase{
  padding:18px 16px;
  border-radius:24px;
  background:
    radial-gradient(circle at top right, rgba(42,193,160,0.10) 0, rgba(42,193,160,0) 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,245,0.98));
  border:1px solid rgba(208,216,210,0.88);
  box-shadow:none;
  color:var(--text-strong);
}

.online-draw-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
}

.online-draw-title-main{
  font-size:24px;
  font-weight:700;
  letter-spacing:-0.05em;
}

.online-draw-title-date,
.online-prize-label,
.online-prize-sub{
  color:var(--text-faint);
}

.online-draw-balls-row{
  gap:6px;
  flex-wrap:nowrap;
}

.online-draw-balls-row .online-lotto-ball{
  width:32px;
  height:32px;
  font-size:13px;
  box-shadow:none;
}

.online-lotto-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  color:var(--text-faint);
  font-size:14px;
  font-weight:700;
}

.online-prize-block{
  margin-top:12px;
}

.online-prize-value{
  margin-top:4px;
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.04em;
}

.online-summary-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
  margin-bottom:18px;
}

.online-mini-stat,
.online-rank-card{
  padding:14px 12px;
  border-radius:16px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(208,216,210,0.7);
  box-shadow:none;
  backdrop-filter:blur(10px);
}

.online-mini-label{
  color:var(--text-faint);
  font-size:11px;
  line-height:1.45;
  font-weight:500;
}

.online-mini-value{
  margin-top:6px;
  color:var(--text-strong);
  font-size:19px;
  font-weight:500;
}

.online-block{
  padding:0 0 18px;
  border:0;
  border-bottom:1px solid rgba(208,216,210,0.88);
  border-radius:0;
  background:none;
  box-shadow:none;
}

.online-block + .online-block{
  margin-top:18px;
}

.online-block-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:14px;
}

.online-block-title{
  color:var(--text-strong);
  font-size:16px;
  font-weight:500;
}

.online-block-sub{
  color:var(--text-faint);
  font-size:12px;
  font-weight:500;
  text-align:right;
}

.online-rank-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:8px;
}

.online-rank-card span{
  display:block;
  color:var(--text-faint);
  font-size:11px;
  font-weight:500;
}

.online-rank-card strong{
  display:block;
  margin-top:6px;
  color:var(--text-strong);
  font-size:16px;
  font-weight:500;
}

.online-history-list-inner{
  display:flex;
  flex-direction:column;
  gap:0;
}

.online-history-item{
  padding:14px 0;
  border:0;
  border-bottom:1px solid rgba(208,216,210,0.75);
  border-radius:0;
  background:none;
}

.online-history-item:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.online-history-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.online-history-draw{
  color:var(--text-strong);
  font-size:14px;
  font-weight:500;
}

.online-history-generated{
  color:var(--text-faint);
  font-size:11px;
  font-weight:500;
}

.online-history-ranks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.online-history-ranks span{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#fafbf9;
  border:1px solid rgba(208,216,210,0.82);
  color:var(--text-soft);
  font-size:10px;
  font-weight:600;
}

.online-skeleton-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}

.online-skeleton-box{
  height:74px;
  border-radius:18px;
}

@media (max-width:460px){
  .online-draw-showcase{
    padding:16px 14px;
  }

  .online-draw-title-main{
    font-size:21px;
  }

  .online-draw-balls-row{
    gap:5px;
  }

  .online-draw-balls-row .online-lotto-ball{
    width:29px;
    height:29px;
    font-size:12px;
  }

  .online-lotto-plus{
    width:14px;
    font-size:12px;
  }

  .online-summary-grid{
    grid-template-columns:1fr;
  }

  .online-rank-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:400px){
  .online-skeleton-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
