/* SPINPANG Live Public Homepage, Single-Row Hero Action Bar, H19-Neon (P07+L04) Segmented LED Scanline, Separated Withdrawals & Big Wins Zones & Brand Articles */

/* ==================== SINGLE-ROW HERO MOBILE ACTION BAR (BELOW section.campaign) ==================== */
.sp-hero-action-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0.75rem 0 1rem;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.65px solid rgba(104,225,237, 0.38);
  background: linear-gradient(155deg, rgba(54,38,82, 0.94), rgba(33,24,51, 0.98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
}

.sp-action-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex-shrink: 0;
}

.sp-action-user {
  font-size: 0.75rem;
  color: #d6c8f0;
  white-space: nowrap;
}

.sp-action-bal {
  font-size: 0.96rem;
  font-weight: 800;
  color: #d8fbff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-action-row {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1.65px solid rgba(104,225,237, 0.42);
  font: 700 clamp(0.8rem, 2.8vw, 0.9rem)/1 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.sp-act-btn:active {
  transform: translateY(1px) scale(0.98);
}

.sp-act-btn.is-gold {
  border-color: #d8fbff;
  background: linear-gradient(180deg, #d8fbff 0%, #68e1ed 58%, #3dc6de 100%);
  color: #17132a;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 3px 0 #362652;
}

.sp-act-btn.is-crimson {
  border-color: rgba(104,225,237, 0.5);
  background: linear-gradient(180deg, #7c56b8 0%, #362652 100%);
  color: #d8fbff;
}

.sp-act-btn.is-velvet {
  border-color: rgba(104,225,237, 0.34);
  background: linear-gradient(180deg, #453068 0%, #211833 100%);
  color: #d8fbff;
}

@media (max-width: 600px) {
  .sp-hero-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 9px 10px;
  }
  .sp-action-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==================== H19-NEON (P07 + L04 + B5 + F1 + N1 + S1) CRIMSON CYBER SCANNER ==================== */
.sp-h19-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sp-h19-media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* S1: Staggered Diagonal Glass Shimmer Sweep */
.sp-h19-media .sp-fx-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.sp-fx-sheen::before {
  content: '';
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -45%;
  width: 40%;
  background: linear-gradient(105deg, transparent 10%, rgba(216,251,255, 0.3) 50%, transparent 90%);
  transform: translateX(-140%) skewX(-24deg);
  animation: spGlassSweep 4.8s ease-in-out var(--sp-fx-delay, 0s) infinite;
}

@keyframes spGlassSweep {
  0%, 58% { transform: translateX(-140%) skewX(-24deg); }
  100% { transform: translateX(420%) skewX(-24deg); }
}

/* B5: Footer Inline Meter (0% Art Overlap, Compact, Borderless) */
.sp-h19-hud {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  width: 100%;
}

.sp-h19-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 18px;
}

.sp-h19-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #d6c8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-h19-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(33,24,51, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
}

.sp-h19-hud.is-blaze .sp-h19-chip { color: #d8fbff; }
.sp-h19-hud.is-warm .sp-h19-chip { color: #f6cf92; }
.sp-h19-hud.is-steady .sp-h19-chip { color: #6ee7b7; }

/* F1: 2-Layer Animated SVG Dancing Flame */
.sp-fx-flame {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.sp-fx-flame-outer {
  fill: #7c56b8;
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: spFlameDance 0.9s ease-in-out infinite alternate;
}

.sp-h19-hud.is-blaze .sp-fx-flame-outer { fill: #f43f5e; animation-duration: 0.72s; }
.sp-h19-hud.is-warm .sp-fx-flame-outer { fill: #68e1ed; animation-duration: 0.95s; }
.sp-h19-hud.is-steady .sp-fx-flame-outer { fill: #10b981; animation-duration: 1.25s; }

.sp-fx-flame-core {
  fill: #d8fbff;
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation: spFlameCore 0.62s ease-in-out infinite alternate;
}

.sp-h19-hud.is-steady .sp-fx-flame-core { fill: #a7f3d0; }

@keyframes spFlameDance {
  0% { transform: scale(0.94, 0.96) rotate(-5deg); }
  50% { transform: scale(1.06, 1.1) rotate(4deg); }
  100% { transform: scale(0.98, 1.04) rotate(-3deg); }
}

@keyframes spFlameCore {
  0% { transform: scale(0.88, 0.92) translateY(0.4px); opacity: 0.85; }
  100% { transform: scale(1.08, 1.12) translateY(-0.5px); opacity: 1; }
}

/* N1: Live Ticking Number Pop */
.sp-fx-num {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.22s ease, color 0.22s ease;
}

.sp-fx-num.is-tick {
  animation: spNumTick 0.42s ease;
}

@keyframes spNumTick {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); color: #ffffff; }
  100% { transform: scale(1); }
}

/* P07 + L04: 10-Cell Segmented LED Bar + Rose-Gold & Crimson Laser Scanline */
.sp-led-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  height: 5px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}

.sp-led-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 34%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0%, rgba(216,251,255, 0.95) 50%, rgba(100,67,151, 0.85) 75%, transparent 100%);
  transform: translateX(-120%);
  animation: spLedLaserScan 1.55s linear var(--sp-fx-delay, 0s) infinite;
}

.sp-led-cell {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.sp-h19-hud.is-blaze .sp-led-cell.is-lit {
  background: linear-gradient(90deg, #644397, #7c56b8, #68e1ed);
  box-shadow: 0 0 6px rgba(100,67,151, 0.82), 0 0 10px rgba(104,225,237, 0.4);
  animation: spLedCellPulse 1.3s ease-in-out calc(var(--cell-i, 0) * 0.1s) infinite;
}

.sp-h19-hud.is-warm .sp-led-cell.is-lit {
  background: linear-gradient(90deg, #3dc6de, #68e1ed, #d8fbff);
  box-shadow: 0 0 6px rgba(104,225,237, 0.78);
  animation: spLedCellPulse 1.6s ease-in-out calc(var(--cell-i, 0) * 0.11s) infinite;
}

.sp-h19-hud.is-steady .sp-led-cell.is-lit {
  background: linear-gradient(90deg, #059669, #10b981, #a7f3d0);
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.72);
  animation: spLedCellPulse 1.9s ease-in-out calc(var(--cell-i, 0) * 0.12s) infinite;
}

@keyframes spLedCellPulse {
  0%, 100% { opacity: 0.72; }
  45% { opacity: 1; filter: brightness(1.28); }
}

@keyframes spLedLaserScan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

/* Live Hot Games Grid */
.sp-hot-section {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.65px solid rgba(104,225,237, 0.34);
  background: linear-gradient(160deg, rgba(54,38,82, 0.94), rgba(33,24,51, 0.98));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.48);
  margin: 1rem 0;
}

.sp-hot-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 780px) {
  .sp-hot-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sp-h19-game-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 12px;
  border: 1.65px solid rgba(104,225,237, 0.24);
  background: rgba(33,24,51, 0.78);
  color: #f5eeff;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.sp-h19-game-card:hover {
  transform: translateY(-2px);
  border-color: #68e1ed;
}

.sp-h19-game-card .sp-h19-media {
  aspect-ratio: 1 / 1;
  background: #211833;
}

.sp-h19-game-card .sp-h19-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-h19-cap {
  padding-top: 6px;
  display: grid;
  gap: 2px;
}

.sp-h19-cap strong {
  font-size: 0.82rem;
  color: #d8fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== SEPARATED SOCIAL PROOF ZONES (SPINPANG 1-DNA) ==================== */
.sp-social-band {
  margin: 1rem 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.65px solid rgba(104,225,237, 0.34);
  background: linear-gradient(160deg, rgba(54,38,82, 0.94), rgba(33,24,51, 0.98));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.48);
}

.sp-social-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sp-social-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sp-social-title-wrap h2 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  font-weight: 800;
  color: #d8fbff;
}

.sp-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sp-live-dot.is-emerald {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.sp-live-dot.is-gold {
  background: #68e1ed;
  box-shadow: 0 0 0 3px rgba(104,225,237, 0.25);
}

.sp-social-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.sp-social-pill.is-emerald {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.sp-social-pill.is-gold {
  background: rgba(104,225,237, 0.14);
  border: 1px solid rgba(104,225,237, 0.48);
  color: #d8fbff;
}

.sp-social-toggle {
  min-height: 34px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1.65px solid rgba(104,225,237, 0.42);
  background: rgba(54,38,82, 0.9);
  color: #d8fbff;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.sp-social-toggle:hover {
  background: #68e1ed;
  color: #17132a;
}

/* Zone 1: Recent Withdrawals Horizontal Rail */
.sp-wd-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sp-wd-viewport::-webkit-scrollbar { display: none; }

.sp-wd-rail {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  gap: 10px;
  width: max-content;
}

.sp-wd-card {
  flex: 0 0 auto;
  min-width: 176px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.65px solid rgba(104,225,237, 0.26);
  background: linear-gradient(155deg, rgba(33,24,51, 0.96), rgba(38, 12, 19, 0.92));
  display: grid;
  gap: 4px;
}

.sp-wd-card[hidden],
.sp-aw-table tr[hidden] {
  display: none;
}

.sp-wd-summary {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sp-wd-summary img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 24px;
}

.sp-wd-player {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f5eeff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-wd-amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: #68e1ed;
  font-variant-numeric: tabular-nums;
}

.sp-wd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-wd-time {
  font-size: 0.71rem;
  color: #d6c8f0;
}

.sp-wd-seal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #8ce5a6;
  white-space: nowrap;
}

.sp-wd-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.75);
  animation: spSealPulse 2s ease-in-out infinite;
}

@keyframes spSealPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Zone 2: Recent Awards Vertical Auto-Scrolling Table */
.sp-aw-viewport {
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: 12px;
  border: 1.65px solid rgba(104,225,237, 0.24);
  background: rgba(16, 5, 8, 0.9);
}

.sp-aw-viewport::-webkit-scrollbar { display: none; }

.sp-aw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.sp-aw-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: linear-gradient(180deg, #320d17, #362652);
}

.sp-aw-table th {
  padding: 9px 10px;
  color: #d8fbff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  border-bottom: 1.65px solid rgba(104,225,237, 0.28);
}

.sp-aw-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(104,225,237, 0.12);
  vertical-align: middle;
}

.sp-aw-table :is(th, td):last-child {
  text-align: right;
  white-space: nowrap;
}

.sp-aw-game {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sp-aw-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.65px solid rgba(104,225,237, 0.36);
  background: #211833;
}

.sp-aw-game-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sp-aw-game-name {
  font-weight: 700;
  color: #f5eeff;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.sp-aw-game-meta time {
  font-size: 0.7rem;
  color: #d6c8f0;
}

.sp-aw-player {
  color: #e2d2d7;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  white-space: nowrap;
}

.sp-aw-payout {
  color: #68e1ed;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sp-aw-table tr.is-royal-win {
  background: linear-gradient(90deg, rgba(104,225,237, 0.1), rgba(100,67,151, 0.1));
}

.sp-aw-vip-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  border-radius: 999px;
  background: linear-gradient(145deg, #d8fbff, #d4984f);
  color: #24080d;
  font-size: 0.65rem;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(104,225,237, 0.45);
}

/* ==================== HOMEPAGE LIVE DB PROMOTIONS GRID ==================== */
.promo-grid.home-promo-grid.sp-home-promo-grid,
.sp-home-promo-grid {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  overflow-x: visible !important;
  scroll-snap-type: none !important;
  gap: 1rem !important;
  list-style: none;
  margin: 0;
  padding: 0 !important;
}

.sp-home-promo-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  border-radius: 14px;
  overflow: hidden;
  border: 1.65px solid rgba(104,225,237, 0.34);
  background: linear-gradient(165deg, #362652, #211833);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.sp-home-promo-card:hover {
  transform: translateY(-2px);
  border-color: #68e1ed;
}

.sp-home-promo-art {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #211833;
}

.sp-home-promo-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.sp-home-promo-copy {
  flex: 0 0 auto;
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.38rem;
  align-content: start;
}

.sp-home-promo-copy h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #d8fbff;
}

.sp-home-promo-copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #d6c8f0;
}

.sp-home-promo-cta {
  margin-top: 0.25rem;
  color: #68e1ed;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .promo-grid.home-promo-grid.sp-home-promo-grid,
  .sp-home-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 0.625rem !important;
  }

  .sp-home-promo-grid > * {
    min-width: 0;
  }

  .sp-home-promo-card {
    height: 100% !important;
    align-self: stretch !important;
    min-width: 0;
    border-radius: 10px;
  }

  .sp-home-promo-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.6rem 0.65rem;
    gap: 0.25rem;
  }

  .sp-home-promo-copy h3 {
    font-size: 0.78rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: clip;
  }

  .sp-home-promo-copy p {
    font-size: 0.68rem;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: clip;
  }

  .sp-home-promo-cta {
    margin-top: auto;
    padding-top: 0.2rem;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==================== ZONE 3: SPINPANG ARTICLES & WHY US ==================== */
.sp-art-section {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0;
}

.sp-why-banner {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1.65px solid rgba(104,225,237, 0.38);
  background: linear-gradient(155deg, rgba(56, 14, 26, 0.92), rgba(33,24,51, 0.98));
  display: grid;
  gap: 0.9rem;
}

.sp-why-head {
  display: grid;
  gap: 0.35rem;
}

.sp-why-kicker {
  display: inline-block;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(104,225,237, 0.16);
  border: 1.65px solid rgba(104,225,237, 0.46);
  color: #68e1ed;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.sp-why-head h2 {
  margin: 0;
  font-size: clamp(1.08rem, 2.8vw, 1.32rem);
  color: #d8fbff;
}

.sp-why-head p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d6c8f0;
}

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

@media (max-width: 900px) {
  .sp-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .sp-why-grid { grid-template-columns: 1fr; }
}

.sp-why-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.65px solid rgba(104,225,237, 0.22);
  background: rgba(33,24,51, 0.72);
}

