dnd {
display: block;
--bg: #0d0a0b;
--text: #d4c4b7;
--gold: #b59364;
--red: #7a1515;
--lust: #e63956;
--paper: #e6dac3;
--ink: #312520;
font-size: 14px;
color: var(--text);
line-height: 1.6;
background: radial-gradient(circle at top, rgba(26,20,22,0.8), var(--bg));
padding: 12px;
border-radius: 8px;
border: 1px solid #2a1c1b;
font-family: serif;
}
dnd hd {
display: flex; justify-content: space-between; font-size: 12px;
border-bottom: 1px solid var(--gold); padding-bottom: 6px; margin-bottom: 12px;
}
dnd hd b { color: var(--gold); font-weight: normal; }

dnd bar {
position: relative;
display: flex; justify-content: space-between; gap: 4px;
margin-top: 15px; border-top: 1px dashed var(--gold); padding-top: 12px;
}

dnd details { flex: 1; position: static; }
dnd summary {
list-style: none; padding: 6px 0; font-size: 12px; font-weight: bold; text-align: center;
color: var(--gold); background: #1a1110; border: 1px solid var(--red);
border-radius: 4px; cursor: pointer; box-shadow: 0 0 5px rgba(122,21,21,0.5);
transition: all 0.2s; white-space: nowrap;
}
dnd summary::-webkit-details-marker { display: none; }
dnd summary:hover, dnd details[open] summary {
background: var(--red); color: #fff; box-shadow: 0 0 12px var(--lust);
}
@keyframes unroll-up {
0% { transform: scaleY(0) translateY(10px); opacity: 0; }
100% { transform: scaleY(1) translateY(0); opacity: 1; }
}
dnd pop {
display: none;
position: absolute;
bottom: calc(100% + 8px);

left: 0; right: 0;
background: var(--paper); color: var(--ink);
background-image: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0,0,0,0.04) 21px);
box-shadow: inset 0 0 40px rgba(139,69,19,0.3), 0 -15px 35px rgba(0,0,0,0.8);
border: 2px solid #5a3c27; border-radius: 3px;
padding: 15px; max-height: 60vh; overflow-y: auto; z-index: 20;
}
dnd details[open] pop {
display: block;
transform-origin: bottom;
animation: unroll-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
dnd pop p[t]::before {
content: "✦ " attr(t) " ✦"; display: block;
color: var(--red); font-size: 14px; font-weight: bold;
border-bottom: 2px solid var(--red); margin-bottom: 8px; padding-bottom: 4px;
}
dnd pop d { display: block; font-size: 13px; padding: 3px 6px; border-left: 2px solid transparent; margin-bottom: 2px;}
dnd pop d b { color: #6b2d18; margin-right: 4px; font-weight: bold; }
dnd pop d:hover { background: rgba(122,21,21,0.06); border-left-color: var(--red); }
dnd pop .attr { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
dnd pop .attr d {
background: rgba(0,0,0,0.05); border: 1px solid #a88d75; margin:0;
border-radius: 3px; padding: 2px 8px; flex: 1; text-align: center; font-family: monospace;
}
dnd pop .attr d b { display: block; font-size: 11px; margin-bottom: 1px; }
@keyframes throb-ink {
0% { color: var(--lust); }
50% { color: #a10d26; text-shadow: 0 0 5px rgba(230,57,86,0.6); }
100% { color: var(--lust); }
}
dnd pop d.l { border-left: 2px solid var(--lust); background: rgba(230,57,86,0.05); }
dnd pop d.l b { animation: throb-ink 2s infinite; }
dnd .act {
background: linear-gradient(90deg, rgba(181,147,100,0.3), transparent);
border: 1px solid #8f744e; border-radius: 4px;
padding: 8px 10px; margin: 6px 0; cursor: pointer;
font-weight: bold; color: #4a3424; transition: all 0.2s;
}
dnd .act:hover {
background: rgba(181,147,100,0.6); transform: translateX(8px);
box-shadow: 0 0 10px rgba(181,147,100,0.8); border-color: var(--red); color: var(--red);
}
dnd .act::before { content: "►"; color: var(--red); margin-right: 6px; opacity: 0; transition: 0.2s; }
dnd .act:hover::before { opacity: 1; }
dnd m {
display: block;
font-family: "Courier New", Consolas, monospace;
font-size: 14px;
line-height: 24px;
white-space: pre;
overflow-x: auto;
background-color: #1e1515;
background-image:
linear-gradient(to right, rgba(255, 60, 80, 0.3) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 60, 80, 0.3) 1px, transparent 1px);
background-size: 2ch 24px;
background-position: 3ch 24px;
padding: 0 15px 15px 15px;
margin-top: 10px;
color: #a38585;
border: 1px solid #662222;
border-radius: 4px;
box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}
dnd m p, dnd m f, dnd m t, dnd m w, dnd m a {
display: inline-block;
width: 2ch;
height: 24px;
line-height: 24px;
text-align: center;
vertical-align: top;
}
dnd m w {
background: #4a2b2b;
color: transparent;
box-shadow: inset 0 0 0 1px #804040;
}
dnd m p {
background: rgba(0, 229, 255, 0.15);
color: #00e5ff;
box-shadow: inset 0 0 0 1px #00e5ff, inset 0 0 8px rgba(0,229,255,0.4);
text-shadow: 0 0 5px #00e5ff;
}
dnd m f {
background: rgba(255, 26, 26, 0.15);
color: #ff1a1a;
box-shadow: inset 0 0 0 1px #ff1a1a, inset 0 0 8px rgba(255,26,26,0.4);
text-shadow: 0 0 5px #ff1a1a;
animation: throb 1.5s infinite alternate;
}
dnd m t {
background: rgba(255, 51, 153, 0.15);
color: #ff3399;
box-shadow: inset 0 0 0 1px #ff3399, inset 0 0 8px rgba(255,51,153,0.4);
text-shadow: 0 0 5px #ff3399;
}
dnd m a {
background: rgba(51, 255, 51, 0.15);
color: #33ff33;
box-shadow: inset 0 0 0 1px #33ff33, inset 0 0 8px rgba(51,255,51,0.4);
}
@keyframes throb { from { opacity: 0.7; } to { opacity: 1; } }
dnd m::-webkit-scrollbar { height: 10px; }
dnd m::-webkit-scrollbar-thumb { background: #7a2222; border-radius: 5px; }
dnd m::-webkit-scrollbar-track { background: #110a0a; }
dnd .legend p, dnd .legend f, dnd .legend t, dnd .legend w, dnd .legend a {
display: inline-block; width: 16px; height: 16px; line-height: 16px;
text-align: center; margin-right: 4px; font-family: monospace; font-size: 12px;
}
dnd .legend {
display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
background: rgba(0,0,0,0.5); padding: 8px; border-radius: 4px;
border: 1px solid #4a1f1f; font-family: sans-serif; font-size: 11px;
margin-bottom: 8px; color: #bbaaaa;
}
think { display: none !important; }