/* Acciones de la cabecera (tema 0.5.0): «Quiero donar» destacado y acceso a la cuenta. Bloque dialektico/acciones-cabecera. */
.dk-cabecera > .dk-logo { flex: 0 0 auto; padding-right: 16px; }
.dk-cabecera > .dk-menu { flex: 1 1 auto; }
.dk-cabecera > .dk-acciones { flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 4px 0 0; margin: 0; }
.dk-acciones a, .wp-site-blocks .dk-acciones a, .wp-site-blocks .dk-acciones a:hover { text-decoration: none; }
.dk-donar,
.dk-cuenta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	padding: 4px 10px 6px;
	font: 13px/1 var(--wp--preset--font-family--pixel);
	letter-spacing: .5px;
	white-space: nowrap;
	box-shadow: 0 -2px 0 0 #160404, 0 2px 0 0 #160404, -2px 0 0 0 #160404, 2px 0 0 0 #160404, inset 0 -3px 0 0 rgb(0 0 0 / .3), inset 0 2px 0 0 rgb(255 255 255 / .2);
	transition: transform .1s steps(2), filter .15s;
}
.wp-site-blocks .dk-donar { position: relative; background: #b90101; color: #fff; animation: dk-donar-brillo 2.6s steps(2) infinite; }
.wp-site-blocks .dk-cuenta { background: #120c16; color: #ffda8c; }
.dk-donar:hover, .dk-cuenta:hover, .dk-donar:focus-visible, .dk-cuenta:focus-visible { transform: translateY(-2px); filter: brightness(1.15); outline: none; }
.dk-donar:focus-visible, .dk-cuenta:focus-visible { outline: 3px solid #e8b04b; outline-offset: 4px; }
@keyframes dk-donar-brillo { 50% { filter: brightness(1.18); } }
/* Moneda pixel que gira (cuatro fotogramas con steps) */
.dk-donar__moneda { width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%23160404' d='M3 0h3v1h1v1h1v5H7v1H6v1H3V8H2V7H1V2h1V1h1z'/%3E%3Cpath fill='%23ffc940' d='M3 1h3v1h1v5H6v1H3V7H2V2h1z'/%3E%3Cpath fill='%23fff3b0' d='M3 2h1v4H3z'/%3E%3Cpath fill='%23c98a12' d='M5 2h1v5H5z'/%3E%3C/svg%3E") center/contain no-repeat; image-rendering: pixelated; animation: dk-moneda 1.2s steps(1) infinite; }
@keyframes dk-moneda { 25% { transform: scaleX(.6); } 50% { transform: scaleX(.15); } 75% { transform: scaleX(.6); } }
.dk-cuenta__avatar { display: grid; place-items: center; width: 22px; height: 22px; overflow: hidden; border: 2px solid #ffda8c; border-radius: 50%; background: #30213e; color: #ffda8c; font-size: 15px; }
.dk-cuenta__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dk-cuenta__texto { display: flex; flex-direction: column; gap: 3px; }
.dk-cuenta__nombre { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.dk-cuenta__nivel { color: #3fe0d0; font-size: 12px; }
.dk-cuenta__llave { width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffda8c' d='M1 1h3v1h1v1H4v1H1zM2 2v1h1V2zM5 2h2v1H5zM5 3h1v2h1v1H5zM5 6h1v1H5z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .dk-donar, .dk-donar__moneda { animation: none; } }
@media (max-width: 1440px) and (min-width: 1025px) {
	.dk-cabecera { padding-inline: 2.5% !important; }
	.dk-cabecera .dk-menu .wp-block-navigation-item__content { padding-inline: 8px; }
	.dk-cuenta--entrar span:last-child { display: none; }
	.dk-cuenta--entrar .dk-cuenta__llave { width: 20px; height: 20px; }
}
@media (max-width: 1200px) and (min-width: 1025px) {
	.dk-donar__quiero { display: none; }
	.dk-cabecera > .dk-logo img { height: 30px !important; }
	.dk-cabecera .dk-menu .wp-block-navigation-item__content { padding-inline: 6px; }
}
@media (max-width: 1280px) { .dk-cuenta__texto { display: none; } .dk-cuenta--entrar span:last-child { display: none; } .dk-cuenta--entrar .dk-cuenta__llave { display: block; } }
@media (max-width: 1024px) {
	.dk-cabecera > .dk-acciones { flex: 0 0 auto; order: 3; padding: 8px 8px 0 0; margin-left: auto; gap: 8px; }
	.dk-cabecera > .dk-menu-boton { order: 4; margin: 11px 10px 0 0; }
	.dk-cabecera > .dk-menu { order: 5; }
	.dk-donar, .dk-cuenta { min-height: 30px; padding: 4px 8px 6px; font-size: 12px; }
}
@media (max-width: 420px) { .dk-donar span:last-child { display: none; } .dk-donar { padding-inline: 8px; } }
/* Móvil: una sola fila (logo, acciones y botón de menú); el menú se despliega debajo. */
@media (max-width: 767px) {
	.dk-cabecera { flex-direction: row; flex-wrap: wrap !important; align-items: center !important; min-height: 60px; padding: 0 4px !important; }
	.dk-cabecera > .dk-logo { order: 1; padding: 0; }
	.dk-cabecera > .dk-logo a { width: auto; text-align: left; }
	.dk-cabecera > .dk-logo img { width: 132px !important; height: 28px !important; }
	.dk-cabecera > .dk-acciones { order: 2; padding: 0; margin-left: auto; }
	.dk-cabecera > .dk-menu-boton { order: 3; margin: 0 6px 0 8px; }
	.dk-cabecera > .dk-menu { order: 4; width: 100%; margin: 6px 0 0; }
}
/* Avisos de la taberna sobre el avatar de la cuenta (Core 0.10.0). */
.dk-cuenta__avatar { position: relative; }
.dk-cuenta__avisos { position: absolute; top: -7px; right: -7px; min-width: 16px; height: 16px; padding: 0 3px; background: #b90101; color: #fff; font: 11px/16px var(--wp--preset--font-family--pixel, monospace); text-align: center; box-shadow: 0 0 0 2px #000; animation: dk-cab-latido 1.4s steps(2) infinite; }
@keyframes dk-cab-latido { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .dk-cuenta__avisos { animation: none; } }
