/* ---------- Hell Week (Oct 24-31) ---------- */
.hw-card {
  position: relative; overflow: hidden; padding: 22px 24px 20px;
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(255,117,24,0.18), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(176,107,255,0.14), transparent 60%),
    linear-gradient(180deg, #120D14, #0B0E14);
  border: 1px solid rgba(255,117,24,0.28);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 40px rgba(255,117,24,0.10);
}
.hw-web { position: absolute; right: -2px; top: -2px; width: 220px; height: 220px; opacity: 0.16; pointer-events: none; }
.hw-web path { fill: none; stroke: #FFA23D; stroke-width: 1; }

.hw-head { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hw-skull {
  width: 68px; height: 68px; flex: none; border-radius: 18px; display: grid; place-items: center; color: #FFA23D;
  background: linear-gradient(160deg, rgba(255,117,24,0.28), rgba(255,117,24,0.05));
  box-shadow: inset 0 0 0 1px rgba(255,150,50,0.4), 0 0 26px rgba(255,117,24,0.35);
}
.hw-skull svg { width: 40px; height: 40px; filter: drop-shadow(0 0 7px rgba(255,150,50,0.9)); animation: hw-breathe 3.2s ease-in-out infinite; }
@keyframes hw-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.hw-titles { flex: 1 1 260px; min-width: 0; }
.hw-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ink-dim); }
.hw-title { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 42px); line-height: 1; letter-spacing: 1px; color: var(--ink); margin: 4px 0 6px; }
.hw-title span { color: var(--forge); text-shadow: 0 0 18px rgba(255,117,24,0.6); }
.hw-sub { font-size: 13px; color: var(--ink-dim); }
.hw-status { text-align: right; flex: none; }
.hw-count { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--ink); }
.hw-count b { color: var(--forge-hot); font-weight: 400; text-shadow: 0 0 16px rgba(255,162,61,0.55); }
.hw-count span { font-size: 18px; color: var(--ink-faint); margin-left: 4px; }
.hw-headline { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--forge-hot); margin-top: 6px; }

.hw-grid { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.hw-tile {
  display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 12px 11px 10px; border-radius: 14px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); color: var(--ink-faint);
  transition: transform .2s, box-shadow .2s;
}
.hw-top { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }
.hw-day { color: var(--ink-faint); }
.hw-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 2px 0; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.hw-ic svg { width: 24px; height: 24px; }
.hw-theme { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--ink-dim); flex: 1; }
.hw-foot { font-size: 11px; font-weight: 600; color: var(--ink-faint); display: flex; align-items: center; gap: 4px; }
.hw-foot svg { width: 13px; height: 13px; }

.hw-tile.lit {
  color: var(--forge-hot); border-color: rgba(255,117,24,0.5);
  background: linear-gradient(170deg, rgba(255,117,24,0.22), rgba(255,117,24,0.04));
  box-shadow: 0 0 22px rgba(255,117,24,0.28), inset 0 0 0 1px rgba(255,150,50,0.25);
}
.hw-tile.lit .hw-ic { background: rgba(255,117,24,0.22); box-shadow: inset 0 0 0 1px rgba(255,150,50,0.45), 0 0 14px rgba(255,117,24,0.4); color: #FFC24B; }
.hw-tile.lit .hw-ic svg { filter: drop-shadow(0 0 6px rgba(255,150,50,0.9)); }
.hw-tile.lit .hw-theme, .hw-tile.lit .hw-day { color: var(--ink); }
.hw-tile.lit .hw-foot { color: var(--success); }
.hw-tile.today { border-color: rgba(255,162,61,0.55); color: var(--forge-hot); animation: hw-pulse 1.8s ease-in-out infinite; }
.hw-tile.today .hw-theme { color: var(--ink); }
.hw-tile.today .hw-foot { color: var(--forge-hot); }
@keyframes hw-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,117,24,0.0); } 50% { box-shadow: 0 0 0 4px rgba(255,117,24,0.18), 0 0 18px rgba(255,117,24,0.3); } }
.hw-tile.missed { opacity: 0.55; }
.hw-tile.missed .hw-foot { color: var(--danger); }
.hw-tile:hover { transform: translateY(-2px); }

.hw-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-top: 16px; }
.hw-bar i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.hw-bar i.on { background: linear-gradient(90deg, #FF7518, #FFC24B); box-shadow: 0 0 10px rgba(255,117,24,0.6); }
.hw-note { margin-top: 10px; font-size: 12px; color: var(--ink-faint); }

@media (max-width: 1100px) { .hw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .hw-card { padding: 18px 16px 16px; }
  .hw-web { width: 150px; height: 150px; }
  .hw-status { text-align: left; width: 100%; display: flex; align-items: baseline; gap: 12px; }
  .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hw-tile { min-height: 136px; }
}

/* ---------- Skull backdrop, embers and burning tiles (later rules override the base look above) ---------- */
.hw-card { background:
    radial-gradient(900px 260px at 0% 0%, rgba(255,117,24,0.16), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(176,107,255,0.12), transparent 60%),
    linear-gradient(180deg, #110B10, #090B10); }
.hw-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hw-bg-skull { position: absolute; left: 50%; top: 34%; width: 460px; height: 506px; transform: translate(-50%, -50%); color: #FF7518; opacity: 0.22;
  filter: drop-shadow(0 0 30px rgba(255,80,10,0.9)); animation: hw-skull-breathe 5s ease-in-out infinite; }
.hw-bg-skull.l { left: 14%; width: 240px; height: 264px; top: 58%; opacity: 0.11; transform: translate(-50%, -50%) rotate(-10deg); animation: none; }
.hw-bg-skull.r { left: 86%; width: 240px; height: 264px; top: 58%; opacity: 0.11; transform: translate(-50%, -50%) rotate(10deg); animation: none; }
@keyframes hw-skull-breathe { 0%,100% { opacity: .18; } 50% { opacity: .28; } }
.hw-bg-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(0deg, rgba(255,90,10,0.16), transparent 70%); }
.hw-ember { position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: #FFC24B; box-shadow: 0 0 8px 2px rgba(255,140,40,0.8);
  opacity: 0; animation: hw-ember 4.5s linear infinite; }
@keyframes hw-ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--dx, 20px), -340px) scale(.3); opacity: 0; } }

