/* ==== SHINE 2026-10-25: the bright GHOST calendar glare on every page.
   Loaded last, so it wins over the earlier passes. Colour comes from each element's own --c-rgb
   (bone for good / neutral, red for bad, gold for gold), so Wraith keeps working. ==== */

/* the lit edge across the top of every lit panel and stat tile: a solid 2px light with a soft bloom (Tac.stat in GHOST) */
.lit::before{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:2px;z-index:2;opacity:1!important;
  background:rgb(var(--c-rgb))!important;box-shadow:0 0 4px rgba(var(--c-rgb),.85),0 0 10px rgba(var(--c-rgb),.4),0 2px 18px rgba(var(--c-rgb),.18)!important}
.tile.dn::before,.lit.dn::before{--c-rgb:255,42,42}
/* a light wash of the edge colour falling into the panel, as GHOST paints it */
.pn.lit{background-image:linear-gradient(180deg,rgba(var(--c-rgb),.085),rgba(var(--c-rgb),0) 120px),linear-gradient(180deg,var(--ptop),var(--pbot))!important}
.pn.lit.sess{background-image:linear-gradient(180deg,var(--ptop),var(--pbot))!important}
.pn.lit.sess::before{background:#ede6da!important;box-shadow:0 0 4px rgba(237,230,218,.85),0 0 10px rgba(237,230,218,.4),0 2px 18px rgba(237,230,218,.18)!important}

/* glowing numbers: a real halo, like Fx.glowText in the add-on */
.glow{text-shadow:0 0 1px rgba(var(--c-rgb),.9),0 0 3px rgba(var(--c-rgb),.6),0 0 7px rgba(var(--c-rgb),.38),0 0 14px rgba(var(--c-rgb),.18)!important}
.glow.ptitle{text-shadow:0 0 1px rgba(var(--c-rgb),.8),0 0 4px rgba(var(--c-rgb),.45),0 0 10px rgba(var(--c-rgb),.22)!important}
.tile .v{color:#fff}
.tile.dn .v,.v.dn{color:#ff7a6e}
.tile.gd .v,.v.gd{color:#f0cd78}
.tile.ac .v,.v.ac{color:#ff4a3e}
/* the label above a total: brighter, with a little of the tile's light */
.tile .lbl,.pn.lit .lbl{color:rgba(237,230,218,.86)!important;text-shadow:0 0 8px rgba(var(--c-rgb),.45)}
.tile .sub{color:rgba(237,230,218,.66)}
/* panel headings (the red marker + title) */
.pn .hd{color:#fff;text-shadow:0 0 10px rgba(237,230,218,.35)}
.pn .hd::before,.hd>i:first-child{box-shadow:0 0 6px #ff2a2a,0 0 14px rgba(255,42,42,.6)}

/* the running total's end number */
svg text.jend{filter:drop-shadow(0 0 2px currentColor) drop-shadow(0 0 6px currentColor)}
svg text.jend.up{color:#ede6da}svg text.jend.dn{color:#ff7a6e}

/* every other panel gets a soft white light along its top edge (on bracketed panels it rides in the bracket layer) */
.pn:not(.lit):not(.br)::after{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;pointer-events:none;z-index:2;
  background:linear-gradient(90deg,rgba(237,230,218,0),rgba(237,230,218,.3) 15%,rgba(237,230,218,.5) 50%,rgba(237,230,218,.3) 85%,rgba(237,230,218,0));
  box-shadow:0 0 5px rgba(237,230,218,.2)}
.pn.br:not(.lit)::after{background:
  linear-gradient(90deg,rgba(237,230,218,0),rgba(237,230,218,.3) 15%,rgba(237,230,218,.5) 50%,rgba(237,230,218,.3) 85%,rgba(237,230,218,0)) left 2px top 1px/calc(100% - 4px) 1px no-repeat,
  linear-gradient(var(--bc),var(--bc)) left top/12px 1.5px no-repeat,linear-gradient(var(--bc),var(--bc)) left top/1.5px 12px no-repeat,
  linear-gradient(var(--bc),var(--bc)) right top/12px 1.5px no-repeat,linear-gradient(var(--bc),var(--bc)) right top/1.5px 12px no-repeat,
  linear-gradient(var(--bc),var(--bc)) left bottom/12px 1.5px no-repeat,linear-gradient(var(--bc),var(--bc)) left bottom/1.5px 12px no-repeat,
  linear-gradient(var(--bc),var(--bc)) right bottom/12px 1.5px no-repeat,linear-gradient(var(--bc),var(--bc)) right bottom/1.5px 12px no-repeat}

/* the calendar's picked day (the best day): all four edges lit white with the glare, like the selected day in GHOST */
.jcell.br{border:1.6px solid #ede6da!important;box-shadow:0 0 6px rgba(237,230,218,.55),0 0 18px rgba(237,230,218,.25),inset 0 0 12px rgba(237,230,218,.14),inset 0 0 26px rgba(237,230,218,.06)!important}
.jcell.br::before{--c-rgb:237,230,218}
