/* === Red/black theme, mobile-friendly === */
:root {
  --bg: #0a0a0b;          /* deep near-black */
  --panel: #101113;       /* dark card */
  --panel-2: #15161a;
  --ink: #f4f5f7;         /* off-white */
  --muted: #b7bac2;       /* cool gray */
  --accent: #e13a2f;      /* brand red */
  --glow: rgba(225,58,47,.35);
  --card-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 28px var(--glow);
}
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 20% -10%, #220e10 0%, #0a0a0b 55%),
    linear-gradient(180deg, #0c0c0f 0%, #0a0a0b 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 20px 14px 64px; }

header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.brand { font-size: clamp(20px, 4.4vw, 32px); font-weight: 800; letter-spacing: .3px; }

/* Ribbon */
.ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px; padding: 8px 12px;
  border-radius: 999px; background: #170e0f; border: 1px solid #2a1415; color: var(--ink);
}
.chip-win { box-shadow: 0 0 0 1px #1b3b24 inset; }
.chip-lose { box-shadow: 0 0 0 1px #3b1b1b inset; }
.chip-total { opacity: .9; }
.small { font-size: 12px; }

/* Cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid #251213;
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 20px) clamp(14px, 2.2vw, 24px);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: -1px; border-radius: 18px; pointer-events: none;
  background:
    radial-gradient(420px 90px at -40px -40px, rgba(225,58,47,.25), transparent 60%),
    radial-gradient(320px 70px at 110% 10%, rgba(225,58,47,.18), transparent 60%);
  mask: linear-gradient(#000 0 0);
}

.row1 { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.status {
  flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; background: #121010; border: 1px solid #2a1414; font-size: 24px;
  filter: drop-shadow(0 0 10px var(--glow));
}
.status.ok { background: #0f1a12; border-color: #173a22; }

.title { font-size: clamp(18px, 4.2vw, 28px); font-weight: 800; letter-spacing: .2px; }
.meta { color: var(--muted); font-size: clamp(14px, 3.6vw, 18px); margin-top: 4px; }

.muted { color: var(--muted); }
.sp { opacity: .55; margin: 0 8px; }

/* Loading skeletons */
.skel {
  border-radius: 18px; height: 84px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid #251213; position: relative; overflow: hidden;
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Mobile */
@media (max-width: 560px) {
  .wrap { padding: 14px 12px 60px; }
  .title { letter-spacing: .1px; }
  .ribbon { gap: 8px; }
}