.hw-head, .hw-grid, .hw-bar, .hw-note { position: relative; z-index: 2; }
.hw-tile { position: relative; overflow: hidden; background: rgba(10,8,12,0.55); }
.hw-tile > * { position: relative; z-index: 2; }

/* Burning tiles: a lit tile sits on a bed of flames; the stats keep a dark pill so they stay readable. */
.hw-tile.lit { color: #FFD9A8; border-color: rgba(255,150,40,0.8);
  background: linear-gradient(180deg, rgba(28,10,6,0.92) 0%, rgba(70,22,4,0.9) 60%, rgba(140,40,0,0.9) 100%);
  box-shadow: 0 0 26px rgba(255,100,20,0.45), inset 0 -30px 40px rgba(255,80,0,0.35), inset 0 0 0 1px rgba(255,170,60,0.3); }
.hw-tile.lit .hw-ic { background: rgba(0,0,0,0.45); box-shadow: inset 0 0 0 1px rgba(255,170,60,0.6), 0 0 16px rgba(255,120,20,0.6); color: #FFD24B; }
.hw-tile.lit .hw-ic svg { filter: drop-shadow(0 0 7px rgba(255,170,60,1)); }
.hw-tile.lit .hw-theme { color: #fff; text-shadow: 0 1px 2px #000, 0 0 10px rgba(0,0,0,0.9); }
.hw-tile.lit .hw-day, .hw-tile.lit .hw-date { color: #FFE2B8; text-shadow: 0 1px 2px #000; }
.hw-tile.lit .hw-foot { color: var(--success); background: rgba(0,0,0,0.55); padding: 3px 7px; border-radius: 7px; width: fit-content; box-shadow: inset 0 0 0 1px rgba(43,255,155,0.25); }
.hw-flames { position: absolute; left: -6%; right: -6%; bottom: -8px; height: 72%; z-index: 1; pointer-events: none; }
.hw-flames i { position: absolute; bottom: 0; width: 34%; height: 78%; opacity: .95; mix-blend-mode: screen; filter: blur(6px); transform-origin: 50% 100%;
  border-radius: 50% 50% 35% 35% / 75% 75% 25% 25%;
  background: radial-gradient(ellipse at 50% 100%, #FFF2B0 0%, #FFC24B 22%, #FF7518 48%, #D42A00 72%, rgba(120,20,0,0) 100%);
  animation: hw-flicker 0.9s ease-in-out infinite alternate; }
.hw-flames i:nth-child(1) { left: 2%;  height: 60%; animation-delay: -.2s; animation-duration: 1.1s; }
.hw-flames i:nth-child(2) { left: 20%; height: 88%; animation-delay: -.6s; animation-duration: .8s; }
.hw-flames i:nth-child(3) { left: 38%; height: 72%; animation-delay: -.4s; animation-duration: 1s; }
.hw-flames i:nth-child(4) { left: 56%; height: 95%; animation-delay: -.9s; animation-duration: .75s; }
.hw-flames i:nth-child(5) { left: 72%; height: 66%; animation-delay: -.1s; animation-duration: 1.05s; }
.hw-flames i:nth-child(6) { left: 10%; width: 60%; height: 40%; filter: blur(10px); opacity: .8; animation-duration: 1.4s; }
.hw-flames i:nth-child(7) { left: 45%; width: 55%; height: 45%; filter: blur(10px); opacity: .8; animation-duration: 1.2s; animation-delay: -.7s; }
@keyframes hw-flicker { 0% { transform: scaleY(1) skewX(-4deg) translateX(-2px); } 50% { transform: scaleY(1.18) skewX(5deg) translateX(2px); } 100% { transform: scaleY(0.92) skewX(-2deg) translateX(0); } }
.hw-tile.lit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(255,110,20,0.55), rgba(255,60,0,0.15) 60%, transparent); }

.hw-tile.today { border-color: rgba(255,162,61,0.7); }
.hw-tile.today .hw-ic { color: var(--forge-hot); box-shadow: inset 0 0 0 1px rgba(255,162,61,0.5); }
.hw-bar i.on { background: linear-gradient(90deg, #FF4D00, #FFC24B); box-shadow: 0 0 12px rgba(255,100,20,0.8); }
@media (max-width: 720px) { .hw-bg-skull { width: 300px; height: 330px; top: 24%; left: 62%; } .hw-bg-skull.l, .hw-bg-skull.r { display: none; } }

.hw-skull svg { filter: drop-shadow(0 0 8px rgba(255,60,10,0.95)); }
.hw-skull { background: linear-gradient(160deg, rgba(120,20,0,0.5), rgba(255,117,24,0.08)); box-shadow: inset 0 0 0 1px rgba(255,120,40,0.5), 0 0 26px rgba(255,60,10,0.45); }
