/* obits.css — a coin dying is an event you see: a tombstone over the chart when the coin on screen
   dies, and the last few deaths under the watchlist (ui.js tomb() and buildBoard()). */

/* ---------- strip over the chart ---------- */
/* Not a dialog: a slim strip at the top of the chart that leaves the chart readable and fades by itself. */
.chart-tomb { position: absolute; z-index: 6; top: 52px; left: 50%; translate: -50% 0; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 10px; pointer-events: auto; white-space: nowrap; overflow: hidden;
  border: 1px solid #ff3b6b; background: rgba(16, 0, 7, .9); box-shadow: 0 0 22px -6px #ff3b6b; color: #fff; font: 600 12.5px var(--mono, monospace); }
.chart-tomb[hidden] { display: none; }
.chart-tomb.show { animation: tombIn .45s cubic-bezier(.2, 1.5, .4, 1), tombOut .6s ease-in 5.4s forwards; }
.chart-tomb::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #ff3b6b; transform-origin: left; animation: tombTimer 6s linear forwards; }
.tomb-rip { font: 700 12px/1 var(--display, 'Chakra Petch', sans-serif); letter-spacing: .2em; color: #ff3b6b; padding: 3px 5px 3px 7px; border: 2px solid #ff3b6b; transform: rotate(-4deg);
  text-shadow: 1px 0 #00e5ff, -1px 0 #ff00aa; }
.chart-tomb.show .tomb-rip { animation: tombGlitch .9s steps(2) 1; }
.chart-tomb b { color: #ff9ab0; }
.tomb-sub { color: #c9a3ad; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tomb-x { flex: none; border: 0; background: none; color: #ff9ab0; font: 700 16px/1 var(--mono, monospace); padding: 0 2px; cursor: pointer; }
.tomb-x:hover { color: #fff; }
html.pc98 .chart-tomb { border: 2px solid #ff5555; background: #1a0008; box-shadow: 3px 3px 0 #000; }
html.pc98 .tomb-rip { font: 9px/1 var(--pixel, 'Press Start 2P', monospace); letter-spacing: .08em; border-color: #ff5555; color: #ff5555; text-shadow: none; }
@keyframes tombIn { from { opacity: 0; transform: translateY(-14px) scale(1.15); } }
@keyframes tombOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes tombTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes tombGlitch { 0%, 100% { transform: rotate(-4deg); } 25% { transform: rotate(-4deg) translate(-3px, 1px) skewX(10deg); } 50% { transform: rotate(-4deg) translate(2px, -1px); } 75% { transform: rotate(-4deg) translate(-1px, 1px) skewX(-8deg); } }
@media (max-width: 760px) { .chart-tomb { top: 44px; font-size: 11.5px; } .tomb-sub { display: none; } }

/* ---------- recently dead, under the watchlist ---------- */
.board-sep.grave-sep { color: #ff3b6b; }
.row.grave { cursor: default; opacity: .78; }
.row.grave .tk { color: #ff7a98; text-decoration: line-through; text-decoration-color: rgba(255, 59, 107, .7); }
.row.grave .pr { color: #ff3b6b; font-weight: 700; letter-spacing: .1em; font-size: 11px; }
.row.grave .nm, .row.grave .meta { color: var(--ink-3, #8a8aa0); }
.row.grave:first-of-type { animation: graveIn .9s ease-out; }
.row.grave:hover { opacity: 1; }
html.pc98 .row.grave { background: repeating-linear-gradient(135deg, #1a0008 0 4px, transparent 4px 8px); }
html.pc98 .board-sep.grave-sep { color: #ff5555; }
@keyframes graveIn { 0% { background: rgba(255, 59, 107, .45); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .chart-tomb.show .tomb-rip, .chart-tomb::after, .row.grave:first-of-type { animation: none; } }

/* ---------- the "Coin died" card ---------- */
.toast.dead { border-color: #ff3b6b !important; box-shadow: 0 0 0 1px #000, 0 0 26px -6px #ff3b6b !important; }
.toast.dead strong { color: #ff3b6b; }
.toast.dead strong::before { content: '† '; }
html.pc98 .toast.dead strong { background: #aa0022 !important; color: #fff !important; }