.sp-why-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d8fbff, #3dc6de);
  color: #17132a;
  font-size: 0.76rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.sp-why-item strong {
  display: block;
  font-size: 0.88rem;
  color: #d8fbff;
  margin-bottom: 2px;
}

.sp-why-item p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #d1bac0;
}

.sp-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 720px) {
  .sp-art-grid { grid-template-columns: 1fr; }
}

.sp-art-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1.65px solid rgba(104,225,237, 0.34);
  background: linear-gradient(165deg, #362652, #211833);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.sp-art-card:hover {
  transform: translateY(-2px);
  border-color: #68e1ed;
}

.sp-art-card-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.sp-art-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #211833;
  overflow: hidden;
}

.sp-art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-art-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(33,24,51, 0.88);
  border: 1.65px solid rgba(104,225,237, 0.55);
  color: #d8fbff;
  font-size: 0.72rem;
  font-weight: 700;
}

.sp-art-copy {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex: 1;
}

.sp-art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: #d6c8f0;
}

.sp-art-copy h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
  color: #d8fbff;
}

.sp-art-copy p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.48;
  color: #d6c8f0;
}

.sp-art-read {
  margin-top: auto;
  padding-top: 0.35rem;
  color: #68e1ed;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Full Article Reader Modal */
.sp-art-dialog {
  width: min(760px, 95vw);
  max-height: min(88dvh, 840px);
  padding: 0;
  border-radius: 16px;
  border: 1.65px solid rgba(104,225,237, 0.52);
  background: #211833;
  color: #f5eeff;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.84);
  overflow: hidden;
  margin: auto;
}

.sp-art-dialog::backdrop {
  background: rgba(8, 2, 4, 0.84);
  backdrop-filter: blur(4px);
}

.sp-art-dlg-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(145deg, #362652, #362652);
  border-bottom: 1.65px solid rgba(104,225,237, 0.34);
}

.sp-art-dlg-cat {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(104,225,237, 0.16);
  border: 1.65px solid rgba(104,225,237, 0.5);
  color: #d8fbff;
  font-size: 0.78rem;
  font-weight: 700;
}

.sp-art-dlg-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.65px solid rgba(104,225,237, 0.45);
  background: rgba(33,24,51, 0.85);
  color: #d8fbff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sp-art-dlg-body {
  padding: 16px 18px 22px;
  max-height: calc(min(88dvh, 840px) - 58px);
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.sp-art-dlg-title {
  margin: 0;
  font-size: clamp(1.12rem, 3vw, 1.42rem);
  line-height: 1.38;
  color: #d8fbff;
}

.sp-art-dlg-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
  color: #d6c8f0;
}

.sp-art-dlg-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1.65px solid rgba(104,225,237, 0.3);
}

.sp-art-dlg-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.sp-art-takeaways {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.65px solid rgba(104,225,237, 0.38);
  background: rgba(104,225,237, 0.08);
  color: #f8ecd0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.sp-art-takeaways h3 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  color: #68e1ed;
}

.sp-art-takeaways ul {
  margin: 0;
  padding-left: 18px;
}

.sp-art-dlg-content {
  font-size: 0.9rem;
  line-height: 1.72;
  color: #eee2e5;
}

.sp-art-dlg-content h2 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  color: #d8fbff;
}

.sp-art-dlg-content p { margin: 0 0 10px; }

.sp-art-faqs h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #d8fbff;
}

.sp-art-faq-list { display: grid; gap: 8px; }

.sp-art-faq-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.65px solid rgba(104,225,237, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.sp-art-faq-item h4 { margin: 0 0 4px; font-size: 0.88rem; color: #d8fbff; }
.sp-art-faq-item p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: #d6c8f0; }

.sp-art-dlg-cta {
  padding: 14px;
  border-radius: 12px;
  border: 1.65px solid rgba(104,225,237, 0.42);
  background: linear-gradient(145deg, #4b1020, #1a070c);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-art-dlg-cta strong { display: block; color: #d8fbff; font-size: 0.94rem; }
.sp-art-dlg-cta span { display: block; color: #d6c8f0; font-size: 0.8rem; margin-top: 2px; }
.sp-art-dlg-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .sp-social-band,
  .sp-hot-section { padding: 12px; }
  .sp-social-head { flex-wrap: wrap; padding-right: 54px; }
  .sp-social-toggle { min-height: 28px; padding: 3px 10px; font-size: 0.72rem; }
  .sp-aw-table { font-size: 0.78rem; }
  .sp-aw-table :is(th, td) { padding: 7px 7px; }
  .sp-aw-game-name { max-width: 125px; }
  .sp-aw-icon { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-fx-sheen::before,
  .sp-led-rail::after,
  .sp-led-cell.is-lit,
  .sp-fx-flame-outer,
  .sp-fx-flame-core,
  .sp-fx-num.is-tick,
  .sp-wd-dot {
    animation: none !important;
  }
}
